1 |
commit: e037557258dfb9b46cc2c279bb4aba08d0bf7a3d |
2 |
Author: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Aug 1 17:45:03 2016 +0000 |
4 |
Commit: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Aug 1 17:45:46 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e0375572 |
7 |
|
8 |
net-analyzer/flow-tools: import initd fix from infra. |
9 |
|
10 |
Package-Manager: portage-2.2.28 |
11 |
|
12 |
net-analyzer/flow-tools/files/flowcapture.initd | 2 +- |
13 |
.../flow-tools/flow-tools-0.68.5.1-r7.ebuild | 75 ---------------------- |
14 |
.../flow-tools/flow-tools-0.68.5.1-r8.ebuild | 75 ---------------------- |
15 |
...5.1-r6.ebuild => flow-tools-0.68.5.1-r9.ebuild} | 0 |
16 |
4 files changed, 1 insertion(+), 151 deletions(-) |
17 |
|
18 |
diff --git a/net-analyzer/flow-tools/files/flowcapture.initd b/net-analyzer/flow-tools/files/flowcapture.initd |
19 |
index a31ed5e..c6fc347 100644 |
20 |
--- a/net-analyzer/flow-tools/files/flowcapture.initd |
21 |
+++ b/net-analyzer/flow-tools/files/flowcapture.initd |
22 |
@@ -7,7 +7,7 @@ PORT=${PORT:=2055} |
23 |
# It may have multiple children by original design, but this is not recommended |
24 |
# for Gentoo at this time. |
25 |
PIDFILE_BASE=${PIDFILE_BASE:=/run/flows/flowcapture.pid} |
26 |
-PIDFILE=${PIDFILE:=${PIDFILE}.${PORT}} |
27 |
+PIDFILE=${PIDFILE:=${PIDFILE_BASE}.${PORT}} |
28 |
|
29 |
depend() { |
30 |
use net |
31 |
|
32 |
diff --git a/net-analyzer/flow-tools/flow-tools-0.68.5.1-r7.ebuild b/net-analyzer/flow-tools/flow-tools-0.68.5.1-r7.ebuild |
33 |
deleted file mode 100644 |
34 |
index 087e3c9..0000000 |
35 |
--- a/net-analyzer/flow-tools/flow-tools-0.68.5.1-r7.ebuild |
36 |
+++ /dev/null |
37 |
@@ -1,75 +0,0 @@ |
38 |
-# Copyright 1999-2016 Gentoo Foundation |
39 |
-# Distributed under the terms of the GNU General Public License v2 |
40 |
-# $Id$ |
41 |
- |
42 |
-EAPI=5 |
43 |
-inherit eutils user |
44 |
- |
45 |
-DESCRIPTION="library and programs to process reports from NetFlow data" |
46 |
-HOMEPAGE="https://code.google.com/p/flow-tools/" |
47 |
-SRC_URI="https://${PN}.googlecode.com/files/${P}.tar.bz2" |
48 |
- |
49 |
-LICENSE="BSD GPL-2" |
50 |
-SLOT="0" |
51 |
-KEYWORDS="~amd64 ~ppc ~x86" |
52 |
-IUSE="debug libressl mysql postgres ssl static-libs" |
53 |
- |
54 |
-RDEPEND="sys-apps/tcp-wrappers |
55 |
- sys-libs/zlib |
56 |
- mysql? ( virtual/mysql ) |
57 |
- postgres? ( dev-db/postgresql:* ) |
58 |
- ssl? ( |
59 |
- !libressl? ( dev-libs/openssl:0= ) |
60 |
- libressl? ( dev-libs/libressl:0= ) |
61 |
- )" |
62 |
- |
63 |
-DEPEND="${RDEPEND} |
64 |
- sys-devel/flex |
65 |
- sys-devel/bison" |
66 |
- |
67 |
-DOCS=( ChangeLog README SECURITY TODO ) |
68 |
- |
69 |
-pkg_setup() { |
70 |
- enewgroup flows |
71 |
- enewuser flows -1 -1 /var/lib/flows flows |
72 |
-} |
73 |
- |
74 |
-src_prepare() { |
75 |
- epatch "${FILESDIR}"/${P}-run.patch |
76 |
- epatch "${FILESDIR}"/${P}-syslog.patch |
77 |
-} |
78 |
- |
79 |
-src_configure() { |
80 |
- econf \ |
81 |
- $(use_enable static-libs static) \ |
82 |
- $(usex mysql --with-mysql '') \ |
83 |
- $(usex postgres --with-postgresql=yes --with-postgresql=no) \ |
84 |
- $(usex ssl --with-openssl '') \ |
85 |
- --sysconfdir=/etc/flow-tools |
86 |
-} |
87 |
- |
88 |
-src_install() { |
89 |
- default |
90 |
- |
91 |
- prune_libtool_files |
92 |
- |
93 |
- exeinto /var/lib/flows/bin |
94 |
- doexe "${FILESDIR}"/linkme |
95 |
- |
96 |
- keepdir /var/lib/flows/ft |
97 |
- |
98 |
- newinitd "${FILESDIR}/flowcapture.initd" flowcapture |
99 |
- newconfd "${FILESDIR}/flowcapture.confd" flowcapture |
100 |
- |
101 |
- fowners flows:flows /var/lib/flows |
102 |
- fowners flows:flows /var/lib/flows/bin |
103 |
- fowners flows:flows /var/lib/flows/ft |
104 |
- |
105 |
- fperms 0755 /var/lib/flows |
106 |
- fperms 0755 /var/lib/flows/bin |
107 |
-} |
108 |
- |
109 |
-pkg_preinst() { |
110 |
- enewgroup flows |
111 |
- enewuser flows -1 -1 /var/lib/flows flows |
112 |
-} |
113 |
|
114 |
diff --git a/net-analyzer/flow-tools/flow-tools-0.68.5.1-r8.ebuild b/net-analyzer/flow-tools/flow-tools-0.68.5.1-r8.ebuild |
115 |
deleted file mode 100644 |
116 |
index 087e3c9..0000000 |
117 |
--- a/net-analyzer/flow-tools/flow-tools-0.68.5.1-r8.ebuild |
118 |
+++ /dev/null |
119 |
@@ -1,75 +0,0 @@ |
120 |
-# Copyright 1999-2016 Gentoo Foundation |
121 |
-# Distributed under the terms of the GNU General Public License v2 |
122 |
-# $Id$ |
123 |
- |
124 |
-EAPI=5 |
125 |
-inherit eutils user |
126 |
- |
127 |
-DESCRIPTION="library and programs to process reports from NetFlow data" |
128 |
-HOMEPAGE="https://code.google.com/p/flow-tools/" |
129 |
-SRC_URI="https://${PN}.googlecode.com/files/${P}.tar.bz2" |
130 |
- |
131 |
-LICENSE="BSD GPL-2" |
132 |
-SLOT="0" |
133 |
-KEYWORDS="~amd64 ~ppc ~x86" |
134 |
-IUSE="debug libressl mysql postgres ssl static-libs" |
135 |
- |
136 |
-RDEPEND="sys-apps/tcp-wrappers |
137 |
- sys-libs/zlib |
138 |
- mysql? ( virtual/mysql ) |
139 |
- postgres? ( dev-db/postgresql:* ) |
140 |
- ssl? ( |
141 |
- !libressl? ( dev-libs/openssl:0= ) |
142 |
- libressl? ( dev-libs/libressl:0= ) |
143 |
- )" |
144 |
- |
145 |
-DEPEND="${RDEPEND} |
146 |
- sys-devel/flex |
147 |
- sys-devel/bison" |
148 |
- |
149 |
-DOCS=( ChangeLog README SECURITY TODO ) |
150 |
- |
151 |
-pkg_setup() { |
152 |
- enewgroup flows |
153 |
- enewuser flows -1 -1 /var/lib/flows flows |
154 |
-} |
155 |
- |
156 |
-src_prepare() { |
157 |
- epatch "${FILESDIR}"/${P}-run.patch |
158 |
- epatch "${FILESDIR}"/${P}-syslog.patch |
159 |
-} |
160 |
- |
161 |
-src_configure() { |
162 |
- econf \ |
163 |
- $(use_enable static-libs static) \ |
164 |
- $(usex mysql --with-mysql '') \ |
165 |
- $(usex postgres --with-postgresql=yes --with-postgresql=no) \ |
166 |
- $(usex ssl --with-openssl '') \ |
167 |
- --sysconfdir=/etc/flow-tools |
168 |
-} |
169 |
- |
170 |
-src_install() { |
171 |
- default |
172 |
- |
173 |
- prune_libtool_files |
174 |
- |
175 |
- exeinto /var/lib/flows/bin |
176 |
- doexe "${FILESDIR}"/linkme |
177 |
- |
178 |
- keepdir /var/lib/flows/ft |
179 |
- |
180 |
- newinitd "${FILESDIR}/flowcapture.initd" flowcapture |
181 |
- newconfd "${FILESDIR}/flowcapture.confd" flowcapture |
182 |
- |
183 |
- fowners flows:flows /var/lib/flows |
184 |
- fowners flows:flows /var/lib/flows/bin |
185 |
- fowners flows:flows /var/lib/flows/ft |
186 |
- |
187 |
- fperms 0755 /var/lib/flows |
188 |
- fperms 0755 /var/lib/flows/bin |
189 |
-} |
190 |
- |
191 |
-pkg_preinst() { |
192 |
- enewgroup flows |
193 |
- enewuser flows -1 -1 /var/lib/flows flows |
194 |
-} |
195 |
|
196 |
diff --git a/net-analyzer/flow-tools/flow-tools-0.68.5.1-r6.ebuild b/net-analyzer/flow-tools/flow-tools-0.68.5.1-r9.ebuild |
197 |
similarity index 100% |
198 |
rename from net-analyzer/flow-tools/flow-tools-0.68.5.1-r6.ebuild |
199 |
rename to net-analyzer/flow-tools/flow-tools-0.68.5.1-r9.ebuild |