/[gentoo-x86]/net-analyzer/argus/argus-3.0.7.1.ebuild
Gentoo

Contents of /net-analyzer/argus/argus-3.0.7.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Thu Jan 3 00:43:21 2013 UTC (23 months, 3 weeks ago) by jer
Branch: MAIN
Changes since 1.1: +3 -3 lines
Set correct license.

(Portage version: 2.2.0_alpha149/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/argus/argus-3.0.7.1.ebuild,v 1.1 2012/10/15 13:08:03 jer Exp $
4
5 EAPI="4"
6 inherit autotools eutils user
7
8 DESCRIPTION="network Audit Record Generation and Utilization System"
9 HOMEPAGE="http://www.qosient.com/argus/"
10 SRC_URI="http://qosient.com/argus/dev/${P}.tar.gz"
11
12 LICENSE="GPL-3"
13 SLOT="0"
14 KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
15 IUSE="debug sasl tcpd"
16
17 RDEPEND="
18 net-libs/libpcap
19 sys-libs/zlib
20 sasl? ( dev-libs/cyrus-sasl )
21 tcpd? ( >=sys-apps/tcp-wrappers-7.6 )
22 "
23
24 DEPEND="
25 ${RDEPEND}
26 >=sys-devel/bison-1.28
27 >=sys-devel/flex-2.4.6
28 "
29
30 src_prepare() {
31 sed -e 's:/etc/argus.conf:/etc/argus/argus.conf:' \
32 -i argus/argus.c \
33 -i support/Config/argus.conf \
34 -i man/man8/argus.8 \
35 -i man/man5/argus.conf.5 || die
36
37 sed -e 's:#\(ARGUS_SETUSER_ID=\).*:\1argus:' \
38 -e 's:#\(ARGUS_SETGROUP_ID=\).*:\1argus:' \
39 -e 's:\(#ARGUS_CHROOT_DIR=\).*:\1/var/lib/argus:' \
40 -i support/Config/argus.conf || die
41 epatch \
42 "${FILESDIR}"/${PN}-3.0.4-disable-tcp-wrappers-automagic.patch \
43 "${FILESDIR}"/${PN}-3.0.5-Makefile.patch
44 eautoreconf
45 }
46
47 src_configure() {
48 use debug && touch .debug # enable debugging
49 econf $(use_with tcpd wrappers) $(use_with sasl)
50 }
51
52 src_compile() {
53 emake CCOPT="${CFLAGS} ${LDFLAGS}"
54 }
55
56 src_install () {
57 doman man/man5/* man/man8/*
58 dosbin bin/argus{,bug}
59
60 dodoc ChangeLog CREDITS README
61
62 insinto /etc/argus
63 doins support/Config/argus.conf
64
65 newinitd "${FILESDIR}/argus.initd" argus
66 dodir /var/lib/argus
67 }
68
69 pkg_preinst() {
70 enewgroup argus
71 enewuser argus -1 -1 /var/lib/argus argus
72 }
73
74 pkg_postinst() {
75 elog "Note, if you modify ARGUS_DAEMON value in argus.conf it's quite"
76 elog "possible that init script will fail to work."
77 }

  ViewVC Help
Powered by ViewVC 1.1.20