postfix-mailgraph/rc.postfix-mailgraph

Mon, 28 Mar 2011 19:41:02 +0200

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Mon, 28 Mar 2011 19:41:02 +0200
changeset 332
2289d64c2123
parent 171
b72f2be1f619
permissions
-rw-r--r--

Completely rework package including...
Simpify 64-bit -fPIC logic, instruct make to build in parallel,
force error condition on failed profile dependency, build the
standard 'bootstrap' target as suggested, correct grammar, wording,
and punctuation in general, upgrade to latest upstream vendor version,
rearrange package dependencies mpc, mpfr, and gmp, correct buildconf
thanks to new lto-plugin forced, avoid failed platform specific stage
comparison, adjust patch code to reflect new version update, and most
importantly adjust optimization flags to platform. Please note that
block 'correct hardcoded paths' is likely no yet complete.

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

mercurial