/[gentoo-x86]/net-firewall/pftop/pftop-0.7-r2.ebuild
Gentoo

Contents of /net-firewall/pftop/pftop-0.7-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Sun Jul 22 00:01:31 2012 UTC (2 years, 2 months ago) by the_paya
Branch: MAIN
CVS Tags: HEAD
Fix for bug #426662.

(Portage version: 2.2.0_alpha120/cvs/FreeBSD i386)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-firewall/pftop/pftop-0.7-r1.ebuild,v 1.2 2012/04/13 19:37:32 ulm Exp $
4
5 EAPI=4
6 PATCH_PV=3
7
8 inherit bsdmk flag-o-matic eutils
9
10 DESCRIPTION="Pftop: curses-based utility for real-time display of active states and rule statistics for pf"
11 HOMEPAGE="http://www.eee.metu.edu.tr/~canacar/pftop/"
12 SRC_URI="http://www.eee.metu.edu.tr/~canacar/${P}.tar.gz
13 mirror://gentoo/${P}-patches-${PATCH_PV}.tar.bz2"
14
15 LICENSE="BSD"
16 SLOT="0"
17 KEYWORDS="~x86-fbsd"
18 IUSE="altq"
19
20 RDEPEND="sys-libs/ncurses"
21
22 src_prepare() {
23 epatch "${WORKDIR}"/patches/*
24 }
25
26 src_compile() {
27 # OS_LEVEL variable refers to the version of pf shipped with OpenBSD.
28 # On FreeBSD we have to know it.
29 local OSLEVEL
30
31 case ${CHOST} in
32 *-openbsd*)
33 local obsdver=${CHOST/*-openbsd/}
34 OSLEVEL=${obsdver//.}
35 ;;
36 *-freebsd[78]*) OSLEVEL=41 ;;
37 *-freebsd9*) OSLEVEL=45 ;;
38 *)
39 die "Your OS/Version is not supported (${CHOST}), please report."
40 ;;
41 esac
42 append-flags "-DHAVE_SNPRINTF -DHAVE_VSNPRINTF -DOS_LEVEL=${OSLEVEL}"
43 use altq && append-flags "-DHAVE_ALTQ"
44 mkmake LOCALBASE="/usr" CFLAGS="${CFLAGS}" || die "pmake failed"
45 }
46
47 src_install() {
48 mkinstall DESTDIR="${D}" LOCALBASE="/usr" MANDIR="/usr/share/man/man" \
49 NO_MANCOMPRESS= install || die
50 }

  ViewVC Help
Powered by ViewVC 1.1.20