mailman/rc.mailman

Wed, 14 Jan 2009 15:59:12 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 14 Jan 2009 15:59:12 +0100
changeset 86
78e7deb1d6ab
parent 9
871621b80702
permissions
-rw-r--r--

Correct and improve many buildconf and code logic blocks. In particular:
1. Document potential problems building with current binutils releases.
2. Document the flawed webkit and explain its temporary exclusion.
3. Document the edition of Qt which is built and installed.
4. Remove the Solaris x11_supdir logic as it is no longer found.
5. Correct several .pr[io] files including QMAKE_CXXFLAGS and INCPATH,
which previously caused preexisting Qt installations to deliver
erroneous old include and library logic instead of relying on
that of the currently building package. -I/opkg/include is now
placed at the end of the compile statements.
6. Don't trust the QMAKE_[INC|LIB]DIR_X11 identifiers in qmake.conf.
7. Allow more 64-bit builds and more properly identify the platform.
8. Place plugins (which are shared objects) in lib instead of share.
9. Build components as plugins when possible if with_shared is enabled.
10. Translate German text to English to be more consistent.
11. Instead of removing the pkgconfig directory of with_shared builds,
place it in a child directory useful for shared building.
12. Document the nonstandard shared build directory structure,
including using the hidden pkgconfig directory (PKG_CONFIG_PATH.)
13. Change %doc to specify files rather than directories in the RPM DB.

     1 #!@l_prefix@/bin/openpkg rc
     2 ##
     3 ##  rc.mailman -- Run-Commands
     4 ##
     6 %config
     7     mailman_enable="$openpkg_rc_def"
     9 %common
    10     mailman_ctl="@l_prefix@/libexec/mailman/bin/mailmanctl"
    11     qrunner_pidfile="@l_prefix@/var/mailman/data/master-qrunner.pid"
    12     qrunner_signal () {
    13         [ -f $qrunner_pidfile ] && kill -$1 `cat $qrunner_pidfile`
    14     }
    16 %status -u @l_susr@ -o
    17     mailman_usable="unknown"
    18     mailman_active="no"
    19     rcService mailman enable yes && \
    20         qrunner_signal 0 && mailman_active="yes"
    21     echo "mailman_enable=\"$mailman_enable\""
    22     echo "mailman_usable=\"$mailman_usable\""
    23     echo "mailman_active=\"$mailman_active\""
    25 %start -u @l_susr@
    26     rcService mailman enable yes || exit 0
    27     rcService mailman active yes && exit 0
    28     @l_prefix@/bin/python ${mailman_ctl} -s -q start
    30 %stop -u @l_susr@
    31     rcService mailman enable yes || exit 0
    32     rcService mailman active no  && exit 0
    33     @l_prefix@/bin/python ${mailman_ctl} -q stop
    34     sleep 2
    36 %restart -u @l_susr@
    37     rcService mailman enable yes || exit 0
    38     rcService mailman active no  && exit 0
    39     @l_prefix@/bin/python ${mailman_ctl} -q restart
    40     sleep 2
    42 %quarterly -u @l_susr@
    43     rcService mailman enable yes || exit 0
    44     @l_prefix@/bin/python -S @l_prefix@/libexec/mailman/cron/gate_news
    46 %daily -u @l_nusr@
    47     rcService mailman enable yes || exit 0
    48     @l_prefix@/bin/python -S @l_prefix@/libexec/mailman/cron/checkdbs
    49     @l_prefix@/bin/python -S @l_prefix@/libexec/mailman/cron/disabled
    50     @l_prefix@/bin/python -S @l_prefix@/libexec/mailman/cron/senddigests
    51     @l_prefix@/bin/python -S @l_prefix@/libexec/mailman/cron/nightly_gzip
    53 %monthly -u @l_susr@
    54     rcService mailman enable yes || exit 0
    55     @l_prefix@/bin/python -S @l_prefix@/libexec/mailman/cron/mailpasswds

mercurial