summaryrefslogtreecommitdiff
path: root/x11/gdm
diff options
context:
space:
mode:
authorrh <rh>2000-11-19 19:40:17 +0000
committerrh <rh>2000-11-19 19:40:17 +0000
commit3bebdcc9b89a81bf20f77649c46056993667f363 (patch)
treebd395fe9480ab3d26ec65c54979c22689d0c76d6 /x11/gdm
parent05dc586dde8a5609b44308b9cb9f98cf0961e7cf (diff)
downloadpkgsrc-3bebdcc9b89a81bf20f77649c46056993667f363.tar.gz
Prevent configure from picking up an installed PAM (unless USE_PAM is set)
Diffstat (limited to 'x11/gdm')
-rw-r--r--x11/gdm/Makefile14
1 files changed, 13 insertions, 1 deletions
diff --git a/x11/gdm/Makefile b/x11/gdm/Makefile
index 859c9abb71a..068639e02ee 100644
--- a/x11/gdm/Makefile
+++ b/x11/gdm/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.13 2000/07/15 20:39:25 agc Exp $
+# $NetBSD: Makefile,v 1.14 2000/11/19 19:40:17 rh Exp $
DISTNAME= gdm-2.0beta4
PKGNAME= gdm-2.0b4
@@ -45,6 +45,18 @@ GDMCFGFILES= Default:Init.default/Default \
locale.alias:locale.alias.default \
gnomerc:../gnomerc.default
+.include "../../mk/bsd.prefs.mk"
+
+.if !defined(USE_PAM)
+DEPENDS+= PAM-*:../../security/PAM
+
+post-patch:
+ cd ${WRKSRC} && \
+ ${CP} configure configure.old && \
+ ${SED} -e 's:security/pam_appl.h::g' \
+ < configure.old > configure
+.endif
+
post-build:
for f in DEINSTALL INSTALL; do \
${SED} -e 's#@@CP@@#${CP}#' \