# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils DESCRIPTION="Perl script for Snort rule management" HOMEPAGE="http://http://code.google.com/p/pulledpork/" SRC_URI="http://pulledpork.googlecode.com/files/${P}.tar.gz" SLOT="0" LICENSE="GPL-2" KEYWORDS="~amd64 ~x86" IUSE="" DEPEND="" RDEPEND="dev-lang/perl dev-perl/libwww-perl virtual/perl-Digest-MD5 virtual/perl-File-Path perl-core/Getopt-Long perl-core/Archive-Tar app-arch/tar app-arch/gzip net-analyzer/snort" src_unpack() { unpack ${A} cd "${S}" } src_install () { dobin pulledpork.pl || die "Failed to install script pulledpork.pl" dodoc ./LICENSE \ ./README \ ./README.RULESET \ ./README.CHANGES keepdir /etc/pulledpork insinto /etc/pulledpork newins etc/dropsid.conf dropsid.conf.distrib newins etc/disablesid.conf disablesid.conf.distrib newins etc/enablesid.conf enablesid.conf.distrib newins etc/pulledpork.conf pulledpork.conf.distrib } pkg_postinst() { einfo einfo "PulledPork is a perl script designed to help simplify Snort" einfo "rule management. PulledPork is capable of updating both the" einfo "traditional rules as well as the newer shared object rules." einfo einfo "The configuration files for the script are located in" einfo "/etc/pulledpork. Also take a look in /usr/share/doc/${P}" einfo "and 'pulledpork.pl -h' for more information." einfo }