1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-27 00:57:50 +00:00

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>
This commit is contained in:
Wesley Shields 2010-09-05 21:33:42 +00:00
parent ede3efa3e8
commit dfd95b676f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=260609
2 changed files with 4 additions and 1 deletions

View File

@ -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>

View File

@ -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