diff options
author | marcus <marcus@FreeBSD.org> | 2002-09-09 03:25:54 +0800 |
---|---|---|
committer | marcus <marcus@FreeBSD.org> | 2002-09-09 03:25:54 +0800 |
commit | 140dfd13049630994125c8be0e13579cb07e456c (patch) | |
tree | a4512fdcf03bb3a990b73b37970d18530738140b | |
parent | 21dde1be156c82dc0c1ba196a9ee57712453a5a3 (diff) | |
download | freebsd-ports-gnome-140dfd13049630994125c8be0e13579cb07e456c.tar.gz freebsd-ports-gnome-140dfd13049630994125c8be0e13579cb07e456c.tar.zst freebsd-ports-gnome-140dfd13049630994125c8be0e13579cb07e456c.zip |
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
-rw-r--r-- | x11/gdm2/Makefile | 12 | ||||
-rw-r--r-- | x11/gdm2/pkg-plist | 2 |
2 files changed, 11 insertions, 3 deletions
diff --git a/x11/gdm2/Makefile b/x11/gdm2/Makefile index ef8eafd056fc..b6c197b06004 100644 --- a/x11/gdm2/Makefile +++ b/x11/gdm2/Makefile @@ -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> diff --git a/x11/gdm2/pkg-plist b/x11/gdm2/pkg-plist index 4c2485f3bfaf..bd01ffaba19e 100644 --- a/x11/gdm2/pkg-plist +++ b/x11/gdm2/pkg-plist @@ -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 |