summaryrefslogtreecommitdiff
path: root/security/sudo
diff options
context:
space:
mode:
authoragc <agc>1999-03-30 15:37:00 +0000
committeragc <agc>1999-03-30 15:37:00 +0000
commitf179c57d1f6fc420f7ff08b2af5668cab43b6e9a (patch)
treeb53607428ae9d27d507246768b07239285b8658e /security/sudo
parente50b3b609e4c89cdb7f4e6a21e301d8670e2a793 (diff)
downloadpkgsrc-f179c57d1f6fc420f7ff08b2af5668cab43b6e9a.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/Makefile18
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