[pf4freebsd] New port: sysutils/pfstat
(http://www.benzedrine.cx/pfstat.html)
Max Laier
max at love2party.net
Wed Sep 15 20:54:43 PDT 2004
Hello,
soon you will find pfstat (http://www.benzedrine.cx/pfstat.html) in the
ports tree (http://www.freebsd.org/cgi/query-pr.cgi?pr=3Dports/57852) and
of course in the contrib tree of the tarball. I hope the PR gets
processed soon.
You can build it with either version of the gd. While gd2 is the
default, "$make WITH_GD1=3Dyes" will build and link with gd1.
Tell me if anything goes wrong.
I'll try to attach a shar file to bring it to your tarball now, but
freelists wasn't too cooperative when it comes to attachments, so here
it is inlined (just in case):
--- Start ---
# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file". Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
# pfstat
# pfstat/Makefile
# pfstat/distinfo
# pfstat/files
# pfstat/files/patch-aa
# pfstat/pkg-plist
# pfstat/pkg-descr
#
echo c - pfstat
mkdir -p pfstat > /dev/null 2>&1
echo x - pfstat/Makefile
sed 's/^X//' >pfstat/Makefile << 'END-of-pfstat/Makefile'
X# New ports collection makefile for: pfstat
X# Date created: 10 October 2003
X# Whom: Max Laier <max at love2party.net>
X#
X# $FreeBSD$
X#
X
XPORTNAME=3D pfstat
XPORTVERSION=3D 1.7
XCATEGORIES=3D sysutils net
XMASTER_SITES=3D http://www.benzedrine.cx/
XDISTNAME=3D ${PORTNAME}-${PORTVERSION}
X
XMAINTAINER=3D max at love2party.net
XCOMMENT=3D Utility to render grafical statistics for pf
X
X#BUILD_DEPENDS=3D ${LOCALBASE}/include/pf/net/pfvar.h:${PORTSDIR}=
/security/pf
X#RUN_DEPENDS=3D ${LOCALBASE}/modules/pf.ko:${PORTSDIR}/security/pf
X.if defined(WITH_GD1)
XLIB_DEPENDS=3D gd1.2:${PORTSDIR}/graphics/gd1
XCFLAGS+=3D -I${LOCALBASE}/include/gd
XMAKE_ARGS=3D "LD_GD=3Dgd1"
X.else
XLIB_DEPENDS=3D gd.4:${PORTSDIR}/graphics/gd
XMAKE_ARGS=3D "LD_GD=3Dgd"
X.endif
X
XMAN8=3D pfstat.8
X
XMANCOMPRESSED=3D no
X
XCFLAGS+=3D -I${.CURDIR}/../../include
X
X.include <bsd.port.pre.mk>
X
X.if ${OSVERSION} < 500000
XIGNORE=3D "Only for 5.0 and above"
X.endif
X
Xdo-install:
X ${INSTALL_PROGRAM} ${WRKSRC}/pfstat ${PREFIX}/bin
X ${INSTALL_MAN} ${WRKSRC}/pfstat.8 ${PREFIX}/man/man8
X
X.include <bsd.port.post.mk>
END-of-pfstat/Makefile
echo x - pfstat/distinfo
sed 's/^X//' >pfstat/distinfo << 'END-of-pfstat/distinfo'
XMD5 (pfstat-1.7.tar.gz) =3D bd58864b56774aa10aa763258de8b625
END-of-pfstat/distinfo
echo c - pfstat/files
mkdir -p pfstat/files > /dev/null 2>&1
echo x - pfstat/files/patch-aa
sed 's/^X//' >pfstat/files/patch-aa << 'END-of-pfstat/files/patch-aa'
X--- Makefile.orig Fri Oct 10 19:44:27 2003
X+++ Makefile Fri Oct 10 19:44:42 2003
X@@ -5,7 +5,7 @@
X CFLAGS+=3D -Wall
X CFLAGS+=3D -I${LOCALBASE}/include
X LDFLAGS+=3D -L${LOCALBASE}/lib
X-LDFLAGS+=3D -lgd -lm -lpng -lz -ljpeg -lttf
X+LDFLAGS+=3D -l${LD_GD} -lm -lpng -lz -ljpeg
X NOMAN=3D 1
X=20
X .include <bsd.prog.mk>
END-of-pfstat/files/patch-aa
echo x - pfstat/pkg-plist
sed 's/^X//' >pfstat/pkg-plist << 'END-of-pfstat/pkg-plist'
Xbin/pfstat
END-of-pfstat/pkg-plist
echo x - pfstat/pkg-descr
sed 's/^X//' >pfstat/pkg-descr << 'END-of-pfstat/pkg-descr'
XPfstat is a small utility that collects packet filter (security/pf) stat=
istics
Xand produces graphs like mrtg or alike. Samples can be found at the webs=
ite
Xbelow.
X
XWWW: http://www.benzedrine.cx/pfstat.html
X
X-Max <max at love2party.net>
END-of-pfstat/pkg-descr
exit
--- End ---
--=20
Best regards,
Max mailto:max at love2party.net
-- Binary/unsupported file stripped by Ecartis --
-- Type: application/octet-stream
-- File: pfstat.shar
More information about the freebsd-pf
mailing list