mirror of https://git.FreeBSD.org/ports.git
33 lines
890 B
Makefile
33 lines
890 B
Makefile
PORTNAME= logrotate
|
|
PORTVERSION= 3.13.0
|
|
PORTREVISION= 2
|
|
CATEGORIES= sysutils
|
|
|
|
MAINTAINER= js@iksz.hu
|
|
COMMENT= Daemon to rotate, compress, remove, and mail system log files
|
|
|
|
LICENSE= GPLv2
|
|
|
|
LIB_DEPENDS= libpopt.so:devel/popt
|
|
|
|
USE_GITHUB= yes
|
|
|
|
PATCH_STRIP= -p1
|
|
USES= autoreconf cpe gmake localbase
|
|
CPE_VENDOR= logrotate_project
|
|
GNU_CONFIGURE= yes
|
|
GNU_CONFIGURE_MANPREFIX=${PREFIX}/share
|
|
CONFIGURE_ARGS= --with-default-mail-command=/usr/bin/mailx \
|
|
--with-compress-command=/usr/bin/gzip \
|
|
--with-uncompress-command=/usr/bin/gunzip \
|
|
--with-state-file-path=/var/run/logrotate.status
|
|
|
|
post-install:
|
|
${SED} -e 's|__PREFIX__|${PREFIX}|' \
|
|
< ${FILESDIR}/logrotate.conf.sample > ${STAGEDIR}${PREFIX}/etc/logrotate.conf.sample
|
|
${MKDIR} ${STAGEDIR}${ETCDIR}.d
|
|
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
|
${INSTALL_DATA} ${FILESDIR}/syslog.sample ${STAGEDIR}${EXAMPLESDIR}
|
|
|
|
.include <bsd.port.mk>
|