1 |
commit: d60e08d0405c0c937588d46885205dc30893b796 |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon May 3 20:18:39 2021 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon May 3 20:59:09 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d60e08d0 |
7 |
|
8 |
app-admin/ulogd: Drop 2.0.7-r1, EAPI6-- |
9 |
|
10 |
Package-Manager: Portage-3.0.18, Repoman-3.0.3 |
11 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
12 |
|
13 |
app-admin/ulogd/ulogd-2.0.7-r1.ebuild | 137 ---------------------------------- |
14 |
1 file changed, 137 deletions(-) |
15 |
|
16 |
diff --git a/app-admin/ulogd/ulogd-2.0.7-r1.ebuild b/app-admin/ulogd/ulogd-2.0.7-r1.ebuild |
17 |
deleted file mode 100644 |
18 |
index 073eac95b56..00000000000 |
19 |
--- a/app-admin/ulogd/ulogd-2.0.7-r1.ebuild |
20 |
+++ /dev/null |
21 |
@@ -1,137 +0,0 @@ |
22 |
-# Copyright 1999-2018 Gentoo Authors |
23 |
-# Distributed under the terms of the GNU General Public License v2 |
24 |
- |
25 |
-EAPI=6 |
26 |
- |
27 |
-inherit flag-o-matic linux-info readme.gentoo-r1 systemd user |
28 |
- |
29 |
-DESCRIPTION="A userspace logging daemon for netfilter/iptables related logging" |
30 |
-HOMEPAGE="https://netfilter.org/projects/ulogd/index.html" |
31 |
-SRC_URI="https://www.netfilter.org/projects/ulogd/files/${P}.tar.bz2" |
32 |
- |
33 |
-LICENSE="GPL-2" |
34 |
-SLOT="0" |
35 |
-KEYWORDS="amd64 ~ia64 ppc x86" |
36 |
-IUSE="dbi doc json mysql nfacct +nfct +nflog pcap postgres selinux sqlite ulog" |
37 |
- |
38 |
-COMMON_DEPEND=" |
39 |
- || ( net-firewall/iptables net-firewall/nftables ) |
40 |
- >=net-libs/libnfnetlink-1.0.1 |
41 |
- dbi? ( dev-db/libdbi ) |
42 |
- json? ( dev-libs/jansson ) |
43 |
- nfacct? ( |
44 |
- >=net-libs/libmnl-1.0.3 |
45 |
- >=net-libs/libnetfilter_acct-1.0.1 |
46 |
- ) |
47 |
- nfct? ( >=net-libs/libnetfilter_conntrack-1.0.2 ) |
48 |
- nflog? ( >=net-libs/libnetfilter_log-1.0.0 ) |
49 |
- mysql? ( dev-db/mysql-connector-c:= ) |
50 |
- pcap? ( net-libs/libpcap ) |
51 |
- postgres? ( dev-db/postgresql:= ) |
52 |
- sqlite? ( dev-db/sqlite:3 ) |
53 |
-" |
54 |
-DEPEND="${COMMON_DEPEND} |
55 |
- doc? ( |
56 |
- app-text/linuxdoc-tools |
57 |
- app-text/texlive-core |
58 |
- dev-texlive/texlive-fontsrecommended |
59 |
- virtual/latex-base |
60 |
- ) |
61 |
-" |
62 |
-RDEPEND="${COMMON_DEPEND} |
63 |
- selinux? ( sec-policy/selinux-ulogd ) |
64 |
-" |
65 |
- |
66 |
-DISABLE_AUTOFORMATTING=1 |
67 |
-DOC_CONTENTS=" |
68 |
-You must have at least one logging stack enabled to make ulogd work. |
69 |
-Please edit the example configuration located at '${EPREFIX}/etc/ulogd.conf'. |
70 |
-" |
71 |
- |
72 |
-pkg_setup() { |
73 |
- linux-info_pkg_setup |
74 |
- |
75 |
- if use nfacct && kernel_is lt 3 3 0; then |
76 |
- ewarn "NFACCT input plugin requires a kernel >= 3.3." |
77 |
- fi |
78 |
- |
79 |
- if use ulog && kernel_is ge 3 17 0; then |
80 |
- ewarn "ULOG target has been removed in the 3.17 kernel release." |
81 |
- ewarn "Consider enabling NFACCT, NFCT, or NFLOG support instead." |
82 |
- fi |
83 |
- |
84 |
- enewgroup ulogd |
85 |
- enewuser ulogd -1 -1 /var/log/ulogd ulogd |
86 |
-} |
87 |
- |
88 |
-src_prepare() { |
89 |
- default_src_prepare |
90 |
- |
91 |
- # Change default settings to: |
92 |
- # - keep log files in /var/log/ulogd instead of /var/log; |
93 |
- # - create sockets in /run instead of /tmp. |
94 |
- sed -i \ |
95 |
- -e "s|var/log|var/log/${PN}|g" \ |
96 |
- -e 's|tmp|run|g' \ |
97 |
- ulogd.conf.in || die |
98 |
-} |
99 |
- |
100 |
-src_configure() { |
101 |
- append-lfs-flags |
102 |
- local myeconfargs=( |
103 |
- $(use_with dbi) |
104 |
- $(use_with json jansson) |
105 |
- $(use_enable nfacct) |
106 |
- $(use_enable nfct) |
107 |
- $(use_enable nflog) |
108 |
- $(use_with mysql) |
109 |
- $(use_with pcap) |
110 |
- $(use_with postgres pgsql) |
111 |
- $(use_with sqlite) |
112 |
- $(use_enable ulog) |
113 |
- ) |
114 |
- econf "${myeconfargs[@]}" |
115 |
-} |
116 |
- |
117 |
-src_compile() { |
118 |
- default_src_compile |
119 |
- |
120 |
- if use doc; then |
121 |
- # Prevent access violations from bitmap font files generation. |
122 |
- export VARTEXFONTS="${T}/fonts" |
123 |
- emake -C doc |
124 |
- fi |
125 |
-} |
126 |
- |
127 |
-src_install() { |
128 |
- use doc && HTML_DOCS=( doc/${PN}.html ) |
129 |
- |
130 |
- default_src_install |
131 |
- find "${D}" -name '*.la' -delete || die |
132 |
- |
133 |
- readme.gentoo_create_doc |
134 |
- doman ${PN}.8 |
135 |
- |
136 |
- use doc && dodoc doc/${PN}.{dvi,ps,txt} |
137 |
- use mysql && dodoc doc/mysql-*.sql |
138 |
- use postgres && dodoc doc/pgsql-*.sql |
139 |
- use sqlite && dodoc doc/sqlite3.table |
140 |
- |
141 |
- insinto /etc |
142 |
- doins ${PN}.conf |
143 |
- fowners root:ulogd /etc/${PN}.conf |
144 |
- fperms 640 /etc/${PN}.conf |
145 |
- |
146 |
- newinitd "${FILESDIR}/${PN}.init" ${PN} |
147 |
- systemd_dounit "${FILESDIR}/${PN}.service" |
148 |
- |
149 |
- insinto /etc/logrotate.d |
150 |
- newins "${FILESDIR}/${PN}.logrotate" ${PN} |
151 |
- |
152 |
- diropts -o ulogd -g ulogd |
153 |
- keepdir /var/log/ulogd |
154 |
-} |
155 |
- |
156 |
-pkg_postinst() { |
157 |
- readme.gentoo_print_elog |
158 |
-} |