1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/sendmail/parse-config
3 # Copyright (C) 2004 - 2021 The T2 SDE Project
4 # Copyright (C) 1998 - 2003 ROCK Linux Project
6 # This Copyright note is generated by scripts/Create-CopyPatch,
7 # more information can be found in the files COPYING and README.
9 # This program is free software; you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License version 2.
11 # --- T2-COPYRIGHT-NOTE-END ---
14 # protect from install_wrapper
15 local OLDIWF="$INSTALL_WRAPPER_FILTER"
16 unset INSTALL_WRAPPER_FILTER
18 sed "s,@mailer@,$1,g" > $root/usr/sbin/setmailer_$1 \
19 < $base/package/*/sendmail/setmailer.sh
20 chmod +x $root/usr/sbin/setmailer_$1
22 if [ "$SDECFG_DEFAULT_MTA" = "$1" ] ; then
23 $root/usr/sbin/setmailer_$1
26 # restore install_wrapper
27 INSTALL_WRAPPER_FILTER="$OLDIWF"