summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJavier Villavicencio <the_paya@gentoo.org>2012-03-10 21:52:30 +0000
committerJavier Villavicencio <the_paya@gentoo.org>2012-03-10 21:52:30 +0000
commitd836baaa46b4b28f6b9f325763fc7051883e9d38 (patch)
treecadf163ab957004139a02369fd5191a2dc16b95e /net-firewall/pftop
parentYou must not use genkernel-3.4.25 with an OpenRC version that fails to remoun... (diff)
downloadgentoo-2-d836baaa46b4b28f6b9f325763fc7051883e9d38.tar.gz
gentoo-2-d836baaa46b4b28f6b9f325763fc7051883e9d38.tar.bz2
gentoo-2-d836baaa46b4b28f6b9f325763fc7051883e9d38.zip
Update patches for FreeBSD 9, add ALTQ useflag.
(Portage version: 2.2.0_alpha90/cvs/FreeBSD i386)
Diffstat (limited to 'net-firewall/pftop')
-rw-r--r--net-firewall/pftop/ChangeLog11
-rw-r--r--net-firewall/pftop/metadata.xml6
-rw-r--r--net-firewall/pftop/pftop-0.7-r1.ebuild50
3 files changed, 64 insertions, 3 deletions
diff --git a/net-firewall/pftop/ChangeLog b/net-firewall/pftop/ChangeLog
index 7d8d52cefdfa..52c035f315c0 100644
--- a/net-firewall/pftop/ChangeLog
+++ b/net-firewall/pftop/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for net-firewall/pftop
-# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-firewall/pftop/ChangeLog,v 1.6 2010/04/21 05:30:24 the_paya Exp $
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-firewall/pftop/ChangeLog,v 1.7 2012/03/10 21:52:30 the_paya Exp $
+
+*pftop-0.7-r1 (10 Mar 2012)
+
+ 10 Mar 2012; Javier Villavicencio <the_paya@gentoo.org> +pftop-0.7-r1.ebuild,
+ metadata.xml:
+ Update patches from FreeBSD ports to compile on FreeBSD 9, add useflag for
+ ALTQ support.
21 Apr 2010; Javier Villavicencio <the_paya@gentoo.org> pftop-0.7.ebuild:
Don't install precompressed manpages.
diff --git a/net-firewall/pftop/metadata.xml b/net-firewall/pftop/metadata.xml
index ecedda4aa2cc..f9e6a66d5ca2 100644
--- a/net-firewall/pftop/metadata.xml
+++ b/net-firewall/pftop/metadata.xml
@@ -1,5 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
-<herd>bsd</herd>
+ <herd>bsd</herd>
+ <maintainer><email>the_paya@gentoo.org</email></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-r1.ebuild b/net-firewall/pftop/pftop-0.7-r1.ebuild
new file mode 100644
index 000000000000..8ad9264c4609
--- /dev/null
+++ b/net-firewall/pftop/pftop-0.7-r1.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-firewall/pftop/pftop-0.7-r1.ebuild,v 1.1 2012/03/10 21:52:30 the_paya Exp $
+
+PATCH_PV=2
+EAPI=4
+
+inherit bsdmk flag-o-matic eutils
+
+DESCRIPTION="Pftop: curses-based utility 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
+}