mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-26 00:55:14 +00:00
New port: sysutils/pftop - Utility to monitor securtiy/pf
Pftop is a small, curses-based utility for real-time display of active states and rule statistics for pf, the packet filter (for OpenBSD) This used to be part of security/pf but is now individual after (ports/57305) PR: ports/57307 Submitted by: Max Laier <max@love2party.net>
This commit is contained in:
parent
dad882d5d0
commit
82720705aa
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=89679
@ -214,6 +214,7 @@
|
||||
SUBDIR += penv
|
||||
SUBDIR += perf
|
||||
SUBDIR += personality
|
||||
SUBDIR += pftop
|
||||
SUBDIR += pib
|
||||
SUBDIR += pkg_install
|
||||
SUBDIR += pkg_remove
|
||||
|
43
sysutils/pftop/Makefile
Normal file
43
sysutils/pftop/Makefile
Normal file
@ -0,0 +1,43 @@
|
||||
# New ports collection makefile for: pfflowd
|
||||
# Date created: 23 June 2003
|
||||
# Whom: Max Laier <max@love2party.net>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= pftop
|
||||
PORTVERSION= 0.4
|
||||
CATEGORIES= sysutils net
|
||||
MASTER_SITES= http://www.eee.metu.edu.tr/~canacar/
|
||||
DISTNAME= ${PORTNAME}-${PORTVERSION}
|
||||
|
||||
MAINTAINER= max@love2party.net
|
||||
COMMENT= Utility for real-time display of statistics for pf
|
||||
|
||||
BUILD_DEPENDS= ${LOCALBASE}/include/pf/net/pfvar.h:${PORTSDIR}/security/pf
|
||||
.if defined(WITH_ALTQ) && (${WITH_ALTQ} == "yes")
|
||||
BUILD_DEPENDS+=${LOCALBASE}/include/pf/altq/altq.h:${PORTSDIR}/security/pf
|
||||
.endif
|
||||
RUN_DEPENDS= ${LOCALBASE}/modules/pf.ko:${PORTSDIR}/security/pf
|
||||
|
||||
MAN8= pftop.8
|
||||
|
||||
MANCOMPRESSED= no
|
||||
|
||||
CFLAGS+= -I${LOCALBASE}/include/pf
|
||||
MAKE_ARGS= LOCALBASE="${PREFIX}" OSLEVEL=34
|
||||
.if defined(WITH_ALTQ) && (${WITH_ALTQ} == "yes")
|
||||
CFLAGS+= -DHAVE_ALTQ=1
|
||||
.endif
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${OSVERSION} < 500000
|
||||
IGNORE= "Only for 5.0 and above"
|
||||
.endif
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/pftop ${PREFIX}/sbin
|
||||
${INSTALL_MAN} ${WRKSRC}/pftop.8 ${PREFIX}/man/man8
|
||||
|
||||
.include <bsd.port.post.mk>
|
1
sysutils/pftop/distinfo
Normal file
1
sysutils/pftop/distinfo
Normal file
@ -0,0 +1 @@
|
||||
MD5 (pftop-0.4.tar.gz) = d33b3a30152bac7d50d019a78bc58c72
|
11
sysutils/pftop/files/patch-aa
Normal file
11
sysutils/pftop/files/patch-aa
Normal file
@ -0,0 +1,11 @@
|
||||
--- config.h.orig Sat Sep 27 14:21:58 2003
|
||||
+++ config.h Sat Sep 27 14:22:21 2003
|
||||
@@ -24,7 +24,7 @@
|
||||
#if OS_LEVEL > 32
|
||||
#define HAVE_ADDR_MASK
|
||||
#define HAVE_ADDR_TYPE
|
||||
-#define HAVE_ALTQ
|
||||
+/* #define HAVE_ALTQ */
|
||||
#define HAVE_RULE_ANCHOR
|
||||
#define HAVE_RULE_TOS
|
||||
#endif
|
15
sysutils/pftop/files/patch-ab
Normal file
15
sysutils/pftop/files/patch-ab
Normal file
@ -0,0 +1,15 @@
|
||||
--- ../pftop-0.4.orig/pftop.c Tue Aug 5 10:20:39 2003
|
||||
+++ ./pftop.c Fri Sep 26 13:03:55 2003
|
||||
@@ -1983,10 +1983,10 @@
|
||||
#ifdef HAVE_RULE_UGID
|
||||
if (pr->uid.op)
|
||||
tb_print_ugid(pr->uid.op, pr->uid.uid[0], pr->uid.uid[1],
|
||||
- "user", UID_MAX);
|
||||
+ "user", UINT_MAX);
|
||||
if (pr->gid.op)
|
||||
tb_print_ugid(pr->gid.op, pr->gid.gid[0], pr->gid.gid[1],
|
||||
- "group", GID_MAX);
|
||||
+ "group", UINT_MAX);
|
||||
#endif
|
||||
|
||||
if (pr->flags || pr->flagset) {
|
6
sysutils/pftop/pkg-descr
Normal file
6
sysutils/pftop/pkg-descr
Normal file
@ -0,0 +1,6 @@
|
||||
"Pftop is a small, curses-based utility for real-time display of active
|
||||
states and rule statistics for pf, the packet filter (for OpenBSD)"
|
||||
|
||||
WWW: http://www.eee.metu.edu.tr/~canacar/pftop/
|
||||
|
||||
-Max <max@love2party.net>
|
1
sysutils/pftop/pkg-plist
Normal file
1
sysutils/pftop/pkg-plist
Normal file
@ -0,0 +1 @@
|
||||
sbin/pftop
|
Loading…
Reference in New Issue
Block a user