fixed nullmailer: selfdaemonizing patch as optional (default=true) and the localqueue condition check was buggy git-svn-id: http://www.rocklinux.org/svn/rock-linux/trunk@2400 c5f82cb5-29bc-0310-9cd0-bff59a50e3bc
@ -25,6 +25,8 @@ then
menu_begin MENU_PKG_NULLMAILER 'Nullmailer Options'
bool 'Send all local mail to a local mbox' \
ROCKCFG_PKG_NULLMAILER_LOCALQUEUE 0
bool 'Add self-daemonizing behavior' \
ROCKCFG_PKG_NULLMAILER_DAEMONIZE 1
menu_end
fi
@ -21,7 +21,7 @@
# --- ROCK-COPYRIGHT-NOTE-END ---
nullmailer_prepatch() {
if test "$ROCKCFG_PKG_NULLMAILER_LOCALQUEUE" != 0 ; then
if [ "$ROCKCFG_PKG_NULLMAILER_LOCALQUEUE" == "1" ]; then
patch $patchopt < $archdir/nullmail-lq-$ver.diff
mkdir -p $root/home/nullmail/mail
chown -R 38:38 $root/home/nullmail
@ -56,3 +56,6 @@ prepatch=nullmailer_prepatch
premake=nullmailer_premake
postmake=nullmailer_postmake
if [ "$ROCKCFG_PKG_NULLMAILER_DAEMONIZE" == "1" ]; then
var_append patchfiles $confdir/daemon.diff