pkgsrc/sysutils/logrotate/Makefile
nils dd86e6e3e3 Updated to version 3.10.0. Changelog :
3.9.2 -> 3.10.0 :
- Legacy Makefile renamed to Makefile.legacy, will be removed eventually.
- Fix 'make dist' and 'make distcheck' to produce a usable release tarball.
- Fix 'olddir' usage with wildcard in the middle of path in the pattern
  definition when the pattern did not match any log file.
- Remove half-rotated files when rotation of particular log file is skipped
  because of an error during copy or compression.

It's not in the official changelog, but compilation errors also have been
fixed for NetBSD, so patches/patch-config.c is not necessary anymore.
2016-08-03 12:49:36 +00:00

61 lines
2.2 KiB
Makefile

# $NetBSD: Makefile,v 1.14 2016/08/03 12:49:36 nils Exp $
DISTNAME= ${GHCOMMIT}
PKGNAME= logrotate-3.10.0
CATEGORIES= sysutils
MASTER_SITES= ${MASTER_SITE_GITHUB:=logrotate/logrotate/archive/}
MAINTAINER= nils@NetBSD.org
HOMEPAGE= https://github.com/logrotate/logrotate/
COMMENT= Daemon to rotate, compress, remove and mail system log files
LICENSE= gnu-gpl-v2
GHCOMMIT= ca742b9dd72b7815e87cb53331f08d46fe21d86c
USE_TOOLS+= gmake gzip:run gunzip:run mail:run automake autoconf
USE_LIBTOOL= yes
GNU_CONFIGURE= yes
HAS_CONFIGURE= yes
NO_EXPORT_CPP= yes
WRKSRC= ${WRKDIR}/logrotate-${GHCOMMIT}
CONFIGURE_ENV+= STATEFILE=\"${VARBASE}/db/logrotate.status\"
CONFIGURE_ENV+= DEFAULT_MAIL_COMMAND=\"${MAIL_CMD:Q}\"
CONFIGURE_ENV+= COMPRESS_COMMAND=\"${GZIP_CMD:[1]:Q}\"
CONFIGURE_ENV+= UNCOMPRESS_COMMAND=\"${GUNZIP_CMD:[1]:Q}\"
BUILD_DEFS+= VARBASE
EGDIR= ${PREFIX}/share/examples/logrotate
CONF_FILES= ${EGDIR}/logrotate.conf ${PKG_SYSCONFDIR}/logrotate.conf
OWN_DIRS= ${PKG_SYSCONFDIR}/logrotate.d
MESSAGE_SUBST+= EGDIR=${EGDIR}
INSTALLATION_DIRS+= ${EGDIR} ${PKG_SYSCONFDIR} ${OWN_DIRS}
AUTO_MKDIRS= yes
SUBST_CLASSES+= paths
SUBST_STAGE.paths= pre-build
SUBST_MESSAGE.paths= Substituting paths variables.
SUBST_FILES.paths= examples/logrotate-default
SUBST_FILES.paths+= examples/logrotate.cron
SUBST_FILES.paths+= logrotate.8
SUBST_VARS.paths= PREFIX
SUBST_VARS.paths+= VARBASE
SUBST_VARS.paths+= PKG_SYSCONFDIR
DOCDIR= share/doc/logrotate
pre-configure:
cd ${WRKSRC} && \
${SETENV} ${CONFIGURE_ENV} ./autogen.sh
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/logrotate ${DESTDIR}${PREFIX}/sbin
${INSTALL_DATA} ${WRKSRC}/examples/logrotate-default ${DESTDIR}${EGDIR}/logrotate.conf
${INSTALL_DATA} ${WRKSRC}/examples/logrotate.cron ${DESTDIR}/${EGDIR}
${INSTALL_DATA} ${WRKSRC}/README.* ${DESTDIR}${PREFIX}/${DOCDIR}
${INSTALL_DATA} ${WRKSRC}/CHANGES ${DESTDIR}${PREFIX}/${DOCDIR}
${INSTALL_DATA} ${WRKSRC}/COPYING ${DESTDIR}${PREFIX}/${DOCDIR}
${INSTALL_MAN} ${WRKSRC}/logrotate.conf.5 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man5
${INSTALL_MAN} ${WRKSRC}/logrotate.8 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8
.include "../../devel/popt/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"