|
|
# Copyright 1999-2006 Gentoo Foundation | # Copyright 1999-2006 Gentoo Foundation |
# Distributed under the terms of the GNU General Public License v2 | # Distributed under the terms of the GNU General Public License v2 |
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/scanlogd/scanlogd-2.2.6-r1.ebuild,v 1.3 2006/09/10 08:46:51 ticho Exp $ |
# $Header: $ |
| |
inherit eutils flag-o-matic |
inherit eutils toolchain-funcs |
| |
DESCRIPTION="Scanlogd - detects and logs TCP port scans" | DESCRIPTION="Scanlogd - detects and logs TCP port scans" |
SRC_URI="http://www.openwall.com/scanlogd/${P}.tar.gz" | SRC_URI="http://www.openwall.com/scanlogd/${P}.tar.gz" |
|
|
| |
src_unpack() { | src_unpack() { |
unpack ${A} | unpack ${A} |
cd ${S} |
cd "${S}" |
epatch "${FILESDIR}/${P}-Makefile.patch" | epatch "${FILESDIR}/${P}-Makefile.patch" |
} | } |
| |
src_compile() { | src_compile() { |
# flags used by upstream |
make CC="$(tc-getCC)" linux || die "make failed" |
if ! is-flag -fomit-frame-pointer ; then |
|
append-flags -fomit-frame-pointer |
|
fi |
|
if ! is-ldflag -s ; then |
|
append-ldflags -s |
|
fi |
|
|
|
make linux || die "make failed" |
|
} | } |
| |
src_install() { | src_install() { |
dosbin scanlogd | dosbin scanlogd |
doman scanlogd.8 | doman scanlogd.8 |
|
newinitd "${FILESDIR}"/scanlogd.rc scanlogd |
exeinto /etc/init.d ; newexe ${FILESDIR}/scanlogd.rc scanlogd |
|
} | } |
| |
pkg_postinst() { | pkg_postinst() { |