Check to see if /usr/include/security/pam_misc.h exists. If it does,

then gdmaskpass will be built (i.e. on -stable).  If not, then gdmaskpass
will not be built, and the plist needs to be updated accordingly.

Unfortunately, there doesn't appear to be a __FreeBSD_version that coincides
with OpenPAM.

Submitted by:	bento
This commit is contained in:
Joe Marcus Clarke 2002-09-08 19:25:54 +00:00
parent 80d7c47a23
commit 8d3685529d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=65848
2 changed files with 11 additions and 3 deletions

View File

@ -17,7 +17,7 @@ DIST_SUBDIR= gnome2
MAINTAINER= gnome@FreeBSD.org
LIB_DEPENDS= gnomeui-2.0:${PORTSDIR}/x11-toolkits/libgnomeui \
rsvg-2.2:${PORTSDIR}/graphics/librsvg2
rsvg-2.2:${PORTSDIR}/graphics/librsvg2
USE_BZIP2= yes
USE_X_PREFIX= yes
@ -32,6 +32,14 @@ CONFIGURE_TARGET= --target=${MACHINE_ARCH}-unknown-freebsd${OSREL}
GDMDIR?= ${PREFIX}/etc/gdm
.include <bsd.port.pre.mk>
.if exists(/usr/include/security/pam_misc.h)
PLIST_SUB= PAM_MISC=""
.else
PLIST_SUB= PAM_MISC="@comment "
.endif
.if !defined(BATCH) && !defined(PACKAGE_BUILDING)
IS_INTERACTIVE= yes
.endif
@ -62,4 +70,4 @@ post-install:
@${CHMOD} 0750 ${PREFIX}/share/gnome/gdm
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>
.include <bsd.port.post.mk>

View File

@ -32,7 +32,7 @@ etc/rc.d/gdm.sh.sample
sbin/gdm-restart
sbin/gdm-safe-restart
sbin/gdm-stop
sbin/gdmaskpass
%%PAM_MISC%%sbin/gdmaskpass
sbin/gdmconfig
share/gnome/applications/gdmflexiserver-xnest.desktop
share/gnome/applications/gdmflexiserver.desktop