2022-04-02 12:50:26 +02:00
|
|
|
# $NetBSD: Makefile,v 1.19 2022/04/02 10:50:26 nia Exp $
|
2004-11-05 16:08:33 +01:00
|
|
|
|
2008-06-15 16:09:03 +02:00
|
|
|
DISTNAME= pftop-0.7
|
2013-02-06 20:30:54 +01:00
|
|
|
PKGREVISION= 2
|
2004-11-05 16:08:33 +01:00
|
|
|
CATEGORIES= sysutils net
|
|
|
|
MASTER_SITES= http://www.eee.metu.edu.tr/~canacar/
|
|
|
|
|
2010-05-25 23:06:29 +02:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2017-09-03 10:36:49 +02:00
|
|
|
#HOMEPAGE= http://www.eee.metu.edu.tr/~canacar/pftop/
|
2004-11-05 16:08:33 +01:00
|
|
|
COMMENT= Utility for real-time display of statistics for PF
|
|
|
|
|
|
|
|
NO_CONFIGURE= yes
|
|
|
|
|
2019-11-04 22:28:40 +01:00
|
|
|
MAKE_ENV+= OSLEVEL=${PF_VERSION:S/.//}
|
|
|
|
CFLAGS+= -I${PREFIX}/include
|
2011-02-09 23:51:38 +01:00
|
|
|
OSVERSION_SPECIFIC= yes
|
2004-11-05 16:08:33 +01:00
|
|
|
|
2007-01-07 10:13:46 +01:00
|
|
|
INSTALLATION_DIRS= ${PKGMANDIR}/man8 sbin
|
2005-06-17 05:50:19 +02:00
|
|
|
|
2022-04-02 12:50:26 +02:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
|
|
|
.if ${OPSYS} == "NetBSD" && ${OPSYS_VERSION} > 099974
|
|
|
|
BROKEN+= "Depends on removed CIRCLEQ API"
|
|
|
|
.endif
|
|
|
|
|
2008-06-15 16:09:03 +02:00
|
|
|
post-patch:
|
|
|
|
@${ECHO} "#include <pcap.h>" > ${WRKSRC}/pcap-int.h
|
|
|
|
|
2004-11-05 16:08:33 +01:00
|
|
|
do-install:
|
2008-06-12 04:14:13 +02:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/pftop ${DESTDIR}${PREFIX}/sbin
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/pftop.8 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8
|
2004-11-05 16:08:33 +01:00
|
|
|
|
2008-06-15 16:09:03 +02:00
|
|
|
.include "../../net/libpcap/buildlink3.mk"
|
2008-06-26 22:59:51 +02:00
|
|
|
.include "../../mk/pf.buildlink3.mk"
|
2004-11-05 16:08:33 +01:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|