pkgsrc/sysutils/logrotate/Makefile

51 lines
1.5 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.16 2017/03/06 12:59:53 fhajny Exp $
DISTNAME= logrotate-3.11.0
PKGREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= ${MASTER_SITE_GITHUB:=logrotate/}
Updated to version 3.8.9. Changelog is : 3.8.8 -> 3.8.9 - Add new directive "createolddir" and "nocreateolddir". These directives can be used to create the directory specified by olddir with particular "mode", "owner" and "group". - Continue with rotation even when first log from logset is removed during the rotation. - Fix crash on BSD systems introduced in 3.8.8 caused by different qsort_r function. Function qsort is now used instead. - Fix potential buffer overflow in usage of strncat function. - Fix compilation with musl-libc. - Add experimental 'renamecopy' directive to allow 'olddir' on different physical device. See the "man logrotate" for more information. 3.8.7 -> 3.8.8 - Add support for building using autotools/automake. Using "./autogen.sh", "./configure" and "make" is now preferred way how to build logrotate. Old Makefile remains available, but it is deprecated and will be removed in the future. Please report any problem related to new build system. - Add support for systems which do not support fork (use vfork instead) and madvise. - Fix bug when wrong log file has been removed in case of dateext and dateformat %d-%m-%Y. - Do not expect that the name of root account is 'root'. - Do not stop rotation with an error when olddir and log file are on different devices and copy or copytruncate is used. - Return an error code when parent directory of log does not exist, "su" directive is not used, logrotate is running as root and missingok is not specified. [vcizek] - Prepend error printed by compression program with the log name even when the compression program exits with zero exit code. pkgsrc change : took over maintainership.
2015-03-11 22:34:16 +01:00
MAINTAINER= nils@NetBSD.org
2016-06-09 08:23:38 +02:00
HOMEPAGE= https://github.com/logrotate/logrotate/
COMMENT= Daemon to rotate, compress, remove and mail system log files
LICENSE= gnu-gpl-v2
GITHUB_RELEASE= ${PKGVERSION_NOREV}
USE_TOOLS+= gmake gzip:run gunzip:run mail:run
USE_LIBTOOL= yes
GNU_CONFIGURE= yes
NO_EXPORT_CPP= yes
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}\"
CONFIGURE_ARGS+= --with-state-file-path="${VARBASE}/db/logrotate.status"
BUILD_DEFS+= VARBASE
MESSAGE_SUBST+= EGDIR=${EGDIR}
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_VARS.paths= PREFIX PKG_SYSCONFDIR
CONF_FILES= ${EGDIR}/logrotate.conf ${PKG_SYSCONFDIR}/logrotate.conf
OWN_DIRS= ${PKG_SYSCONFDIR}/logrotate.d
EGDIR= share/examples/logrotate
INSTALLATION_DIRS+= ${EGDIR}
post-install:
${INSTALL_DATA} ${WRKSRC}/examples/logrotate-default \
${DESTDIR}${PREFIX}/${EGDIR}/logrotate.conf
${INSTALL_DATA} ${WRKSRC}/examples/logrotate.cron \
${DESTDIR}${PREFIX}/${EGDIR}
.include "../../devel/popt/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"