diff options
author | agc <agc> | 1999-03-30 15:37:00 +0000 |
---|---|---|
committer | agc <agc> | 1999-03-30 15:37:00 +0000 |
commit | 258e867c64e00a77b092de64de048a4b5050ce12 (patch) | |
tree | b53607428ae9d27d507246768b07239285b8658e /security/sudo | |
parent | 8b090670d139f2d7fad32c43ca245c29fe7b7957 (diff) | |
download | pkgsrc-258e867c64e00a77b092de64de048a4b5050ce12.tar.gz |
Make this work on Solaris.
Substitute ${LOCALBASE} for the hardcoded value in the manual pages.
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 |