1 |
commit: c6f6b1d4e814bb3d7c65145221ced506faf0d899 |
2 |
Author: Patrice Clement <monsieurp <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Sep 28 07:51:47 2015 +0000 |
4 |
Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Sep 28 07:53:49 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c6f6b1d4 |
7 |
|
8 |
app-admin/ulogd: Restore ebuild and Manifest entry from previous clean up. |
9 |
|
10 |
Package-Manager: portage-2.2.18 |
11 |
RepoMan-Options: --force |
12 |
Signed-off-by: Patrice Clement <monsieurp <AT> gentoo.org> |
13 |
|
14 |
app-admin/ulogd/Manifest | 1 + |
15 |
app-admin/ulogd/ulogd-2.0.4-r1.ebuild | 140 ++++++++++++++++++++++++++++++++++ |
16 |
2 files changed, 141 insertions(+) |
17 |
|
18 |
diff --git a/app-admin/ulogd/Manifest b/app-admin/ulogd/Manifest |
19 |
index d969037..8392508 100644 |
20 |
--- a/app-admin/ulogd/Manifest |
21 |
+++ b/app-admin/ulogd/Manifest |
22 |
@@ -1 +1,2 @@ |
23 |
+DIST ulogd-2.0.4.tar.bz2 452234 SHA256 56b30a13a8832e97178f39b7bb173a0b1dfe173dbb60d99a1a386c0962a2effd SHA512 08e88661fcfbcfd327b03b7a883dc239991f47d5a4e4561f3ada5f6acc8f2349f3bd38c1c67f28e42bbccf4cad63b2b7c3b732c23bf24b7c5f05320d27977773 WHIRLPOOL 94ee731cee8b95295d1c675bb3904be1a5b27a1e901d462f248116c865e79d52703b5330882110d7212bda1bb964fc0c97c3e704589071f47fab4475e1c91161 |
24 |
DIST ulogd-2.0.5.tar.bz2 456258 SHA256 a221cb9f77347c0ca00d0937e27c1b90e3291a553cc62a4139b788e2e420e8c0 SHA512 bf00b8adaad7bd04077a83521b0d7accc26e644c8f3386819e7f91476178b6733f1c6554fb82dd0d3913398c83a61d65f61dc973f199f610bfaadc6251504819 WHIRLPOOL fe499ac7b4070581439a05f4f2245f7a42fe5630da5dc32b9b069511ed1faa15fe482eee08d50477d3fb1d0bf0d3855a69fc82fb0f3e8eecdf082fb642519f91 |
25 |
|
26 |
diff --git a/app-admin/ulogd/ulogd-2.0.4-r1.ebuild b/app-admin/ulogd/ulogd-2.0.4-r1.ebuild |
27 |
new file mode 100644 |
28 |
index 0000000..a49fa02 |
29 |
--- /dev/null |
30 |
+++ b/app-admin/ulogd/ulogd-2.0.4-r1.ebuild |
31 |
@@ -0,0 +1,140 @@ |
32 |
+# Copyright 1999-2015 Gentoo Foundation |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+# $Id$ |
35 |
+ |
36 |
+EAPI="5" |
37 |
+ |
38 |
+AUTOTOOLS_AUTORECONF=1 |
39 |
+AUTOTOOLS_IN_SOURCE_BUILD=1 |
40 |
+inherit autotools-utils eutils linux-info readme.gentoo systemd user |
41 |
+ |
42 |
+DESCRIPTION="A userspace logging daemon for netfilter/iptables related logging" |
43 |
+HOMEPAGE="http://netfilter.org/projects/ulogd/index.html" |
44 |
+SRC_URI="ftp://ftp.netfilter.org/pub/${PN}/${P}.tar.bz2 |
45 |
+ http://www.netfilter.org/projects/${PN}/files/${P}.tar.bz2" |
46 |
+ |
47 |
+LICENSE="GPL-2" |
48 |
+SLOT="0" |
49 |
+KEYWORDS="amd64 ~ia64 ppc x86" |
50 |
+IUSE="dbi doc json mysql nfacct +nfct +nflog pcap postgres sqlite" |
51 |
+ |
52 |
+RDEPEND="net-firewall/iptables |
53 |
+ >=net-libs/libnfnetlink-1.0.1 |
54 |
+ dbi? ( dev-db/libdbi ) |
55 |
+ json? ( dev-libs/jansson ) |
56 |
+ nfacct? ( |
57 |
+ >=net-libs/libmnl-1.0.3 |
58 |
+ >=net-libs/libnetfilter_acct-1.0.1 |
59 |
+ ) |
60 |
+ nfct? ( >=net-libs/libnetfilter_conntrack-1.0.2 ) |
61 |
+ nflog? ( >=net-libs/libnetfilter_log-1.0.0 ) |
62 |
+ mysql? ( virtual/mysql ) |
63 |
+ pcap? ( net-libs/libpcap ) |
64 |
+ postgres? ( dev-db/postgresql:= ) |
65 |
+ sqlite? ( dev-db/sqlite:3 )" |
66 |
+ |
67 |
+DEPEND="${RDEPEND} |
68 |
+ doc? ( |
69 |
+ app-text/linuxdoc-tools |
70 |
+ app-text/texlive-core |
71 |
+ virtual/latex-base |
72 |
+ )" |
73 |
+ |
74 |
+PATCHES=( "${FILESDIR}/${P}-linux-headers-3.17-ipt_ulog.patch" ) |
75 |
+ |
76 |
+DOCS=( AUTHORS README TODO ) |
77 |
+DOC_CONTENTS="You must have at least one logging stack enabled to make ulogd work. |
78 |
+Please edit example configuration located at /etc/ulogd.conf" |
79 |
+ |
80 |
+pkg_setup() { |
81 |
+ enewgroup ulogd |
82 |
+ enewuser ulogd -1 -1 /var/log/ulogd ulogd |
83 |
+ |
84 |
+ linux-info_pkg_setup |
85 |
+ |
86 |
+ if kernel_is lt 2 6 14; then |
87 |
+ die "ulogd2 requires kernel newer than 2.6.14" |
88 |
+ fi |
89 |
+ |
90 |
+ if kernel_is lt 2 6 18; then |
91 |
+ ewarn |
92 |
+ ewarn "You are using kernel older than 2.6.18" |
93 |
+ ewarn "Some ulogd2 features may be unavailable" |
94 |
+ ewarn |
95 |
+ fi |
96 |
+ |
97 |
+ if use nfacct && kernel_is lt 3 3 0; then |
98 |
+ ewarn "NFACCT input plugin requires kernel newer than 3.3.0" |
99 |
+ fi |
100 |
+ |
101 |
+ if ! use nfacct && ! use nfct && ! use nflog && kernel_is gt 3 17 0; then |
102 |
+ ewarn "ULOG target was removed since 3.17.0 kernel release" |
103 |
+ ewarn "Consider enabling NFACCT, NFCT or NFLOG support" |
104 |
+ fi |
105 |
+} |
106 |
+ |
107 |
+src_prepare() { |
108 |
+ # - make all logs to be kept in a single dir /var/log/ulogd |
109 |
+ # - place sockets in /run instead of /tmp |
110 |
+ sed -i \ |
111 |
+ -e 's:var/log:var/log/ulogd:g' \ |
112 |
+ -e 's:tmp:run:g' \ |
113 |
+ ulogd.conf.in || die 'sed on ulogd.conf.in failed' |
114 |
+ |
115 |
+ autotools-utils_src_prepare |
116 |
+} |
117 |
+ |
118 |
+src_configure() { |
119 |
+ local myeconfargs=( |
120 |
+ $(use_with dbi) |
121 |
+ $(use_with json jansson) |
122 |
+ $(use_enable nfacct) |
123 |
+ $(use_enable nfct) |
124 |
+ $(use_enable nflog) |
125 |
+ $(use_with mysql) |
126 |
+ $(use_with pcap) |
127 |
+ $(use_with postgres pgsql) |
128 |
+ $(use_with sqlite) |
129 |
+ ) |
130 |
+ autotools-utils_src_configure |
131 |
+} |
132 |
+ |
133 |
+src_compile() { |
134 |
+ autotools-utils_src_compile |
135 |
+ |
136 |
+ if use doc; then |
137 |
+ # prevent access violations from generation of bitmap font files |
138 |
+ export VARTEXFONTS="${T}"/fonts |
139 |
+ emake -C doc |
140 |
+ fi |
141 |
+} |
142 |
+ |
143 |
+src_install() { |
144 |
+ autotools-utils_src_install |
145 |
+ readme.gentoo_create_doc |
146 |
+ prune_libtool_files --modules |
147 |
+ |
148 |
+ if use doc; then |
149 |
+ dohtml doc/${PN}.html |
150 |
+ dodoc doc/${PN}.dvi doc/${PN}.txt doc/${PN}.ps |
151 |
+ fi |
152 |
+ |
153 |
+ use sqlite && dodoc doc/sqlite3.table |
154 |
+ use mysql && dodoc doc/mysql-*.sql |
155 |
+ use postgres && dodoc doc/pgsql-*.sql |
156 |
+ doman ${PN}.8 |
157 |
+ |
158 |
+ insinto /etc |
159 |
+ doins ${PN}.conf |
160 |
+ fowners root:ulogd /etc/ulogd.conf |
161 |
+ fperms 640 /etc/ulogd.conf |
162 |
+ |
163 |
+ newinitd "${FILESDIR}/${PN}.init" ${PN} |
164 |
+ systemd_dounit "${FILESDIR}/${PN}.service" |
165 |
+ |
166 |
+ insinto /etc/logrotate.d |
167 |
+ newins "${FILESDIR}/${PN}.logrotate" ${PN} |
168 |
+ |
169 |
+ diropts -o ulogd -g ulogd |
170 |
+ keepdir /var/log/ulogd |
171 |
+} |