# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /usr/local/portage/net-analyzer/scanlogd/scanlogd-2.2.6-r2.ebuild,v 1.3 2006/03/16 02:30:00 Metalshark Exp $ inherit eutils IUSE="custom-cflags" DESCRIPTION="Scanlogd - detects and logs TCP port scans" SRC_URI="http://www.openwall.com/scanlogd/${P}.tar.gz" HOMEPAGE="http://www.openwall.com/scanlogd/" SLOT="0" LICENSE="as-is" KEYWORDS="~amd64 ~ppc ~sparc ~x86" DEPEND="virtual/libc" pkg_setup() { enewgroup scanlogd enewuser scanlogd -1 -1 /dev/null scanlogd } src_unpack() { unpack ${A} cd ${S} epatch "${FILESDIR}/${P}-pexit.patch" if use custom-cflags ; then epatch "${FILESDIR}/${P}-custom-cflags.patch" fi } src_compile() { make linux || die } src_install() { dosbin scanlogd doman scanlogd.8 exeinto /etc/init.d ; newexe ${FILESDIR}/scanlogd.rc scanlogd } pkg_postinst() { einfo "You can start the scanlogd monitoring program at boot by running" einfo "rc-update add scanlogd default" }