# --- T2-COPYRIGHT-NOTE-BEGIN --- # This copyright note is auto-generated by ./scripts/Create-CopyPatch. # # T2 SDE: package/*/nullmailer/nullmailer.conf # Copyright (C) 2004 - 2007 The T2 SDE Project # Copyright (C) 1998 - 2003 ROCK Linux Project # # More information can be found in the files COPYING and README. # # 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; version 2 of the License. A copy of the # GNU General Public License can be found in the file COPYING. # --- T2-COPYRIGHT-NOTE-END --- nullmailer_prepatch() { if [ "$SDECFG_PKG_NULLMAILER_LOCALQUEUE" == "1" ]; then patch $patchopt < `match_source_file -p nullmail-lq` mkdir -p $root/home/nullmail/mail chown -R 38:38 $root/home/nullmail add_flist $root/home/nullmail/mail fi # usar uid y no loginname sed -i -e 's,chown nullmail[^ ]*,chown 38,g' Makefile.in # see INSTALL_WRAPPER_FILTER sed -i -e 's,(bindir)/mailq,(bindir)/mailq_nullmailer,' Makefile.in } nullmailer_postmake() { add_flist $root$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_setmailer nullmailer } hook_add prepatch 5 'nullmailer_prepatch' var_append makeinstopt ' ' 'install-root' hook_add postmake 5 'nullmailer_postmake' var_append INSTALL_WRAPPER_FILTER '|' "sed -e 's,\(mailq\|sendmail\),\1_nullmailer,'"