summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorWesley Shields <wxs@FreeBSD.org>2010-09-05 21:33:42 +0000
committerWesley Shields <wxs@FreeBSD.org>2010-09-05 21:33:42 +0000
commitdfd95b676ffb969d7eba076ca0efbc0fc5918b53 (patch)
tree62d91cce7702e53a987c8d5c95b59f24a91d2a53 /security
parentFix quoting of Makefile variables; (diff)
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>
Notes
Notes: svn path=/head/; revision=260609
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