Index: Makefile =================================================================== RCS file: /ncvs/ports/security/sudo/Makefile,v retrieving revision 1.125 diff -u -r1.125 Makefile --- Makefile 11 Apr 2011 16:50:19 -0000 1.125 +++ Makefile 11 Apr 2011 19:34:52 -0000 @@ -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 @@ @${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 \ Index: pkg-install =================================================================== RCS file: pkg-install diff -N pkg-install --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ pkg-install 11 Apr 2011 19:34:11 -0000 @@ -0,0 +1,16 @@ +#! /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 + ;; + +POST-INSTALL) + ;; + +esac