Lines 1-8
Link Here
|
1 |
# Copyright 1999-2006 Gentoo Foundation |
1 |
# Copyright 1999-2006 Gentoo Foundation |
2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $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 $ |
3 |
# $Header: $ |
4 |
|
4 |
|
5 |
inherit eutils flag-o-matic |
5 |
inherit eutils toolchain-funcs |
6 |
|
6 |
|
7 |
DESCRIPTION="Scanlogd - detects and logs TCP port scans" |
7 |
DESCRIPTION="Scanlogd - detects and logs TCP port scans" |
8 |
SRC_URI="http://www.openwall.com/scanlogd/${P}.tar.gz" |
8 |
SRC_URI="http://www.openwall.com/scanlogd/${P}.tar.gz" |
Lines 22-48
Link Here
|
22 |
|
22 |
|
23 |
src_unpack() { |
23 |
src_unpack() { |
24 |
unpack ${A} |
24 |
unpack ${A} |
25 |
cd ${S} |
25 |
cd "${S}" |
26 |
epatch "${FILESDIR}/${P}-Makefile.patch" |
26 |
epatch "${FILESDIR}/${P}-Makefile.patch" |
27 |
} |
27 |
} |
28 |
|
28 |
|
29 |
src_compile() { |
29 |
src_compile() { |
30 |
# flags used by upstream |
30 |
make CC="$(tc-getCC)" linux || die "make failed" |
31 |
if ! is-flag -fomit-frame-pointer ; then |
|
|
32 |
append-flags -fomit-frame-pointer |
33 |
fi |
34 |
if ! is-ldflag -s ; then |
35 |
append-ldflags -s |
36 |
fi |
37 |
|
38 |
make linux || die "make failed" |
39 |
} |
31 |
} |
40 |
|
32 |
|
41 |
src_install() { |
33 |
src_install() { |
42 |
dosbin scanlogd |
34 |
dosbin scanlogd |
43 |
doman scanlogd.8 |
35 |
doman scanlogd.8 |
44 |
|
36 |
newinitd "${FILESDIR}"/scanlogd.rc scanlogd |
45 |
exeinto /etc/init.d ; newexe ${FILESDIR}/scanlogd.rc scanlogd |
|
|
46 |
} |
37 |
} |
47 |
|
38 |
|
48 |
pkg_postinst() { |
39 |
pkg_postinst() { |