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