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: Mon, 02 Jan 2017 09:59:44
Message-Id: 1483351172.e4579116e428c6ccefc939d5444afc182ba872a9.monsieurp@gentoo
1 commit: e4579116e428c6ccefc939d5444afc182ba872a9
2 Author: Ilya Tumaykin <itumaykin <AT> gmail <DOT> com>
3 AuthorDate: Sun Jan 1 14:26:02 2017 +0000
4 Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
5 CommitDate: Mon Jan 2 09:59:32 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e4579116
7
8 app-admin/ulogd: remove old.
9
10 Package-Manager: Portage-2.3.3, Repoman-2.3.1
11
12 Closes: https://github.com/gentoo/gentoo/pull/3296
13
14 app-admin/ulogd/Manifest | 1 -
15 app-admin/ulogd/ulogd-2.0.5_p20160205.ebuild | 144 ---------------------------
16 2 files changed, 145 deletions(-)
17
18 diff --git a/app-admin/ulogd/Manifest b/app-admin/ulogd/Manifest
19 index ae5cbe1..3a4d805 100644
20 --- a/app-admin/ulogd/Manifest
21 +++ b/app-admin/ulogd/Manifest
22 @@ -1,2 +1 @@
23 -DIST ulogd-2.0.5_p20160205.tar.gz 137899 SHA256 d6ece155270aaaea2f78740c00ae679f04e42fd90b4b7c2f342c2dddeb414ee4 SHA512 99c824fcb404f2f4d7b1bd4d8c9231a1a61121f9ae88901d8d30b33172c1f24e44abd37c30ea71722078b543b58c57a6bc99d64e2a655a5af73fe6edf37c72ab WHIRLPOOL 5c3013fc0b0b8d9209d69aac2b25255c9067167ae3c66a73a36f0ee391dc1b6b482f36b786aa57f361c19d5d26da99ab376c3093c460bc02f3764276e0e7f77a
24 DIST ulogd-2.0.5_p20161017.tar.gz 137936 SHA256 07798bbf17ab5fc6111ab7296c0c74778da231cb66fb7e8f38b09ccfc8d3e812 SHA512 b9a3f5323766856fc20d58a6c55f9bc955f50e9d7052df0828ca08bf9d573326e69920f6c90c9d3e877c4dc1a29a5a994cde070bd0834fbf4dee8eebbb251e98 WHIRLPOOL 92931a8248b1c03134f37746c68ad7c389deaec74774a93b78e9548ad42df2b8c027dd698f4498741a81d930dc7f311aa9ddb4e8d14de5f7dcfb6daeb7fe34f6
25
26 diff --git a/app-admin/ulogd/ulogd-2.0.5_p20160205.ebuild b/app-admin/ulogd/ulogd-2.0.5_p20160205.ebuild
27 deleted file mode 100644
28 index 24c86f6..00000000
29 --- a/app-admin/ulogd/ulogd-2.0.5_p20160205.ebuild
30 +++ /dev/null
31 @@ -1,144 +0,0 @@
32 -# Copyright 1999-2016 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 -COMMIT_ID="a82d9cfe03679b82ab4d9586c93ad377e9e27149"
40 -
41 -inherit autotools-utils eutils flag-o-matic linux-info readme.gentoo-r1 systemd user vcs-snapshot
42 -
43 -DESCRIPTION="A userspace logging daemon for netfilter/iptables related logging"
44 -HOMEPAGE="https://netfilter.org/projects/ulogd/index.html"
45 -SRC_URI="http://git.netfilter.org/${PN}2/snapshot/${COMMIT_ID}.tar.gz -> ${P}.tar.gz"
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 -ulog"
51 -
52 -RDEPEND="
53 - || ( net-firewall/iptables net-firewall/nftables )
54 - >=net-libs/libnfnetlink-1.0.1
55 - dbi? ( dev-db/libdbi )
56 - json? ( dev-libs/jansson )
57 - nfacct? (
58 - >=net-libs/libmnl-1.0.3
59 - >=net-libs/libnetfilter_acct-1.0.1
60 - )
61 - nfct? ( >=net-libs/libnetfilter_conntrack-1.0.2 )
62 - nflog? ( >=net-libs/libnetfilter_log-1.0.0 )
63 - mysql? ( virtual/mysql )
64 - pcap? ( net-libs/libpcap )
65 - postgres? ( dev-db/postgresql:= )
66 - sqlite? ( dev-db/sqlite:3 )
67 -"
68 -DEPEND="${RDEPEND}
69 - doc? (
70 - app-text/linuxdoc-tools
71 - app-text/texlive-core
72 - dev-texlive/texlive-fontsrecommended
73 - virtual/latex-base
74 - )
75 -"
76 -
77 -DOCS=( AUTHORS README TODO )
78 -
79 -DOC_CONTENTS="
80 - You must have at least one logging stack enabled to make ulogd work.
81 - Please edit the example configuration located at /etc/ulogd.conf.
82 -"
83 -
84 -pkg_setup() {
85 - enewgroup ulogd
86 - enewuser ulogd -1 -1 /var/log/ulogd ulogd
87 -
88 - linux-info_pkg_setup
89 -
90 - if kernel_is lt 2 6 14; then
91 - die "${PN} requires a kernel >= 2.6.14."
92 - fi
93 -
94 - if use nfacct && kernel_is lt 3 3 0; then
95 - ewarn "NFACCT input plugin requires a kernel >= 3.3."
96 - fi
97 -
98 - if use ulog && kernel_is ge 3 17 0; then
99 - ewarn "ULOG target has been removed in the 3.17 kernel release."
100 - ewarn "Consider enabling NFACCT, NFCT, or NFLOG support instead."
101 - fi
102 -}
103 -
104 -src_prepare() {
105 - # - make all logs to be kept in a single dir /var/log/ulogd
106 - # - place sockets in /run instead of /tmp
107 - sed -i \
108 - -e "s%var/log%var/log/${PN}%g" \
109 - -e 's%tmp%run%g' \
110 - ulogd.conf.in || die
111 -
112 - append-lfs-flags
113 - autotools-utils_src_prepare
114 -}
115 -
116 -src_configure() {
117 - local myeconfargs=(
118 - $(use_with dbi)
119 - $(use_with json jansson)
120 - $(use_enable nfacct)
121 - $(use_enable nfct)
122 - $(use_enable nflog)
123 - $(use_with mysql)
124 - $(use_with pcap)
125 - $(use_with postgres pgsql)
126 - $(use_with sqlite)
127 - $(use_enable ulog)
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 bitmap font files generation
137 - export VARTEXFONTS="${T}"/fonts
138 - emake -C doc
139 - fi
140 -}
141 -
142 -src_install() {
143 - autotools-utils_src_install
144 - prune_libtool_files --modules
145 - readme.gentoo_create_doc
146 -
147 - if use doc; then
148 - dohtml doc/${PN}.html
149 - dodoc doc/${PN}.{dvi,ps,txt}
150 - fi
151 -
152 - use mysql && dodoc doc/mysql-*.sql
153 - use postgres && dodoc doc/pgsql-*.sql
154 - use sqlite && dodoc doc/sqlite3.table
155 -
156 - doman ${PN}.8
157 -
158 - insinto /etc
159 - doins "${BUILD_DIR}/${PN}.conf"
160 - fowners root:ulogd /etc/${PN}.conf
161 - fperms 640 /etc/${PN}.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 -}
172 -
173 -pkg_postinst() {
174 - readme.gentoo_print_elog
175 -}