mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

56 lines
1.9 KiB

# --- ROCK-COPYRIGHT-NOTE-BEGIN ---
#
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
# Please add additional copyright information _after_ the line containing
# the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
# the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
#
# ROCK Linux: rock-src/package/jimmy/nullmailer/nullmailer.conf
# ROCK Linux is Copyright (C) 1998 - 2006 Clifford Wolf
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version. A copy of the GNU General Public
# License can be found at Documentation/COPYING.
#
# Many people helped and are helping developing ROCK Linux. Please
# have a look at http://www.rocklinux.org/ and the Documentation/TEAM
# file for details.
#
# --- ROCK-COPYRIGHT-NOTE-END ---
nullmailer_prepatch() {
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
add_flist $root/home/nullmail/mail
fi
}
nullmailer_premake() {
# these can't be done via .patch because of localqueue conflicts
for i in Makefile src/Makefile doc/Makefile ; do
sed -i '-res/(mailq|sendmail)([ \:]+|\.1|$)/\1_nullmailer\2/' $i
done
mv doc/sendmail.1 doc/sendmail_nullmailer.1
}
nullmailer_postmake() {
eval $MAKE install-root
add_flist $localstatedir/nullmailer/trigger
if [ ! -f $root/etc/nullmailer/pausetime ] ; then
echo "60" > $root/etc/nullmailer/pausetime
fi
if [ ! -f $root/etc/nullmailer/remotes ] ; then
echo -e "127.0.0.1\tsmtp" > $root/etc/nullmailer/remotes
fi
install_init nullmailer $confdir/nullmailer.init
install_setmailer nullmailer
}
prepatch=nullmailer_prepatch
premake=nullmailer_premake
postmake=nullmailer_postmake