diff options
Diffstat (limited to 'security/sudo')
-rw-r--r-- | security/sudo/Makefile | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/security/sudo/Makefile b/security/sudo/Makefile index 231cf2f8dad..023ef878bf2 100644 --- a/security/sudo/Makefile +++ b/security/sudo/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.11 1999/02/20 22:48:43 hubertf Exp $ +# $NetBSD: Makefile,v 1.12 1999/03/30 15:37:00 agc Exp $ # FreeBSD Id: Makefile,v 1.9 1997/11/12 03:24:41 obrien Exp # @@ -12,8 +12,22 @@ EXTRACT_SUFX= .tar.Z MAINTAINER= packages@netbsd.org HOMEPAGE= http://www.courtesan.com/courtesan/products/sudo/ +.include "../../mk/bsd.prefs.mk" + +.if ${OPSYS} == "NetBSD" +SKEY_OPTION= --with-skey +.elif ${OPSYS} == "SunOS" +SKEY_OPTION= --without-skey +.endif + GNU_CONFIGURE= yes -CONFIGURE_ARGS+=--with-C2 --with-skey --with-nbsdops --disable-path-info +CONFIGURE_ARGS+=--with-C2 ${SKEY_OPTION} --with-nbsdops --disable-path-info + +post-patch: + cd ${WRKSRC}; for manpg in sudo.man sudoers.man visudo.man; do \ + ${MV} $$manpg $$manpg.hardcoded; \ + ${SED} -e 's|/usr/pkg|${LOCALBASE}|g' $$manpg.hardcoded > $$manpg; \ + done post-install: cd ${WRKSRC} ; ${CP} sample.sudoers ${PREFIX}/etc/sudoers.example |