diff options
author | madpilot <madpilot@FreeBSD.org> | 2014-07-06 23:28:08 +0800 |
---|---|---|
committer | madpilot <madpilot@FreeBSD.org> | 2014-07-06 23:28:08 +0800 |
commit | f56bc460df9a7440a7315dfc187f3c49c16bdda9 (patch) | |
tree | 0cdc8d8325cda967ed0d4293615c40841ac0ce84 /sysutils | |
parent | 74155c3e2e08440a0ab8a2bd1945645db1fd2e87 (diff) | |
download | freebsd-ports-gnome-f56bc460df9a7440a7315dfc187f3c49c16bdda9.tar.gz freebsd-ports-gnome-f56bc460df9a7440a7315dfc187f3c49c16bdda9.tar.zst freebsd-ports-gnome-f56bc460df9a7440a7315dfc187f3c49c16bdda9.zip |
- Stagify
- While here, fix some rclint warnings
PR: 191554
Sumitted by: dz@426.ch (maintainer)
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/anacron/Makefile | 17 | ||||
-rw-r--r-- | sysutils/anacron/files/anacron.in | 5 | ||||
-rw-r--r-- | sysutils/anacron/files/anacrontab.sample (renamed from sysutils/anacron/files/anacrontab.default) | 0 | ||||
-rw-r--r-- | sysutils/anacron/files/pkg-message.in | 1 | ||||
-rw-r--r-- | sysutils/anacron/pkg-plist | 7 |
5 files changed, 11 insertions, 19 deletions
diff --git a/sysutils/anacron/Makefile b/sysutils/anacron/Makefile index 86381b7149fa..e54af9256bc1 100644 --- a/sysutils/anacron/Makefile +++ b/sysutils/anacron/Makefile @@ -3,20 +3,17 @@ PORTNAME= anacron PORTVERSION= 2.3 -PORTREVISION= 4 +PORTREVISION= 5 CATEGORIES= sysutils MASTER_SITES= SF MAINTAINER= dz@426.ch COMMENT= Schedules periodic jobs on systems that are not permanently up -MAN8= anacron.8 -MAN5= anacrontab.5 USES= gmake USE_RC_SUBR= anacron SUB_FILES= pkg-message -NO_STAGE= yes post-patch: .for f in Makefile anacron.8 anacrontab.5 @${REINPLACE_CMD} -e 's|\(/etc/anacrontab\)|${PREFIX}\1|' ${WRKSRC}/${f} @@ -24,14 +21,12 @@ post-patch: @${REINPLACE_CMD} -e 's|^CFLAGS = .*||' ${WRKSRC}/Makefile do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/anacron ${PREFIX}/sbin - ${INSTALL_MAN} ${WRKSRC}/anacron.8 ${MAN8PREFIX}/man/man8 - ${INSTALL_MAN} ${WRKSRC}/anacrontab.5 ${MAN5PREFIX}/man/man5 - ${INSTALL_DATA} ${FILESDIR}/anacrontab.default ${PREFIX}/etc - [ -f ${PREFIX}/etc/anacrontab ] || ${INSTALL_DATA} ${FILESDIR}/anacrontab.default ${PREFIX}/etc/anacrontab - ${MKDIR} /var/spool/anacron + ${INSTALL_PROGRAM} ${WRKSRC}/anacron ${STAGEDIR}${PREFIX}/sbin + ${INSTALL_MAN} ${WRKSRC}/anacron.8 ${STAGEDIR}${MAN8PREFIX}/man/man8 + ${INSTALL_MAN} ${WRKSRC}/anacrontab.5 ${STAGEDIR}${MAN5PREFIX}/man/man5 + ${INSTALL_DATA} ${FILESDIR}/anacrontab.sample ${STAGEDIR}${PREFIX}/etc post-install: - @${CAT} ${PKGMESSAGE} + [ -d ${STAGEDIR}/var/spool/anacron ] || ${MKDIR} ${STAGEDIR}/var/spool/anacron .include <bsd.port.mk> diff --git a/sysutils/anacron/files/anacron.in b/sysutils/anacron/files/anacron.in index 918d68703403..6e68180bf998 100644 --- a/sysutils/anacron/files/anacron.in +++ b/sysutils/anacron/files/anacron.in @@ -14,11 +14,10 @@ . /etc/rc.subr -name="anacron" +name=anacron rcvar=anacron_enable -command="%%PREFIX%%/sbin/anacron" load_rc_config $name -: ${anacron_enable="NO"} +: ${anacron_enable:=NO} run_rc_command "$1" diff --git a/sysutils/anacron/files/anacrontab.default b/sysutils/anacron/files/anacrontab.sample index 2797d7fc2cc1..2797d7fc2cc1 100644 --- a/sysutils/anacron/files/anacrontab.default +++ b/sysutils/anacron/files/anacrontab.sample diff --git a/sysutils/anacron/files/pkg-message.in b/sysutils/anacron/files/pkg-message.in index d18dd839f6ee..6f7659674cae 100644 --- a/sysutils/anacron/files/pkg-message.in +++ b/sysutils/anacron/files/pkg-message.in @@ -6,4 +6,3 @@ Configuration hints: 0 0 * * * root %%PREFIX%%/sbin/anacron - Add anacron_enable="YES" to /etc/rc.conf - Read anacron(8) and anacrontab(5) - diff --git a/sysutils/anacron/pkg-plist b/sysutils/anacron/pkg-plist index 57fbd30146a9..7b449b2790e2 100644 --- a/sysutils/anacron/pkg-plist +++ b/sysutils/anacron/pkg-plist @@ -1,6 +1,5 @@ sbin/anacron -@unexec if cmp -s %D/etc/anacrontab.default %D/etc/anacrontab; then rm -f %D/etc/anacrontab; fi -etc/anacrontab.default -@exec [ -f %B/anacrontab ] || cp %B/%f %B/anacrontab -@exec mkdir -p /var/spool/anacron +@sample etc/anacrontab.sample @unexec rmdir /var/spool/anacron 2>/dev/null || echo "If you are permanently removing this port, you should do a 'rm -rf /var/spool/anacron'." +man/man8/anacron.8.gz +man/man5/anacrontab.5.gz |