# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils DESCRIPTION="Monitors your syslog and blocks breakin attempts using iptables." HOMEPAGE="http://breakinguard.sourceforge.net/" SRC_URI="mirror://sourceforge/${PN}/${PN}_${PV}.tar.gz" LICENSE="GPL" SLOT="0" KEYWORDS="~x86 ~amd64" IUSE="" DEPEND="dev-perl/File-Tail net-firewall/iptables" RDEPEND="" src_unpack(){ unpack ${A} cd "${S}" epatch "${FILESDIR}/${PV}-gentoo.diff" } src_compile(){ return } src_install(){ exeinto /usr/sbin doexe breakinguard || die "install failed" insinto /etc doins breakinguard.conf || die "install failed" newinitd "${FILESDIR}/${PV}.initd" breakinguard || die "install failed" dodoc README || die "install failed" } pkg_postinst(){ einfo "To run breakinguard on boot:" einfo "rc-update add breakinguard default" einfo "" einfo "By default alerts are emailed to root@localhost" einfo "Edit the email address and other options in /etc/breakinguard.conf" }