pkgsrc/sysutils/sarah/Makefile

38 lines
1.2 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.20 2014/05/29 23:37:32 wiz Exp $
Update to 0.9.1b: v 0.9.1b 2004/02/06 * fixed bug introduced 2004/02/05 which caused true default options, such as INCDEPTH, to be destroyed when new options blocks are defined v 0.9b 2004/02/05 * fixed bug that caused some duplicate definitions of directives to add to previous definitions, rather than replace them bug id 631657 * fixed OPTION->INDEX to report an error if an invalid INDEX value is specified * directives can now be specified with no data. Combined with the above fix for duplicate directives, this has the effect that any directive can now be unset, even when originally specified in the OPTIONS block bug id 631660 * fixed bug that would result in syslogd being signalled on every execution of sarah bug id 891554 * fixed output in verbose mode that would cause sarah to try to print file type as well as permissions when doing a chmod on rotated files 2002/05/10 * fixed bug introduced on 2002/05/06 that causes sarah to die in mid-rotation if DATE indexing is used. * complete rewrite of log rotation logic -- old bug would cause logs to always rotate when SIZELOGIC is OR, DATE is defined, and SIZE is not defined 2002/05/06 * changed the way day-of-week matching is done to fix support for OSes that don't comply with XPG4, such as Solaris pre-8.0 2002/02/28 * SIZE directive takes magnitude attribute (deprecated SIZEMOD) v 0.8b 2002/02/13 * SARAH now released under the GNU GPL. Added and changed licensing information in the necessary places. Use pkgsrc config file handling framework.
2005-09-29 16:13:15 +02:00
DISTNAME= sarah-0.9.1b
PKGREVISION= 3
CATEGORIES= sysutils
2009-05-01 16:52:02 +02:00
MASTER_SITES= http://prdownloads.sourceforge.net/sarah/
MAINTAINER= pkgsrc-users@NetBSD.org
Update to 0.9.1b: v 0.9.1b 2004/02/06 * fixed bug introduced 2004/02/05 which caused true default options, such as INCDEPTH, to be destroyed when new options blocks are defined v 0.9b 2004/02/05 * fixed bug that caused some duplicate definitions of directives to add to previous definitions, rather than replace them bug id 631657 * fixed OPTION->INDEX to report an error if an invalid INDEX value is specified * directives can now be specified with no data. Combined with the above fix for duplicate directives, this has the effect that any directive can now be unset, even when originally specified in the OPTIONS block bug id 631660 * fixed bug that would result in syslogd being signalled on every execution of sarah bug id 891554 * fixed output in verbose mode that would cause sarah to try to print file type as well as permissions when doing a chmod on rotated files 2002/05/10 * fixed bug introduced on 2002/05/06 that causes sarah to die in mid-rotation if DATE indexing is used. * complete rewrite of log rotation logic -- old bug would cause logs to always rotate when SIZELOGIC is OR, DATE is defined, and SIZE is not defined 2002/05/06 * changed the way day-of-week matching is done to fix support for OSes that don't comply with XPG4, such as Solaris pre-8.0 2002/02/28 * SIZE directive takes magnitude attribute (deprecated SIZEMOD) v 0.8b 2002/02/13 * SARAH now released under the GNU GPL. Added and changed licensing information in the necessary places. Use pkgsrc config file handling framework.
2005-09-29 16:13:15 +02:00
HOMEPAGE= http://sarah.sourceforge.net/
COMMENT= Syslog automated Rotation and Archive Handler
USE_TOOLS+= perl:run
REPLACE_PERL= sarah
NO_BUILD= YES
2010-01-27 20:51:55 +01:00
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 share/doc/sarah \
share/examples/sarah
Update to 0.9.1b: v 0.9.1b 2004/02/06 * fixed bug introduced 2004/02/05 which caused true default options, such as INCDEPTH, to be destroyed when new options blocks are defined v 0.9b 2004/02/05 * fixed bug that caused some duplicate definitions of directives to add to previous definitions, rather than replace them bug id 631657 * fixed OPTION->INDEX to report an error if an invalid INDEX value is specified * directives can now be specified with no data. Combined with the above fix for duplicate directives, this has the effect that any directive can now be unset, even when originally specified in the OPTIONS block bug id 631660 * fixed bug that would result in syslogd being signalled on every execution of sarah bug id 891554 * fixed output in verbose mode that would cause sarah to try to print file type as well as permissions when doing a chmod on rotated files 2002/05/10 * fixed bug introduced on 2002/05/06 that causes sarah to die in mid-rotation if DATE indexing is used. * complete rewrite of log rotation logic -- old bug would cause logs to always rotate when SIZELOGIC is OR, DATE is defined, and SIZE is not defined 2002/05/06 * changed the way day-of-week matching is done to fix support for OSes that don't comply with XPG4, such as Solaris pre-8.0 2002/02/28 * SIZE directive takes magnitude attribute (deprecated SIZEMOD) v 0.8b 2002/02/13 * SARAH now released under the GNU GPL. Added and changed licensing information in the necessary places. Use pkgsrc config file handling framework.
2005-09-29 16:13:15 +02:00
CONF_FILES+= ${PREFIX}/share/examples/sarah/sarah.conf.sample \
${PKG_SYSCONFDIR}/sarah.conf
post-patch:
${SED} -e "s,/usr/local,${PREFIX},g" \
-e "s,syslog.pid,syslogd.pid,g" \
${WRKSRC}/sarah > ${WRKSRC}/sarah.done
${MV} ${WRKSRC}/sarah.done ${WRKSRC}/sarah
${SED} -e "s,/usr/local,${PREFIX},g" \
-e "s,syslog.pid,syslogd.pid,g" \
${WRKSRC}/sarah.1 > ${WRKSRC}/sarah.1.done
${MV} ${WRKSRC}/sarah.1.done ${WRKSRC}/sarah.1
do-install:
2010-01-27 20:51:55 +01:00
${INSTALL_SCRIPT} ${WRKSRC}/sarah ${DESTDIR}${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/sarah.conf.sample ${DESTDIR}${PREFIX}/share/examples/sarah
${INSTALL_MAN} ${WRKSRC}/sarah.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/doc/sarah
.include "../../mk/bsd.pkg.mk"