postfix-mailgraph/rc.postfix-mailgraph

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 171
b72f2be1f619
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@171 1 #!@l_prefix@/bin/openpkg rc
michael@171 2 ##
michael@171 3 ## rc.postfix-mailgraph -- Run-Commands
michael@171 4 ##
michael@171 5
michael@171 6 %config
michael@171 7 postfix_mailgraph_enable="$openpkg_rc_def"
michael@193 8 postfix_mailgraph_flags=""
michael@171 9
michael@171 10 %common
michael@171 11 postfix_mailgraph_pidfile="@l_prefix@/var/postfix-mailgraph/run/mailgraph.pid"
michael@171 12 postfix_mailgraph_signal () {
michael@171 13 [ -f $postfix_mailgraph_pidfile ] \
michael@171 14 && kill -$1 `cat $postfix_mailgraph_pidfile`
michael@171 15 }
michael@171 16
michael@171 17 %status -u @l_susr@ -o
michael@171 18 postfix_mailgraph_usable="unknown"
michael@171 19 postfix_mailgraph_active="no"
michael@171 20 rcService postfix-mailgraph enable yes && \
michael@171 21 postfix_mailgraph_signal 0 && postfix_mailgraph_active="yes"
michael@171 22 echo "postfix_mailgraph_enable=\"$postfix_mailgraph_enable\""
michael@171 23 echo "postfix_mailgraph_usable=\"$postfix_mailgraph_usable\""
michael@171 24 echo "postfix_mailgraph_active=\"$postfix_mailgraph_active\""
michael@171 25
michael@171 26 %start -u @l_susr@
michael@171 27 rcService postfix-mailgraph enable yes || exit 0
michael@171 28 rcService postfix-mailgraph active yes && exit 0
michael@193 29 @l_prefix@/sbin/mailgraph --daemon ${postfix_mailgraph_flags}
michael@171 30
michael@171 31 %stop -u @l_susr@
michael@171 32 rcService postfix-mailgraph enable yes || exit 0
michael@171 33 rcService postfix-mailgraph active no && exit 0
michael@171 34 postfix_mailgraph_signal TERM
michael@171 35
michael@171 36 %restart -u @l_susr@
michael@171 37 rcService postfix-mailgraph enable yes || exit 0
michael@171 38 rcService postfix-mailgraph active no && exit 0
michael@193 39 rc postfix-mailgraph stop
michael@171 40 sleep 2
michael@193 41 rc postfix-mailgraph start
michael@171 42

mercurial