View | Details | Raw Unified | Return to bug 253567 | Differences between
and this patch

Collapse All | Expand All

(-)Makefile (-10 / +11 lines)
Lines 3-9 Link Here
3
3
4
PORTNAME=	anacron
4
PORTNAME=	anacron
5
PORTVERSION=	2.3
5
PORTVERSION=	2.3
6
PORTREVISION=	6
6
PORTREVISION=	7
7
CATEGORIES=	sysutils
7
CATEGORIES=	sysutils
8
MASTER_SITES=	SF
8
MASTER_SITES=	SF
9
9
Lines 14-33 Link Here
14
LICENSE_FILE=	${WRKSRC}/COPYING
14
LICENSE_FILE=	${WRKSRC}/COPYING
15
15
16
USES=		gmake
16
USES=		gmake
17
USE_RC_SUBR=	anacron
17
USE_RC_SUBR=	${PORTNAME}
18
SUB_FILES=	pkg-message
18
SUB_FILES=	pkg-message pkg-plist
19
SUB_LIST+=	PORTNAME=${PORTNAME} COMMENT="${COMMENT}"
19
20
20
post-patch:
21
post-patch:
21
.for f in Makefile anacron.8 anacrontab.5
22
.for f in Makefile ${PORTNAME}.8 ${PORTNAME}tab.5
22
	@${REINPLACE_CMD} -e 's|\(/etc/anacrontab\)|${PREFIX}\1|' ${WRKSRC}/${f}
23
	@${REINPLACE_CMD} -e 's|\(/etc/${PORTNAME}tab\)|${PREFIX}\1|' ${WRKSRC}/${f}
23
.endfor
24
.endfor
24
	@${REINPLACE_CMD} -e 's|^CFLAGS = .*||' ${WRKSRC}/Makefile
25
	@${REINPLACE_CMD} -e 's|^CFLAGS = .*||' ${WRKSRC}/Makefile
25
26
26
do-install:
27
do-install:
27
	${INSTALL_PROGRAM} ${WRKSRC}/anacron ${STAGEDIR}${PREFIX}/sbin
28
	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/sbin
28
	${INSTALL_MAN} ${WRKSRC}/anacron.8 ${STAGEDIR}${MAN8PREFIX}/man/man8
29
	${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.8 ${STAGEDIR}${MAN8PREFIX}/man/man8
29
	${INSTALL_MAN} ${WRKSRC}/anacrontab.5 ${STAGEDIR}${MAN5PREFIX}/man/man5
30
	${INSTALL_MAN} ${WRKSRC}/${PORTNAME}tab.5 ${STAGEDIR}${MAN5PREFIX}/man/man5
30
	${INSTALL_DATA} ${FILESDIR}/anacrontab.sample ${STAGEDIR}${PREFIX}/etc
31
	${INSTALL_DATA} ${FILESDIR}/${PORTNAME}tab.sample ${STAGEDIR}${PREFIX}/etc
31
	@${MKDIR} ${STAGEDIR}/var/spool/anacron
32
	@${MKDIR} ${STAGEDIR}/var/spool/${PORTNAME}
32
33
33
.include <bsd.port.mk>
34
.include <bsd.port.mk>
(-)files/pkg-message.in (-5 / +10 lines)
Lines 1-13 Link Here
1
[
1
[
2
{ type: install
2
{ type: install
3
  message: <<EOM
3
  message: <<EOM
4
Configuration hints:
4
Configuration hints:
5
- Edit %%PREFIX%%/etc/anacrontab
5
- Edit %%PREFIX%%/etc/%%PORTNAME%%tab
6
- Deactivate the 'periodic' commands in /etc/crontab
6
- Deactivate the 'periodic' commands in /etc/crontab
7
- Add a call to anacron to /etc/crontab, like
7
- Add a call to %%PORTNAME%% to /etc/crontab, like
8
  0  0  *  *  *    root    %%PREFIX%%/sbin/anacron
8
  0  0  *  *  *    root    %%PREFIX%%/sbin/%%PORTNAME%%
9
- Add anacron_enable="YES" to /etc/rc.conf
9
- Add %%PORTNAME%%_enable="YES" to /etc/rc.conf
10
- Read anacron(8) and anacrontab(5)
10
  or execute one of the following commands as root:
11
    service %%PORTNAME%% enable
12
    sysrc %%PORTNAME%%_enable=YES
13
- Read %%PORTNAME%%(8) and %%PORTNAME%%tab(5)
14
- To avoid overlapping periodic(8) jobs, you may want to serialize jobs:
15
    sysrc %%PORTNAME%%_flags+=" -s"
11
EOM
16
EOM
12
}
17
}
13
]
18
]
(-)files/pkg-plist.in (+5 lines)
Added Link Here
1
sbin/%%PORTNAME%%
2
@sample etc/%%PORTNAME%%tab.sample
3
@postunexec rmdir /var/spool/%%PORTNAME%% 2>/dev/null || echo "If you are permanently removing this port, you should do a 'rm -rf /var/spool/%%PORTNAME%%'."
4
man/man8/%%PORTNAME%%.8.gz
5
man/man5/%%PORTNAME%%tab.5.gz

Return to bug 253567