# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=3 DESCRIPTION="Fwsnort parses the rules files included in the Snort intrusion detection system and builds an equivalent iptables ruleset for as many rules as possible." HOMEPAGE="http://www.cipherdyne.org/fwsnort/" SRC_URI="http://www.cipherdyne.org/fwsnort/download/${PN}-nodeps-${PV}.tar.gz" LICENSE="GPL-1" SLOT="0" KEYWORDS="~x86" IUSE="" inherit eutils DEPEND="dev-lang/perl" RDEPEND="${DEPEND} net-firewall/iptables perl-gcpan/IPTables-Parse perl-gcpan/Net-IPv4Addr" src_unpack(){ unpack ${A} cd "${S}" epatch "${FILESDIR}"/${P}-portage.diff } src_install() { cd "${S}" sed \ -e "s|/usr/sbin|${D}/usr/sbin|g" \ -e "s|/usr/lib|${D}/usr/lib|" \ -e "s|/etc/fwsnort|${D}/etc/fwsnort|" \ -e "s|mkdir|mkpath|" \ -e "s|/usr/share/|${D}/usr/share/|" install.pl > my_install.pl perl my_install.pl }