Gentoo Archives: gentoo-commits

From: Brian Evans <grknight@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/stargazer/files/patches/, net-misc/stargazer/
Date: Fri, 15 Feb 2019 16:41:53
Message-Id: 1550248839.e39c72b5cc1330aecebe96de08b663e3d6faf47e.grknight@gentoo
1 commit: e39c72b5cc1330aecebe96de08b663e3d6faf47e
2 Author: Vladimir Pavljuchenkov (SpiderX) <spiderx <AT> spiderx <DOT> dp <DOT> ua>
3 AuthorDate: Fri Feb 15 16:39:13 2019 +0000
4 Commit: Brian Evans <grknight <AT> gentoo <DOT> org>
5 CommitDate: Fri Feb 15 16:40:39 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e39c72b5
7
8 net-misc/stargazer: Revbump for several bugs
9
10 The new ebuild is from the maintainer via closed PR 6662.
11 It seemed to be correct but just neglected.
12
13 1. Updated header, moved to EAPI 6, removed multilib eclass.
14 2. Patches were recreated to work with EAPI 6.
15 3. Fixed bug 587104.
16 4. Removed USE flags doc, examples, static-libs.
17 5. metadata.xml cleanup and fix bug #594242
18 6. Ebuild cleanup and fix RDEPEND
19 7. Filter optimization flags in debug build (use flag-o-matic).
20
21 Additional changes by committer for mysql dependency and EAPI 7
22
23 Closes: https://bugs.gentoo.org/587104
24 Closes: https://bugs.gentoo.org/666010
25 Closes: https://bugs.gentoo.org/670438
26 Package-Manager: Portage-2.3.60, Repoman-2.3.12
27 Signed-off-by: Brian Evans <grknight <AT> gentoo.org>
28
29 .../files/patches/stg-2.408-build-upstream.patch | 28 +-
30 .../stargazer/files/patches/stg-2.408-build.patch | 28 +-
31 .../files/patches/stg-2.408-correct-paths.patch | 32 +-
32 .../stg-2.408-makefile-firebird-upstream.patch | 4 +-
33 .../files/patches/stg-2.408-makefile.patch | 48 +-
34 .../files/patches/stg-2.408-on-upstream.patch | 20 +-
35 .../files/patches/stg-2.408-radius-upstream.patch | 4 +-
36 .../patches/stg-2.408-rscriptd-upstream.patch | 4 +-
37 .../patches/stg-2.408-rscriptd.conf-upstream.patch | 4 +-
38 .../patches/stg-2.408-sgauth.conf-upstream.patch | 4 +-
39 .../files/patches/stg-2.408-sgconv-upstream.patch | 12 +-
40 .../files/patches/stg-2.408-static-libs.patch | 4 +-
41 net-misc/stargazer/metadata.xml | 94 ++--
42 net-misc/stargazer/stargazer-2.408-r1.ebuild | 538 ++++++++++++++++++++
43 net-misc/stargazer/stargazer-2.408.ebuild | 558 ---------------------
44 15 files changed, 680 insertions(+), 702 deletions(-)
45
46 diff --git a/net-misc/stargazer/files/patches/stg-2.408-build-upstream.patch b/net-misc/stargazer/files/patches/stg-2.408-build-upstream.patch
47 index c8b73d85a63..6f2c43e7498 100644
48 --- a/net-misc/stargazer/files/patches/stg-2.408-build-upstream.patch
49 +++ b/net-misc/stargazer/files/patches/stg-2.408-build-upstream.patch
50 @@ -1,5 +1,5 @@
51 ---- projects/rlm_stg/build.org 2013-01-15 15:25:59.000000000 +0200
52 -+++ projects/rlm_stg/build 2013-01-15 19:48:13.000000000 +0200
53 +--- a/projects/rlm_stg/build.org 2013-01-15 15:25:59.000000000 +0200
54 ++++ b/projects/rlm_stg/build 2013-01-15 19:48:13.000000000 +0200
55 @@ -16,21 +16,15 @@
56 DIR_MODE=0755
57 OWNER=root
58 @@ -30,8 +30,8 @@
59 fi
60
61 CXXFLAGS="$CXXFLAGS -I/usr/local/include"
62 ---- projects/rscriptd/build.org 2013-01-15 18:28:32.000000000 +0200
63 -+++ projects/rscriptd/build 2013-01-15 18:38:13.000000000 +0200
64 +--- a/projects/rscriptd/build.org 2013-01-15 18:28:32.000000000 +0200
65 ++++ b/projects/rscriptd/build 2013-01-15 18:38:13.000000000 +0200
66 @@ -16,21 +16,15 @@
67 DIR_MODE=0755
68 OWNER=root
69 @@ -61,8 +61,8 @@
70 fi
71
72 CXXFLAGS="$CXXFLAGS -I/usr/local/include"
73 ---- projects/sgauth/build.org 2013-01-15 18:29:20.000000000 +0200
74 -+++ projects/sgauth/build 2013-01-15 18:36:33.000000000 +0200
75 +--- a/projects/sgauth/build.org 2013-01-15 18:29:20.000000000 +0200
76 ++++ b/projects/sgauth/build 2013-01-15 18:36:33.000000000 +0200
77 @@ -16,21 +16,15 @@
78 DIR_MODE=0755
79 OWNER=root
80 @@ -92,8 +92,8 @@
81 fi
82
83 CXXFLAGS="$CXXFLAGS -I/usr/local/include"
84 ---- projects/sgconf/build.org 2013-01-15 18:29:59.000000000 +0200
85 -+++ projects/sgconf/build 2013-01-15 18:35:41.000000000 +0200
86 +--- a/projects/sgconf/build.org 2013-01-15 18:29:59.000000000 +0200
87 ++++ b/projects/sgconf/build 2013-01-15 18:35:41.000000000 +0200
88 @@ -16,21 +16,15 @@
89 DIR_MODE=0755
90 OWNER=root
91 @@ -123,8 +123,8 @@
92 fi
93
94 CXXFLAGS="$CXXFLAGS -I/usr/local/include"
95 ---- projects/sgconf_xml/build.org 2013-01-15 18:30:26.000000000 +0200
96 -+++ projects/sgconf_xml/build 2013-01-15 18:34:53.000000000 +0200
97 +--- a/projects/sgconf_xml/build.org 2013-01-15 18:30:26.000000000 +0200
98 ++++ b/projects/sgconf_xml/build 2013-01-15 18:34:53.000000000 +0200
99 @@ -16,21 +16,15 @@
100 DIR_MODE=0755
101 OWNER=root
102 @@ -154,8 +154,8 @@
103 fi
104
105 CXXFLAGS="$CXXFLAGS -I/usr/local/include"
106 ---- projects/sgconv/build.org 2013-01-15 18:31:01.000000000 +0200
107 -+++ projects/sgconv/build 2013-01-15 18:32:46.000000000 +0200
108 +--- a/projects/sgconv/build.org 2013-01-15 18:31:01.000000000 +0200
109 ++++ b/projects/sgconv/build 2013-01-15 18:32:46.000000000 +0200
110 @@ -16,11 +16,20 @@
111 DIR_MODE=0755
112 OWNER=root
113 @@ -180,8 +180,8 @@
114
115 if [ "$sys" = "Linux" ]
116 then
117 ---- projects/stargazer/build.org 2013-01-15 19:48:54.000000000 +0200
118 -+++ projects/stargazer/build 2013-01-15 19:51:13.000000000 +0200
119 +--- a/projects/stargazer/build.org 2013-01-15 19:48:54.000000000 +0200
120 ++++ b/projects/stargazer/build 2013-01-15 19:51:13.000000000 +0200
121 @@ -35,23 +35,15 @@
122 XMLRPC_FEATURES="c++2 abyss-server"
123
124
125 diff --git a/net-misc/stargazer/files/patches/stg-2.408-build.patch b/net-misc/stargazer/files/patches/stg-2.408-build.patch
126 index 380b4cbe91f..9d42a0487d8 100644
127 --- a/net-misc/stargazer/files/patches/stg-2.408-build.patch
128 +++ b/net-misc/stargazer/files/patches/stg-2.408-build.patch
129 @@ -1,5 +1,5 @@
130 ---- projects/rlm_stg/configure.org 2013-01-18 18:06:17.000000000 +0200
131 -+++ projects/rlm_stg/configure 2013-01-18 18:07:18.000000000 +0200
132 +--- a/projects/rlm_stg/configure.org 2013-01-18 18:06:17.000000000 +0200
133 ++++ b/projects/rlm_stg/configure 2013-01-18 18:07:18.000000000 +0200
134 @@ -34,6 +34,7 @@
135 then
136 OS=linux
137 @@ -24,8 +24,8 @@
138 -
139 +echo "ETC_DIR=$ETC_DIR" >> $CONFFILE
140 \ No newline at end of file
141 ---- projects/rscriptd/configure.org 2013-01-18 18:07:28.000000000 +0200
142 -+++ projects/rscriptd/configure 2013-01-18 18:08:02.000000000 +0200
143 +--- a/projects/rscriptd/configure.org 2013-01-18 18:07:28.000000000 +0200
144 ++++ b/projects/rscriptd/configure 2013-01-18 18:08:02.000000000 +0200
145 @@ -34,6 +34,7 @@
146 then
147 OS=linux
148 @@ -51,8 +51,8 @@
149 -
150 +echo "ETC_DIR=$ETC_DIR" >> $CONFFILE
151 \ No newline at end of file
152 ---- projects/sgauth/configure.org 2013-01-18 18:08:10.000000000 +0200
153 -+++ projects/sgauth/configure 2013-01-18 18:08:38.000000000 +0200
154 +--- a/projects/sgauth/configure.org 2013-01-18 18:08:10.000000000 +0200
155 ++++ b/projects/sgauth/configure 2013-01-18 18:08:38.000000000 +0200
156 @@ -34,6 +34,7 @@
157 then
158 OS=linux
159 @@ -77,8 +77,8 @@
160 -
161 +echo "ETC_DIR=$ETC_DIR" >> $CONFFILE
162 \ No newline at end of file
163 ---- projects/sgconf/configure.org 2013-01-18 18:08:46.000000000 +0200
164 -+++ projects/sgconf/configure 2013-01-18 18:09:44.000000000 +0200
165 +--- a/projects/sgconf/configure.org 2013-01-18 18:08:46.000000000 +0200
166 ++++ b/projects/sgconf/configure 2013-01-18 18:09:44.000000000 +0200
167 @@ -34,6 +34,7 @@
168 then
169 OS=linux
170 @@ -104,8 +104,8 @@
171 -
172 +echo "ETC_DIR=$ETC_DIR" >> $CONFFILE
173 \ No newline at end of file
174 ---- projects/sgconf_xml/configure.org 2013-01-18 18:09:54.000000000 +0200
175 -+++ projects/sgconf_xml/configure 2013-01-18 18:10:23.000000000 +0200
176 +--- a/projects/sgconf_xml/configure.org 2013-01-18 18:09:54.000000000 +0200
177 ++++ b/projects/sgconf_xml/configure 2013-01-18 18:10:23.000000000 +0200
178 @@ -34,6 +34,7 @@
179 then
180 OS=linux
181 @@ -131,8 +131,8 @@
182 -
183 +echo "ETC_DIR=$ETC_DIR" >> $CONFFILE
184 \ No newline at end of file
185 ---- projects/sgconv/configure.org 2013-01-18 18:10:30.000000000 +0200
186 -+++ projects/sgconv/configure 2013-01-18 18:11:09.000000000 +0200
187 +--- a/projects/sgconv/configure.org 2013-01-18 18:10:30.000000000 +0200
188 ++++ b/projects/sgconv/configure 2013-01-18 18:11:09.000000000 +0200
189 @@ -35,6 +35,7 @@
190 then
191 OS=linux
192 @@ -161,8 +161,8 @@
193 -
194 +mkdir -p ../stargazer/modules
195 \ No newline at end of file
196 ---- projects/stargazer/configure.org 2013-01-18 18:11:15.000000000 +0200
197 -+++ projects/stargazer/configure 2013-01-18 18:11:40.000000000 +0200
198 +--- a/projects/stargazer/configure.org 2013-01-18 18:11:15.000000000 +0200
199 ++++ b/projects/stargazer/configure 2013-01-18 18:11:40.000000000 +0200
200 @@ -404,11 +404,4 @@
201 echo "VAR_DIR=$VAR_DIR" >> $CONFFILE
202 echo "ETC_DIR=$ETC_DIR" >> $CONFFILE
203
204 diff --git a/net-misc/stargazer/files/patches/stg-2.408-correct-paths.patch b/net-misc/stargazer/files/patches/stg-2.408-correct-paths.patch
205 index 82698af5b6f..520d635d69c 100644
206 --- a/net-misc/stargazer/files/patches/stg-2.408-correct-paths.patch
207 +++ b/net-misc/stargazer/files/patches/stg-2.408-correct-paths.patch
208 @@ -1,5 +1,5 @@
209 ---- projects/rscriptd/rscriptd.conf.org 2013-01-08 18:19:34.000000000 +0200
210 -+++ projects/rscriptd/rscriptd.conf 2013-01-08 18:20:52.000000000 +0200
211 +--- a/projects/rscriptd/rscriptd.conf.org 2013-01-08 18:19:34.000000000 +0200
212 ++++ b/projects/rscriptd/rscriptd.conf 2013-01-08 18:20:52.000000000 +0200
213 @@ -6,7 +6,7 @@
214 # Parameter: optional
215 # Value: file path
216 @@ -34,8 +34,8 @@
217
218 ################################################################################
219 \ No newline at end of file
220 ---- projects/sgconv/sgconv.conf.org 2012-12-18 21:56:33.578221904 +0200
221 -+++ projects/sgconv/sgconv.conf 2012-12-18 21:58:22.355217059 +0200
222 +--- a/projects/sgconv/sgconv.conf.org 2012-12-18 21:56:33.578221904 +0200
223 ++++ b/projects/sgconv/sgconv.conf 2012-12-18 21:58:22.355217059 +0200
224 @@ -18,27 +18,27 @@
225 # Working server directory, provides data on tariffs, users, administrators.
226 # Parameter: required
227 @@ -80,8 +80,8 @@
228
229 # Database username
230 # Parameter: required
231 ---- projects/stargazer/inst/linux/etc/stargazer/stargazer.conf.org 2012-12-30 14:35:22.000000000 +0200
232 -+++ projects/stargazer/inst/linux/etc/stargazer/stargazer.conf 2012-12-30 14:36:37.000000000 +0200
233 +--- a/projects/stargazer/inst/linux/etc/stargazer/stargazer.conf.org 2012-12-30 14:35:22.000000000 +0200
234 ++++ b/projects/stargazer/inst/linux/etc/stargazer/stargazer.conf 2012-12-30 14:36:37.000000000 +0200
235 @@ -6,7 +6,7 @@
236 # Parameter: required
237 # Value: file path
238 @@ -100,8 +100,8 @@
239
240 # Defines message maximum lifetime
241 # Note: 0 - unlimited
242 ---- projects/stargazer/inst/linux/etc/stargazer/conf-available.d/mod_remote_script.conf.org 2012-12-25 14:03:49.000000000 +0200
243 -+++ projects/stargazer/inst/linux/etc/stargazer/conf-available.d/mod_remote_script.conf 2012-12-25 14:04:00.000000000 +0200
244 +--- a/projects/stargazer/inst/linux/etc/stargazer/conf-available.d/mod_remote_script.conf.org 2012-12-25 14:03:49.000000000 +0200
245 ++++ b/projects/stargazer/inst/linux/etc/stargazer/conf-available.d/mod_remote_script.conf 2012-12-25 14:04:00.000000000 +0200
246 @@ -16,7 +16,7 @@
247 # Parametr: required
248 # Values: filename
249 @@ -111,8 +111,8 @@
250
251 # The password to encrypt packets between the stg-server and remote server
252 # Parameter: required
253 ---- projects/stargazer/inst/linux/etc/stargazer/conf-available.d/store_files.conf.org 2012-12-25 13:31:01.000000000 +0200
254 -+++ projects/stargazer/inst/linux/etc/stargazer/conf-available.d/store_files.conf 2012-12-25 13:31:43.000000000 +0200
255 +--- a/projects/stargazer/inst/linux/etc/stargazer/conf-available.d/store_files.conf.org 2012-12-25 13:31:01.000000000 +0200
256 ++++ b/projects/stargazer/inst/linux/etc/stargazer/conf-available.d/store_files.conf 2012-12-25 13:31:43.000000000 +0200
257 @@ -5,27 +5,27 @@
258 # Working server directory, provides data on tariffs, users, administrators.
259 # Parameter: required
260 @@ -148,8 +148,8 @@
261 UserLogMode = 640
262
263 </StoreModule>
264 ---- projects/stargazer/inst/linux/etc/stargazer/conf-available.d/store_firebird.conf.org 2012-12-25 13:39:00.000000000 +0200
265 -+++ projects/stargazer/inst/linux/etc/stargazer/conf-available.d/store_firebird.conf 2012-12-25 13:39:28.000000000 +0200
266 +--- a/projects/stargazer/inst/linux/etc/stargazer/conf-available.d/store_firebird.conf.org 2012-12-25 13:39:00.000000000 +0200
267 ++++ b/projects/stargazer/inst/linux/etc/stargazer/conf-available.d/store_firebird.conf 2012-12-25 13:39:28.000000000 +0200
268 @@ -9,7 +9,7 @@
269 # Parameter: required
270 # Value: file path
271 @@ -159,8 +159,8 @@
272
273 # Database username
274 # Parameter: required
275 ---- projects/stargazer/plugins/configuration/rpcconfig/rpcconfig.cpp.org 2012-12-31 11:08:26.000000000 +0200
276 -+++ projects/stargazer/plugins/configuration/rpcconfig/rpcconfig.cpp 2012-12-31 11:08:41.000000000 +0200
277 +--- a/projects/stargazer/plugins/configuration/rpcconfig/rpcconfig.cpp.org 2012-12-31 11:08:26.000000000 +0200
278 ++++ b/projects/stargazer/plugins/configuration/rpcconfig/rpcconfig.cpp 2012-12-31 11:08:41.000000000 +0200
279 @@ -169,7 +169,7 @@
280 rpcServer = new xmlrpc_c::serverAbyss(
281 xmlrpc_c::serverAbyss::constrOpt()
282 @@ -170,8 +170,8 @@
283 .socketFd(fd)
284 );
285
286 ---- projects/stargazer/inst/var/00-base-00.sql.org 2013-01-02 16:22:28.000000000 +0200
287 -+++ projects/stargazer/inst/var/00-base-00.sql 2013-01-02 16:22:52.000000000 +0200
288 +--- a/projects/stargazer/inst/var/00-base-00.sql.org 2013-01-02 16:22:28.000000000 +0200
289 ++++ b/projects/stargazer/inst/var/00-base-00.sql 2013-01-02 16:22:52.000000000 +0200
290 @@ -50,9 +50,9 @@
291 /*
292 * CONNECT 'localhost:/var/stg/stargazer.fdb' USER 'stg' PASSWORD '123456';
293
294 diff --git a/net-misc/stargazer/files/patches/stg-2.408-makefile-firebird-upstream.patch b/net-misc/stargazer/files/patches/stg-2.408-makefile-firebird-upstream.patch
295 index 81f46f4a3bf..166f12aff2a 100644
296 --- a/net-misc/stargazer/files/patches/stg-2.408-makefile-firebird-upstream.patch
297 +++ b/net-misc/stargazer/files/patches/stg-2.408-makefile-firebird-upstream.patch
298 @@ -1,5 +1,5 @@
299 ---- projects/stargazer/plugins/store/firebird/Makefile.org 2013-01-04 22:50:13.000000000 +0200
300 -+++ projects/stargazer/plugins/store/firebird/Makefile 2013-01-04 22:50:56.000000000 +0200
301 +--- a/projects/stargazer/plugins/store/firebird/Makefile.org 2013-01-04 22:50:13.000000000 +0200
302 ++++ b/projects/stargazer/plugins/store/firebird/Makefile 2013-01-04 22:50:56.000000000 +0200
303 @@ -22,5 +22,11 @@
304 locker \
305 crypto
306
307 diff --git a/net-misc/stargazer/files/patches/stg-2.408-makefile.patch b/net-misc/stargazer/files/patches/stg-2.408-makefile.patch
308 index 81772d6641f..6cb2a6c2dc5 100644
309 --- a/net-misc/stargazer/files/patches/stg-2.408-makefile.patch
310 +++ b/net-misc/stargazer/files/patches/stg-2.408-makefile.patch
311 @@ -1,5 +1,5 @@
312 ---- projects/sgauth/Makefile.org 2013-01-05 23:47:38.000000000 +0200
313 -+++ projects/sgauth/Makefile 2013-01-05 23:48:34.000000000 +0200
314 +--- a/projects/sgauth/Makefile.org 2013-01-05 23:47:38.000000000 +0200
315 ++++ b/projects/sgauth/Makefile 2013-01-05 23:48:34.000000000 +0200
316 @@ -67,8 +67,8 @@
317
318 install-data:
319 @@ -11,8 +11,8 @@
320
321 uninstall: uninstall-bin uninstall-data
322
323 ---- projects/stargazer/Makefile.org 2013-01-05 22:53:26.000000000 +0200
324 -+++ projects/stargazer/Makefile 2013-01-05 22:54:52.000000000 +0200
325 +--- a/projects/stargazer/Makefile.org 2013-01-05 22:53:26.000000000 +0200
326 ++++ b/projects/stargazer/Makefile 2013-01-05 22:54:52.000000000 +0200
327 @@ -92,30 +92,8 @@
328 mkdir -m $(DIR_MODE) -p $(PREFIX)/etc/stargazer/conf-available.d
329 mkdir -m $(DIR_MODE) -p $(PREFIX)/etc/stargazer/conf-enabled.d
330 @@ -44,8 +44,8 @@
331
332 uninstall: uninstall-bin uninstall-data
333
334 ---- projects/rscriptd/Makefile.org 2013-01-19 17:03:42.000000000 +0200
335 -+++ projects/rscriptd/Makefile 2013-01-19 17:04:25.000000000 +0200
336 +--- a/projects/rscriptd/Makefile.org 2013-01-19 17:03:42.000000000 +0200
337 ++++ b/projects/rscriptd/Makefile 2013-01-19 17:04:25.000000000 +0200
338 @@ -65,15 +65,13 @@
339 $(MAKE) -C $(DIR_LIBSRC) install
340
341 @@ -67,8 +67,8 @@
342 endif
343
344 uninstall: uninstall-bin uninstall-data
345 ---- projects/rlm_stg/Makefile.org 2013-02-03 14:02:58.000000000 +0200
346 -+++ projects/rlm_stg/Makefile 2013-02-03 14:05:43.000000000 +0200
347 +--- a/projects/rlm_stg/Makefile.org 2013-02-03 14:02:58.000000000 +0200
348 ++++ b/projects/rlm_stg/Makefile 2013-02-03 14:05:43.000000000 +0200
349 @@ -56,19 +56,11 @@
350 install: install-bin
351
352 @@ -89,8 +89,8 @@
353 $(MAKE) -C $(DIR_LIBSRC) install
354
355 uninstall: uninstall-bin
356 ---- projects/rscriptd/Makefile.org 2013-02-03 14:17:01.000000000 +0200
357 -+++ projects/rscriptd/Makefile 2013-02-03 14:17:32.000000000 +0200
358 +--- a/projects/rscriptd/Makefile.org 2013-02-03 14:17:01.000000000 +0200
359 ++++ b/projects/rscriptd/Makefile 2013-02-03 14:17:32.000000000 +0200
360 @@ -57,11 +57,7 @@
361 install: install-bin install-data
362
363 @@ -103,8 +103,8 @@
364 $(MAKE) -C $(DIR_LIBSRC) install
365
366 install-data:
367 ---- projects/sgauth/Makefile.org 2013-02-03 14:18:37.000000000 +0200
368 -+++ projects/sgauth/Makefile 2013-02-03 14:18:48.000000000 +0200
369 +--- a/projects/sgauth/Makefile.org 2013-02-03 14:18:37.000000000 +0200
370 ++++ b/projects/sgauth/Makefile 2013-02-03 14:18:48.000000000 +0200
371 @@ -58,11 +58,7 @@
372 install: install-bin install-data
373
374 @@ -117,8 +117,8 @@
375 $(MAKE) -C $(DIR_LIBSRC) install
376
377 install-data:
378 ---- projects/sgconf/Makefile.org 2013-02-03 14:19:18.000000000 +0200
379 -+++ projects/sgconf/Makefile 2013-02-03 14:19:28.000000000 +0200
380 +--- a/projects/sgconf/Makefile.org 2013-02-03 14:19:18.000000000 +0200
381 ++++ b/projects/sgconf/Makefile 2013-02-03 14:19:28.000000000 +0200
382 @@ -66,11 +66,7 @@
383 install: install-bin
384
385 @@ -131,8 +131,8 @@
386 $(MAKE) -C $(DIR_LIBSRC) install
387
388 uninstall: uninstall-bin
389 ---- projects/sgconf_xml/Makefile.org 2013-02-03 14:19:53.000000000 +0200
390 -+++ projects/sgconf_xml/Makefile 2013-02-03 14:19:59.000000000 +0200
391 +--- a/projects/sgconf_xml/Makefile.org 2013-02-03 14:19:53.000000000 +0200
392 ++++ b/projects/sgconf_xml/Makefile 2013-02-03 14:19:59.000000000 +0200
393 @@ -66,11 +66,7 @@
394 install: install-bin install-data
395
396 @@ -145,8 +145,8 @@
397 $(MAKE) -C $(DIR_LIBSRC) install
398
399 uninstall: uninstall-bin uninstall-data
400 ---- projects/sgconv/Makefile.org 2013-02-03 14:20:24.000000000 +0200
401 -+++ projects/sgconv/Makefile 2013-02-03 14:20:33.000000000 +0200
402 +--- a/projects/sgconv/Makefile.org 2013-02-03 14:20:24.000000000 +0200
403 ++++ b/projects/sgconv/Makefile 2013-02-03 14:20:33.000000000 +0200
404 @@ -61,11 +61,7 @@
405 install: install-bin
406
407 @@ -159,8 +159,8 @@
408 $(MAKE) -C $(DIR_PLUGINS) install
409
410 uninstall: uninstall-bin
411 ---- projects/stargazer/Makefile.org 2013-02-03 14:20:56.000000000 +0200
412 -+++ projects/stargazer/Makefile 2013-02-03 14:21:30.000000000 +0200
413 +--- a/projects/stargazer/Makefile.org 2013-02-03 14:20:56.000000000 +0200
414 ++++ b/projects/stargazer/Makefile 2013-02-03 14:21:30.000000000 +0200
415 @@ -77,11 +77,7 @@
416 install: install-bin install-data
417
418 @@ -173,8 +173,8 @@
419 $(MAKE) -C $(DIR_INCLUDE) install
420 $(MAKE) -C $(DIR_LIBSRC) install
421 $(MAKE) -C $(DIR_PLUGINS) install
422 ---- stglibs/Makefile.in.org 2013-02-03 14:53:02.000000000 +0200
423 -+++ stglibs/Makefile.in 2013-02-03 14:53:11.000000000 +0200
424 +--- a/stglibs/Makefile.in.org 2013-02-03 14:53:02.000000000 +0200
425 ++++ b/stglibs/Makefile.in 2013-02-03 14:53:11.000000000 +0200
426 @@ -35,11 +35,7 @@
427 rm -f deps $(PROG) *.o *.a *.so tags *.*~
428
429 @@ -187,8 +187,8 @@
430 mkdir -m $(DIR_MODE) -p $(PREFIX)/usr/include/stg
431 install -m $(DATA_MODE) -o $(OWNER) $(addprefix include/stg/,$(INCS)) $(PREFIX)/usr/include/stg/
432
433 ---- projects/stargazer/plugins/Makefile.in.org 2013-02-03 15:38:41.000000000 +0200
434 -+++ projects/stargazer/plugins/Makefile.in 2013-02-03 15:38:51.000000000 +0200
435 +--- a/projects/stargazer/plugins/Makefile.in.org 2013-02-03 15:38:41.000000000 +0200
436 ++++ b/projects/stargazer/plugins/Makefile.in 2013-02-03 15:38:51.000000000 +0200
437 @@ -28,11 +28,7 @@
438
439 install: $(PROG)
440
441 diff --git a/net-misc/stargazer/files/patches/stg-2.408-on-upstream.patch b/net-misc/stargazer/files/patches/stg-2.408-on-upstream.patch
442 index 4afbb034025..64a5964a8e0 100644
443 --- a/net-misc/stargazer/files/patches/stg-2.408-on-upstream.patch
444 +++ b/net-misc/stargazer/files/patches/stg-2.408-on-upstream.patch
445 @@ -1,5 +1,5 @@
446 ---- projects/stargazer/inst/linux/etc/stargazer/OnChange.org 2013-01-09 14:30:32.000000000 +0200
447 -+++ projects/stargazer/inst/linux/etc/stargazer/OnChange 2013-01-09 15:50:01.000000000 +0200
448 +--- a/projects/stargazer/inst/linux/etc/stargazer/OnChange.org 2013-01-09 14:30:32.000000000 +0200
449 ++++ b/projects/stargazer/inst/linux/etc/stargazer/OnChange 2013-01-09 15:50:01.000000000 +0200
450 @@ -1,8 +1,20 @@
451 #! /bin/sh
452
453 @@ -28,8 +28,8 @@
454 +# Usage examples:
455 +#echo "User: '$LOGIN'. Parameter $PARAMETER changed from '$OLDVALUE' to '$NEWVALUE'" >> /var/stargazer/user.change.log
456 \ No newline at end of file
457 ---- projects/stargazer/inst/linux/etc/stargazer/OnConnect.org 2013-01-09 14:39:51.000000000 +0200
458 -+++ projects/stargazer/inst/linux/etc/stargazer/OnConnect 2013-01-09 15:11:49.000000000 +0200
459 +--- a/projects/stargazer/inst/linux/etc/stargazer/OnConnect.org 2013-01-09 14:39:51.000000000 +0200
460 ++++ b/projects/stargazer/inst/linux/etc/stargazer/OnConnect 2013-01-09 15:11:49.000000000 +0200
461 @@ -1,24 +1,23 @@
462 #! /bin/sh
463
464 @@ -66,8 +66,8 @@
465 +# Usage examples:
466 +#echo "Connected `date +%Y.%m.%d-%H.%M.%S` $IP $CASH" >> /var/stargazer/users/$LOGIN/connect.log
467 \ No newline at end of file
468 ---- projects/stargazer/inst/linux/etc/stargazer/OnDisconnect.org 2013-01-09 14:54:36.000000000 +0200
469 -+++ projects/stargazer/inst/linux/etc/stargazer/OnDisconnect 2013-01-09 15:11:33.000000000 +0200
470 +--- a/projects/stargazer/inst/linux/etc/stargazer/OnDisconnect.org 2013-01-09 14:54:36.000000000 +0200
471 ++++ b/projects/stargazer/inst/linux/etc/stargazer/OnDisconnect 2013-01-09 15:11:33.000000000 +0200
472 @@ -1,24 +1,23 @@
473 #! /bin/sh
474
475 @@ -104,8 +104,8 @@
476 +# Usage examples:
477 +#echo "Disconnected `date +%Y.%m.%d-%H.%M.%S` $IP $CASH" >> /var/stargazer/users/$LOGIN/connect.log
478 \ No newline at end of file
479 ---- projects/stargazer/inst/linux/etc/stargazer/OnUserAdd.org 2013-01-09 15:01:57.000000000 +0200
480 -+++ projects/stargazer/inst/linux/etc/stargazer/OnUserAdd 2013-01-09 15:10:55.000000000 +0200
481 +--- a/projects/stargazer/inst/linux/etc/stargazer/OnUserAdd.org 2013-01-09 15:01:57.000000000 +0200
482 ++++ b/projects/stargazer/inst/linux/etc/stargazer/OnUserAdd 2013-01-09 15:10:55.000000000 +0200
483 @@ -1,14 +1,12 @@
484 #! /bin/sh
485
486 @@ -130,8 +130,8 @@
487 +# Usage examples:
488 +#echo "Added user $login" >> /var/stargazer/add_del.log
489 \ No newline at end of file
490 ---- projects/stargazer/inst/linux/etc/stargazer/OnUserDel.org 2013-01-09 15:12:32.000000000 +0200
491 -+++ projects/stargazer/inst/linux/etc/stargazer/OnUserDel 2013-01-09 15:14:10.000000000 +0200
492 +--- a/projects/stargazer/inst/linux/etc/stargazer/OnUserDel.org 2013-01-09 15:12:32.000000000 +0200
493 ++++ b/projects/stargazer/inst/linux/etc/stargazer/OnUserDel 2013-01-09 15:14:10.000000000 +0200
494 @@ -1,7 +1,13 @@
495 #! /bin/sh
496
497
498 diff --git a/net-misc/stargazer/files/patches/stg-2.408-radius-upstream.patch b/net-misc/stargazer/files/patches/stg-2.408-radius-upstream.patch
499 index 790cc3a91e1..553b3199927 100644
500 --- a/net-misc/stargazer/files/patches/stg-2.408-radius-upstream.patch
501 +++ b/net-misc/stargazer/files/patches/stg-2.408-radius-upstream.patch
502 @@ -1,5 +1,5 @@
503 ---- projects/rlm_stg/Makefile.org 2013-01-18 16:17:18.000000000 +0200
504 -+++ projects/rlm_stg/Makefile 2013-01-18 16:19:13.000000000 +0200
505 +--- a/projects/rlm_stg/Makefile.org 2013-01-18 16:17:18.000000000 +0200
506 ++++ b/projects/rlm_stg/Makefile 2013-01-18 16:19:13.000000000 +0200
507 @@ -57,16 +57,28 @@
508
509 install-bin:
510
511 diff --git a/net-misc/stargazer/files/patches/stg-2.408-rscriptd-upstream.patch b/net-misc/stargazer/files/patches/stg-2.408-rscriptd-upstream.patch
512 index 4e97da2f80e..708c1d90062 100644
513 --- a/net-misc/stargazer/files/patches/stg-2.408-rscriptd-upstream.patch
514 +++ b/net-misc/stargazer/files/patches/stg-2.408-rscriptd-upstream.patch
515 @@ -1,5 +1,5 @@
516 ---- projects/rscriptd/Makefile.org 2013-01-18 16:22:46.000000000 +0200
517 -+++ projects/rscriptd/Makefile 2013-01-18 16:25:08.000000000 +0200
518 +--- a/projects/rscriptd/Makefile.org 2013-01-18 16:22:46.000000000 +0200
519 ++++ b/projects/rscriptd/Makefile 2013-01-18 16:25:08.000000000 +0200
520 @@ -68,6 +68,13 @@
521 # Install etc
522 mkdir -m $(DIR_MODE) -p $(PREFIX)/etc/rscriptd
523
524 diff --git a/net-misc/stargazer/files/patches/stg-2.408-rscriptd.conf-upstream.patch b/net-misc/stargazer/files/patches/stg-2.408-rscriptd.conf-upstream.patch
525 index 21746e59e8d..6b606353e22 100644
526 --- a/net-misc/stargazer/files/patches/stg-2.408-rscriptd.conf-upstream.patch
527 +++ b/net-misc/stargazer/files/patches/stg-2.408-rscriptd.conf-upstream.patch
528 @@ -1,5 +1,5 @@
529 ---- projects/rscriptd/rscriptd.conf.org 2013-01-12 15:44:46.000000000 +0200
530 -+++ projects/rscriptd/rscriptd.conf 2013-01-12 15:45:44.000000000 +0200
531 +--- a/projects/rscriptd/rscriptd.conf.org 2013-01-12 15:44:46.000000000 +0200
532 ++++ b/projects/rscriptd/rscriptd.conf 2013-01-12 15:45:44.000000000 +0200
533 @@ -1,8 +1,68 @@
534 -LogFileName=/var/log/rscriptd.log
535 -ExecutersNum=1
536
537 diff --git a/net-misc/stargazer/files/patches/stg-2.408-sgauth.conf-upstream.patch b/net-misc/stargazer/files/patches/stg-2.408-sgauth.conf-upstream.patch
538 index 213d35fd2db..d18c041cbdc 100644
539 --- a/net-misc/stargazer/files/patches/stg-2.408-sgauth.conf-upstream.patch
540 +++ b/net-misc/stargazer/files/patches/stg-2.408-sgauth.conf-upstream.patch
541 @@ -1,5 +1,5 @@
542 ---- projects/sgauth/sgauth.conf.org 2013-01-08 15:43:09.000000000 +0200
543 -+++ projects/sgauth/sgauth.conf 2013-01-09 13:41:53.000000000 +0200
544 +--- a/projects/sgauth/sgauth.conf.org 2013-01-08 15:43:09.000000000 +0200
545 ++++ b/projects/sgauth/sgauth.conf 2013-01-09 13:41:53.000000000 +0200
546 @@ -1,37 +1,72 @@
547 -#Stargazer server ip
548 -ServerName=192.168.1.2
549
550 diff --git a/net-misc/stargazer/files/patches/stg-2.408-sgconv-upstream.patch b/net-misc/stargazer/files/patches/stg-2.408-sgconv-upstream.patch
551 index cfce675b128..f1cdf5c5e83 100644
552 --- a/net-misc/stargazer/files/patches/stg-2.408-sgconv-upstream.patch
553 +++ b/net-misc/stargazer/files/patches/stg-2.408-sgconv-upstream.patch
554 @@ -1,5 +1,5 @@
555 ---- projects/sgconv/Makefile.org 2013-01-08 12:07:06.000000000 +0200
556 -+++ projects/sgconv/Makefile 2013-01-08 12:07:11.000000000 +0200
557 +--- a/projects/sgconv/Makefile.org 2013-01-08 12:07:06.000000000 +0200
558 ++++ b/projects/sgconv/Makefile 2013-01-08 12:07:11.000000000 +0200
559 @@ -4,7 +4,7 @@
560
561 include ../../Makefile.conf
562 @@ -9,8 +9,8 @@
563
564 SRCS = ./main.cpp \
565 ./settings_impl.cpp
566 ---- projects/sgconv/build.org 2012-02-09 12:26:57.000000000 +0200
567 -+++ projects/sgconv/build 2013-01-08 12:10:02.000000000 +0200
568 +--- a/projects/sgconv/build.org 2012-02-09 12:26:57.000000000 +0200
569 ++++ b/projects/sgconv/build 2013-01-08 12:10:02.000000000 +0200
570 @@ -45,13 +45,13 @@
571 if [ "$OS" = "unknown" ]
572 then
573 @@ -27,8 +27,8 @@
574 echo "#############################################################################"
575
576 STG_LIBS="logger.lib
577 ---- projects/sgconv/settings_impl.h.org 2013-01-08 12:11:53.000000000 +0200
578 -+++ projects/sgconv/settings_impl.h 2013-01-08 12:11:58.000000000 +0200
579 +--- a/projects/sgconv/settings_impl.h.org 2013-01-08 12:11:53.000000000 +0200
580 ++++ b/projects/sgconv/settings_impl.h 2013-01-08 12:11:58.000000000 +0200
581 @@ -38,7 +38,7 @@
582
583 class SETTINGS_IMPL {
584
585 diff --git a/net-misc/stargazer/files/patches/stg-2.408-static-libs.patch b/net-misc/stargazer/files/patches/stg-2.408-static-libs.patch
586 index 723d177ac79..68f16d41647 100644
587 --- a/net-misc/stargazer/files/patches/stg-2.408-static-libs.patch
588 +++ b/net-misc/stargazer/files/patches/stg-2.408-static-libs.patch
589 @@ -1,5 +1,5 @@
590 ---- stglibs/Makefile.org 2013-01-19 18:21:57.000000000 +0200
591 -+++ stglibs/Makefile 2013-01-19 18:24:25.000000000 +0200
592 +--- a/stglibs/Makefile.org 2013-01-19 18:21:57.000000000 +0200
593 ++++ b/stglibs/Makefile 2013-01-19 18:24:25.000000000 +0200
594 @@ -15,6 +15,6 @@
595
596 clean: all
597
598 diff --git a/net-misc/stargazer/metadata.xml b/net-misc/stargazer/metadata.xml
599 index bfed7e617ab..5d46368a3e8 100644
600 --- a/net-misc/stargazer/metadata.xml
601 +++ b/net-misc/stargazer/metadata.xml
602 @@ -1,52 +1,50 @@
603 <?xml version="1.0" encoding="UTF-8"?>
604 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
605 <pkgmetadata>
606 - <maintainer type="person">
607 - <email>spiderx@××××××××××.ua</email>
608 - <name>Vladimir Pavljuchenkov</name>
609 - </maintainer>
610 - <maintainer type="project">
611 - <email>proxy-maint@g.o</email>
612 - <name>Proxy Maintainers</name>
613 - </maintainer>
614 - <longdescription>
615 - Stargazer is a powerful (inter)net billing system, capable of gathering
616 - traffic statistics from many sources (such as NetFlow protocol,
617 - ethernet packets capture, or IPQ subsystem), managing and billing user
618 - accounts according to specified fees and rules (including time-based rules,
619 - traffic source/destination rules and a payoff system).
620 - This ebuild allows you to compile it yourself depending of your needs.
621 - </longdescription>
622 - <use>
623 - <flag name="sgconv">Enable build of utility to convert Stargazer data between storage backends.</flag>
624 - <flag name="radius">Enable build of FreeRADIUS module for data access via Stargazer.</flag>
625 - <flag name="rscriptd">Enable build of remote script execute daemon for Stargazer, which run scripts when receive special signal from Stargazer.</flag>
626 - <flag name="sgauth">Enable build of command-line utility for authorization in Stargazer.</flag>
627 - <flag name="sgconf">Enable build of command-line utility for configuring Stargazer.</flag>
628 - <flag name="sgconf_xml">Enable build of command-line xml-based utility for configuring Stargazer.</flag>
629 - <flag name="stargazer">Enable build of Stargazer billing system.</flag>
630 - <flag name="debug">Enable extra debug codepaths, like asserts and extra output.</flag>
631 - <flag name="doc">Adds extra documentation (API, doc, etc).</flag>
632 - <flag name="examples">Install examples, usually source code.</flag>
633 - <flag name="module_auth_always_online">Enable build of "Always Online" authentication module for Stargazer.</flag>
634 - <flag name="module_auth_internet_access">Enable build of "InetAccess" authentication module for Stargazer. InetAccess is a Stargazer specific authentication protocol.</flag>
635 - <flag name="module_auth_freeradius">Enable build of "Radius" authentication module for Stargazer. This module capable of using RADIUS procotol for user authentication.</flag>
636 - <flag name="module_capture_ether">Enable build of "Ethernet" traffic capture module for Stargazer. This module uses RAW sockets to capture traffic.</flag>
637 - <flag name="module_capture_ipq">Enable build of "IPQ" traffic capture module for Stargazer. This module uses IPQ subsystem to capture traffic.</flag>
638 - <flag name="module_capture_netflow">Enable build of "NetFlow" traffic capture module for Stargazer. This module capable of receiving traffic data by NetFlow protocol.</flag>
639 - <flag name="module_config_rpcconfig">Enable build of "XMLRPC" configuration module for Stargazer. This module uses XML-RPC protocol for configuring Stargazer.</flag>
640 - <flag name="module_config_sgconfig">Enable build of "SGConf" configuration module for Stargazer. This module uses Stargazer specific protocol for configuring Stargazer.</flag>
641 - <flag name="module_other_ping">Enable build of "Ping" module for Stargazer. This module pings connected users from time to time to ensure they are alive.</flag>
642 - <flag name="module_other_remote_script">Enable build of "Remote Script" module for Stargazer. This module control rscriptd daemon over the net and makes it execute scripts in reaction to different Stargazer events.</flag>
643 - <flag name="module_other_smux">Enable build of SMUX module for Stargazer. This module uses SMUX protocol to provide various information about Stargazer.</flag>
644 - <flag name="module_store_files">Enable build of storage plugin for Stargazer based on plain files.</flag>
645 - <flag name="module_store_firebird">Enable build of storage plugin for Stargazer, which uses Firebird database for storage.</flag>
646 - <flag name="module_store_mysql">Enable build of storage plugin for Stargazer, which uses MySQL for storage.</flag>
647 - <flag name="module_store_postgres">Enable build of storage plugin for Stargazer, which uses PostgreSQL for storage.</flag>
648 - </use>
649 - <upstream>
650 - <changelog>http://stg.dp.ua/server_dl.php</changelog>
651 - <doc>http://stg.dp.ua/doc.php</doc>
652 - <bugs-to>mailto:faust@××××××.ua</bugs-to>
653 - </upstream>
654 + <maintainer type="person">
655 + <email>spiderx@××××××××××.ua</email>
656 + <name>Vladimir Pavljuchenkov</name>
657 + </maintainer>
658 + <maintainer type="project">
659 + <email>proxy-maint@g.o</email>
660 + <name>Proxy Maintainers</name>
661 + </maintainer>
662 + <longdescription lang="en">
663 + Stargazer is a powerful (inter)net billing system, capable of gathering
664 + traffic statistics from many sources (such as NetFlow protocol,
665 + ethernet packets capture, or IPQ subsystem), managing and billing user
666 + accounts according to specified fees and rules (including time-based rules,
667 + traffic source/destination rules and a payoff system).
668 + This ebuild allows you to compile it yourself depending of your needs.
669 + </longdescription>
670 + <use>
671 + <flag name="sgconv">Enable build of utility to convert Stargazer data between storage backends.</flag>
672 + <flag name="radius">Enable build of FreeRADIUS module for data access via Stargazer.</flag>
673 + <flag name="rscriptd">Enable build of remote script execute daemon for Stargazer, which run scripts when receive special signal from Stargazer.</flag>
674 + <flag name="sgauth">Enable build of command-line utility for authorization in Stargazer.</flag>
675 + <flag name="sgconf">Enable build of command-line utility for configuring Stargazer.</flag>
676 + <flag name="sgconf_xml">Enable build of command-line xml-based utility for configuring Stargazer.</flag>
677 + <flag name="stargazer">Enable build of Stargazer billing system.</flag>
678 + <flag name="debug">Enable extra debug codepaths, like asserts and extra output.</flag>
679 + <flag name="module_auth_always_online">Enable build of "Always Online" authentication module for Stargazer.</flag>
680 + <flag name="module_auth_internet_access">Enable build of "InetAccess" authentication module for Stargazer. InetAccess is a Stargazer specific authentication protocol.</flag>
681 + <flag name="module_auth_freeradius">Enable build of "Radius" authentication module for Stargazer. This module capable of using RADIUS procotol for user authentication.</flag>
682 + <flag name="module_capture_ether">Enable build of "Ethernet" traffic capture module for Stargazer. This module uses RAW sockets to capture traffic.</flag>
683 + <flag name="module_capture_ipq">Enable build of "IPQ" traffic capture module for Stargazer. This module uses IPQ subsystem to capture traffic.</flag>
684 + <flag name="module_capture_netflow">Enable build of "NetFlow" traffic capture module for Stargazer. This module capable of receiving traffic data by NetFlow protocol.</flag>
685 + <flag name="module_config_rpcconfig">Enable build of "XMLRPC" configuration module for Stargazer. This module uses XML-RPC protocol for configuring Stargazer.</flag>
686 + <flag name="module_config_sgconfig">Enable build of "SGConf" configuration module for Stargazer. This module uses Stargazer specific protocol for configuring Stargazer.</flag>
687 + <flag name="module_other_ping">Enable build of "Ping" module for Stargazer. This module pings connected users from time to time to ensure they are alive.</flag>
688 + <flag name="module_other_remote_script">Enable build of "Remote Script" module for Stargazer. This module control rscriptd daemon over the net and makes it execute scripts in reaction to different Stargazer events.</flag>
689 + <flag name="module_other_smux">Enable build of SMUX module for Stargazer. This module uses SMUX protocol to provide various information about Stargazer.</flag>
690 + <flag name="module_store_files">Enable build of storage plugin for Stargazer based on plain files.</flag>
691 + <flag name="module_store_firebird">Enable build of storage plugin for Stargazer, which uses Firebird database for storage.</flag>
692 + <flag name="module_store_mysql">Enable build of storage plugin for Stargazer, which uses MySQL for storage.</flag>
693 + <flag name="module_store_postgres">Enable build of storage plugin for Stargazer, which uses PostgreSQL for storage.</flag>
694 + </use>
695 + <upstream>
696 + <doc>http://stg.net.ua/doc/index.html</doc>
697 + <bugs-to>mailto:faust@××××××.ua</bugs-to>
698 + <remote-id type="github">madf/stg</remote-id>
699 + </upstream>
700 </pkgmetadata>
701
702 diff --git a/net-misc/stargazer/stargazer-2.408-r1.ebuild b/net-misc/stargazer/stargazer-2.408-r1.ebuild
703 new file mode 100644
704 index 00000000000..18d197b3ccb
705 --- /dev/null
706 +++ b/net-misc/stargazer/stargazer-2.408-r1.ebuild
707 @@ -0,0 +1,538 @@
708 +# Copyright 1999-2019 Gentoo Authors
709 +# Distributed under the terms of the GNU General Public License v2
710 +
711 +EAPI=7
712 +
713 +PROJECTS="sgconv rlm_stg rscriptd sgauth sgconf sgconf_xml stargazer"
714 +
715 +STG_MODULES_AUTH="always_online internet_access freeradius"
716 +STG_MODULES_CAPTURE="ipq ether netflow"
717 +STG_MODULES_CONFIG="sgconfig rpcconfig"
718 +STG_MODULES_OTHER="ping smux remote_script"
719 +STG_MODULES_STORE="files firebird mysql postgres"
720 +
721 +declare -A MODULES
722 +MODULES=( [module_auth_always_online]="authorization\/ao:mod_ao"
723 + [module_auth_internet_access]="authorization\/inetaccess:mod_ia"
724 + [module_auth_freeradius]="other\/radius:mod_radius"
725 + [module_capture_ipq]="capture\/ipq_linux:mod_cap_ipq"
726 + [module_capture_ether]="capture\/ether_linux:mod_cap_ether"
727 + [module_capture_netflow]="capture\/cap_nf:mod_cap_nf"
728 + [module_config_sgconfig]="configuration\/sgconfig:mod_sg"
729 + [module_config_rpcconfig]="configuration\/rpcconfig:mod_rpc"
730 + [module_other_ping]="other\/ping:mod_ping"
731 + [module_other_smux]="other\/smux:mod_smux"
732 + [module_other_remote_script]="other\/rscript:mod_remote_script"
733 + [module_store_files]="store\/files:store_files"
734 + [module_store_firebird]="store\/firebird:store_firebird"
735 + [module_store_mysql]="store\/mysql:store_mysql"
736 + [module_store_postgres]="store\/postgresql:store_postgresql"
737 +)
738 +
739 +declare -A INIT
740 +INIT=( [module_store_files]="11d"
741 + [module_store_firebird]="11d;s/need net/need net firebird/"
742 + [module_store_mysql]="11d;s/need net/need net mysql/"
743 + [module_store_postgres]="11d;s/need net/need net postgresql/"
744 +)
745 +
746 +MY_P="stg-${PV}"
747 +
748 +inherit flag-o-matic linux-info user
749 +
750 +DESCRIPTION="Billing system for small home and office networks"
751 +HOMEPAGE="http://stg.dp.ua/"
752 +SRC_URI="http://stg.dp.ua/download/server/${PV}/${MY_P}.tar.gz"
753 +
754 +LICENSE="GPL-2"
755 +SLOT="0"
756 +KEYWORDS="~amd64 ~x86"
757 +
758 +RDEPEND="
759 + module_config_rpcconfig? (
760 + dev-libs/expat
761 + dev-libs/xmlrpc-c[abyss,cxx]
762 + )
763 + module_config_sgconfig? ( dev-libs/expat )
764 + module_store_firebird? ( dev-db/firebird )
765 + module_store_mysql? ( dev-db/mysql-connector-c:0= )
766 + module_store_postgres? ( dev-db/postgresql:= )
767 + sgconf? ( dev-libs/expat )
768 + sgconf_xml? ( dev-libs/expat )"
769 +DEPEND="${RDEPEND}"
770 +
771 +S="${WORKDIR}/${MY_P}"
772 +
773 +REQUIRED_USE="stargazer? ( ^^ ( module_store_files module_store_firebird module_store_mysql module_store_postgres ) )"
774 +
775 +DOCS=( BUGS ../../ChangeLog CHANGES README TODO )
776 +
777 +# Patches already in upstream's trunk
778 +PATCHES=(
779 + # Fix dependency on fbclient for module_store_firebird
780 + "${FILESDIR}"/patches/stg-2.408-makefile-firebird-upstream.patch
781 + # Rewrite config for rscriptd
782 + "${FILESDIR}"/patches/stg-2.408-rscriptd.conf-upstream.patch
783 + # Rewrite config for sgauth
784 + "${FILESDIR}"/patches/stg-2.408-sgauth.conf-upstream.patch
785 + # Standardization of 'On-scripts'
786 + "${FILESDIR}"/patches/stg-2.408-on-upstream.patch
787 + # Install demo scripts for rscriptd
788 + "${FILESDIR}"/patches/stg-2.408-rscriptd-upstream.patch
789 + # Fix crush on stop
790 + "${FILESDIR}"/patches/stg-2.408-fix-crash-on-stop.patch
791 + # Rename convertor to sgconv to avoid possible file name collisions
792 + "${FILESDIR}"/patches/stg-2.408-sgconv-upstream.patch
793 + # Debug support. Install radius lib to /usr/lib/freeradius
794 + "${FILESDIR}"/patches/stg-2.408-makefile-build-upstream.patch
795 + # Don't compile sgconv always with debug. Remove MAKEOPTS=-j1
796 + "${FILESDIR}"/patches/stg-2.408-build-upstream.patch
797 + # FreeBSD install directory
798 + "${FILESDIR}"/patches/stg-2.408-radius-upstream.patch
799 +)
800 +
801 +IUSE="sgconv radius rscriptd sgauth sgconf sgconf_xml stargazer debug"
802 +
803 +for module in ${STG_MODULES_AUTH} ; do IUSE="${IUSE} module_auth_${module}" ; done
804 +for module in ${STG_MODULES_CAPTURE} ; do IUSE="${IUSE} module_capture_${module}" ; done
805 +for module in ${STG_MODULES_CONFIG} ; do IUSE="${IUSE} module_config_${module}" ; done
806 +for module in ${STG_MODULES_OTHER} ; do IUSE="${IUSE} module_other_${module}" ; done
807 +for module in ${STG_MODULES_STORE} ; do IUSE="${IUSE} module_store_${module}" ; done
808 +
809 +IUSE=${IUSE/stargazer/+stargazer}
810 +IUSE=${IUSE/module_store_files/+module_store_files}
811 +
812 +src_prepare() {
813 + # Rename convertor to sgconv to avoid possible file name collisions
814 + mv projects/convertor/ projects/sgconv/ \
815 + || die "Couldn't move convertor folder"
816 + mv projects/sgconv/convertor.conf \
817 + projects/sgconv/sgconv.conf || die "Couldn't move convertor config"
818 +
819 + default
820 +
821 + local project
822 + for project in ${PROJECTS} ; do
823 + # Rename build script to configure for further econf launch in every project
824 + mv projects/$project/build projects/$project/configure \
825 + || die "Couldn't move build folder for $project"
826 + # Change check for debug build
827 + sed -i 's/if \[ "$1" = "debug" \]/if \[ "${10}" = "--enable-debug" \]/' \
828 + projects/$project/configure \
829 + || die "sed for debug check failed"
830 + done
831 +
832 + # Correct working directory, user and group for sgconv.conf, store_files.conf
833 + # Correct paths for rscriptd.conf, store_firebird.conf, mod_remote_scriptd.conf, stargazer.conf, rpcconfig.cpp, 00-base-00.sql
834 + eapply "${FILESDIR}"/patches/stg-2.408-correct-paths.patch
835 +
836 + # Correct target install-data for stargazer, rscriptd, sgauth, remove debug symbols stripping
837 + eapply "${FILESDIR}"/patches/stg-2.408-makefile.patch
838 +
839 + # Remove make from script (for keeping symbols), always add variable to Makefile.conf for all projects
840 + eapply "${FILESDIR}"/patches/stg-2.408-build.patch
841 +
842 + # Remove static-libs
843 + eapply "${FILESDIR}"/patches/stg-2.408-static-libs.patch
844 +
845 + # Define which module to compile
846 + local module
847 + for module in ${!MODULES[@]} ; do
848 + if ! use $module ; then
849 + sed -i "s/${MODULES[$module]%:*}//" \
850 + projects/stargazer/configure \
851 + || die "sed for module configure failed"
852 + fi
853 + done
854 +
855 + # Correct Gentoo init script
856 + sed -i -e 's/opts/extra_commands/' \
857 + -e 's/runscript/openrc-run/' \
858 + projects/stargazer/inst/linux/etc/init.d/stargazer.gentoo \
859 + || die "sed for init-script failed"
860 + local init
861 + for init in ${!INIT[@]} ; do
862 + if use $init ; then
863 + sed -i "${INIT[$init]}" \
864 + projects/stargazer/inst/linux/etc/init.d/stargazer.gentoo \
865 + || die "sed for $init failed"
866 + fi
867 + done
868 +
869 + # Check for IPQ subsystem availability
870 + if use module_capture_ipq && kernel_is ge 3 5 ; then
871 + die "The IPQ subsystem requires kernel 3.5 or greater."
872 + fi
873 +}
874 +
875 +src_configure() {
876 + use debug && filter-flags '-O?'
877 +
878 + # Define local variables, strip '+' symbol for used by default USE flags
879 + local USEFLAGS=(${IUSE//+})
880 + local PROJECTS=($PROJECTS)
881 + local i
882 +
883 + for (( i = 0 ; i < ${#PROJECTS[@]} ; i++ )) ; do
884 + if use ${USEFLAGS[$i]} ; then
885 + cd "${S}"/projects/${PROJECTS[$i]} \
886 + || die "cd to ${PROJECTS[$i]} failed"
887 + econf $(use_enable debug)
888 + fi
889 + done
890 +}
891 +
892 +src_compile() {
893 + # Define local variables, strip '+' symbol for used by default USE flags
894 + local USEFLAGS=(${IUSE//+})
895 + local PROJECTS=($PROJECTS)
896 + local i
897 +
898 + # Set jobs to 1 for debug build
899 + use debug && MAKEOPTS="-j1"
900 +
901 + # Build necessary libraries first
902 + touch Makefile.conf
903 + cd stglibs || die "cd to stglibs failed"
904 + emake STG_LIBS="ia.lib srvconf.lib"
905 +
906 + for (( i = 0 ; i < ${#PROJECTS[@]} ; i++ )) ; do
907 + if use ${USEFLAGS[$i]} ; then
908 + cd "${S}"/projects/${PROJECTS[$i]} \
909 + || die "cd to ${PROJECTS[$i]} failed"
910 + emake
911 + fi
912 + done
913 +}
914 +
915 +src_install() {
916 + if use rscriptd || use stargazer ; then
917 + # Install config file for logrotate
918 + insinto /etc/logrotate.d
919 + newins "${FILESDIR}"/logrotate stargazer
920 +
921 + # Keeping logs directory
922 + diropts -m 755 -o stg -g stg
923 + keepdir /var/log/stargazer
924 + if use stargazer ; then
925 + diropts -m 775 -o stg -g stg
926 + keepdir /var/lib/stargazer
927 + fi
928 + fi
929 +
930 + if use sgconv ; then
931 + cd projects/sgconv || die "cd to sgconv failed"
932 +
933 + emake DESTDIR="${D}" PREFIX="${D}" install
934 +
935 + # Install files into specified directory
936 + insinto /etc/stargazer
937 + doins "${S}"/projects/sgconv/sgconv.conf
938 +
939 + # Install manual page
940 + doman "${FILESDIR}"/mans/sgconv.1
941 + fi
942 +
943 + if use radius ; then
944 + cd "${S}"/projects/rlm_stg || die "cd to rlm_stg failed"
945 +
946 + emake DESTDIR="${D}" PREFIX="${D}" install
947 + fi
948 +
949 + if use rscriptd ; then
950 + cd "${S}"/projects/rscriptd || die "cd to rscriptd failed"
951 +
952 + emake DESTDIR="${D}" PREFIX="${D}" install
953 +
954 + # Install Gentoo init script
955 + doinitd "${FILESDIR}"/rscriptd
956 +
957 + # Correct permissions for file
958 + fperms 0640 /etc/stargazer/rscriptd.conf
959 +
960 + # Install manual page
961 + doman "${FILESDIR}"/mans/rscriptd.8
962 + fi
963 +
964 + if use sgauth ; then
965 + cd "${S}"/projects/sgauth || die "cd to sgauth failed"
966 +
967 + emake DESTDIR="${D}" PREFIX="${D}" install
968 +
969 + # Correct permissions for file
970 + fperms 0640 /etc/stargazer/sgauth.conf
971 +
972 + # Install manual page
973 + doman "${FILESDIR}"/mans/sgauth.8
974 + fi
975 +
976 + if use sgconf ; then
977 + cd "${S}"/projects/sgconf || die "cd to sgconf failed"
978 +
979 + emake DESTDIR="${D}" PREFIX="${D}" install
980 +
981 + # Install manual page
982 + doman "${FILESDIR}"/mans/sgconf.1
983 + fi
984 +
985 + if use sgconf_xml ; then
986 + cd "${S}"/projects/sgconf_xml || die "cd to sgconf_xml failed"
987 +
988 + emake DESTDIR="${D}" PREFIX="${D}" install
989 +
990 + # Install manual page
991 + doman "${FILESDIR}"/mans/sgconf_xml.1
992 + fi
993 +
994 + if use stargazer ; then
995 + cd "${S}"/projects/stargazer || die "cd to stargazer failed"
996 +
997 + emake DESTDIR="${D}" PREFIX="${D}" install
998 +
999 + # Install docs
1000 + einstalldocs
1001 +
1002 + # Install and rename Gentoo init script
1003 + newinitd "${S}"/projects/stargazer/inst/linux/etc/init.d/stargazer.gentoo stargazer
1004 +
1005 + # Install manual page
1006 + doman "${FILESDIR}"/mans/stargazer.8
1007 +
1008 + # Install files needed for module_store_files
1009 + if use module_store_files ; then
1010 + # Install files into specified directory
1011 + insinto /var/lib
1012 + doins -r "${S}"/projects/stargazer/inst/var/stargazer
1013 +
1014 + # Correct user and group for files and directories
1015 + fowners -R stg:stg /var/lib/stargazer
1016 + fi
1017 +
1018 + if use module_store_firebird ; then
1019 + # Install files into specified directory
1020 + insinto /usr/share/stargazer/db/firebird
1021 + doins \
1022 + "${S}"/projects/stargazer/inst/var/00-base-00.sql \
1023 + "${S}"/projects/stargazer/inst/var/00-alter-01.sql
1024 + fi
1025 +
1026 + if use module_store_mysql ; then
1027 + # Install file into specified directory
1028 + insinto /usr/share/stargazer/db/mysql
1029 + doins "${S}"/projects/stargazer/inst/var/00-mysql-01.sql
1030 + fi
1031 +
1032 + if use module_store_postgres ; then
1033 + # Install files into specified directory
1034 + insinto /usr/share/stargazer/db/postgresql
1035 + doins \
1036 + "${S}"/projects/stargazer/inst/var/00-base-00.postgresql.sql \
1037 + "${S}"/projects/stargazer/inst/var/00-alter-01.postgresql.sql
1038 + fi
1039 +
1040 + if use module_other_smux ; then
1041 + # Install files into specified directory
1042 + insinto /usr/share/snmp/mibs
1043 + doins "${S}"/projects/stargazer/plugins/other/smux/STG-MIB.mib
1044 + fi
1045 +
1046 + if use module_other_remote_script ; then
1047 + # Create subnets file based on example from mod_remote_script.conf
1048 + grep 192 "${S}"/projects/stargazer/inst/linux/etc/stargazer/conf-available.d/mod_remote_script.conf \
1049 + | sed 's/# //' > "${ED%/}"/etc/stargazer/subnets
1050 +
1051 + # Correct permissions for file
1052 + fperms 0640 /etc/stargazer/subnets
1053 + fi
1054 +
1055 + # Correct permissions for files
1056 + fperms 0640 \
1057 + /etc/stargazer/rules \
1058 + /etc/stargazer/stargazer.conf
1059 +
1060 + # Install files into specified directory for selected modules
1061 + insinto /etc/stargazer/conf-available.d
1062 + insopts -m 0640
1063 +
1064 + local module
1065 + for module in ${!MODULES[@]} ; do
1066 + use $module && doins "${S}"/projects/stargazer/inst/linux/etc/stargazer/conf-available.d/${MODULES[$module]#*:}.conf
1067 + done
1068 +
1069 + # Create symlinks of configs for selected modules
1070 + for module in ${!MODULES[@]} ; do
1071 + use $module \
1072 + && dosym \
1073 + /etc/stargazer/conf-available.d/${MODULES[$module]#*:}.conf \
1074 + /etc/stargazer/conf-enabled.d/${MODULES[$module]#*:}.conf
1075 + done
1076 + fi
1077 +
1078 + # Correct user and group for files and directories
1079 + if use sgconv || use rscriptd || use sgauth || use stargazer ; then
1080 + fowners -R stg:stg /etc/stargazer
1081 + fi
1082 +
1083 + # Put the files in the right folder to support multilib
1084 + if [ ! -e "${ED}"/usr/$(get_libdir) ] ; then
1085 + mv "${ED}"/usr/lib/ "${ED}"/usr/$(get_libdir) \
1086 + || die "Failed to move library directory for multilib support"
1087 + fi
1088 +}
1089 +
1090 +pkg_setup() {
1091 + # Add user and group to system only when necessary
1092 + if use sgconv || use rscriptd || use sgauth || use stargazer ; then
1093 + enewgroup stg
1094 + enewuser stg -1 -1 -1 stg
1095 + fi
1096 +}
1097 +
1098 +pkg_postinst() {
1099 + if use sgconv ; then
1100 + einfo "\nSgconv:"
1101 + einfo "----------"
1102 + einfo "For further use edit /etc/stargazer/sgconv.conf."
1103 + fi
1104 +
1105 + if use radius ; then
1106 + einfo "\nRadius:"
1107 + einfo "-------"
1108 + einfo "For further use emerge net-dialup/freeradius.\n"
1109 +
1110 + einfo "Example config:\n"
1111 +
1112 + einfo "stg {"
1113 + einfo " local_port = 6667"
1114 + einfo " server = localhost"
1115 + einfo " port = 6666"
1116 + einfo " password = 123456"
1117 + einfo " }\n"
1118 +
1119 + einfo "You should place 'stg' into section Instantiate, Authorize."
1120 + einfo "In section Authentificate 'stg' should go in sub-section"
1121 + einfo "Auth-Type before other authentifications modules:\n"
1122 +
1123 + einfo "Auth-Type PAP {"
1124 + einfo " stg"
1125 + einfo " pap"
1126 + einfo "}\n"
1127 +
1128 + einfo "It also may be used in section Accounting and Post-Auth."
1129 +
1130 + use module_auth_freeradius || einfo "\nFor use RADIUS enable USE-flag module_auth_freeradius."
1131 + fi
1132 +
1133 + if use rscriptd ; then
1134 + einfo "\nRemote Script Executer:"
1135 + einfo "-----------------------"
1136 + einfo "For further use edit /etc/stargazer/rscriptd.conf."
1137 + einfo "You have to change 'Password' field at least."
1138 + fi
1139 +
1140 + if use sgauth ; then
1141 + einfo "\nSgauth:"
1142 + einfo "-------"
1143 + einfo "For further use edit /etc/stargazer/sgauth.conf."
1144 + einfo "You have to change 'ServerName', 'Login', 'Password' fields at least."
1145 + fi
1146 +
1147 + if use sgconf ; then
1148 + einfo "\nSgconf:"
1149 + einfo "-------"
1150 + use module_config_sgconfig \
1151 + || einfo "For further use enable USE-flag module_config_sgconfig."
1152 + fi
1153 +
1154 + if use sgconf_xml ; then
1155 + einfo "\nSgconf_xml:"
1156 + einfo "-----------"
1157 + use module_config_rpcconfig \
1158 + || einfo "For further use enable USE-flag module_config_rpcconfig."
1159 + fi
1160 +
1161 + if use stargazer ; then
1162 + einfo "\nStargazer:"
1163 + einfo "----------"
1164 + einfo "Modules availability:\n"
1165 + if use module_auth_always_online ; then
1166 + einfo "* module_auth_always_online available."
1167 + fi
1168 + if use module_auth_internet_access ; then
1169 + einfo "* module_auth_internet_access available."
1170 + fi
1171 + if use module_auth_freeradius ; then
1172 + einfo "* module_auth_freeradius available.\n"
1173 + einfo "For further use emerge net-dialup/freeradius.\n"
1174 + use radius || einfo "\n For use RADIUS enable use USE-flag radius."
1175 + fi
1176 + if use module_capture_ipq ; then
1177 + einfo "* module_capture_ipq available."
1178 + fi
1179 + if use module_capture_ether ; then
1180 + einfo "* module_capture_ether available."
1181 + fi
1182 + if use module_capture_netflow ; then
1183 + einfo "* module_capture_netflow available.\n"
1184 + einfo "For further use emerge any netflow sensor:\n"
1185 + einfo "net-firewall/ipt_netflow or net-analyzer/softflowd.\n"
1186 + fi
1187 + if use module_config_sgconfig ; then
1188 + einfo "* module_config_sgconfig available."
1189 + fi
1190 + if use module_config_rpcconfig ; then
1191 + einfo "* module_config_rpcconfig available.\n"
1192 + einfo "KNOWN BUG: Sometimes you can't configure Stargazer"
1193 + einfo "through xml-based configurator, because module is not responding."
1194 + einfo "This bug is introduced by xmlrpc-c library."
1195 + einfo "This bug proceeds very rare, but it still exists.\n"
1196 + fi
1197 + if use module_other_ping ; then
1198 + einfo "* module_other_ping available."
1199 + fi
1200 + if use module_other_smux ; then
1201 + einfo "* module_other_smux available.\n"
1202 + einfo "For further use emerge net-analyzer/net-snmp.\n"
1203 + fi
1204 + if use module_other_remote_script ; then
1205 + einfo "* module_other_remote_script available.\n"
1206 + einfo "For further use edit /etc/stargazer/subnets.\n"
1207 + fi
1208 + if use module_store_files ; then
1209 + einfo "* module_store_files available."
1210 + fi
1211 + if use module_store_firebird ; then
1212 + einfo "* module_store_firebird available.\n"
1213 + einfo "You should add 'firebird' user to stg group:\n"
1214 + einfo "# usermod -a -G stg firebird\n"
1215 + einfo "and restart firebird:\n"
1216 + einfo "# /etc/init.d/firebird restart\n"
1217 + einfo "Stargazer DB schema for Firebird is here: /usr/share/stargazer/db/firebird"
1218 + einfo "For new setup you should execute 00-base-00.sql:\n"
1219 + einfo "# fbsql -q -i /usr/share/stargazer/db/firebird/00-base-00.sql\n"
1220 + einfo "For upgrade from version 2.406 you should execute 00-alter-01.sql:\n"
1221 + einfo "# fbsql -i /usr/share/stargazer/db/firebird/00-alter-01.sql\n"
1222 + fi
1223 + if use module_store_mysql ; then
1224 + einfo "* module_store_mysql available.\n"
1225 + einfo "For upgrade from version 2.406 you should execute 00-mysql-01.sql:\n"
1226 + einfo "# mysql < /usr/share/stargazer/db/mysql/00-mysql-01.sql\n"
1227 + fi
1228 + if use module_store_postgres ; then
1229 + einfo "* module_store_postgres available.\n"
1230 + einfo "DB schema for PostgresSQL is here: /usr/share/stargazer/db/postgresql"
1231 + einfo "For new setup you should execute 00-base-00.postgresql.sql:\n"
1232 + einfo "# psql -f /usr/share/stargazer/db/postgresql/00-base-00.postgresql.sql\n"
1233 + einfo "For upgrade from version 2.406 you should execute 00-alter-01.sql:\n"
1234 + einfo "# psql -f /usr/share/stargazer/db/postgresql/00-alter-01.sql\n"
1235 + fi
1236 + einfo "\n For all storage backends:\n"
1237 + einfo "* Default admin login - admin, default admin password - 123456."
1238 + einfo "* Default subscriber login - test, default subscriber password - 123456.\n"
1239 + einfo "Don't run newer versions without reading their ChangeLog first,"
1240 + einfo "it can be found in /usr/share/doc/${PF}"
1241 + fi
1242 + if use debug ; then
1243 + ewarn "\nThis is a debug build, avoid to use it in production."
1244 + fi
1245 +}
1246
1247 diff --git a/net-misc/stargazer/stargazer-2.408.ebuild b/net-misc/stargazer/stargazer-2.408.ebuild
1248 deleted file mode 100644
1249 index 112fde0575b..00000000000
1250 --- a/net-misc/stargazer/stargazer-2.408.ebuild
1251 +++ /dev/null
1252 @@ -1,558 +0,0 @@
1253 -# Copyright 1999-2014 Gentoo Foundation
1254 -# Distributed under the terms of the GNU General Public License v2
1255 -
1256 -EAPI="5"
1257 -
1258 -inherit eutils linux-info multilib user
1259 -
1260 -DESCRIPTION="Billing system for small home and office networks"
1261 -HOMEPAGE="http://stg.dp.ua/"
1262 -LICENSE="GPL-2"
1263 -
1264 -MY_P="stg-${PV}"
1265 -SRC_URI="http://stg.dp.ua/download/server/${PV}/${MY_P}.tar.gz"
1266 -SLOT="0"
1267 -KEYWORDS="~amd64 ~x86"
1268 -
1269 -S="${WORKDIR}/${MY_P}"
1270 -
1271 -REQUIRED_USE="stargazer? ( ^^ ( module_store_files module_store_firebird module_store_mysql module_store_postgres ) )"
1272 -
1273 -RDEPEND="module_config_rpcconfig? ( dev-libs/xmlrpc-c[abyss] sys-libs/zlib )
1274 - module_config_sgconfig? ( dev-libs/expat )
1275 - module_store_firebird? ( >=dev-db/firebird-2.0.3.12981.0-r6 )
1276 - module_store_mysql? ( virtual/mysql )
1277 - module_store_postgres? ( dev-db/postgresql dev-libs/openssl sys-libs/zlib )
1278 - sgconf? ( dev-libs/expat )
1279 - sgconf_xml? ( dev-libs/expat )"
1280 -
1281 -DEPEND="${RDEPEND}
1282 - doc? ( dev-libs/libxslt )"
1283 -
1284 -PROJECTS="sgconv rlm_stg rscriptd sgauth sgconf sgconf_xml stargazer"
1285 -
1286 -STG_MODULES_AUTH="always_online internet_access freeradius"
1287 -STG_MODULES_CAPTURE="ipq ether netflow"
1288 -STG_MODULES_CONFIG="sgconfig rpcconfig"
1289 -STG_MODULES_OTHER="ping smux remote_script"
1290 -STG_MODULES_STORE="files firebird mysql postgres"
1291 -
1292 -declare -A MODULES
1293 -MODULES=( [module_auth_always_online]="authorization\/ao:mod_ao"
1294 - [module_auth_internet_access]="authorization\/inetaccess:mod_ia"
1295 - [module_auth_freeradius]="other\/radius:mod_radius"
1296 - [module_capture_ipq]="capture\/ipq_linux:mod_cap_ipq"
1297 - [module_capture_ether]="capture\/ether_linux:mod_cap_ether"
1298 - [module_capture_netflow]="capture\/cap_nf:mod_cap_nf"
1299 - [module_config_sgconfig]="configuration\/sgconfig:mod_sg"
1300 - [module_config_rpcconfig]="configuration\/rpcconfig:mod_rpc"
1301 - [module_other_ping]="other\/ping:mod_ping"
1302 - [module_other_smux]="other\/smux:mod_smux"
1303 - [module_other_remote_script]="other\/rscript:mod_remote_script"
1304 - [module_store_files]="store\/files:store_files"
1305 - [module_store_firebird]="store\/firebird:store_firebird"
1306 - [module_store_mysql]="store\/mysql:store_mysql"
1307 - [module_store_postgres]="store\/postgresql:store_postgresql"
1308 -)
1309 -
1310 -IUSE="sgconv radius rscriptd sgauth sgconf sgconf_xml stargazer debug doc examples static-libs"
1311 -
1312 -for module in ${STG_MODULES_AUTH} ; do IUSE="${IUSE} module_auth_${module}" ; done
1313 -for module in ${STG_MODULES_CAPTURE} ; do IUSE="${IUSE} module_capture_${module}" ; done
1314 -for module in ${STG_MODULES_CONFIG} ; do IUSE="${IUSE} module_config_${module}" ; done
1315 -for module in ${STG_MODULES_OTHER} ; do IUSE="${IUSE} module_other_${module}" ; done
1316 -for module in ${STG_MODULES_STORE} ; do IUSE="${IUSE} module_store_${module}" ; done
1317 -
1318 -IUSE=${IUSE/stargazer/+stargazer}
1319 -IUSE=${IUSE/module_store_files/+module_store_files}
1320 -
1321 -src_prepare() {
1322 - # Patches already in upstream's trunk
1323 - # Rename convertor to sgconv to avoid possible file name collisions
1324 - mv "${S}"/projects/convertor/ "${S}"/projects/sgconv/ || die "Couldn't move convertor folder"
1325 - mv "${S}"/projects/sgconv/convertor.conf "${S}"/projects/sgconv/sgconv.conf || die "Couldn't move convertor config"
1326 - epatch "${FILESDIR}"/patches/stg-2.408-sgconv-upstream.patch
1327 -
1328 - # Fix dependency on fbclient for module_store_firebird
1329 - epatch "${FILESDIR}"/patches/stg-2.408-makefile-firebird-upstream.patch
1330 -
1331 - # Debug support. Install radius lib to /usr/lib/freeradius
1332 - epatch "${FILESDIR}"/patches/stg-2.408-makefile-build-upstream.patch
1333 -
1334 - # Don't compile sgconv always with debug. Remove MAKEOPTS=-j1
1335 - epatch "${FILESDIR}"/patches/stg-2.408-build-upstream.patch
1336 -
1337 - # Rewrite config for rscriptd
1338 - epatch "${FILESDIR}"/patches/stg-2.408-rscriptd.conf-upstream.patch
1339 -
1340 - # Rewrite config for sgauth
1341 - epatch "${FILESDIR}"/patches/stg-2.408-sgauth.conf-upstream.patch
1342 -
1343 - # Standardization of 'On-scripts'
1344 - epatch "${FILESDIR}"/patches/stg-2.408-on-upstream.patch
1345 -
1346 - # FreeBSD install directory
1347 - epatch "${FILESDIR}"/patches/stg-2.408-radius-upstream.patch
1348 -
1349 - # Install demo scripts for rscriptd
1350 - epatch "${FILESDIR}"/patches/stg-2.408-rscriptd-upstream.patch
1351 -
1352 - # Fix crush on stop
1353 - epatch "${FILESDIR}"/patches/stg-2.408-fix-crash-on-stop.patch
1354 -
1355 - for project in ${PROJECTS} ; do
1356 - # Rename build script to configure for further econf launch in every projects
1357 - mv "${S}"/projects/${project}/build "${S}"/projects/${project}/configure || die "Couldn't move build folder for ${project}"
1358 -
1359 - # Change check for debug build
1360 - sed -i 's/if \[ "$1" = "debug" \]/if \[ "${10}" = "--enable-debug" \]/' "${S}"/projects/${project}/configure || die "sed for debug check failed"
1361 - done
1362 -
1363 - # Correct working directory, user and group for sgconv.conf, store_files.conf
1364 - # Correct paths for rscriptd.conf, store_firebird.conf, mod_remote_scriptd.conf, stargazer.conf, rpcconfig.cpp, 00-base-00.sql
1365 - epatch "${FILESDIR}"/patches/stg-2.408-correct-paths.patch
1366 -
1367 - # Correct target install-data for stargazer, rscriptd, sgauth, remove debug symbols stripping
1368 - epatch "${FILESDIR}"/patches/stg-2.408-makefile.patch
1369 -
1370 - # Remove make from script (for keeping symbols), always add variable to Makefile.conf for all projects
1371 - epatch "${FILESDIR}"/patches/stg-2.408-build.patch
1372 -
1373 - # Remove static-libs if not needed
1374 - use static-libs || epatch "${FILESDIR}"/patches/stg-2.408-static-libs.patch
1375 -
1376 - # Define which module to compile
1377 - for module in ${!MODULES[@]} ; do
1378 - if ! use $module ; then
1379 - sed -i "s/${MODULES[$module]%:*}//" "${S}"/projects/stargazer/configure || die "sed for module configure failed"
1380 - fi
1381 - done
1382 -
1383 - # Correct Gentoo init script provided by upstream (TODO: Remove in further releases, already fixed in upstream's trunk)
1384 - if use stargazer ; then
1385 - sed -i 's/opts/extra_commands/' "${S}"/projects/stargazer/inst/linux/etc/init.d/stargazer.gentoo || die "sed for stargazer failed"
1386 - fi
1387 -
1388 - # Correct Gentoo init script dependencies
1389 - if use module_store_files ; then
1390 - sed -i '11d' "${S}"/projects/stargazer/inst/linux/etc/init.d/stargazer.gentoo || die "sed for module_store_files failed"
1391 - fi
1392 -
1393 - if use module_store_firebird ; then
1394 - sed -i '11d;s/need net/need net firebird/' "${S}"/projects/stargazer/inst/linux/etc/init.d/stargazer.gentoo || die "sed for module_store_firebird failed"
1395 - fi
1396 -
1397 - if use module_store_mysql ; then
1398 - sed -i '11d;s/need net/need net mysql/' "${S}"/projects/stargazer/inst/linux/etc/init.d/stargazer.gentoo || die "sed for module_store_mysql failed"
1399 - fi
1400 -
1401 - if use module_store_postgres ; then
1402 - sed -i '11d;s/need net/need net postgresql/' "${S}"/projects/stargazer/inst/linux/etc/init.d/stargazer.gentoo || die "sed for module_store_postgres failed"
1403 - fi
1404 -
1405 - # Check for IPQ subsystem availability
1406 - ( use module_capture_ipq && kernel_is ge 3 5 ) && die "IPQ subsystem is gone since Linux kernel 3.5. You can't compile module_capture_ipq with your current kernel."
1407 -
1408 - epatch_user
1409 -}
1410 -
1411 -src_configure() {
1412 - # Define local variables, strip '+' symbol for used by default USE flags
1413 - local USEFLAGS=(${IUSE//+})
1414 - local PROJECTS=($PROJECTS)
1415 -
1416 - for (( i = 0 ; i < ${#PROJECTS[@]} ; i++ )) ; do
1417 - if use ${USEFLAGS[$i]} ; then
1418 - cd "${S}"/projects/${PROJECTS[$i]} || die "cd to ${PROJECTS[$i]} failed"
1419 - econf $(use_enable debug)
1420 - fi
1421 - done
1422 -}
1423 -
1424 -src_compile() {
1425 - # Define local variables, strip '+' symbol for used by default USE flags
1426 - local USEFLAGS=(${IUSE//+})
1427 - local PROJECTS=($PROJECTS)
1428 -
1429 - # Set jobs to 1 for debug build
1430 - use debug && MAKEOPTS="-j1"
1431 -
1432 - # Build necessary libraries first
1433 - touch "${S}"/Makefile.conf
1434 - cd "${S}"/stglibs || die "cd to stglibs failed"
1435 - emake STG_LIBS="ia.lib srvconf.lib"
1436 -
1437 - for (( i = 0 ; i < ${#PROJECTS[@]} ; i++ )) ; do
1438 - if use ${USEFLAGS[$i]} ; then
1439 - cd "${S}"/projects/${PROJECTS[$i]} || die "cd to ${PROJECTS[$i]} failed"
1440 - emake
1441 - fi
1442 - done
1443 -
1444 - if use doc ; then
1445 - cd "${S}"/doc/xmlrpc || die "cd to doc/xmlrpc failed"
1446 - emake
1447 - fi
1448 -}
1449 -
1450 -src_install() {
1451 - dodoc ChangeLog
1452 -
1453 - if use rscriptd || use stargazer ; then
1454 - # Install config file for logrotate
1455 - insinto /etc/logrotate.d
1456 - newins "${FILESDIR}"/logrotate stargazer
1457 -
1458 - # Keeping logs directory
1459 - diropts -m 755 -o stg -g stg
1460 - keepdir /var/log/stargazer
1461 - if use stargazer ; then
1462 - diropts -m 775 -o stg -g stg
1463 - keepdir /var/lib/stargazer
1464 - fi
1465 - fi
1466 -
1467 - if use doc ; then
1468 - # Install files into docs directory
1469 - dodoc "${S}"/projects/stargazer/inst/var/base.dia
1470 - dodoc "${S}"/doc/proto_client.gif
1471 - dodoc "${S}"/doc/proto_server.gif
1472 -
1473 - # Install html documentation
1474 - docinto html/xmlrpc
1475 - dohtml -r "${S}"/doc/xmlrpc/book/
1476 - fi
1477 -
1478 - if use examples ; then
1479 - # Install files into specified directory
1480 - insinto /usr/share/stargazer
1481 - doins -r "${S}"/projects/stargazer/scripts
1482 - doins "${S}"/doc/xmlrpc.php
1483 - fi
1484 -
1485 - if use sgconv ; then
1486 - cd "${S}"/projects/sgconv || die "cd to sgconv project failed"
1487 -
1488 - emake DESTDIR="${D}" PREFIX="${D}" install
1489 -
1490 - # Install files into specified directory
1491 - insinto /etc/stargazer
1492 - doins "${S}"/projects/sgconv/sgconv.conf
1493 -
1494 - # Install manual page
1495 - doman "${FILESDIR}"/mans/sgconv.1
1496 - fi
1497 -
1498 - if use radius ; then
1499 - cd "${S}"/projects/rlm_stg || die "cd to rlm_stg project failed"
1500 -
1501 - emake DESTDIR="${D}" PREFIX="${D}" install
1502 - fi
1503 -
1504 - if use rscriptd ; then
1505 - cd "${S}"/projects/rscriptd || die "cd to rscriptd project failed"
1506 -
1507 - emake DESTDIR="${D}" PREFIX="${D}" install
1508 -
1509 - # Install Gentoo init script
1510 - doinitd "${FILESDIR}"/rscriptd
1511 -
1512 - # Correct permissions for file
1513 - fperms 0640 /etc/stargazer/rscriptd.conf
1514 -
1515 - # Install manual page
1516 - doman "${FILESDIR}"/mans/rscriptd.8
1517 - fi
1518 -
1519 - if use sgauth ; then
1520 - cd "${S}"/projects/sgauth || die "cd to sgauth project failed"
1521 -
1522 - emake DESTDIR="${D}" PREFIX="${D}" install
1523 -
1524 - # Correct permissions for file
1525 - fperms 0640 /etc/stargazer/sgauth.conf
1526 -
1527 - # Install manual page
1528 - doman "${FILESDIR}"/mans/sgauth.8
1529 - fi
1530 -
1531 - if use sgconf ; then
1532 - cd "${S}"/projects/sgconf || die "cd to sgconf project failed"
1533 -
1534 - emake DESTDIR="${D}" PREFIX="${D}" install
1535 -
1536 - # Install manual page
1537 - doman "${FILESDIR}"/mans/sgconf.1
1538 - fi
1539 -
1540 - if use sgconf_xml ; then
1541 - cd "${S}"/projects/sgconf_xml || die "cd to sgconf_xml project failed"
1542 -
1543 - emake DESTDIR="${D}" PREFIX="${D}" install
1544 -
1545 - # Install manual page
1546 - doman "${FILESDIR}"/mans/sgconf_xml.1
1547 - fi
1548 -
1549 - if use stargazer ; then
1550 - cd "${S}"/projects/stargazer || die "cd to stargazer project failed"
1551 -
1552 - emake DESTDIR="${D}" PREFIX="${D}" install
1553 -
1554 - # Install docs
1555 - dodoc BUGS CHANGES README TODO
1556 -
1557 - # Install and rename Gentoo init script
1558 - newinitd "${S}"/projects/stargazer/inst/linux/etc/init.d/stargazer.gentoo stargazer
1559 -
1560 - # Install manual page
1561 - doman "${FILESDIR}"/mans/stargazer.8
1562 -
1563 - # Install files needed for module_store_files
1564 - if use module_store_files ; then
1565 - # Install files into specified directory
1566 - insinto /var/lib
1567 - doins -r "${S}"/projects/stargazer/inst/var/stargazer
1568 -
1569 - # Correct user and group for files and directories
1570 - fowners -R stg:stg /var/lib/stargazer
1571 - fi
1572 -
1573 - if use module_store_firebird ; then
1574 - # Install files into specified directory
1575 - insinto /usr/share/stargazer/db/firebird
1576 - doins \
1577 - "${S}"/projects/stargazer/inst/var/00-base-00.sql \
1578 - "${S}"/projects/stargazer/inst/var/00-alter-01.sql
1579 - fi
1580 -
1581 - if use module_store_mysql ; then
1582 - # Install file into specified directory
1583 - insinto /usr/share/stargazer/db/mysql
1584 - doins "${S}"/projects/stargazer/inst/var/00-mysql-01.sql
1585 - fi
1586 -
1587 - if use module_store_postgres ; then
1588 - # Install files into specified directory
1589 - insinto /usr/share/stargazer/db/postgresql
1590 - doins \
1591 - "${S}"/projects/stargazer/inst/var/00-base-00.postgresql.sql \
1592 - "${S}"/projects/stargazer/inst/var/00-alter-01.postgresql.sql
1593 - fi
1594 -
1595 - if use module_other_smux ; then
1596 - # Install files into specified directory
1597 - insinto /usr/share/snmp/mibs
1598 - doins "${S}"/projects/stargazer/plugins/other/smux/STG-MIB.mib
1599 - fi
1600 -
1601 - if use module_other_remote_script ; then
1602 - # Create subnets file based on example from mod_remote_script.conf
1603 - grep 192 "${S}"/projects/stargazer/inst/linux/etc/stargazer/conf-available.d/mod_remote_script.conf | sed 's/# //' > "${D}"/etc/stargazer/subnets
1604 -
1605 - # Correct permissions for file
1606 - fperms 0640 /etc/stargazer/subnets
1607 - fi
1608 -
1609 - # Correct permissions for files
1610 - fperms 0640 \
1611 - /etc/stargazer/rules \
1612 - /etc/stargazer/stargazer.conf
1613 -
1614 - # Install files into specified directory for selected modules
1615 - insinto /etc/stargazer/conf-available.d
1616 - insopts -m 0640
1617 -
1618 - for module in ${!MODULES[@]} ; do
1619 - use $module && doins "${S}"/projects/stargazer/inst/linux/etc/stargazer/conf-available.d/${MODULES[$module]#*:}.conf
1620 - done
1621 -
1622 - # Create symlinks of configs for selected modules
1623 - for module in ${!MODULES[@]} ; do
1624 - use $module && dosym /etc/stargazer/conf-available.d/${MODULES[$module]#*:}.conf /etc/stargazer/conf-enabled.d/${MODULES[$module]#*:}.conf
1625 - done
1626 - fi
1627 -
1628 - # Correct user and group for files and directories
1629 - ( use sgconv || use rscriptd || use sgauth || use stargazer ) && fowners -R stg:stg /etc/stargazer
1630 -
1631 - # Put the files in the right folder to support multilib
1632 - if [ ! -e "${ED}"/usr/$(get_libdir) ] ; then
1633 - mv "${ED}"/usr/lib/ "${ED}"/usr/$(get_libdir) || die "Failed to move library directory for multilib support"
1634 - fi
1635 -}
1636 -
1637 -pkg_setup() {
1638 - # Add user and group to system only when necessary
1639 - if use sgconv || use rscriptd || use sgauth || use stargazer ; then
1640 - enewgroup stg
1641 -
1642 - # Add stg user to system (no home directory specified, because otherwise it will be result in stg:root ownership on it)
1643 - enewuser stg -1 -1 -1 stg
1644 - fi
1645 -}
1646 -
1647 -pkg_postinst() {
1648 - if use sgconv ; then
1649 - einfo "\nSgconv:"
1650 - einfo "----------"
1651 - einfo " For further use of sgconv please edit /etc/stargazer/sgconv.conf depending on your needs."
1652 - fi
1653 -
1654 - if use radius ; then
1655 - einfo "\nRadius:"
1656 - einfo "-------"
1657 - einfo " For further use of radius, emerge net-dialup/freeradius.\n"
1658 -
1659 - einfo " Example config:\n"
1660 -
1661 - einfo " stg {"
1662 - einfo " local_port = 6667"
1663 - einfo " server = localhost"
1664 - einfo " port = 6666"
1665 - einfo " password = 123456"
1666 - einfo " }\n"
1667 -
1668 - einfo " You should place 'stg' into section Instantiate, Authorize."
1669 - einfo " In section Authentificate 'stg' should go in sub-section Auth-Type before other authentifications modules:\n"
1670 -
1671 - einfo " Auth-Type PAP {"
1672 - einfo " stg"
1673 - einfo " pap"
1674 - einfo " }\n"
1675 -
1676 - einfo " It also may be used in section Accounting and Post-Auth."
1677 -
1678 - use module_auth_freeradius || einfo "\n For use RADIUS data processing you should also enable USE-flag module_auth_freeradius."
1679 - fi
1680 -
1681 - if use rscriptd ; then
1682 - einfo "\nRemote Script Executer:"
1683 - einfo "-----------------------"
1684 - einfo " For further use of rscriptd please edit /etc/stargazer/rscriptd.conf depending on your needs."
1685 - einfo " You have to change 'Password' field at least."
1686 - fi
1687 -
1688 - if use sgauth ; then
1689 - einfo "\nSgauth:"
1690 - einfo "-------"
1691 - einfo " For further use of sgauth please edit /etc/stargazer/sgauth.conf depending on your needs."
1692 - einfo " You have to change 'ServerName', 'Login', 'Password' fields at least."
1693 - fi
1694 -
1695 - if use sgconf ; then
1696 - einfo "\nSgconf:"
1697 - einfo "-------"
1698 - use module_config_sgconfig || einfo " For further use of sgconf utility you should also enable USE-flag module_config_sgconfig."
1699 - fi
1700 -
1701 - if use sgconf_xml ; then
1702 - einfo "\nSgconf_xml:"
1703 - einfo "-----------"
1704 - use module_config_rpcconfig || einfo " For further use of sgconf_xml utility you should also enable USE-flag module_config_rpcconfig."
1705 - fi
1706 -
1707 - if use stargazer ; then
1708 - einfo "\nStargazer:"
1709 - einfo "----------"
1710 - einfo " Modules availability:\n"
1711 -
1712 - if use module_auth_always_online ; then
1713 - einfo " * module_auth_always_online available."
1714 - fi
1715 -
1716 - if use module_auth_internet_access ; then
1717 - einfo " * module_auth_internet_access available."
1718 - fi
1719 -
1720 - if use module_auth_freeradius ; then
1721 - einfo " * module_auth_freeradius available.\n"
1722 - einfo " For further use of module, emerge net-dialup/freeradius.\n"
1723 - use radius || einfo "\n For use RADIUS data processing you should also enable use USE-flag radius."
1724 - fi
1725 -
1726 - if use module_capture_ipq ; then
1727 - einfo " * module_capture_ipq available."
1728 - fi
1729 -
1730 - if use module_capture_ether ; then
1731 - einfo " * module_capture_ether available."
1732 - fi
1733 -
1734 - if use module_capture_netflow ; then
1735 - einfo " * module_capture_netflow available.\n"
1736 - einfo " For further use of module, emerge net-firewall/ipt_netflow or net-analyzer/softflowd.\n"
1737 - fi
1738 -
1739 - if use module_config_sgconfig ; then
1740 - einfo " * module_config_sgconfig available."
1741 - fi
1742 -
1743 - if use module_config_rpcconfig ; then
1744 - einfo " * module_config_rpcconfig available.\n"
1745 - einfo " KNOWN BUG: Sometimes you can't configure Stargazer through xml-based configurator,"
1746 - einfo " because module is not responding."
1747 - einfo " This bug is introduced by xmlrpc-c library. This bug proceeds very rare, but it still exists.\n"
1748 - fi
1749 -
1750 - if use module_other_ping ; then
1751 - einfo " * module_other_ping available."
1752 - fi
1753 -
1754 - if use module_other_smux ; then
1755 - einfo " * module_other_smux available.\n"
1756 - einfo " For further use of module emerge net-analyzer/net-snmp.\n"
1757 - fi
1758 -
1759 - if use module_other_remote_script ; then
1760 - einfo " * module_other_remote_script available.\n"
1761 - einfo " Don't forget to edit /etc/stargazer/subnets file depending on your needs."
1762 - fi
1763 -
1764 - if use module_store_files ; then
1765 - einfo " * module_store_files available.\n"
1766 - einfo " Necessary and sufficient rights to the directory /var/lib/stargazer for this backend is 0755."
1767 - einfo " You may fix it if needed.\n"
1768 - fi
1769 -
1770 - if use module_store_firebird ; then
1771 - einfo " * module_store_firebird available.\n"
1772 - einfo " Necessary and sufficient rights to the directory /var/lib/stargazer for this backend is 0775."
1773 - einfo " Check that it was so, and fix it if needed."
1774 - einfo " You should add 'firebird' user to stg group:\n"
1775 - einfo " # usermod -a -G stg firebird\n"
1776 - einfo " and restart firebird:\n"
1777 - einfo " # /etc/init.d/firebird restart\n"
1778 - einfo " Stargazer DB schema for Firebird is here: /usr/share/stargazer/db/firebird"
1779 - einfo " For new setup you should execute 00-base-00.sql:\n"
1780 - einfo " # fbsql -q -i /usr/share/stargazer/db/firebird/00-base-00.sql\n"
1781 - einfo " For upgrade from version 2.406 you should execute 00-alter-01.sql:\n"
1782 - einfo " # fbsql -q -u <username> -p <password> -d <database> -i /usr/share/stargazer/db/firebird/00-alter-01.sql\n"
1783 - fi
1784 -
1785 - if use module_store_mysql ; then
1786 - einfo " * module_store_mysql available.\n"
1787 - einfo " For upgrade from version 2.406 you should execute 00-mysql-01.sql:\n"
1788 - einfo " # mysql -h <hostname> -P <port> -u <username> -p <password> <database> < /usr/share/stargazer/db/mysql/00-mysql-01.sql\n"
1789 - fi
1790 -
1791 - if use module_store_postgres ; then
1792 - einfo " * module_store_postgres available.\n"
1793 - einfo " Stargazer DB schema for PostgresSQL is here: /usr/share/stargazer/db/postgresql"
1794 - einfo " For new setup you should execute 00-base-00.postgresql.sql:\n"
1795 - einfo " # psql -h <hostname> -p <port> -U <username> -d <database> -W -f /usr/share/stargazer/db/postgresql/00-base-00.postgresql.sql\n"
1796 - einfo " For upgrade from version 2.406 you should execute 00-alter-01.sql:\n"
1797 - einfo " # psql -h <hostname> -p <port> -U <username> -d <database> -W -f /usr/share/stargazer/db/postgresql/00-alter-01.sql\n"
1798 - fi
1799 -
1800 - einfo "\n For all storage backends:\n"
1801 - einfo " * Default admin login - admin, default admin password - 123456."
1802 - einfo " * Default subscriber login - test, default subscriber password - 123456.\n"
1803 - einfo "Don't run newer versions without reading their ChangeLog first,"
1804 - einfo "it can be found in /usr/share/doc/${PF}"
1805 - fi
1806 -
1807 - if use debug ; then
1808 - ewarn "\nThis is a debug build. You should avoid to use it in production.\n"
1809 - fi
1810 -}