mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-05 01:55:52 +00:00
d5195216c3
PR: ports/41048 Submitted by: maintainer
37 lines
948 B
Makefile
37 lines
948 B
Makefile
# New ports collection makefile for: logrotate
|
|
# Date Created: 29 Dec 1999
|
|
# Whom: Yuan-Chen Cheng <ycheng@sinica.edu.tw>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= logrotate
|
|
PORTVERSION= 3.5.2
|
|
CATEGORIES= sysutils
|
|
MASTER_SITES= ${MASTER_SITE_REDHAT_LINUX}
|
|
MASTER_SITE_SUBDIR= 7.0/en/os/i386/SRPMS
|
|
EXTRACT_SUFX= -1.src.rpm
|
|
|
|
MAINTAINER= ycheng@sinica.edu.tw
|
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/bin/rpm2cpio:${PORTSDIR}/archivers/rpm
|
|
LIB_DEPENDS= popt.0:${PORTSDIR}/devel/popt
|
|
|
|
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>
|