1 |
commit: 0c147c1277d6c4777b0353683d0a419fc277b5a8 |
2 |
Author: Ilya Tumaykin <itumaykin <AT> gmail <DOT> com> |
3 |
AuthorDate: Fri Oct 30 14:01:24 2015 +0000 |
4 |
Commit: Ian Delaney <idella4 <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Oct 30 16:26:21 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0c147c12 |
7 |
|
8 |
app-admin/ulogd: remove old |
9 |
|
10 |
app-admin/ulogd/Manifest | 1 - |
11 |
.../ulogd-2.0.4-linux-headers-3.17-ipt_ulog.patch | 100 --------------- |
12 |
app-admin/ulogd/files/ulogd.init | 41 ------ |
13 |
app-admin/ulogd/files/ulogd.service | 13 -- |
14 |
app-admin/ulogd/ulogd-2.0.4-r1.ebuild | 140 --------------------- |
15 |
5 files changed, 295 deletions(-) |
16 |
|
17 |
diff --git a/app-admin/ulogd/Manifest b/app-admin/ulogd/Manifest |
18 |
index 8392508..d969037 100644 |
19 |
--- a/app-admin/ulogd/Manifest |
20 |
+++ b/app-admin/ulogd/Manifest |
21 |
@@ -1,2 +1 @@ |
22 |
-DIST ulogd-2.0.4.tar.bz2 452234 SHA256 56b30a13a8832e97178f39b7bb173a0b1dfe173dbb60d99a1a386c0962a2effd SHA512 08e88661fcfbcfd327b03b7a883dc239991f47d5a4e4561f3ada5f6acc8f2349f3bd38c1c67f28e42bbccf4cad63b2b7c3b732c23bf24b7c5f05320d27977773 WHIRLPOOL 94ee731cee8b95295d1c675bb3904be1a5b27a1e901d462f248116c865e79d52703b5330882110d7212bda1bb964fc0c97c3e704589071f47fab4475e1c91161 |
23 |
DIST ulogd-2.0.5.tar.bz2 456258 SHA256 a221cb9f77347c0ca00d0937e27c1b90e3291a553cc62a4139b788e2e420e8c0 SHA512 bf00b8adaad7bd04077a83521b0d7accc26e644c8f3386819e7f91476178b6733f1c6554fb82dd0d3913398c83a61d65f61dc973f199f610bfaadc6251504819 WHIRLPOOL fe499ac7b4070581439a05f4f2245f7a42fe5630da5dc32b9b069511ed1faa15fe482eee08d50477d3fb1d0bf0d3855a69fc82fb0f3e8eecdf082fb642519f91 |
24 |
|
25 |
diff --git a/app-admin/ulogd/files/ulogd-2.0.4-linux-headers-3.17-ipt_ulog.patch b/app-admin/ulogd/files/ulogd-2.0.4-linux-headers-3.17-ipt_ulog.patch |
26 |
deleted file mode 100644 |
27 |
index f8c1062..0000000 |
28 |
--- a/app-admin/ulogd/files/ulogd-2.0.4-linux-headers-3.17-ipt_ulog.patch |
29 |
+++ /dev/null |
30 |
@@ -1,100 +0,0 @@ |
31 |
-From 30e24dbfc7a8644e29664070e8c16e5c3997f87e Mon Sep 17 00:00:00 2001 |
32 |
-From: Pablo Neira Ayuso <pablo@×××××××××.org> |
33 |
-Date: Fri, 7 Nov 2014 18:33:01 +0100 |
34 |
-Subject: [PATCH] include: keep a copy of linux/netfilter_ipv4/ipt_ULOG.h |
35 |
- |
36 |
-This fixes compilation if you use a Linux kernel >= 3.17. This problem |
37 |
-occurs since ULOG was removed from mainstream: |
38 |
- |
39 |
-http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=7200135bc1e61f1437dc326ae2ef2f310c50b4eb |
40 |
- |
41 |
-Closes: https://bugzilla.netfilter.org/show_bug.cgi?id=986 |
42 |
-Signed-off-by: Pablo Neira Ayuso <pablo@×××××××××.org> |
43 |
- |
44 |
-diff --git a/configure.ac b/configure.ac |
45 |
-index 522c345..c5f573c 100644 |
46 |
---- a/configure.ac |
47 |
-+++ b/configure.ac |
48 |
-@@ -142,7 +142,7 @@ dnl AM_CONDITIONAL(HAVE_PGSQL, test x$pgsqldir != x) |
49 |
- |
50 |
- AC_CONFIG_FILES(include/Makefile include/ulogd/Makefile include/libipulog/Makefile \ |
51 |
- include/linux/Makefile include/linux/netfilter/Makefile \ |
52 |
-- libipulog/Makefile \ |
53 |
-+ include/linux/netfilter_ipv4/Makefile libipulog/Makefile \ |
54 |
- input/Makefile input/packet/Makefile input/flow/Makefile \ |
55 |
- input/sum/Makefile \ |
56 |
- filter/Makefile filter/raw2packet/Makefile filter/packet2flow/Makefile \ |
57 |
-diff --git a/include/linux/Makefile.am b/include/linux/Makefile.am |
58 |
-index ca80d0d..18af1c2 100644 |
59 |
---- a/include/linux/Makefile.am |
60 |
-+++ b/include/linux/Makefile.am |
61 |
-@@ -1,2 +1,2 @@ |
62 |
-- |
63 |
--SUBDIRS = netfilter |
64 |
-+SUBDIRS = netfilter \ |
65 |
-+ netfilter_ipv4 |
66 |
-diff --git a/include/linux/netfilter_ipv4/Makefile.am b/include/linux/netfilter_ipv4/Makefile.am |
67 |
-new file mode 100644 |
68 |
-index 0000000..41819a3 |
69 |
---- /dev/null |
70 |
-+++ b/include/linux/netfilter_ipv4/Makefile.am |
71 |
-@@ -0,0 +1 @@ |
72 |
-+noinst_HEADERS = ipt_ULOG.h |
73 |
-diff --git a/include/linux/netfilter_ipv4/ipt_ULOG.h b/include/linux/netfilter_ipv4/ipt_ULOG.h |
74 |
-new file mode 100644 |
75 |
-index 0000000..417aad2 |
76 |
---- /dev/null |
77 |
-+++ b/include/linux/netfilter_ipv4/ipt_ULOG.h |
78 |
-@@ -0,0 +1,49 @@ |
79 |
-+/* Header file for IP tables userspace logging, Version 1.8 |
80 |
-+ * |
81 |
-+ * (C) 2000-2002 by Harald Welte <laforge@××××××××.org> |
82 |
-+ * |
83 |
-+ * Distributed under the terms of GNU GPL */ |
84 |
-+ |
85 |
-+#ifndef _IPT_ULOG_H |
86 |
-+#define _IPT_ULOG_H |
87 |
-+ |
88 |
-+#ifndef NETLINK_NFLOG |
89 |
-+#define NETLINK_NFLOG 5 |
90 |
-+#endif |
91 |
-+ |
92 |
-+#define ULOG_DEFAULT_NLGROUP 1 |
93 |
-+#define ULOG_DEFAULT_QTHRESHOLD 1 |
94 |
-+ |
95 |
-+#define ULOG_MAC_LEN 80 |
96 |
-+#define ULOG_PREFIX_LEN 32 |
97 |
-+ |
98 |
-+#define ULOG_MAX_QLEN 50 |
99 |
-+/* Why 50? Well... there is a limit imposed by the slab cache 131000 |
100 |
-+ * bytes. So the multipart netlink-message has to be < 131000 bytes. |
101 |
-+ * Assuming a standard ethernet-mtu of 1500, we could define this up |
102 |
-+ * to 80... but even 50 seems to be big enough. */ |
103 |
-+ |
104 |
-+/* private data structure for each rule with a ULOG target */ |
105 |
-+struct ipt_ulog_info { |
106 |
-+ unsigned int nl_group; |
107 |
-+ size_t copy_range; |
108 |
-+ size_t qthreshold; |
109 |
-+ char prefix[ULOG_PREFIX_LEN]; |
110 |
-+}; |
111 |
-+ |
112 |
-+/* Format of the ULOG packets passed through netlink */ |
113 |
-+typedef struct ulog_packet_msg { |
114 |
-+ unsigned long mark; |
115 |
-+ long timestamp_sec; |
116 |
-+ long timestamp_usec; |
117 |
-+ unsigned int hook; |
118 |
-+ char indev_name[IFNAMSIZ]; |
119 |
-+ char outdev_name[IFNAMSIZ]; |
120 |
-+ size_t data_len; |
121 |
-+ char prefix[ULOG_PREFIX_LEN]; |
122 |
-+ unsigned char mac_len; |
123 |
-+ unsigned char mac[ULOG_MAC_LEN]; |
124 |
-+ unsigned char payload[0]; |
125 |
-+} ulog_packet_msg_t; |
126 |
-+ |
127 |
-+#endif /*_IPT_ULOG_H*/ |
128 |
--- |
129 |
-2.0.4 |
130 |
- |
131 |
|
132 |
diff --git a/app-admin/ulogd/files/ulogd.init b/app-admin/ulogd/files/ulogd.init |
133 |
deleted file mode 100644 |
134 |
index ace6e8b..0000000 |
135 |
--- a/app-admin/ulogd/files/ulogd.init |
136 |
+++ /dev/null |
137 |
@@ -1,41 +0,0 @@ |
138 |
-#!/sbin/runscript |
139 |
-# Copyright 1999-2015 Gentoo Foundation |
140 |
-# Distributed under the terms of the GNU General Public License v2 |
141 |
-# $Id$ |
142 |
- |
143 |
-extra_started_commands="reload reopen" |
144 |
- |
145 |
-: ${ULOGD_BINARY:=/usr/sbin/ulogd} |
146 |
-: ${ULOGD_PIDFILE:=/run/${SVCNAME}.pid} |
147 |
-: ${ULOGD_OPTS:=--daemon --uid ulogd --pidfile ${ULOGD_PIDFILE}} |
148 |
- |
149 |
-depend() { |
150 |
- before iptables ip6tables ebtables firewall |
151 |
- after mysql postgresql |
152 |
-} |
153 |
- |
154 |
-start() { |
155 |
- ebegin "Starting ${SVCNAME}" |
156 |
- start-stop-daemon --start \ |
157 |
- --exec ${ULOGD_BINARY} --pidfile ${ULOGD_PIDFILE} \ |
158 |
- -- ${ULOGD_OPTS} |
159 |
- eend $? |
160 |
-} |
161 |
- |
162 |
-stop() { |
163 |
- ebegin "Stopping ${SVCNAME}" |
164 |
- start-stop-daemon --stop --pidfile ${ULOGD_PIDFILE} |
165 |
- eend $? |
166 |
-} |
167 |
- |
168 |
-reload() { |
169 |
- ebegin "Reloading ${SVCNAME} configuration" |
170 |
- start-stop-daemon --signal USR1 --pidfile ${ULOGD_PIDFILE} |
171 |
- eend $? |
172 |
-} |
173 |
- |
174 |
-reopen() { |
175 |
- ebegin "Reopening ${SVCNAME} logfiles" |
176 |
- start-stop-daemon --signal HUP --pidfile ${ULOGD_PIDFILE} |
177 |
- eend $? |
178 |
-} |
179 |
|
180 |
diff --git a/app-admin/ulogd/files/ulogd.service b/app-admin/ulogd/files/ulogd.service |
181 |
deleted file mode 100644 |
182 |
index ec22db0..0000000 |
183 |
--- a/app-admin/ulogd/files/ulogd.service |
184 |
+++ /dev/null |
185 |
@@ -1,13 +0,0 @@ |
186 |
-[Unit] |
187 |
-Description=A userspace logging daemon for netfilter/iptables related logging |
188 |
-Before=iptables.service ip6tables.service |
189 |
-After=mysql.service postgresql.service |
190 |
- |
191 |
-[Service] |
192 |
-Type=forking |
193 |
-PIDFile=/run/ulogd.pid |
194 |
-ExecStart=/usr/sbin/ulogd --daemon --uid ulogd --pidfile /run/ulogd.pid |
195 |
-ExecReload=/bin/kill -USR1 $MAINPID |
196 |
- |
197 |
-[Install] |
198 |
-WantedBy=network.target |
199 |
|
200 |
diff --git a/app-admin/ulogd/ulogd-2.0.4-r1.ebuild b/app-admin/ulogd/ulogd-2.0.4-r1.ebuild |
201 |
deleted file mode 100644 |
202 |
index a49fa02..0000000 |
203 |
--- a/app-admin/ulogd/ulogd-2.0.4-r1.ebuild |
204 |
+++ /dev/null |
205 |
@@ -1,140 +0,0 @@ |
206 |
-# Copyright 1999-2015 Gentoo Foundation |
207 |
-# Distributed under the terms of the GNU General Public License v2 |
208 |
-# $Id$ |
209 |
- |
210 |
-EAPI="5" |
211 |
- |
212 |
-AUTOTOOLS_AUTORECONF=1 |
213 |
-AUTOTOOLS_IN_SOURCE_BUILD=1 |
214 |
-inherit autotools-utils eutils linux-info readme.gentoo systemd user |
215 |
- |
216 |
-DESCRIPTION="A userspace logging daemon for netfilter/iptables related logging" |
217 |
-HOMEPAGE="http://netfilter.org/projects/ulogd/index.html" |
218 |
-SRC_URI="ftp://ftp.netfilter.org/pub/${PN}/${P}.tar.bz2 |
219 |
- http://www.netfilter.org/projects/${PN}/files/${P}.tar.bz2" |
220 |
- |
221 |
-LICENSE="GPL-2" |
222 |
-SLOT="0" |
223 |
-KEYWORDS="amd64 ~ia64 ppc x86" |
224 |
-IUSE="dbi doc json mysql nfacct +nfct +nflog pcap postgres sqlite" |
225 |
- |
226 |
-RDEPEND="net-firewall/iptables |
227 |
- >=net-libs/libnfnetlink-1.0.1 |
228 |
- dbi? ( dev-db/libdbi ) |
229 |
- json? ( dev-libs/jansson ) |
230 |
- nfacct? ( |
231 |
- >=net-libs/libmnl-1.0.3 |
232 |
- >=net-libs/libnetfilter_acct-1.0.1 |
233 |
- ) |
234 |
- nfct? ( >=net-libs/libnetfilter_conntrack-1.0.2 ) |
235 |
- nflog? ( >=net-libs/libnetfilter_log-1.0.0 ) |
236 |
- mysql? ( virtual/mysql ) |
237 |
- pcap? ( net-libs/libpcap ) |
238 |
- postgres? ( dev-db/postgresql:= ) |
239 |
- sqlite? ( dev-db/sqlite:3 )" |
240 |
- |
241 |
-DEPEND="${RDEPEND} |
242 |
- doc? ( |
243 |
- app-text/linuxdoc-tools |
244 |
- app-text/texlive-core |
245 |
- virtual/latex-base |
246 |
- )" |
247 |
- |
248 |
-PATCHES=( "${FILESDIR}/${P}-linux-headers-3.17-ipt_ulog.patch" ) |
249 |
- |
250 |
-DOCS=( AUTHORS README TODO ) |
251 |
-DOC_CONTENTS="You must have at least one logging stack enabled to make ulogd work. |
252 |
-Please edit example configuration located at /etc/ulogd.conf" |
253 |
- |
254 |
-pkg_setup() { |
255 |
- enewgroup ulogd |
256 |
- enewuser ulogd -1 -1 /var/log/ulogd ulogd |
257 |
- |
258 |
- linux-info_pkg_setup |
259 |
- |
260 |
- if kernel_is lt 2 6 14; then |
261 |
- die "ulogd2 requires kernel newer than 2.6.14" |
262 |
- fi |
263 |
- |
264 |
- if kernel_is lt 2 6 18; then |
265 |
- ewarn |
266 |
- ewarn "You are using kernel older than 2.6.18" |
267 |
- ewarn "Some ulogd2 features may be unavailable" |
268 |
- ewarn |
269 |
- fi |
270 |
- |
271 |
- if use nfacct && kernel_is lt 3 3 0; then |
272 |
- ewarn "NFACCT input plugin requires kernel newer than 3.3.0" |
273 |
- fi |
274 |
- |
275 |
- if ! use nfacct && ! use nfct && ! use nflog && kernel_is gt 3 17 0; then |
276 |
- ewarn "ULOG target was removed since 3.17.0 kernel release" |
277 |
- ewarn "Consider enabling NFACCT, NFCT or NFLOG support" |
278 |
- fi |
279 |
-} |
280 |
- |
281 |
-src_prepare() { |
282 |
- # - make all logs to be kept in a single dir /var/log/ulogd |
283 |
- # - place sockets in /run instead of /tmp |
284 |
- sed -i \ |
285 |
- -e 's:var/log:var/log/ulogd:g' \ |
286 |
- -e 's:tmp:run:g' \ |
287 |
- ulogd.conf.in || die 'sed on ulogd.conf.in failed' |
288 |
- |
289 |
- autotools-utils_src_prepare |
290 |
-} |
291 |
- |
292 |
-src_configure() { |
293 |
- local myeconfargs=( |
294 |
- $(use_with dbi) |
295 |
- $(use_with json jansson) |
296 |
- $(use_enable nfacct) |
297 |
- $(use_enable nfct) |
298 |
- $(use_enable nflog) |
299 |
- $(use_with mysql) |
300 |
- $(use_with pcap) |
301 |
- $(use_with postgres pgsql) |
302 |
- $(use_with sqlite) |
303 |
- ) |
304 |
- autotools-utils_src_configure |
305 |
-} |
306 |
- |
307 |
-src_compile() { |
308 |
- autotools-utils_src_compile |
309 |
- |
310 |
- if use doc; then |
311 |
- # prevent access violations from generation of bitmap font files |
312 |
- export VARTEXFONTS="${T}"/fonts |
313 |
- emake -C doc |
314 |
- fi |
315 |
-} |
316 |
- |
317 |
-src_install() { |
318 |
- autotools-utils_src_install |
319 |
- readme.gentoo_create_doc |
320 |
- prune_libtool_files --modules |
321 |
- |
322 |
- if use doc; then |
323 |
- dohtml doc/${PN}.html |
324 |
- dodoc doc/${PN}.dvi doc/${PN}.txt doc/${PN}.ps |
325 |
- fi |
326 |
- |
327 |
- use sqlite && dodoc doc/sqlite3.table |
328 |
- use mysql && dodoc doc/mysql-*.sql |
329 |
- use postgres && dodoc doc/pgsql-*.sql |
330 |
- doman ${PN}.8 |
331 |
- |
332 |
- insinto /etc |
333 |
- doins ${PN}.conf |
334 |
- fowners root:ulogd /etc/ulogd.conf |
335 |
- fperms 640 /etc/ulogd.conf |
336 |
- |
337 |
- newinitd "${FILESDIR}/${PN}.init" ${PN} |
338 |
- systemd_dounit "${FILESDIR}/${PN}.service" |
339 |
- |
340 |
- insinto /etc/logrotate.d |
341 |
- newins "${FILESDIR}/${PN}.logrotate" ${PN} |
342 |
- |
343 |
- diropts -o ulogd -g ulogd |
344 |
- keepdir /var/log/ulogd |
345 |
-} |