1 |
commit: e61f4b1adb000e97187c5eeefb8854dfaa60f853 |
2 |
Author: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Aug 29 11:13:23 2020 +0000 |
4 |
Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Aug 29 11:13:43 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e61f4b1a |
7 |
|
8 |
net-analyzer/argus: Version 3.0.8.3 |
9 |
|
10 |
Package-Manager: Portage-3.0.4, Repoman-3.0.1 |
11 |
Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org> |
12 |
|
13 |
net-analyzer/argus/Manifest | 1 + |
14 |
net-analyzer/argus/argus-3.0.8.3.ebuild | 95 ++++++++++++++++++++++ |
15 |
net-analyzer/argus/files/argus-3.0.8.3-ar.patch | 11 +++ |
16 |
.../argus/files/argus-3.0.8.3-as-needed.patch | 11 +++ |
17 |
4 files changed, 118 insertions(+) |
18 |
|
19 |
diff --git a/net-analyzer/argus/Manifest b/net-analyzer/argus/Manifest |
20 |
index 17d6ac24042..960cce267b5 100644 |
21 |
--- a/net-analyzer/argus/Manifest |
22 |
+++ b/net-analyzer/argus/Manifest |
23 |
@@ -1 +1,2 @@ |
24 |
DIST argus-3.0.8.2.tar.gz 524749 BLAKE2B 4d93fd8acd71b198da712961d75f0e813f5ed3fde841e77b8a10c3a9b89571902b7597969a4be12437c97ffc69ba5ebefaee8b684c5d2d4ce4f1309c1cfd1199 SHA512 146795880d8697e065ed23d2fbab226846d55db0b71945c5a4cab2896e48ceb6e1671ccb4e00dc3b0f984525bac4ced3773f3b9e70c3ea5f7c6972fe9bd94313 |
25 |
+DIST argus-3.0.8.3.tar.gz 524549 BLAKE2B f905784c12d28d4440a7a6954441ce4f0865125a87e3d740edd5785e729f8b5b45967d97aef4f72802d2166b76176e15c6f15ec99b87ae1d14849ae92c65ad76 SHA512 f66db5b3bb1305825b76a7eda413d5805d65182aabef647e27716cfd629327b3aab8c299bc8af419199ac655cef4ac3bfcb83c059080e98b042e09f79f01d82a |
26 |
|
27 |
diff --git a/net-analyzer/argus/argus-3.0.8.3.ebuild b/net-analyzer/argus/argus-3.0.8.3.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..8092871dded |
30 |
--- /dev/null |
31 |
+++ b/net-analyzer/argus/argus-3.0.8.3.ebuild |
32 |
@@ -0,0 +1,95 @@ |
33 |
+# Copyright 1999-2020 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=7 |
37 |
+inherit autotools user |
38 |
+ |
39 |
+DESCRIPTION="network Audit Record Generation and Utilization System" |
40 |
+HOMEPAGE="https://openargus.org/" |
41 |
+SRC_URI="https://www.qosient.com/argus/dev/${P/_rc/.rc.}.tar.gz" |
42 |
+ |
43 |
+LICENSE="GPL-3" |
44 |
+SLOT="0" |
45 |
+KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos" |
46 |
+IUSE="debug sasl tcpd" |
47 |
+ |
48 |
+RDEPEND=" |
49 |
+ net-libs/libnsl:= |
50 |
+ net-libs/libpcap |
51 |
+ net-libs/libtirpc |
52 |
+ sys-libs/zlib |
53 |
+ sasl? ( dev-libs/cyrus-sasl ) |
54 |
+ tcpd? ( >=sys-apps/tcp-wrappers-7.6 ) |
55 |
+" |
56 |
+ |
57 |
+DEPEND=" |
58 |
+ ${RDEPEND} |
59 |
+ >=sys-devel/bison-1.28 |
60 |
+ >=sys-devel/flex-2.4.6 |
61 |
+" |
62 |
+PATCHES=( |
63 |
+ "${FILESDIR}"/${PN}-3.0.8.1-disable-tcp-wrappers-automagic.patch |
64 |
+ "${FILESDIR}"/${PN}-3.0.5-Makefile.patch |
65 |
+ "${FILESDIR}"/${PN}-3.0.7.3-DLT_IPNET.patch |
66 |
+ "${FILESDIR}"/${PN}-3.0.8.3-ar.patch |
67 |
+ "${FILESDIR}"/${PN}-3.0.8.3-as-needed.patch |
68 |
+) |
69 |
+S=${WORKDIR}/${P/_rc/.rc.} |
70 |
+ |
71 |
+pkg_setup() { |
72 |
+ enewgroup argus |
73 |
+ enewuser argus -1 -1 /var/lib/argus argus |
74 |
+} |
75 |
+ |
76 |
+src_prepare() { |
77 |
+ find . -type f -execdir chmod +w {} \; #561360 |
78 |
+ sed -e 's:/etc/argus.conf:/etc/argus/argus.conf:' \ |
79 |
+ -i argus/argus.c \ |
80 |
+ -i support/Config/argus.conf \ |
81 |
+ -i man/man8/argus.8 \ |
82 |
+ -i man/man5/argus.conf.5 || die |
83 |
+ |
84 |
+ sed -e 's:#\(ARGUS_SETUSER_ID=\).*:\1argus:' \ |
85 |
+ -e 's:#\(ARGUS_SETGROUP_ID=\).*:\1argus:' \ |
86 |
+ -e 's:\(#ARGUS_CHROOT_DIR=\).*:\1/var/lib/argus:' \ |
87 |
+ -i support/Config/argus.conf || die |
88 |
+ |
89 |
+ default |
90 |
+ eautoreconf |
91 |
+} |
92 |
+ |
93 |
+src_configure() { |
94 |
+ use debug && touch .debug # enable debugging |
95 |
+ |
96 |
+ econf \ |
97 |
+ $(use_with sasl) \ |
98 |
+ $(use_with tcpd wrappers) |
99 |
+} |
100 |
+ |
101 |
+src_compile() { |
102 |
+ emake CCOPT="${CFLAGS} ${LDFLAGS}" |
103 |
+} |
104 |
+ |
105 |
+src_install() { |
106 |
+ doman man/man5/*.5 man/man8/*.8 |
107 |
+ |
108 |
+ dosbin bin/argus{,bug} |
109 |
+ |
110 |
+ dodoc ChangeLog CREDITS README |
111 |
+ |
112 |
+ insinto /etc/argus |
113 |
+ doins support/Config/argus.conf |
114 |
+ |
115 |
+ newinitd "${FILESDIR}/argus.initd" argus |
116 |
+ keepdir /var/lib/argus |
117 |
+} |
118 |
+ |
119 |
+pkg_preinst() { |
120 |
+ enewgroup argus |
121 |
+ enewuser argus -1 -1 /var/lib/argus argus |
122 |
+} |
123 |
+ |
124 |
+pkg_postinst() { |
125 |
+ elog "Note, if you modify ARGUS_DAEMON value in argus.conf it's quite" |
126 |
+ elog "possible that the init script will fail to work." |
127 |
+} |
128 |
|
129 |
diff --git a/net-analyzer/argus/files/argus-3.0.8.3-ar.patch b/net-analyzer/argus/files/argus-3.0.8.3-ar.patch |
130 |
new file mode 100644 |
131 |
index 00000000000..d17a1d3ff06 |
132 |
--- /dev/null |
133 |
+++ b/net-analyzer/argus/files/argus-3.0.8.3-ar.patch |
134 |
@@ -0,0 +1,11 @@ |
135 |
+--- a/common/Makefile.in |
136 |
++++ b/common/Makefile.in |
137 |
+@@ -87,7 +87,7 @@ |
138 |
+ all: $(LIBS) |
139 |
+ |
140 |
+ @INSTALL_LIB@/argus_common.a: $(COMMONOBJ) |
141 |
+- rm -f $@; ar qc $@ $(COMMONOBJ) |
142 |
++ rm -f $@; $(AR) qc $@ $(COMMONOBJ) |
143 |
+ -$(RANLIB) $@ |
144 |
+ |
145 |
+ scanner.c: scanner.l |
146 |
|
147 |
diff --git a/net-analyzer/argus/files/argus-3.0.8.3-as-needed.patch b/net-analyzer/argus/files/argus-3.0.8.3-as-needed.patch |
148 |
new file mode 100644 |
149 |
index 00000000000..b9616d305e0 |
150 |
--- /dev/null |
151 |
+++ b/net-analyzer/argus/files/argus-3.0.8.3-as-needed.patch |
152 |
@@ -0,0 +1,11 @@ |
153 |
+--- a/argus/Makefile.in |
154 |
++++ b/argus/Makefile.in |
155 |
+@@ -85,7 +85,7 @@ |
156 |
+ |
157 |
+ OBJ = $(SRC:.c=.o) |
158 |
+ |
159 |
+-LIB = @LIBS@ @V_THREADS@ $(WRAPLIBS) $(SASLLIBS) $(XDRLIBS) $(COMPATLIB) ../lib/argus_common.a -lm |
160 |
++LIB = ../lib/argus_common.a @LIBS@ @V_THREADS@ $(WRAPLIBS) $(SASLLIBS) $(XDRLIBS) $(COMPATLIB) -lm |
161 |
+ |
162 |
+ HDR = pcap.h pcap-int.h pcap-namedb.h pcap-nit.h pcap-pf.h \ |
163 |
+ ethertype.h gencode.h gnuc.h |