freebsd-ports/sysutils/logrotate/Makefile
Martin Wilke a4c64a0f86 - Olddir options fix
logrotate's path-type options (eg. compress, olddir,
     just to name a few) fail because FreeBSD's libc
     implements mbtrowc(3) differently, and returns -2 on
     empty string. Linux version, however, returns 0.

     A simple zero-length check added to path check function,
     which hides this.

PR:		126337
Submitted by:	Balazs NAGY <js@iksz.hu> (maintainer)
2008-08-15 19:19:35 +00:00

34 lines
865 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.7.7
PORTREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= https://fedorahosted.org/releases/l/o/logrotate/
DISTNAME= ${PORTNAME}-${PORTVERSION}
MAINTAINER= js@iksz.hu
COMMENT= Daemon to rotate, compress, remove and mail system log files
LIB_DEPENDS= popt.0:${PORTSDIR}/devel/popt
USE_GMAKE= yes
MAKE_ENV= "BASEDIR=${PREFIX}"
PATCH_WRKSRC= ${WRKDIR}
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
MAN8= logrotate.8
MANCOMPRESSED= no
post-install:
@${MKDIR} ${EXAMPLESDIR}
@${SED} -e 's|__PREFIX__|${PREFIX}|' \
< ${FILESDIR}/logrotate.conf.sample > ${PREFIX}/etc/logrotate.conf.sample
@${INSTALL_DATA} ${FILESDIR}/syslog.sample ${EXAMPLESDIR}
.include <bsd.port.mk>