aboutsummaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
authorwxs <wxs@FreeBSD.org>2010-09-06 05:33:42 +0800
committerwxs <wxs@FreeBSD.org>2010-09-06 05:33:42 +0800
commiteeecca7254aa8b81145c93ea81fdad8c47c3a586 (patch)
tree9b68a050ad770b1b078b2db92d4992a610240580 /security
parent440723335330dba23f9afe7166988110fb23e3f8 (diff)
downloadfreebsd-ports-gnome-eeecca7254aa8b81145c93ea81fdad8c47c3a586.tar.gz
freebsd-ports-gnome-eeecca7254aa8b81145c93ea81fdad8c47c3a586.tar.zst
freebsd-ports-gnome-eeecca7254aa8b81145c93ea81fdad8c47c3a586.zip
Fix package installation by correcting usage of %B and installing a file
to make sure the empty directory is created. PR: ports/149912 Submitted by: Alexey V.Degtyarev <alexey@renatasystems.org>
Diffstat (limited to 'security')
-rw-r--r--security/sudo/Makefile2
-rw-r--r--security/sudo/pkg-plist3
2 files changed, 4 insertions, 1 deletions
diff --git a/security/sudo/Makefile b/security/sudo/Makefile
index 2d37cbf66fb3..a6df4cce882f 100644
--- a/security/sudo/Makefile
+++ b/security/sudo/Makefile
@@ -7,6 +7,7 @@
PORTNAME= sudo
PORTVERSION= 1.7.4.3
+PORTREVISION= 1
CATEGORIES= security
MASTER_SITES= http://www.sudo.ws/sudo/dist/ \
ftp://obsd.isc.org/pub/sudo/ \
@@ -102,5 +103,6 @@ post-install:
if [ ! -f ${PREFIX}/etc/sudoers ]; then \
${CP} -p ${PREFIX}/etc/sudoers.sample ${PREFIX}/etc/sudoers; \
fi
+ ${TOUCH} ${PREFIX}/etc/sudoers.d/.keep-me
.include <bsd.port.post.mk>
diff --git a/security/sudo/pkg-plist b/security/sudo/pkg-plist
index 26a5f8708f72..e43644a9a454 100644
--- a/security/sudo/pkg-plist
+++ b/security/sudo/pkg-plist
@@ -6,7 +6,7 @@ etc/sudoers.sample
@exec if [ ! -f %D/etc/sudoers ] ; then cp -p %D/%F %B/sudoers; fi
@unexec if cmp -s %D/etc/pam.d/sudo.default %D/etc/pam.d/sudo; then rm -f %D/etc/pam.d/sudo ; fi
etc/pam.d/sudo.default
-@exec if [ ! -f %D/etc/pam.d/sudo ] ; then cp -p %D/%F %B/pam.d/sudo; fi
+@exec if [ ! -f %D/etc/pam.d/sudo ] ; then cp -p %D/%F %B/sudo; fi
libexec/sudo_noexec.so
sbin/visudo
%%PORTDOCS%%%%DOCSDIR%%/ChangeLog
@@ -23,4 +23,5 @@ sbin/visudo
%%LDAP%%%%PORTDOCS%%%%DOCSDIR%%/schema.OpenLDAP
%%LDAP%%%%PORTDOCS%%%%DOCSDIR%%/sudoers2ldif
%%PORTDOCS%%@dirrm %%DOCSDIR%%
+etc/sudoers.d/.keep-me
@dirrmtry etc/sudoers.d