2e65d464e8
having a PKGNAME of p5-*, or depending such a package, for perl-5.22.0.
37 lines
1.2 KiB
Makefile
37 lines
1.2 KiB
Makefile
# $NetBSD: Makefile,v 1.22 2015/06/12 10:51:17 wiz Exp $
|
|
|
|
DISTNAME= sarah-0.9.1b
|
|
PKGREVISION= 4
|
|
CATEGORIES= sysutils
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=sarah/}
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= http://sarah.sourceforge.net/
|
|
COMMENT= Syslog automated Rotation and Archive Handler
|
|
|
|
USE_TOOLS+= perl:run
|
|
REPLACE_PERL= sarah
|
|
NO_BUILD= YES
|
|
|
|
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 share/doc/sarah \
|
|
share/examples/sarah
|
|
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:
|
|
${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"
|