/[gentoo-x86]/net-analyzer/scanlogd/scanlogd-2.2.6-r2.ebuild
Gentoo

Contents of /net-analyzer/scanlogd/scanlogd-2.2.6-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (show annotations) (download)
Wed Jan 2 23:33:30 2013 UTC (22 months, 3 weeks ago) by ulm
Branch: MAIN
CVS Tags: HEAD
Changes since 1.8: +3 -3 lines
Fix LICENSE, see scanlogd.c, bug 449834.

(Portage version: 2.1.11.38/cvs/Linux x86_64, signed Manifest commit with key E7BE08CA7DC6EA25)

1 # Copyright 1999-2013 Gentoo Foundation
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-r2.ebuild,v 1.8 2012/11/21 04:26:42 jer Exp $
4
5 inherit eutils toolchain-funcs user
6
7 DESCRIPTION="Scanlogd - detects and logs TCP port scans"
8 SRC_URI="http://www.openwall.com/scanlogd/${P}.tar.gz"
9 HOMEPAGE="http://www.openwall.com/scanlogd/"
10
11 LICENSE="Openwall GPL-2" # GPL-2 for initscript
12 SLOT="0"
13 KEYWORDS="~amd64 ppc x86"
14 IUSE="nids pcap"
15
16 DEPEND="nids? ( net-libs/libnids
17 net-libs/libnet
18 net-libs/libpcap )
19 pcap? ( net-libs/libpcap )"
20 RDEPEND=${DEPEND}
21
22 pkg_setup() {
23 enewgroup scanlogd
24 enewuser scanlogd -1 -1 /dev/null scanlogd
25 if use nids && use pcap ; then
26 ewarn
27 ewarn "As you set both nids and pcap useflag, we default to pcap"
28 ewarn
29 fi
30 }
31
32 src_unpack() {
33 unpack ${A}
34 cd "${S}"
35 epatch "${FILESDIR}/${P}-Makefile.patch"
36 }
37
38 src_compile() {
39 local target=linux
40 use nids && target=libnids
41 use pcap && target=libpcap
42
43 einfo "Compiling against ${target}"
44
45 emake CC="$(tc-getCC)" ${target} || die "emake failed"
46 }
47
48 src_install() {
49 dosbin scanlogd
50 doman scanlogd.8
51 newinitd "${FILESDIR}"/scanlogd.rc scanlogd
52 }
53
54 pkg_postinst() {
55 elog "You can start the scanlogd monitoring program at boot by running"
56 elog "rc-update add scanlogd default"
57 }

  ViewVC Help
Powered by ViewVC 1.1.20