aboutsummaryrefslogtreecommitdiff
path: root/security/sudo
diff options
context:
space:
mode:
authorWesley Shields <wxs@FreeBSD.org>2011-04-11 19:43:39 +0000
committerWesley Shields <wxs@FreeBSD.org>2011-04-11 19:43:39 +0000
commit9cdeec96c134d87226d71d31195c647c6b761885 (patch)
tree8e1a022c656c8609a8169a74d8395e52e09f7b10 /security/sudo
parent567dc0b95795bc6d4bb8744c0c412ec5b0255eaa (diff)
downloadports-9cdeec96c134d87226d71d31195c647c6b761885.tar.gz
ports-9cdeec96c134d87226d71d31195c647c6b761885.zip
Notes
Diffstat (limited to 'security/sudo')
-rw-r--r--security/sudo/Makefile7
-rw-r--r--security/sudo/pkg-install13
2 files changed, 19 insertions, 1 deletions
diff --git a/security/sudo/Makefile b/security/sudo/Makefile
index 1633032cafc6..7cbc297681f9 100644
--- a/security/sudo/Makefile
+++ b/security/sudo/Makefile
@@ -7,7 +7,7 @@
PORTNAME= sudo
PORTVERSION= 1.8.1
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= security
MASTER_SITES= http://www.sudo.ws/sudo/dist/ \
http://www.signal42.com/mirrors/sudo_ftp/ \
@@ -119,6 +119,11 @@ post-patch:
@${REINPLACE_CMD} -e 's/$$(DESTDIR)$$(sudoersdir) $$(DESTDIR)$$(docdir)/$$(DESTDIR)$$(sudoersdir)/' ${WRKSRC}/plugins/sudoers/Makefile.in
.endif
+# XXX: Because I botched the upgrade to 1.8.1, this is necessary.
+# Eventually, once 1.8.1 is ancient enough, this can be removed.
+pre-install:
+ @PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
+
post-install:
${INSTALL_DATA} ${FILESDIR}/pam.conf ${PREFIX}/etc/pam.d/sudo.default
if [ ! -f ${PREFIX}/etc/pam.d/sudo ]; then \
diff --git a/security/sudo/pkg-install b/security/sudo/pkg-install
new file mode 100644
index 000000000000..7ae3587ce943
--- /dev/null
+++ b/security/sudo/pkg-install
@@ -0,0 +1,13 @@
+#! /bin/sh
+#
+# $FreeBSD$
+
+PATH=/bin:/usr/bin:/usr/sbin
+
+case $2 in
+
+PRE-INSTALL)
+ install -d -o 0 -g 0 -M 0750 ${PKG_PREFIX}/etc/sudoers.d
+ ;;
+
+esac