summaryrefslogtreecommitdiff
path: root/x11/gdm2
diff options
context:
space:
mode:
authorJoe Marcus Clarke <marcus@FreeBSD.org>2002-09-08 19:25:54 +0000
committerJoe Marcus Clarke <marcus@FreeBSD.org>2002-09-08 19:25:54 +0000
commit8d3685529da63f1ff8009224a57afaecec427aff (patch)
tree2f36b0b580d0ac4276727dc0a49236babe102fb2 /x11/gdm2
parentAdd a missing dependency on libglade. (diff)
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
Notes
Notes: svn path=/head/; revision=65848
Diffstat (limited to 'x11/gdm2')
-rw-r--r--x11/gdm2/Makefile12
-rw-r--r--x11/gdm2/pkg-plist2
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