summaryrefslogtreecommitdiff
path: root/net-firewall/pftop
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /net-firewall/pftop
reinit the tree, so we can have metadata
Diffstat (limited to 'net-firewall/pftop')
-rw-r--r--net-firewall/pftop/Manifest6
-rw-r--r--net-firewall/pftop/metadata.xml11
-rw-r--r--net-firewall/pftop/pftop-0.7-r2.ebuild49
3 files changed, 66 insertions, 0 deletions
diff --git a/net-firewall/pftop/Manifest b/net-firewall/pftop/Manifest
new file mode 100644
index 000000000000..34b61d874817
--- /dev/null
+++ b/net-firewall/pftop/Manifest
@@ -0,0 +1,6 @@
+DIST pftop-0.7-patches-3.tar.bz2 10611 SHA256 56826b18fb4b6559dd3ddec1d53ab7d84988dcb10f5b1abc6539f2f7ffb1ae22 SHA512 7c8f438e8fc1c507313cf9fe69da2b27bdc57e4cf27b8b0d6153fb0c269d417a59ff93cd74987809b131ae2d148b659ca00d93da1346a515b11c1d8bbfc67f1f WHIRLPOOL c4c5f833daa9aef066351dd924e581dfd595d8ee0b987ee5dd5693480eca540ebbb4c603a1ceb4fc87678473ea4790e026b0ad86775187581aa6e285c19fbc4f
+DIST pftop-0.7.tar.gz 59765 SHA256 afde859fab77597e4aae1ef6b87f1bb26a5ad8cb2b1d7316a12e5098153492af SHA512 e9be01704adc112bd1f5dc011f7900754d600df6be50e28ee4a937faabe00b627ed4d1565e92560d750e70f5117533c494565f616f3562eae61301642d438713 WHIRLPOOL af50aa66c7eecfa7bdd390f86e0953baac4ccd45652c6fadfbe952b201190fe402b667fb5c262449e503c3aac88916f23e6e2bc219803b5ea823670df85097dc
+EBUILD pftop-0.7-r2.ebuild 1233 SHA256 bebf71d34a0792a612a229df414e63e46fd3f7223d90cac4b1fd1e4779ea7e85 SHA512 c921daba289a5cb7e1bfc31364185bb1ef385283df0eaf9b5ea7d41866f82263f33a55899df2611349810716f3ec2ec0d663c0c25a05d043b74f1e70fbd28d33 WHIRLPOOL 345edc81e7618df1a0fd4b03c63de539932037b3a440936a7eeaa99ef7b29a9330819b973bc22a16dd46797ffab36c2d6cebaac715339189cbe42bb397d13cfe
+MISC ChangeLog 2849 SHA256 5e6249ea36c35d1bafb05881e1f26e4588c575567641c01f23dbefcf1f611da5 SHA512 83767051ee175a43e1b68646a9ae5bb61d9dc91bb8974b10190d63597ce7bd501de7da16c4c0e696dd1e358e06bf5e0c7626ba46b5e3d9a688b161a0b1430fae WHIRLPOOL f8bee53a97acae950bd81b0e6c7fc54ddfa16260e2e0c46a133778a2683f543e9f773ea36e932bff5630e28e7d789195f39924107d29a1f6c7f4d1043624baf0
+MISC ChangeLog-2015 1940 SHA256 e88b111738150ebffecf9017474fe8b8f27d775efec2197d63ac1e6da3ebea2f SHA512 fdf7d192e86fca31cb52c65d94f4acf5a5d665987826111993294071f9d8fd03b194786d902eee0b2c6d960beeb404e1f7c4a82097f73a9441ed2f2f674b8dd7 WHIRLPOOL 73b46fc0f0161f2fa2d38b055bd4e1ac76a56ee1eaba3f06b0384b08679af35c3e8c449fb2d51185fa87fe984ff686f2952e08ff2f6b9d946e3097e7e5cc179d
+MISC metadata.xml 349 SHA256 9de8354235e53f5c26052762eacb38247be55e893834dea5560356af4082a655 SHA512 90bdc41abf6957dbaa912df1db6731ed1b7b3ac557fec239b2dfd2f7c23b066df13ff8c5534cd36d05780a07cb4ba287d8ffe4551054a5507280fdfdaca47c24 WHIRLPOOL 2361888d4462b1dde987f847727089386987041d9cf4dc3cbd40302f03640f53b00a9f9ca00e3b18c2e37c566041764814763fa44feecb3e4b6d0e0d04c32272
diff --git a/net-firewall/pftop/metadata.xml b/net-firewall/pftop/metadata.xml
new file mode 100644
index 000000000000..eb54224c8109
--- /dev/null
+++ b/net-firewall/pftop/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>bsd@gentoo.org</email>
+ <name>BSD Project</name>
+ </maintainer>
+ <use>
+ <flag name="altq">Enable altq(4) support — alternate queuing of network packets.</flag>
+ </use>
+</pkgmetadata>
diff --git a/net-firewall/pftop/pftop-0.7-r2.ebuild b/net-firewall/pftop/pftop-0.7-r2.ebuild
new file mode 100644
index 000000000000..ede062387ec1
--- /dev/null
+++ b/net-firewall/pftop/pftop-0.7-r2.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+PATCH_PV=3
+
+inherit bsdmk flag-o-matic eutils
+
+DESCRIPTION="Tool for real-time display of active states and rule statistics for pf"
+HOMEPAGE="http://www.eee.metu.edu.tr/~canacar/pftop/"
+SRC_URI="http://www.eee.metu.edu.tr/~canacar/${P}.tar.gz
+ mirror://gentoo/${P}-patches-${PATCH_PV}.tar.bz2"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~x86-fbsd"
+IUSE="altq"
+
+RDEPEND="sys-libs/ncurses"
+
+src_prepare() {
+ epatch "${WORKDIR}"/patches/*
+}
+
+src_compile() {
+ # OS_LEVEL variable refers to the version of pf shipped with OpenBSD.
+ # On FreeBSD we have to know it.
+ local OSLEVEL
+
+ case ${CHOST} in
+ *-openbsd*)
+ local obsdver=${CHOST/*-openbsd/}
+ OSLEVEL=${obsdver//.}
+ ;;
+ *-freebsd[78]*) OSLEVEL=41 ;;
+ *-freebsd9*) OSLEVEL=45 ;;
+ *)
+ die "Your OS/Version is not supported (${CHOST}), please report."
+ ;;
+ esac
+ append-flags "-DHAVE_SNPRINTF -DHAVE_VSNPRINTF -DOS_LEVEL=${OSLEVEL}"
+ use altq && append-flags "-DHAVE_ALTQ"
+ mkmake LOCALBASE="/usr" CFLAGS="${CFLAGS}" || die "pmake failed"
+}
+
+src_install() {
+ mkinstall DESTDIR="${D}" LOCALBASE="/usr" MANDIR="/usr/share/man/man" \
+ NO_MANCOMPRESS= install || die
+}