summaryrefslogtreecommitdiffstats
path: root/sysutils/fcron
diff options
context:
space:
mode:
authorijliao <ijliao@FreeBSD.org>2001-06-17 01:08:13 +0000
committerijliao <ijliao@FreeBSD.org>2001-06-17 01:08:13 +0000
commita93980ebbe9cfdfe11f50ffb6fbad157374024af (patch)
treec8fbc38f0cc2d891bcb2221e1961f8bcb84aeef8 /sysutils/fcron
parent39e709d803f23ce8d1595f4bd241227c1e492066 (diff)
downloadFreeBSD-ports-a93980ebbe9cfdfe11f50ffb6fbad157374024af.zip
FreeBSD-ports-a93980ebbe9cfdfe11f50ffb6fbad157374024af.tar.gz
add management for etc files
Submitted by: olgeni
Diffstat (limited to 'sysutils/fcron')
-rw-r--r--sysutils/fcron/Makefile4
-rw-r--r--sysutils/fcron/pkg-plist8
2 files changed, 10 insertions, 2 deletions
diff --git a/sysutils/fcron/Makefile b/sysutils/fcron/Makefile
index 4472949..f7d1b7d 100644
--- a/sysutils/fcron/Makefile
+++ b/sysutils/fcron/Makefile
@@ -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>
diff --git a/sysutils/fcron/pkg-plist b/sysutils/fcron/pkg-plist
index 923a2e8..8ca80eb 100644
--- a/sysutils/fcron/pkg-plist
+++ b/sysutils/fcron/pkg-plist
@@ -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
OpenPOWER on IntegriCloud