freebsd-ports/sysutils/logrotate/Makefile
Guido Falsi cf8b938045 - Update to 3.8.7 [1]
While here [2]:

- Use new LIB_DEPENDS format
- Convert to USES=gmake
- Convert to staging
- Fix configuration file handling

PR:		ports/185615 [1]
Submitted by:	Balazs Nagy <js@iksz.hu> (maintainer)
Approved by:	implicit portmgr@ blanket approval [2]
2014-01-10 23:04:07 +00:00

25 lines
682 B
Makefile

# Created by: Yuan-Chen Cheng <ycheng@sinica.edu.tw>
# $FreeBSD$
PORTNAME= logrotate
PORTVERSION= 3.8.7
CATEGORIES= sysutils
MASTER_SITES= https://fedorahosted.org/releases/l/o/logrotate/
MAINTAINER= js@iksz.hu
COMMENT= Daemon to rotate, compress, remove, and mail system log files
LIB_DEPENDS= libpopt.so:${PORTSDIR}/devel/popt
PATCH_STRIP= -p1
USES= gmake
MAKE_ENV= "BASEDIR=${PREFIX}"
CPP= ${CC} -E
post-install:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
@${SED} -e 's|__PREFIX__|${PREFIX}|' \
< ${FILESDIR}/logrotate.conf.sample > ${STAGEDIR}${PREFIX}/etc/logrotate.conf.sample
@${INSTALL_DATA} ${FILESDIR}/syslog.sample ${STAGEDIR}${EXAMPLESDIR}
.include <bsd.port.mk>