mrtg/rc.mrtg

Sat, 24 Mar 2012 21:40:49 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sat, 24 Mar 2012 21:40:49 +0100
changeset 414
fd611cde817f
parent 140
d51e263e607b
permissions
-rw-r--r--

Introduce many changes to the buildconf and source code including:
(01) clean up, update, and partially update default config files,
(02) seems that Melware is unable to perform release engineering so
update chan_capi to new daily snapshot to solve echo problems,
(03) correct Asterisk inadequate hard coded gmime version check,
(04) force postgresql pthreads linkage to solve build problem,
(05) remove buggy hard coded LibXML configure definitions,
(06) remove local architecture specification to allow GCC
internal logic to determine proper CPU type instead,
(07) remove vendor sound install target causing uncontrolled
downloads and non RPM managed file installation,
(08) solve long outstanding bug in tcptls causing Asterisk
to ignore any intermediate CA certificate signatures,
(09) back out Digium engineering team's bright idea of replacing the
very portable and pervasive POSIX rand(1) with ast_random(), and
then not even implementing it causing all references to fail in
platforms not providing the very new POSIX.1-2008 mkdtemp(3)
function only distributed by BSD and some Linux,
(10) withdraw advanced linker symbol manipulations from SVR5 builds
until either Binutils supports hybrid versioned and anonymous
linker scripts or GCC stops hard coding versioned linker scripts,
(11) correct missing library linkage, some tailored to a specific OS,
(12) remove outdated logic for the no longer distributed gmime-config(1),
(13) remove local gmime buildconf hacks now that Asterisk has corrected
their own build configuration to almost portably support gmime,
(14) solve build problems relating to undetected LibXML paths,
(15) correct erroneous out of tree include definitions,
(16) improve some variable and comment naming,
(17) simplify sound language path hierarchy creation,
and correct australian english installation logic.

michael@130 1 #!@l_prefix@/bin/openpkg rc
michael@130 2 ##
michael@130 3 ## rc.mrtg -- Run-Commands
michael@130 4 ##
michael@130 5
michael@130 6 %config
michael@130 7 mrtg_enable="$openpkg_rc_def"
michael@140 8 mrtg_sumlog="no"
michael@140 9 mrtg_summin="10"
michael@140 10 mrtg_sumail=""
michael@140 11 mrtg_sumpat="<[Hh][1-9]>([Tt]raffic[^<]*)</[Hh][1-9]>"
michael@140 12
michael@140 13 %common
michael@140 14 mrtg_etcdir="@l_prefix@/etc/mrtg"
michael@140 15 mrtg_vardir="@l_prefix@/var/mrtg"
michael@140 16 mrtg_webdir="@l_prefix@/web/mrtg"
michael@130 17
michael@130 18 %quarterly -u @l_susr@
michael@130 19 rcService mrtg enable yes || exit 0
michael@130 20 export LANG=C
michael@130 21 @l_prefix@/bin/mrtg \
michael@140 22 --pid-file=$mrtg_vardir/mrtg.pid \
michael@140 23 --lock-file=$mrtg_vardir/mrtg.lock \
michael@140 24 --confcache-file=$mrtg_vardir/mrtg.cache \
michael@203 25 $mrtg_etcdir/mrtg.cfg \
michael@203 26 && echo >>$mrtg_vardir/mrtg.log
michael@130 27
michael@140 28 %monthly -u @l_musr@
michael@140 29 rcService mrtg enable yes || exit 0
michael@140 30 rcVarIsYes mrtg_sumlog || exit 0
michael@140 31 @l_prefix@/bin/mrtg-traffic-sum \
michael@140 32 --min $mrtg_summin \
michael@140 33 --catch $mrtg_sumpat \
michael@140 34 $mrtg_etcdir/mrtg.cfg \
michael@140 35 >>$mrtg_vardir/mrtg.log
michael@140 36 if [ ".$mrtg_sumail" != . ]; then
michael@140 37 @l_prefix@/bin/mrtg-traffic-sum \
michael@140 38 --min $mrtg_summin \
michael@140 39 --email $mrtg_sumail \
michael@140 40 --catch $mrtg_sumpat \
michael@140 41 $mrtg_etcdir/mrtg.cfg
michael@140 42 fi
michael@140 43

mercurial