summaryrefslogtreecommitdiff
path: root/sysutils/fcron
diff options
context:
space:
mode:
authorFUJISHIMA Satsuki <sf@FreeBSD.org>2001-09-21 15:47:27 +0000
committerFUJISHIMA Satsuki <sf@FreeBSD.org>2001-09-21 15:47:27 +0000
commit1a5189c956a9ea90215905957fc7ddc81d0b8740 (patch)
treeef7567b08f76b394ee2c1265fb3f00ec43c1f78d /sysutils/fcron
parentinstall manpage correctly. (diff)
o add missed bin/fcronsighup.
o utilize DOCSDIR. o install fcron.{allow,deny,conf}.dist and remove them if unchanged.
Notes
Notes: svn path=/head/; revision=48041
Diffstat (limited to 'sysutils/fcron')
-rw-r--r--sysutils/fcron/Makefile11
-rw-r--r--sysutils/fcron/files/patch-Makefile.in14
-rw-r--r--sysutils/fcron/pkg-plist4
3 files changed, 25 insertions, 4 deletions
diff --git a/sysutils/fcron/Makefile b/sysutils/fcron/Makefile
index bf3171be3568..d7c3beea5a02 100644
--- a/sysutils/fcron/Makefile
+++ b/sysutils/fcron/Makefile
@@ -8,7 +8,7 @@
PORTNAME= fcron
PORTVERSION= 1.1.1
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= sysutils
MASTER_SITES= ${MASTER_SITE_SUNSITE} \
http://fcron.free.fr/
@@ -23,7 +23,7 @@ CONFIGURE_ARGS= --with-etcdir=${PREFIX}/etc --with-cflags="${CFLAGS}" \
--with-answer-all=yes
.if !defined(NOPORTDOCS)
-CONFIGURE_ARGS+= --with-docdir=${PREFIX}/share/doc/fcron
+CONFIGURE_ARGS+= --with-docdir=${DOCSDIR}
PLIST_SUB= PORTVERSION=${PORTVERSION}
.endif
@@ -35,7 +35,10 @@ MAN5= fcrontab.5 fcron.conf.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
+.for i in allow deny conf
+.if !exists(${PREFIX}/etc/fcron.$i)
+ @${CP} -p ${PREFIX}/etc/fcron.$i.dist ${PREFIX}/etc/fcron.$i
+.endif
+.endfor
.include <bsd.port.mk>
diff --git a/sysutils/fcron/files/patch-Makefile.in b/sysutils/fcron/files/patch-Makefile.in
new file mode 100644
index 000000000000..c14b74ebcc86
--- /dev/null
+++ b/sysutils/fcron/files/patch-Makefile.in
@@ -0,0 +1,14 @@
+--- Makefile.in.orig Tue Jul 10 23:59:49 2001
++++ Makefile.in Sat Sep 22 00:35:39 2001
+@@ -108,8 +108,9 @@
+ $(INSTALL) -g $(ROOTGROUP) -o $(ROOTNAME) -m 110 -s fcron $(DESTSBIN)
+ $(INSTALL) -g $(GROUPNAME) -o $(USERNAME) -m 6111 -s fcrontab $(DESTBIN)
+ $(INSTALL) -g $(ROOTGROUP) -o $(ROOTNAME) -m 6111 -s fcronsighup $(DESTBIN)
+- test -f $(ETC)/fcron.allow || test -f $(ETC)/fcron.deny || $(INSTALL) -m 640 -o $(ROOTNAME) -g $(GROUPNAME) $(SRCDIR)/files/fcron.allow $(SRCDIR)/files/fcron.deny $(ETC)
+- test -f $(ETC)/fcron.conf || $(INSTALL) -m 640 -o $(ROOTNAME) -g $(GROUPNAME) $(SRCDIR)/files/fcron.conf $(ETC)
++ $(INSTALL) -m 640 -o $(ROOTNAME) -g $(GROUPNAME) $(SRCDIR)/files/fcron.allow $(ETC)/fcron.allow.dist
++ $(INSTALL) -m 640 -o $(ROOTNAME) -g $(GROUPNAME) $(SRCDIR)/files/fcron.deny $(ETC)/fcron.deny.dist
++ $(INSTALL) -m 640 -o $(ROOTNAME) -g $(GROUPNAME) $(SRCDIR)/files/fcron.conf $(ETC)/fcron.conf.dist
+ $(INSTALL) -m 644 -o $(ROOTNAME) $(SRCDIR)/doc/fcron.8 $(DESTMAN)/man8
+ $(INSTALL) -m 644 -o $(ROOTNAME) $(SRCDIR)/doc/fcrontab.1 $(DESTMAN)/man1
+ $(INSTALL) -m 644 -o $(ROOTNAME) $(SRCDIR)/doc/fcrontab.5 $(DESTMAN)/man5
diff --git a/sysutils/fcron/pkg-plist b/sysutils/fcron/pkg-plist
index 7dd77d905926..2ed191af7b53 100644
--- a/sysutils/fcron/pkg-plist
+++ b/sysutils/fcron/pkg-plist
@@ -1,3 +1,4 @@
+bin/fcronsighup
bin/fcrontab
sbin/fcron
@unexec if cmp -s %D/etc/fcron.allow %D/etc/fcron.allow.dist; then rm -f %D/etc/fcron.allow; fi
@@ -6,6 +7,9 @@ etc/fcron.allow.dist
@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
+@unexec if cmp -s %D/etc/fcron.conf %D/etc/fcron.conf.dist; then rm -f %D/etc/fcron.conf; fi
+etc/fcron.conf.dist
+@exec [ -f %B/fcron.conf ] || cp %B/%f %B/fcron.conf
etc/rc.d/fcron.sh
%%PORTDOCS%%share/doc/fcron/fcron-%%PORTVERSION%%/CHANGES
%%PORTDOCS%%share/doc/fcron/fcron-%%PORTVERSION%%/LICENSE