Fixup fromcvs/togit conversion
[pkgsrcv2.git] / sysutils / pfstat / Makefile
1 # $NetBSD: Makefile,v 1.23 2013/06/03 10:06:01 wiz Exp $
2
3 DISTNAME=       pfstat-2.5
4 PKGREVISION=    5
5 CATEGORIES=     sysutils net
6 MASTER_SITES=   http://www.benzedrine.cx/
7
8 MAINTAINER=     pkgsrc-users@NetBSD.org
9 HOMEPAGE=       http://www.benzedrine.cx/pfstat.html
10 COMMENT=        Utility to render graphical statistics for PF
11 LICENSE=        2-clause-bsd
12
13 USE_BSD_MAKEFILE=       yes
14 USE_TOOLS+=             yacc
15
16 MAKE_ENV+=      PF_VERSION=${PF_VERSION:S/.//} NOGCCERROR=yes
17
18 INSTALLATION_DIRS=      bin ${PKGMANDIR}/man8 ${PKGMANDIR}/cat8 share/examples/pfstat
19
20 SUBST_CLASSES+=         conf
21 SUBST_STAGE.conf=       post-patch
22 SUBST_FILES.conf=       pfstat.8 pfstat.c pfstat.conf.example
23 SUBST_SED.conf=         -e "s|/etc/pfstat.conf|${PKG_SYSCONFDIR}/pfstat.conf|g"
24 SUBST_MESSAGE.conf=     Fixing configuration file paths.
25
26 post-install:
27         ${INSTALL_DATA} ${WRKSRC}/pfstat.conf.example ${DESTDIR}${PREFIX}/share/examples/pfstat
28
29 .include "../../graphics/gd/buildlink3.mk"
30 .include "../../mk/pf.buildlink3.mk"
31 .include "../../mk/bsd.pkg.mk"