From 00373a72085d70bf2b334132b8e70cfc1f6792ea Mon Sep 17 00:00:00 2001 From: rh Date: Sun, 19 Nov 2000 19:40:17 +0000 Subject: Prevent configure from picking up an installed PAM (unless USE_PAM is set) --- x11/gdm/Makefile | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'x11/gdm') 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}#' \ -- cgit v1.2.3