Gentoo Archives: gentoo-commits

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