freebsd-ports/sysutils/anacron/Makefile
Mathieu Arnold f899c758a6 When there is a do-install target, do not use a post-install target, do
everything at once.  Sometime, rename post-install into a options helper
target.

I did not fix ports that were such a mess that I could not figure out
what they really wanted to do.  I also did not change ports that had
some version of an auto-plist code in post-install, for the same reason.

With hat:	portmgr
Sponsored by:	Absolight
2016-07-19 11:04:13 +00:00

30 lines
893 B
Makefile

# Created by: Derik van Zuetphen <dz@426.ch>
# $FreeBSD$
PORTNAME= anacron
PORTVERSION= 2.3
PORTREVISION= 6
CATEGORIES= sysutils
MASTER_SITES= SF
MAINTAINER= dz@426.ch
COMMENT= Schedules periodic jobs on systems that are not permanently up
USES= gmake
USE_RC_SUBR= anacron
SUB_FILES= pkg-message
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 ${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
[ -d ${STAGEDIR}/var/spool/anacron ] || ${MKDIR} ${STAGEDIR}/var/spool/anacron
.include <bsd.port.mk>