Sun, 03 Apr 2011 13:34:55 +0200
Correct and improve several packaging aspects including...
Correct datadir path for python modules, correct jar(1) path for
building libgcj classes, strip libexecdir path of version numbers,
improve name of oblbld build path, clean whitespace from as(1) and
ld(1) GNU detection, remove seemingly discarded '--with-local-prefix'
configure argument, and correct hardcoded lto plugin libtool archive
dependency information.
Most importantly, correct IA32 architecture detection logic in
config.gcc to correctly emit SSE2 instructions conditionally, leading
to the removal of all '-march' bootstrap options and replacement with
unconditional (for IA32/AMD64) '-mtune=native' options. Comments and
buildtime warnings are corrected appropriately. In theory these changes
cause a more portable, orthoganal, and optimal bootstrap to be built.
1 #!@l_prefix@/bin/openpkg rc
2 ##
3 ## rc.sasl -- Run-Commands
4 ##
6 %config
7 sasl_enable="$openpkg_rc_def"
8 sasl_flags=""
9 sasl_authmech="@l_authmech@"
10 sasl_threads="4"
11 sasl_log_prolog="true"
12 sasl_log_epilog="true"
13 sasl_log_numfiles="10"
14 sasl_log_minsize="1M"
15 sasl_log_complevel="9"
17 %common
18 sasl_pidfile="@l_prefix@/var/sasl/run/saslauthd/saslauthd.pid"
19 sasl_signal () {
20 [ -f $sasl_pidfile ] && kill -$1 `cat $sasl_pidfile`
21 }
23 %status -u @l_susr@ -o
24 sasl_usable="unknown"
25 sasl_active="no"
26 rcService sasl enable yes && \
27 sasl_signal 0 && sasl_active="yes"
28 echo "sasl_enable=\"$sasl_enable\""
29 echo "sasl_usable=\"$sasl_usable\""
30 echo "sasl_active=\"$sasl_active\""
32 %start -p 400 -u @l_susr@
33 rcService sasl enable yes || exit 0
34 rcService sasl active yes && exit 0
35 @l_prefix@/sbin/saslauthd \
36 -a "${sasl_authmech}" \
37 -n "${sasl_threads}" \
38 ${sasl_flags}
40 %stop -p 600 -u @l_susr@
41 rcService sasl enable yes || exit 0
42 rcService sasl active no && exit 0
43 sasl_signal TERM
45 %restart -u @l_susr@
46 rcService sasl enable yes || exit 0
47 rcService sasl active no && exit 0
48 rc sasl stop
49 sleep 2
50 rc sasl start
52 %daily -u @l_susr@
53 rcService sasl enable yes || exit 0
54 shtool rotate -f \
55 -n ${sasl_log_numfiles} -s ${sasl_log_minsize} -d \
56 -z ${sasl_log_complevel} -o @l_susr@ -g @l_sgrp@ -m 600 \
57 -P "${sasl_log_prolog}" \
58 -E "${sasl_log_epilog}; rc sasl restart" \
59 @l_prefix@/var/sasl/log/saslauthd.log