| @@ -1,37 +1,37 @@ | | | @@ -1,37 +1,37 @@ |
1 | # $NetBSD: Makefile,v 1.20 2014/05/29 23:37:32 wiz Exp $ | | 1 | # $NetBSD: Makefile,v 1.21 2015/01/17 16:08:00 mef Exp $ |
2 | | | 2 | |
3 | DISTNAME= sarah-0.9.1b | | 3 | DISTNAME= sarah-0.9.1b |
4 | PKGREVISION= 3 | | 4 | PKGREVISION= 3 |
5 | CATEGORIES= sysutils | | 5 | CATEGORIES= sysutils |
6 | MASTER_SITES= http://prdownloads.sourceforge.net/sarah/ | | 6 | MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=sarah/} |
7 | | | 7 | |
8 | MAINTAINER= pkgsrc-users@NetBSD.org | | 8 | MAINTAINER= pkgsrc-users@NetBSD.org |
9 | HOMEPAGE= http://sarah.sourceforge.net/ | | 9 | HOMEPAGE= http://sarah.sourceforge.net/ |
10 | COMMENT= Syslog automated Rotation and Archive Handler | | 10 | COMMENT= Syslog automated Rotation and Archive Handler |
11 | | | 11 | |
12 | USE_TOOLS+= perl:run | | 12 | USE_TOOLS+= perl:run |
13 | REPLACE_PERL= sarah | | 13 | REPLACE_PERL= sarah |
14 | NO_BUILD= YES | | 14 | NO_BUILD= YES |
15 | | | 15 | |
16 | INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 share/doc/sarah \ | | 16 | INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 share/doc/sarah \ |
17 | share/examples/sarah | | 17 | share/examples/sarah |
18 | CONF_FILES+= ${PREFIX}/share/examples/sarah/sarah.conf.sample \ | | 18 | CONF_FILES+= ${PREFIX}/share/examples/sarah/sarah.conf.sample \ |
19 | ${PKG_SYSCONFDIR}/sarah.conf | | 19 | ${PKG_SYSCONFDIR}/sarah.conf |
20 | | | 20 | |
21 | post-patch: | | 21 | post-patch: |
22 | ${SED} -e "s,/usr/local,${PREFIX},g" \ | | 22 | ${SED} -e "s,/usr/local,${PREFIX},g" \ |
23 | -e "s,syslog.pid,syslogd.pid,g" \ | | 23 | -e "s,syslog.pid,syslogd.pid,g" \ |
24 | ${WRKSRC}/sarah > ${WRKSRC}/sarah.done | | 24 | ${WRKSRC}/sarah > ${WRKSRC}/sarah.done |
25 | ${MV} ${WRKSRC}/sarah.done ${WRKSRC}/sarah | | 25 | ${MV} ${WRKSRC}/sarah.done ${WRKSRC}/sarah |
26 | ${SED} -e "s,/usr/local,${PREFIX},g" \ | | 26 | ${SED} -e "s,/usr/local,${PREFIX},g" \ |
27 | -e "s,syslog.pid,syslogd.pid,g" \ | | 27 | -e "s,syslog.pid,syslogd.pid,g" \ |
28 | ${WRKSRC}/sarah.1 > ${WRKSRC}/sarah.1.done | | 28 | ${WRKSRC}/sarah.1 > ${WRKSRC}/sarah.1.done |
29 | ${MV} ${WRKSRC}/sarah.1.done ${WRKSRC}/sarah.1 | | 29 | ${MV} ${WRKSRC}/sarah.1.done ${WRKSRC}/sarah.1 |
30 | | | 30 | |
31 | do-install: | | 31 | do-install: |
32 | ${INSTALL_SCRIPT} ${WRKSRC}/sarah ${DESTDIR}${PREFIX}/bin | | 32 | ${INSTALL_SCRIPT} ${WRKSRC}/sarah ${DESTDIR}${PREFIX}/bin |
33 | ${INSTALL_DATA} ${WRKSRC}/sarah.conf.sample ${DESTDIR}${PREFIX}/share/examples/sarah | | 33 | ${INSTALL_DATA} ${WRKSRC}/sarah.conf.sample ${DESTDIR}${PREFIX}/share/examples/sarah |
34 | ${INSTALL_MAN} ${WRKSRC}/sarah.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1 | | 34 | ${INSTALL_MAN} ${WRKSRC}/sarah.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1 |
35 | ${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/doc/sarah | | 35 | ${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/doc/sarah |
36 | | | 36 | |
37 | .include "../../mk/bsd.pkg.mk" | | 37 | .include "../../mk/bsd.pkg.mk" |