Gentoo Archives: gentoo-commits

From: Jeroen Roovers <jer@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-analyzer/argus/
Date: Sat, 31 Oct 2015 06:04:32
Message-Id: 1446271445.9376ba26050df7fee4e8aa28bf53f90e47169ab0.jer@gentoo
1 commit: 9376ba26050df7fee4e8aa28bf53f90e47169ab0
2 Author: Jeroen Roovers <jer <AT> gentoo <DOT> org>
3 AuthorDate: Sat Oct 31 06:04:05 2015 +0000
4 Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org>
5 CommitDate: Sat Oct 31 06:04:05 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9376ba26
7
8 net-analyzer/argus: Version bump.
9
10 Package-Manager: portage-2.2.23
11
12 net-analyzer/argus/Manifest | 1 +
13 net-analyzer/argus/argus-3.0.8.2_rc2.ebuild | 82 +++++++++++++++++++++++++++++
14 2 files changed, 83 insertions(+)
15
16 diff --git a/net-analyzer/argus/Manifest b/net-analyzer/argus/Manifest
17 index 1e8051f..94d5562 100644
18 --- a/net-analyzer/argus/Manifest
19 +++ b/net-analyzer/argus/Manifest
20 @@ -1 +1,2 @@
21 DIST argus-3.0.8.1.tar.gz 523375 SHA256 1fb921104c8bd843fb9f5a1c32b57b20bfe8cd8a103b3f1d9bb686b9e6c490a4 SHA512 d96332849df7ce2297aa0d81a9f22c12763d04b2936ffaffc0e4b1942535846cfbc41dadf28791eb88d1ffd0429bdc280d16dff44369c415c713064849b158f7 WHIRLPOOL 2c9495d585c2297b3f9951e74a8fd28840941be6b298c0178d44801242d1abda4bd08f9469e2dd1a4b802735611c9ff82bc028d838628b1ccb184ba80d5dc529
22 +DIST argus-3.0.8.2.rc.2.tar.gz 525053 SHA256 a499154248fd32d0809599b78e5078353a97edbbf595ad48701c9646c2c5515f SHA512 c8272ae80f66114a4a83c365d9257d90ffe944cb648112ba9d756ad235d3d7231d09fe9de2dc31f2d72d5070e3e932b8de49661371806c5e1b21d7aea0aad3b1 WHIRLPOOL 80fc3d7c0c96fee1243903119a3d3d6391da6b42e0c3610b817d205d65776f6df93bd99e7a8900d3422dab48a75da5839efd4284cb6abada7bef6989534138b6
23
24 diff --git a/net-analyzer/argus/argus-3.0.8.2_rc2.ebuild b/net-analyzer/argus/argus-3.0.8.2_rc2.ebuild
25 new file mode 100644
26 index 0000000..e767e08
27 --- /dev/null
28 +++ b/net-analyzer/argus/argus-3.0.8.2_rc2.ebuild
29 @@ -0,0 +1,82 @@
30 +# Copyright 1999-2015 Gentoo Foundation
31 +# Distributed under the terms of the GNU General Public License v2
32 +# $Id$
33 +
34 +EAPI=5
35 +inherit autotools eutils user
36 +
37 +DESCRIPTION="network Audit Record Generation and Utilization System"
38 +HOMEPAGE="http://www.qosient.com/argus/"
39 +SRC_URI="${HOMEPAGE}dev/${P/_rc/.rc.}.tar.gz"
40 +
41 +LICENSE="GPL-3"
42 +SLOT="0"
43 +KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
44 +IUSE="debug sasl tcpd"
45 +
46 +RDEPEND="
47 + net-libs/libpcap
48 + sys-libs/zlib
49 + sasl? ( dev-libs/cyrus-sasl )
50 + tcpd? ( >=sys-apps/tcp-wrappers-7.6 )
51 +"
52 +
53 +DEPEND="
54 + ${RDEPEND}
55 + >=sys-devel/bison-1.28
56 + >=sys-devel/flex-2.4.6
57 +"
58 +
59 +S=${WORKDIR}/${P/_rc/.rc.}
60 +
61 +src_prepare() {
62 + find . -type f -execdir chmod +w {} \; #561360
63 + sed -e 's:/etc/argus.conf:/etc/argus/argus.conf:' \
64 + -i argus/argus.c \
65 + -i support/Config/argus.conf \
66 + -i man/man8/argus.8 \
67 + -i man/man5/argus.conf.5 || die
68 +
69 + sed -e 's:#\(ARGUS_SETUSER_ID=\).*:\1argus:' \
70 + -e 's:#\(ARGUS_SETGROUP_ID=\).*:\1argus:' \
71 + -e 's:\(#ARGUS_CHROOT_DIR=\).*:\1/var/lib/argus:' \
72 + -i support/Config/argus.conf || die
73 + epatch \
74 + "${FILESDIR}"/${PN}-3.0.8.1-disable-tcp-wrappers-automagic.patch \
75 + "${FILESDIR}"/${PN}-3.0.5-Makefile.patch \
76 + "${FILESDIR}"/${PN}-3.0.7.3-DLT_IPNET.patch
77 + eautoreconf
78 +}
79 +
80 +src_configure() {
81 + use debug && touch .debug # enable debugging
82 + econf $(use_with tcpd wrappers) $(use_with sasl)
83 +}
84 +
85 +src_compile() {
86 + emake CCOPT="${CFLAGS} ${LDFLAGS}"
87 +}
88 +
89 +src_install () {
90 + doman man/man5/*.5 man/man8/*.8
91 +
92 + dosbin bin/argus{,bug}
93 +
94 + dodoc ChangeLog CREDITS README
95 +
96 + insinto /etc/argus
97 + doins support/Config/argus.conf
98 +
99 + newinitd "${FILESDIR}/argus.initd" argus
100 + keepdir /var/lib/argus
101 +}
102 +
103 +pkg_preinst() {
104 + enewgroup argus
105 + enewuser argus -1 -1 /var/lib/argus argus
106 +}
107 +
108 +pkg_postinst() {
109 + elog "Note, if you modify ARGUS_DAEMON value in argus.conf it's quite"
110 + elog "possible that the init script will fail to work."
111 +}