pkgsrc/sysutils/pftop/Makefile
rumko 8340aab37c sysutils/pftop: support newer PF and depend on osabi
* In order for pftop to be built successfully with newer PF
versions (> 4.1), additional patches are necessary which were taken
from OpenBSD's ports as seen in PR pkg/44339
* Pftop compiled for another PF version will not work (properly),
so to avoid any problems we must depend on the OS version

ok@ wiz
2011-02-09 22:51:38 +00:00

31 lines
835 B
Makefile

# $NetBSD: Makefile,v 1.14 2011/02/09 22:51:38 rumko Exp $
DISTNAME= pftop-0.7
PKGREVISION= 1
CATEGORIES= sysutils net
MASTER_SITES= http://www.eee.metu.edu.tr/~canacar/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.eee.metu.edu.tr/~canacar/pftop/
COMMENT= Utility for real-time display of statistics for PF
PKG_DESTDIR_SUPPORT= user-destdir
NO_CONFIGURE= yes
MAKE_ENV+= OSLEVEL=${PF_VERSION:S/.//}
CFLAGS+= -I${PREFIX}/include
OSVERSION_SPECIFIC= yes
INSTALLATION_DIRS= ${PKGMANDIR}/man8 sbin
post-patch:
@${ECHO} "#include <pcap.h>" > ${WRKSRC}/pcap-int.h
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/pftop ${DESTDIR}${PREFIX}/sbin
${INSTALL_MAN} ${WRKSRC}/pftop.8 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8
.include "../../net/libpcap/buildlink3.mk"
.include "../../mk/pf.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"