add management for etc files

Submitted by:	olgeni
This commit is contained in:
Ying-Chieh Liao 2001-06-17 01:08:13 +00:00
parent 5c27ba05c2
commit 8494d965b5
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=44080
2 changed files with 10 additions and 2 deletions

View File

@ -33,4 +33,8 @@ MAN3= bitstring.3
MAN5= fcrontab.5
MAN8= fcron.8
post-install:
@${CP} ${WRKSRC}/files/fcron.allow ${PREFIX}/etc/fcron.allow.dist
@${CP} ${WRKSRC}/files/fcron.deny ${PREFIX}/etc/fcron.deny.dist
.include <bsd.port.mk>

View File

@ -1,7 +1,11 @@
bin/fcrontab
sbin/fcron
etc/fcron.allow
etc/fcron.deny
@unexec if cmp -s %D/etc/fcron.allow %D/etc/fcron.allow.dist; then rm -f %D/etc/fcron.allow; fi
etc/fcron.allow.dist
@exec [ -f %B/fcron.allow ] || cp %B/%f %B/fcron.allow
@unexec if cmp -s %D/etc/fcron.deny %D/etc/fcron.deny.dist; then rm -f %D/etc/fcron.deny; fi
etc/fcron.deny.dist
@exec [ -f %B/fcron.deny ] || cp %B/%f %B/fcron.deny
etc/rc.d/fcron.sh
%%PORTDOCS%%share/doc/fcron/fcron-%%PORTVERSION%%/CHANGES
%%PORTDOCS%%share/doc/fcron/fcron-%%PORTVERSION%%/LICENSE