Fri, 16 Jan 2009 10:58:21 +0100
Correct and improve code logic, buildconf, and packaging. In particular:
1. Use descriptive variable names <var>libs instead of just <var>.
2. Although Nokia states in all Qt builds that 'NOTE: When linking
against OpenSSL, you can override the default library names
through OPENSSL_LIBS.' and even gives an example, their own
configuration logic rejects such an attempt. Correct this by
hard coding the OpenSSL library string in the configure script.
3. Consistently use the whitespace substitution [\t ] throughout.
4. Patch the buggy INCPATH of SQL plugin Qmake project files.
5. Add the 'x11' configuration variable to the qtconfig Qmake
project using the src/gui/gui.pro file as a model. This is
needed for qtconfig although not in other tools, because
the qtconfig buildconf indirectly includes qt_x11_p.h which
is dependent on X11 headers.
6. Avoid 'ld.so: fatal: hardware capability unsupported: SSE2 AMD_3DNow'
on platforms for which the config.tests/unix/[3dnow|sse2] succeed
although unsopported at run time by testing for the x86-64
instruction set at build time and regulating hardware capabilities.
7. Correctly install the desinger plugin by explicitly building it.
8. Remove custom plugin installation logic which is unnecessary.
9. Correct removal of temporary paths from shared object files.
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