Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 95630 - EBUILD for "Advanced Policy Firewall"
Summary: EBUILD for "Advanced Policy Firewall"
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Default Assignee for New Packages
URL:
Whiteboard: sunrise suggested
Keywords: EBUILD
: 148377 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-06-09 20:55 UTC by Fernando (likewhoa)
Modified: 2018-06-07 18:24 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
apf-0.9.5-r1.ebuild (apf-0.9.5-r1.ebuild,3.47 KB, text/plain)
2005-06-09 20:58 UTC, Fernando (likewhoa)
Details
More standard ebuild. (apf-0.9.6.1.ebuild,2.56 KB, text/plain)
2006-09-22 01:56 UTC, Alan Mosca
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Fernando (likewhoa) 2005-06-09 20:55:52 UTC
net-firewall/apf
http://www.rfxnetworks.com/apf.php
works on both a pentium3 and athlon-xp.. great iptables firewall with DOS
protections and dshield integration..

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Fernando (likewhoa) 2005-06-09 20:58:59 UTC
Created attachment 60964 [details]
apf-0.9.5-r1.ebuild
Comment 2 Fernando (likewhoa) 2005-06-12 13:47:51 UTC
Comment on attachment 60964 [details]
apf-0.9.5-r1.ebuild

># Copyright 1999-2004 Gentoo Foundation
># Distributed under the terms of the GNU General Public License v2
># $Header: $
>
>DESCRIPTION="APF is a policy based iptables firewall system designed for ease of use and configuration."
>HOMEPAGE="http://www.rfxnetworks.com/${PN}.php"
>MY_PKG="apf-current"
>SRC_URI="http://www.rfxnetworks.com/downloads/${MY_PKG}.tar.gz"
>LICENSE="GPL2"
>SLOT="0"
>KEYWORDS="x86"
>IUSE="dshieldpy"
>INSPATH="/etc/apf"
>MY_PV="apf-0.9.5-1"
>
>DEPEND="net-firewall/iptables
>	dshieldpy? ( net-firewall/dshieldpy )"
>
>src_unpack() {
>	unpack ${A} || die "failed to unpack source"
>	chmod -R +rwX ${WORKDIR}/${MY_PV} || die "failed to set perms"
>	cd ${WORKDIR}/${MY_PV} || die "unable to cd to pkgdir"
>	sed -i 's#/usr/local/bin:/usr/local/sbin:$PATH#$PATH#' ${WORKDIR}/${MY_PV}/files/ad/tlog
>	sed -i 's#/usr/local/bin:/usr/local/sbin:$PATH#$PATH#' ${WORKDIR}/${MY_PV}/files/ad/antidos
>	sed -i 's#/usr/local/bin:/usr/local/sbin:$PATH#$PATH#' ${WORKDIR}/${MY_PV}/files/vnet/vnetgen
>	sed -i 's#/usr/local/bin:/usr/local/sbin:$PATH#$PATH#' ${WORKDIR}/${MY_PV}/files/internals/internals.conf
>	sed -i 's#/usr/local/sbin#/usr/bin#' ${WORKDIR}/${MY_PV}/README
>	sed -i 's#/usr/local/sbin#/usr/bin#' ${WORKDIR}/${MY_PV}/files/extras/dshield/cron.ds
>}
>
>src_install() {
>        insopts -m0640 ; insinto /etc/apf; into /usr
>	doins -r ${WORKDIR}/${MY_PV}/files/{*.rules,VERSION,conf.apf,ad,internals,vnet} 
>	exeinto /etc/init.d; exeopts -m0750; doexe ${FILESDIR}/apf
>        fperms 0750 /etc/apf; fperms 0750 /etc/apf/vnet/vnetgen
>        fperms 0750 /etc/apf/ad/antidos; fperms 0750 /etc/apf/ad/tlog
>        dobin ${WORKDIR}/${MY_PV}/files/extras/get_ports
>	dodoc ${WORKDIR}/${MY_PV}/{README,README.antidos,CHANGELOG,COPYING.GPL} 
>        exeinto /etc/apf; doexe ${WORKDIR}/${MY_PV}/files/{apf,firewall}
>	dodir /usr/local/sbin
>	dosym /etc/apf/apf /usr/local/sbin/apf
>	dosym /etc/apf/apf /usr/bin/apf
>
>	if use dshieldpy; then
>        einfo "Setting cronjob for Dshield"
>	sed -i 's#/usr/bin/dshield#/usr/bin/dshield.py#' ${WORKDIR}/${MY_PV}/files/extras/dshield/cron.ds
>	exeinto /etc/cron.daily; newexe ${WORKDIR}/${MY_PV}/files/extras/dshield/cron.ds ds
>	fi
>
>	sed -i -e 's#/etc/rc.d/init.d/apf#/etc/init.d/apf#' ${WORKDIR}/${MY_PV}/cron.daily
>	exeinto /etc/cron.daily; newexe ${WORKDIR}/${MY_PV}/cron.daily fw
>	exeinto /etc/logrotate.d; newexe ${WORKDIR}/${MY_PV}/logrotate.d.apf apf
>
>        ${WORKDIR}/${MY_PV}/files/vnet/vnetgen
>}
>
>pkg_postinst() {
>	einfo ">"
>        get_ports || die "failed to run /usr/bin/get_ports."
>        einfo "Note: These ports are not auto-configured"
>        einfo "they are simply presented for information purposes."
>        einfo "You must manually configure all port options."
>	einfo "<"
>	einfo ".:Installation Details:."
>	einfo "Install path:         ${INSPATH}"
>	einfo "Config path:          ${INSPATH}/conf.apf"
>	einfo "Executable path:      ${INSPATH}"
>	einfo "AntiDos install path: ${INSPATH}/ad/"
>	einfo "AntiDos config path:  ${INSPATH}/ad/conf.antidos"
>	einfo ">"
>
>        if use dshieldpy; then
>        einfo "Using the provided USE flag will setup the dshield client to parse APF"
>        einfo "iptable logs daily and submit a summary report to dshield.org for inclusion"
>        einfo "into global attack trends. This feature is directly related to the dsheild drop"
>        einfo "list as such list is possible by providing the dshield.org site with live world"
>        einfo "firewall event logs."
>        einfo "Dshield Config path:  /etc/dshield.conf"
>	einfo "<"
>	fi
>}
>
>pkg_prerm() {
>	 if [ -f /etc/init.d/apf ]; then /etc/init.d/apf stop; fi
>}
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2006-09-20 10:54:25 UTC
*** Bug 148377 has been marked as a duplicate of this bug. ***
Comment 4 Alan Mosca 2006-09-22 01:56:01 UTC
Created attachment 97729 [details]
More standard ebuild.

Maintains package version and installs in standard path /usr/bin.
Comment 5 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2009-02-16 19:45:19 UTC
(this is an automated message based on filtering criteria that matched this bug)
'EBUILD' is in the KEYWORDS which should mean that there is a ebuild attached 
to this bug.
This bug is assigned to maintainer-wanted which means that it is not in the 
main tree.

Hello, The Gentoo Team would like to firstly thank you for your ebuild 
submission. We also apologize for not being able to accommodate you in a timely
manner. There are simply too many new packages.

Allow me to use this opportunity to introduce you to Gentoo Sunrise. The 
sunrise overlay[1] is a overlay for Gentoo which we allow trusted users to 
commit to and all users can have ebuilds reviewed by Gentoo devs for entry 
into the overlay. So, the sunrise team is suggesting that you look into this 
and submit your ebuild to the overlay where even *you* can commit to. =)

Because this is a mass message, we are also asking you to be patient with us. 
We anticipate a large number of requests in a short time. 

Thanks,
On behalf of the Gentoo Sunrise Team,
Jeremy.

[1]: http://www.gentoo.org/proj/en/sunrise/
[2]: http://overlays.gentoo.org/proj/sunrise/wiki/SunriseFaq