blob: 38daaa28178848db697b7f833765213215700d18 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
# New ports collection makefile for: anacron
# Date created: 15 Jul 2003
# Whom: Derik van Zuetphen <dz@426.ch>
#
# $FreeBSD$
#
PORTNAME= anacron
PORTVERSION= 2.3
PORTREVISION= 4
CATEGORIES= sysutils
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= anacron
MAINTAINER= dz@426.ch
COMMENT= Schedules periodic jobs on systems that are not permanently up
MAN8= anacron.8
MAN5= anacrontab.5
USE_GMAKE= yes
USE_RC_SUBR= anacron.sh
SUB_FILES= pkg-message
MAKE_ENV= CC="${CC}"
post-patch:
.for f in Makefile anacron.8 anacrontab.5
@${REINPLACE_CMD} -e 's|\(/etc/anacrontab\)|${PREFIX}\1|' ${WRKSRC}/${f}
.endfor
@${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
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>
|