fe06a10c61
Approved by agc.
35 lines
1.2 KiB
Makefile
35 lines
1.2 KiB
Makefile
# $NetBSD: Makefile,v 1.11 2008/06/26 20:59:51 peter Exp $
|
|
|
|
DISTNAME= pfstat-2.3
|
|
CATEGORIES= sysutils net
|
|
MASTER_SITES= http://www.benzedrine.cx/
|
|
|
|
MAINTAINER= peter@NetBSD.org
|
|
HOMEPAGE= http://www.benzedrine.cx/pfstat.html
|
|
COMMENT= Utility to render graphical statistics for PF
|
|
|
|
NO_CONFIGURE= yes
|
|
MAKE_ENV+= PF_VERSION=${PF_VERSION:S/.//} NOGCCERROR=yes
|
|
|
|
INSTALLATION_DIRS= bin ${PKGMANDIR}/man8 share/examples/pfstat
|
|
|
|
SUBST_CLASSES+= conf
|
|
SUBST_STAGE.conf= post-patch
|
|
SUBST_FILES.conf= pfstat.8 pfstat.c pfstat.conf.example
|
|
SUBST_SED.conf= -e "s|/etc/pfstat.conf|${PREFIX}/etc/pfstat.conf|g"
|
|
SUBST_MESSAGE.conf= Fixing configuration file paths.
|
|
|
|
do-build:
|
|
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE}
|
|
cd ${WRKSRC}/pfstatd && ${SETENV} ${MAKE_ENV} ${MAKE}
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/pfstat ${PREFIX}/bin
|
|
${INSTALL_MAN} ${WRKSRC}/pfstat.8 ${PREFIX}/${PKGMANDIR}/man8
|
|
${INSTALL_DATA} ${WRKSRC}/pfstat.conf.example ${PREFIX}/share/examples/pfstat
|
|
${INSTALL_PROGRAM} ${WRKSRC}/pfstatd/pfstatd ${PREFIX}/bin
|
|
${INSTALL_MAN} ${WRKSRC}/pfstatd/pfstatd.8 ${PREFIX}/${PKGMANDIR}/man8
|
|
|
|
.include "../../graphics/gd/buildlink3.mk"
|
|
.include "../../mk/pf.buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|