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

Contents of /net-analyzer/scanlogd/scanlogd-2.2.7.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Sun Oct 27 17:55:35 2013 UTC (13 months, 3 weeks ago) by jer
Branch: MAIN
Version bump.

(Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key A792A613)

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.9 2013/01/02 23:33:30 ulm Exp $
4
5 EAPI=5
6 inherit eutils savedconfig toolchain-funcs user
7
8 DESCRIPTION="a port scan detection tool"
9 SRC_URI="http://www.openwall.com/scanlogd/${P}.tar.gz"
10 HOMEPAGE="http://www.openwall.com/scanlogd/"
11
12 LICENSE="scanlogd GPL-2" # GPL-2 for initscript
13 SLOT="0"
14 KEYWORDS="~amd64 ~ppc ~x86"
15 IUSE="+nids pcap"
16 REQUIRED_USE="?? ( nids pcap )"
17
18 DEPEND="
19 nids? ( net-libs/libnids )
20 pcap? ( net-libs/libpcap )
21 "
22 RDEPEND="${DEPEND}"
23
24 src_prepare() {
25 epatch "${FILESDIR}"/${P}-gentoo.patch
26 restore_config params.h
27 tc-export CC
28 }
29
30 src_compile() {
31 local target=linux
32 use nids && target=libnids
33 use pcap && target=libpcap
34 emake ${target}
35 }
36
37 src_install() {
38 dosbin scanlogd
39 doman scanlogd.8
40 newinitd "${FILESDIR}"/scanlogd.rc scanlogd
41 save_config params.h
42 }
43
44 pkg_preinst() {
45 enewgroup scanlogd
46 enewuser scanlogd -1 -1 /dev/null scanlogd
47 }

  ViewVC Help
Powered by ViewVC 1.1.20