1 |
commit: 9d1c97c8f93094dcba31a4d533f39299093cf3d7 |
2 |
Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jul 11 21:04:27 2021 +0000 |
4 |
Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jul 11 21:18:26 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9d1c97c8 |
7 |
|
8 |
net-misc/stargazer: drop old version |
9 |
|
10 |
Closes: https://bugs.gentoo.org/781440 |
11 |
Package-Manager: Portage-3.0.20, Repoman-3.0.3 |
12 |
Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org> |
13 |
|
14 |
net-misc/stargazer/stargazer-2.408-r1.ebuild | 538 --------------------------- |
15 |
1 file changed, 538 deletions(-) |
16 |
|
17 |
diff --git a/net-misc/stargazer/stargazer-2.408-r1.ebuild b/net-misc/stargazer/stargazer-2.408-r1.ebuild |
18 |
deleted file mode 100644 |
19 |
index f4c6cf050b7..00000000000 |
20 |
--- a/net-misc/stargazer/stargazer-2.408-r1.ebuild |
21 |
+++ /dev/null |
22 |
@@ -1,538 +0,0 @@ |
23 |
-# Copyright 1999-2020 Gentoo Authors |
24 |
-# Distributed under the terms of the GNU General Public License v2 |
25 |
- |
26 |
-EAPI=7 |
27 |
- |
28 |
-PROJECTS="sgconv rlm_stg rscriptd sgauth sgconf sgconf_xml stargazer" |
29 |
- |
30 |
-STG_MODULES_AUTH="always_online internet_access freeradius" |
31 |
-STG_MODULES_CAPTURE="ipq ether netflow" |
32 |
-STG_MODULES_CONFIG="sgconfig rpcconfig" |
33 |
-STG_MODULES_OTHER="ping smux remote_script" |
34 |
-STG_MODULES_STORE="files firebird mysql postgres" |
35 |
- |
36 |
-declare -A MODULES |
37 |
-MODULES=( [module_auth_always_online]="authorization\/ao:mod_ao" |
38 |
- [module_auth_internet_access]="authorization\/inetaccess:mod_ia" |
39 |
- [module_auth_freeradius]="other\/radius:mod_radius" |
40 |
- [module_capture_ipq]="capture\/ipq_linux:mod_cap_ipq" |
41 |
- [module_capture_ether]="capture\/ether_linux:mod_cap_ether" |
42 |
- [module_capture_netflow]="capture\/cap_nf:mod_cap_nf" |
43 |
- [module_config_sgconfig]="configuration\/sgconfig:mod_sg" |
44 |
- [module_config_rpcconfig]="configuration\/rpcconfig:mod_rpc" |
45 |
- [module_other_ping]="other\/ping:mod_ping" |
46 |
- [module_other_smux]="other\/smux:mod_smux" |
47 |
- [module_other_remote_script]="other\/rscript:mod_remote_script" |
48 |
- [module_store_files]="store\/files:store_files" |
49 |
- [module_store_firebird]="store\/firebird:store_firebird" |
50 |
- [module_store_mysql]="store\/mysql:store_mysql" |
51 |
- [module_store_postgres]="store\/postgresql:store_postgresql" |
52 |
-) |
53 |
- |
54 |
-declare -A INIT |
55 |
-INIT=( [module_store_files]="11d" |
56 |
- [module_store_firebird]="11d;s/need net/need net firebird/" |
57 |
- [module_store_mysql]="11d;s/need net/need net mysql/" |
58 |
- [module_store_postgres]="11d;s/need net/need net postgresql/" |
59 |
-) |
60 |
- |
61 |
-MY_P="stg-${PV}" |
62 |
- |
63 |
-inherit flag-o-matic linux-info user |
64 |
- |
65 |
-DESCRIPTION="Billing system for small home and office networks" |
66 |
-HOMEPAGE="http://stg.dp.ua/" |
67 |
-SRC_URI="http://stg.dp.ua/download/server/${PV}/${MY_P}.tar.gz" |
68 |
- |
69 |
-LICENSE="GPL-2" |
70 |
-SLOT="0" |
71 |
-KEYWORDS="~amd64 ~x86" |
72 |
- |
73 |
-RDEPEND=" |
74 |
- module_config_rpcconfig? ( |
75 |
- dev-libs/expat |
76 |
- dev-libs/xmlrpc-c[abyss,cxx] |
77 |
- ) |
78 |
- module_config_sgconfig? ( dev-libs/expat ) |
79 |
- module_store_firebird? ( dev-db/firebird ) |
80 |
- module_store_mysql? ( dev-db/mysql-connector-c:0= ) |
81 |
- module_store_postgres? ( dev-db/postgresql:= ) |
82 |
- sgconf? ( dev-libs/expat ) |
83 |
- sgconf_xml? ( dev-libs/expat )" |
84 |
-DEPEND="${RDEPEND}" |
85 |
- |
86 |
-S="${WORKDIR}/${MY_P}" |
87 |
- |
88 |
-REQUIRED_USE="stargazer? ( ^^ ( module_store_files module_store_firebird module_store_mysql module_store_postgres ) )" |
89 |
- |
90 |
-DOCS=( BUGS ../../ChangeLog CHANGES README TODO ) |
91 |
- |
92 |
-# Patches already in upstream's trunk |
93 |
-PATCHES=( |
94 |
- # Fix dependency on fbclient for module_store_firebird |
95 |
- "${FILESDIR}"/patches/stg-2.408-makefile-firebird-upstream.patch |
96 |
- # Rewrite config for rscriptd |
97 |
- "${FILESDIR}"/patches/stg-2.408-rscriptd.conf-upstream.patch |
98 |
- # Rewrite config for sgauth |
99 |
- "${FILESDIR}"/patches/stg-2.408-sgauth.conf-upstream.patch |
100 |
- # Standardization of 'On-scripts' |
101 |
- "${FILESDIR}"/patches/stg-2.408-on-upstream.patch |
102 |
- # Install demo scripts for rscriptd |
103 |
- "${FILESDIR}"/patches/stg-2.408-rscriptd-upstream.patch |
104 |
- # Fix crush on stop |
105 |
- "${FILESDIR}"/patches/stg-2.408-fix-crash-on-stop.patch |
106 |
- # Rename convertor to sgconv to avoid possible file name collisions |
107 |
- "${FILESDIR}"/patches/stg-2.408-sgconv-upstream.patch |
108 |
- # Debug support. Install radius lib to /usr/lib/freeradius |
109 |
- "${FILESDIR}"/patches/stg-2.408-makefile-build-upstream.patch |
110 |
- # Don't compile sgconv always with debug. Remove MAKEOPTS=-j1 |
111 |
- "${FILESDIR}"/patches/stg-2.408-build-upstream.patch |
112 |
- # FreeBSD install directory |
113 |
- "${FILESDIR}"/patches/stg-2.408-radius-upstream.patch |
114 |
-) |
115 |
- |
116 |
-IUSE="sgconv radius rscriptd sgauth sgconf sgconf_xml stargazer debug" |
117 |
- |
118 |
-for module in ${STG_MODULES_AUTH} ; do IUSE="${IUSE} module_auth_${module}" ; done |
119 |
-for module in ${STG_MODULES_CAPTURE} ; do IUSE="${IUSE} module_capture_${module}" ; done |
120 |
-for module in ${STG_MODULES_CONFIG} ; do IUSE="${IUSE} module_config_${module}" ; done |
121 |
-for module in ${STG_MODULES_OTHER} ; do IUSE="${IUSE} module_other_${module}" ; done |
122 |
-for module in ${STG_MODULES_STORE} ; do IUSE="${IUSE} module_store_${module}" ; done |
123 |
- |
124 |
-IUSE=${IUSE/stargazer/+stargazer} |
125 |
-IUSE=${IUSE/module_store_files/+module_store_files} |
126 |
- |
127 |
-src_prepare() { |
128 |
- # Rename convertor to sgconv to avoid possible file name collisions |
129 |
- mv projects/convertor/ projects/sgconv/ \ |
130 |
- || die "Couldn't move convertor folder" |
131 |
- mv projects/sgconv/convertor.conf \ |
132 |
- projects/sgconv/sgconv.conf || die "Couldn't move convertor config" |
133 |
- |
134 |
- default |
135 |
- |
136 |
- local project |
137 |
- for project in ${PROJECTS} ; do |
138 |
- # Rename build script to configure for further econf launch in every project |
139 |
- mv projects/$project/build projects/$project/configure \ |
140 |
- || die "Couldn't move build folder for $project" |
141 |
- # Change check for debug build |
142 |
- sed -i 's/if \[ "$1" = "debug" \]/if \[ "${10}" = "--enable-debug" \]/' \ |
143 |
- projects/$project/configure \ |
144 |
- || die "sed for debug check failed" |
145 |
- done |
146 |
- |
147 |
- # Correct working directory, user and group for sgconv.conf, store_files.conf |
148 |
- # Correct paths for rscriptd.conf, store_firebird.conf, mod_remote_scriptd.conf, stargazer.conf, rpcconfig.cpp, 00-base-00.sql |
149 |
- eapply "${FILESDIR}"/patches/stg-2.408-correct-paths.patch |
150 |
- |
151 |
- # Correct target install-data for stargazer, rscriptd, sgauth, remove debug symbols stripping |
152 |
- eapply "${FILESDIR}"/patches/stg-2.408-makefile.patch |
153 |
- |
154 |
- # Remove make from script (for keeping symbols), always add variable to Makefile.conf for all projects |
155 |
- eapply "${FILESDIR}"/patches/stg-2.408-build.patch |
156 |
- |
157 |
- # Remove static-libs |
158 |
- eapply "${FILESDIR}"/patches/stg-2.408-static-libs.patch |
159 |
- |
160 |
- # Define which module to compile |
161 |
- local module |
162 |
- for module in ${!MODULES[@]} ; do |
163 |
- if ! use $module ; then |
164 |
- sed -i "s/${MODULES[$module]%:*}//" \ |
165 |
- projects/stargazer/configure \ |
166 |
- || die "sed for module configure failed" |
167 |
- fi |
168 |
- done |
169 |
- |
170 |
- # Correct Gentoo init script |
171 |
- sed -i -e 's/opts/extra_commands/' \ |
172 |
- -e 's/runscript/openrc-run/' \ |
173 |
- projects/stargazer/inst/linux/etc/init.d/stargazer.gentoo \ |
174 |
- || die "sed for init-script failed" |
175 |
- local init |
176 |
- for init in ${!INIT[@]} ; do |
177 |
- if use $init ; then |
178 |
- sed -i "${INIT[$init]}" \ |
179 |
- projects/stargazer/inst/linux/etc/init.d/stargazer.gentoo \ |
180 |
- || die "sed for $init failed" |
181 |
- fi |
182 |
- done |
183 |
- |
184 |
- # Check for IPQ subsystem availability |
185 |
- if use module_capture_ipq && kernel_is ge 3 5 ; then |
186 |
- die "The IPQ subsystem requires kernel 3.5 or greater." |
187 |
- fi |
188 |
-} |
189 |
- |
190 |
-src_configure() { |
191 |
- use debug && filter-flags '-O?' |
192 |
- |
193 |
- # Define local variables, strip '+' symbol for used by default USE flags |
194 |
- local USEFLAGS=(${IUSE//+}) |
195 |
- local PROJECTS=($PROJECTS) |
196 |
- local i |
197 |
- |
198 |
- for (( i = 0 ; i < ${#PROJECTS[@]} ; i++ )) ; do |
199 |
- if use ${USEFLAGS[$i]} ; then |
200 |
- cd "${S}"/projects/${PROJECTS[$i]} \ |
201 |
- || die "cd to ${PROJECTS[$i]} failed" |
202 |
- econf $(use_enable debug) |
203 |
- fi |
204 |
- done |
205 |
-} |
206 |
- |
207 |
-src_compile() { |
208 |
- # Define local variables, strip '+' symbol for used by default USE flags |
209 |
- local USEFLAGS=(${IUSE//+}) |
210 |
- local PROJECTS=($PROJECTS) |
211 |
- local i |
212 |
- |
213 |
- # Set jobs to 1 for debug build |
214 |
- use debug && MAKEOPTS="-j1" |
215 |
- |
216 |
- # Build necessary libraries first |
217 |
- touch Makefile.conf |
218 |
- cd stglibs || die "cd to stglibs failed" |
219 |
- emake STG_LIBS="ia.lib srvconf.lib" |
220 |
- |
221 |
- for (( i = 0 ; i < ${#PROJECTS[@]} ; i++ )) ; do |
222 |
- if use ${USEFLAGS[$i]} ; then |
223 |
- cd "${S}"/projects/${PROJECTS[$i]} \ |
224 |
- || die "cd to ${PROJECTS[$i]} failed" |
225 |
- emake |
226 |
- fi |
227 |
- done |
228 |
-} |
229 |
- |
230 |
-src_install() { |
231 |
- if use rscriptd || use stargazer ; then |
232 |
- # Install config file for logrotate |
233 |
- insinto /etc/logrotate.d |
234 |
- newins "${FILESDIR}"/logrotate stargazer |
235 |
- |
236 |
- # Keeping logs directory |
237 |
- diropts -m 755 -o stg -g stg |
238 |
- keepdir /var/log/stargazer |
239 |
- if use stargazer ; then |
240 |
- diropts -m 775 -o stg -g stg |
241 |
- keepdir /var/lib/stargazer |
242 |
- fi |
243 |
- fi |
244 |
- |
245 |
- if use sgconv ; then |
246 |
- cd projects/sgconv || die "cd to sgconv failed" |
247 |
- |
248 |
- emake DESTDIR="${D}" PREFIX="${D}" install |
249 |
- |
250 |
- # Install files into specified directory |
251 |
- insinto /etc/stargazer |
252 |
- doins "${S}"/projects/sgconv/sgconv.conf |
253 |
- |
254 |
- # Install manual page |
255 |
- doman "${FILESDIR}"/mans/sgconv.1 |
256 |
- fi |
257 |
- |
258 |
- if use radius ; then |
259 |
- cd "${S}"/projects/rlm_stg || die "cd to rlm_stg failed" |
260 |
- |
261 |
- emake DESTDIR="${D}" PREFIX="${D}" install |
262 |
- fi |
263 |
- |
264 |
- if use rscriptd ; then |
265 |
- cd "${S}"/projects/rscriptd || die "cd to rscriptd failed" |
266 |
- |
267 |
- emake DESTDIR="${D}" PREFIX="${D}" install |
268 |
- |
269 |
- # Install Gentoo init script |
270 |
- doinitd "${FILESDIR}"/rscriptd |
271 |
- |
272 |
- # Correct permissions for file |
273 |
- fperms 0640 /etc/stargazer/rscriptd.conf |
274 |
- |
275 |
- # Install manual page |
276 |
- doman "${FILESDIR}"/mans/rscriptd.8 |
277 |
- fi |
278 |
- |
279 |
- if use sgauth ; then |
280 |
- cd "${S}"/projects/sgauth || die "cd to sgauth failed" |
281 |
- |
282 |
- emake DESTDIR="${D}" PREFIX="${D}" install |
283 |
- |
284 |
- # Correct permissions for file |
285 |
- fperms 0640 /etc/stargazer/sgauth.conf |
286 |
- |
287 |
- # Install manual page |
288 |
- doman "${FILESDIR}"/mans/sgauth.8 |
289 |
- fi |
290 |
- |
291 |
- if use sgconf ; then |
292 |
- cd "${S}"/projects/sgconf || die "cd to sgconf failed" |
293 |
- |
294 |
- emake DESTDIR="${D}" PREFIX="${D}" install |
295 |
- |
296 |
- # Install manual page |
297 |
- doman "${FILESDIR}"/mans/sgconf.1 |
298 |
- fi |
299 |
- |
300 |
- if use sgconf_xml ; then |
301 |
- cd "${S}"/projects/sgconf_xml || die "cd to sgconf_xml failed" |
302 |
- |
303 |
- emake DESTDIR="${D}" PREFIX="${D}" install |
304 |
- |
305 |
- # Install manual page |
306 |
- doman "${FILESDIR}"/mans/sgconf_xml.1 |
307 |
- fi |
308 |
- |
309 |
- if use stargazer ; then |
310 |
- cd "${S}"/projects/stargazer || die "cd to stargazer failed" |
311 |
- |
312 |
- emake DESTDIR="${D}" PREFIX="${D}" install |
313 |
- |
314 |
- # Install docs |
315 |
- einstalldocs |
316 |
- |
317 |
- # Install and rename Gentoo init script |
318 |
- newinitd "${S}"/projects/stargazer/inst/linux/etc/init.d/stargazer.gentoo stargazer |
319 |
- |
320 |
- # Install manual page |
321 |
- doman "${FILESDIR}"/mans/stargazer.8 |
322 |
- |
323 |
- # Install files needed for module_store_files |
324 |
- if use module_store_files ; then |
325 |
- # Install files into specified directory |
326 |
- insinto /var/lib |
327 |
- doins -r "${S}"/projects/stargazer/inst/var/stargazer |
328 |
- |
329 |
- # Correct user and group for files and directories |
330 |
- fowners -R stg:stg /var/lib/stargazer |
331 |
- fi |
332 |
- |
333 |
- if use module_store_firebird ; then |
334 |
- # Install files into specified directory |
335 |
- insinto /usr/share/stargazer/db/firebird |
336 |
- doins \ |
337 |
- "${S}"/projects/stargazer/inst/var/00-base-00.sql \ |
338 |
- "${S}"/projects/stargazer/inst/var/00-alter-01.sql |
339 |
- fi |
340 |
- |
341 |
- if use module_store_mysql ; then |
342 |
- # Install file into specified directory |
343 |
- insinto /usr/share/stargazer/db/mysql |
344 |
- doins "${S}"/projects/stargazer/inst/var/00-mysql-01.sql |
345 |
- fi |
346 |
- |
347 |
- if use module_store_postgres ; then |
348 |
- # Install files into specified directory |
349 |
- insinto /usr/share/stargazer/db/postgresql |
350 |
- doins \ |
351 |
- "${S}"/projects/stargazer/inst/var/00-base-00.postgresql.sql \ |
352 |
- "${S}"/projects/stargazer/inst/var/00-alter-01.postgresql.sql |
353 |
- fi |
354 |
- |
355 |
- if use module_other_smux ; then |
356 |
- # Install files into specified directory |
357 |
- insinto /usr/share/snmp/mibs |
358 |
- doins "${S}"/projects/stargazer/plugins/other/smux/STG-MIB.mib |
359 |
- fi |
360 |
- |
361 |
- if use module_other_remote_script ; then |
362 |
- # Create subnets file based on example from mod_remote_script.conf |
363 |
- grep 192 "${S}"/projects/stargazer/inst/linux/etc/stargazer/conf-available.d/mod_remote_script.conf \ |
364 |
- | sed 's/# //' > "${ED}"/etc/stargazer/subnets |
365 |
- |
366 |
- # Correct permissions for file |
367 |
- fperms 0640 /etc/stargazer/subnets |
368 |
- fi |
369 |
- |
370 |
- # Correct permissions for files |
371 |
- fperms 0640 \ |
372 |
- /etc/stargazer/rules \ |
373 |
- /etc/stargazer/stargazer.conf |
374 |
- |
375 |
- # Install files into specified directory for selected modules |
376 |
- insinto /etc/stargazer/conf-available.d |
377 |
- insopts -m 0640 |
378 |
- |
379 |
- local module |
380 |
- for module in ${!MODULES[@]} ; do |
381 |
- use $module && doins "${S}"/projects/stargazer/inst/linux/etc/stargazer/conf-available.d/${MODULES[$module]#*:}.conf |
382 |
- done |
383 |
- |
384 |
- # Create symlinks of configs for selected modules |
385 |
- for module in ${!MODULES[@]} ; do |
386 |
- use $module \ |
387 |
- && dosym \ |
388 |
- /etc/stargazer/conf-available.d/${MODULES[$module]#*:}.conf \ |
389 |
- /etc/stargazer/conf-enabled.d/${MODULES[$module]#*:}.conf |
390 |
- done |
391 |
- fi |
392 |
- |
393 |
- # Correct user and group for files and directories |
394 |
- if use sgconv || use rscriptd || use sgauth || use stargazer ; then |
395 |
- fowners -R stg:stg /etc/stargazer |
396 |
- fi |
397 |
- |
398 |
- # Put the files in the right folder to support multilib |
399 |
- if [ ! -e "${ED}"/usr/$(get_libdir) ] ; then |
400 |
- mv "${ED}"/usr/lib/ "${ED}"/usr/$(get_libdir) \ |
401 |
- || die "Failed to move library directory for multilib support" |
402 |
- fi |
403 |
-} |
404 |
- |
405 |
-pkg_setup() { |
406 |
- # Add user and group to system only when necessary |
407 |
- if use sgconv || use rscriptd || use sgauth || use stargazer ; then |
408 |
- enewgroup stg |
409 |
- enewuser stg -1 -1 -1 stg |
410 |
- fi |
411 |
-} |
412 |
- |
413 |
-pkg_postinst() { |
414 |
- if use sgconv ; then |
415 |
- einfo "\nSgconv:" |
416 |
- einfo "----------" |
417 |
- einfo "For further use edit /etc/stargazer/sgconv.conf." |
418 |
- fi |
419 |
- |
420 |
- if use radius ; then |
421 |
- einfo "\nRadius:" |
422 |
- einfo "-------" |
423 |
- einfo "For further use emerge net-dialup/freeradius.\n" |
424 |
- |
425 |
- einfo "Example config:\n" |
426 |
- |
427 |
- einfo "stg {" |
428 |
- einfo " local_port = 6667" |
429 |
- einfo " server = localhost" |
430 |
- einfo " port = 6666" |
431 |
- einfo " password = 123456" |
432 |
- einfo " }\n" |
433 |
- |
434 |
- einfo "You should place 'stg' into section Instantiate, Authorize." |
435 |
- einfo "In section Authentificate 'stg' should go in sub-section" |
436 |
- einfo "Auth-Type before other authentifications modules:\n" |
437 |
- |
438 |
- einfo "Auth-Type PAP {" |
439 |
- einfo " stg" |
440 |
- einfo " pap" |
441 |
- einfo "}\n" |
442 |
- |
443 |
- einfo "It also may be used in section Accounting and Post-Auth." |
444 |
- |
445 |
- use module_auth_freeradius || einfo "\nFor use RADIUS enable USE-flag module_auth_freeradius." |
446 |
- fi |
447 |
- |
448 |
- if use rscriptd ; then |
449 |
- einfo "\nRemote Script Executer:" |
450 |
- einfo "-----------------------" |
451 |
- einfo "For further use edit /etc/stargazer/rscriptd.conf." |
452 |
- einfo "You have to change 'Password' field at least." |
453 |
- fi |
454 |
- |
455 |
- if use sgauth ; then |
456 |
- einfo "\nSgauth:" |
457 |
- einfo "-------" |
458 |
- einfo "For further use edit /etc/stargazer/sgauth.conf." |
459 |
- einfo "You have to change 'ServerName', 'Login', 'Password' fields at least." |
460 |
- fi |
461 |
- |
462 |
- if use sgconf ; then |
463 |
- einfo "\nSgconf:" |
464 |
- einfo "-------" |
465 |
- use module_config_sgconfig \ |
466 |
- || einfo "For further use enable USE-flag module_config_sgconfig." |
467 |
- fi |
468 |
- |
469 |
- if use sgconf_xml ; then |
470 |
- einfo "\nSgconf_xml:" |
471 |
- einfo "-----------" |
472 |
- use module_config_rpcconfig \ |
473 |
- || einfo "For further use enable USE-flag module_config_rpcconfig." |
474 |
- fi |
475 |
- |
476 |
- if use stargazer ; then |
477 |
- einfo "\nStargazer:" |
478 |
- einfo "----------" |
479 |
- einfo "Modules availability:\n" |
480 |
- if use module_auth_always_online ; then |
481 |
- einfo "* module_auth_always_online available." |
482 |
- fi |
483 |
- if use module_auth_internet_access ; then |
484 |
- einfo "* module_auth_internet_access available." |
485 |
- fi |
486 |
- if use module_auth_freeradius ; then |
487 |
- einfo "* module_auth_freeradius available.\n" |
488 |
- einfo "For further use emerge net-dialup/freeradius.\n" |
489 |
- use radius || einfo "\n For use RADIUS enable use USE-flag radius." |
490 |
- fi |
491 |
- if use module_capture_ipq ; then |
492 |
- einfo "* module_capture_ipq available." |
493 |
- fi |
494 |
- if use module_capture_ether ; then |
495 |
- einfo "* module_capture_ether available." |
496 |
- fi |
497 |
- if use module_capture_netflow ; then |
498 |
- einfo "* module_capture_netflow available.\n" |
499 |
- einfo "For further use emerge any netflow sensor:\n" |
500 |
- einfo "net-firewall/ipt_netflow or net-analyzer/softflowd.\n" |
501 |
- fi |
502 |
- if use module_config_sgconfig ; then |
503 |
- einfo "* module_config_sgconfig available." |
504 |
- fi |
505 |
- if use module_config_rpcconfig ; then |
506 |
- einfo "* module_config_rpcconfig available.\n" |
507 |
- einfo "KNOWN BUG: Sometimes you can't configure Stargazer" |
508 |
- einfo "through xml-based configurator, because module is not responding." |
509 |
- einfo "This bug is introduced by xmlrpc-c library." |
510 |
- einfo "This bug proceeds very rare, but it still exists.\n" |
511 |
- fi |
512 |
- if use module_other_ping ; then |
513 |
- einfo "* module_other_ping available." |
514 |
- fi |
515 |
- if use module_other_smux ; then |
516 |
- einfo "* module_other_smux available.\n" |
517 |
- einfo "For further use emerge net-analyzer/net-snmp.\n" |
518 |
- fi |
519 |
- if use module_other_remote_script ; then |
520 |
- einfo "* module_other_remote_script available.\n" |
521 |
- einfo "For further use edit /etc/stargazer/subnets.\n" |
522 |
- fi |
523 |
- if use module_store_files ; then |
524 |
- einfo "* module_store_files available." |
525 |
- fi |
526 |
- if use module_store_firebird ; then |
527 |
- einfo "* module_store_firebird available.\n" |
528 |
- einfo "You should add 'firebird' user to stg group:\n" |
529 |
- einfo "# usermod -a -G stg firebird\n" |
530 |
- einfo "and restart firebird:\n" |
531 |
- einfo "# /etc/init.d/firebird restart\n" |
532 |
- einfo "Stargazer DB schema for Firebird is here: /usr/share/stargazer/db/firebird" |
533 |
- einfo "For new setup you should execute 00-base-00.sql:\n" |
534 |
- einfo "# fbsql -q -i /usr/share/stargazer/db/firebird/00-base-00.sql\n" |
535 |
- einfo "For upgrade from version 2.406 you should execute 00-alter-01.sql:\n" |
536 |
- einfo "# fbsql -i /usr/share/stargazer/db/firebird/00-alter-01.sql\n" |
537 |
- fi |
538 |
- if use module_store_mysql ; then |
539 |
- einfo "* module_store_mysql available.\n" |
540 |
- einfo "For upgrade from version 2.406 you should execute 00-mysql-01.sql:\n" |
541 |
- einfo "# mysql < /usr/share/stargazer/db/mysql/00-mysql-01.sql\n" |
542 |
- fi |
543 |
- if use module_store_postgres ; then |
544 |
- einfo "* module_store_postgres available.\n" |
545 |
- einfo "DB schema for PostgresSQL is here: /usr/share/stargazer/db/postgresql" |
546 |
- einfo "For new setup you should execute 00-base-00.postgresql.sql:\n" |
547 |
- einfo "# psql -f /usr/share/stargazer/db/postgresql/00-base-00.postgresql.sql\n" |
548 |
- einfo "For upgrade from version 2.406 you should execute 00-alter-01.sql:\n" |
549 |
- einfo "# psql -f /usr/share/stargazer/db/postgresql/00-alter-01.sql\n" |
550 |
- fi |
551 |
- einfo "\n For all storage backends:\n" |
552 |
- einfo "* Default admin login - admin, default admin password - 123456." |
553 |
- einfo "* Default subscriber login - test, default subscriber password - 123456.\n" |
554 |
- einfo "Don't run newer versions without reading their ChangeLog first," |
555 |
- einfo "it can be found in /usr/share/doc/${PF}" |
556 |
- fi |
557 |
- if use debug ; then |
558 |
- ewarn "\nThis is a debug build, avoid to use it in production." |
559 |
- fi |
560 |
-} |