# --- T2-COPYRIGHT-NOTE-BEGIN --- # T2 SDE: package/*/sendmail/parse-config # Copyright (C) 2004 - 2022 The T2 SDE Project # Copyright (C) 1998 - 2003 ROCK Linux Project # # This Copyright note is generated by scripts/Create-CopyPatch, # 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 version 2. # --- T2-COPYRIGHT-NOTE-END --- install_setmailer() { # protect from install_wrapper local OLDIWF="$INSTALL_WRAPPER_FILTER" unset INSTALL_WRAPPER_FILTER sed "s,@mailer@,$1,g" > $root/usr/sbin/setmailer_$1 \ < $base/package/*/sendmail/setmailer.sh chmod +x $root/usr/sbin/setmailer_$1 if [ "$SDECFG_DEFAULT_MTA" = "$1" ]; then $root/usr/sbin/setmailer_$1 fi # restore install_wrapper INSTALL_WRAPPER_FILTER="$OLDIWF" }