1999-12-30 12:35:51 +00:00
|
|
|
# New ports collection makefile for: logrotate
|
|
|
|
# Date Created: 29 Dec 1999
|
|
|
|
# Whom: Yuan-Chen Cheng <ycheng@sinica.edu.tw>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2000-04-09 19:09:11 +00:00
|
|
|
PORTNAME= logrotate
|
|
|
|
PORTVERSION= 3.3
|
1999-12-30 12:35:51 +00:00
|
|
|
CATEGORIES= sysutils
|
|
|
|
MASTER_SITES= ftp://ftp.redhat.com/pub/redhat/current/SRPMS/SRPMS/ \
|
|
|
|
ftp://ftp.cdrom.com/pub/linux/redhat/current/SRPMS/SRPMS/
|
|
|
|
EXTRACT_SUFX= -1.src.rpm
|
|
|
|
|
|
|
|
MAINTAINER= ycheng@sinica.edu.tw
|
|
|
|
|
2000-04-27 02:32:16 +00:00
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/bin/rpm2cpio:${PORTSDIR}/misc/rpm
|
2000-04-24 15:50:30 +00:00
|
|
|
LIB_DEPENDS= popt.0:${PORTSDIR}/devel/popt
|
1999-12-30 12:35:51 +00:00
|
|
|
|
|
|
|
USE_GMAKE= yes
|
|
|
|
MAN8= logrotate.8
|
|
|
|
MANCOMPRESSED= no
|
|
|
|
|
|
|
|
do-extract:
|
|
|
|
@${RM} -rf ${WRKDIR}
|
|
|
|
@${MKDIR} ${WRKDIR}
|
|
|
|
@rpm2cpio ${_DISTDIR}${DISTFILES} | (cd ${WRKDIR}; cpio -i)
|
|
|
|
@tar -xzf ${WRKDIR}/${DISTNAME}.tar.gz -C ${WRKDIR}
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
@${MKDIR} ${PREFIX}/etc/logrotate.d
|
|
|
|
@${SED} -e 's|__PREFIX__|${PREFIX}|' \
|
|
|
|
< ${FILESDIR}/logrotate.conf.sample > ${PREFIX}/etc/logrotate.conf.sample
|
|
|
|
@${INSTALL_DATA} ${FILESDIR}/syslog.sample ${PREFIX}/etc/logrotate.d/
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|