diff options
author | Martin Schulze <joey@infodrom.org> | 2004-09-13 09:07:18 +0200 |
---|---|---|
committer | Andreas Beckmann <debian@abeckmann.de> | 2012-10-01 19:58:43 +0200 |
commit | ae03fe5d926a63cab418207f760d62a947957123 (patch) | |
tree | aa48cfe56ac7c47fb9b0abce4d4689033d3098d6 /debian/local/update_sendmail | |
parent | dd994db23cb7f88732be927fad3a7039bd6301db (diff) | |
download | sendmail-debian/8.12.3-7.1.tar.gz |
Imported Debian patch 8.12.3-7.1debian/8.12.3-7.1
Diffstat (limited to 'debian/local/update_sendmail')
-rw-r--r-- | debian/local/update_sendmail | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/debian/local/update_sendmail b/debian/local/update_sendmail new file mode 100644 index 0000000..e7c5fe1 --- /dev/null +++ b/debian/local/update_sendmail @@ -0,0 +1,77 @@ +#!/bin/sh -e +#----------------------------------------------------------------------------- +# +# Update Sendmail environment for Debian +# +# Copyright (c) 2001-2001 Richard Nelson. All Rights Reserved. +# Time-stamp: <2001/01/17 10:00:00 cowboy> +# +# Notes (to all): +# * +# +# Notes (to self): +# * +# +#----------------------------------------------------------------------------- +set -e; + +# Path to other sendmail helpers +sm_path=$(dirname $0); + +# control amount of output +verbosity=0; + +# flag used to indicate a dataset has been moved, may need another update +changed=0; + +#------------------------------------------------------------- +# Make sure the system is setup +if [ -x $sm_path/update_sys ]; then + $sm_path/update_sys || changed=1; + fi; + +#------------------------------------------------------------- +# update smrsh/sensible-mda information if possible +if [ -x $sm_path/update_smrsh ]; then + $sm_path/update_smrsh || true; + fi; + +#------------------------------------------------------------- +# update LDAP information if possible +if [ -x $sm_path/update_ldap ]; then + $sm_path/update_ldap || true; + fi; + +#------------------------------------------------------------- +# update SMTP AUTH (SASL) information if possible +if [ -x $sm_path/update_auth ]; then + $sm_path/update_auth || true; + fi; + +#------------------------------------------------------------- +# update TLS(SSL) information if possible +if [ -x $sm_path/update_tls ]; then + $sm_path/update_tls || true; + fi; + +#------------------------------------------------------------- +# Check and update (if needed) /etc/hosts.allow +if [ -x $sm_path/update_tcpd ]; then + $sm_path/update_tcpd || true; + fi; + +#------------------------------------------------------------- +# Perform some [safe] updates to an existing sendmail.mc to make +# sure it is compatible with the current executables. +if [ -x $sm_path/update_mc ]; then + $sm_path/update_mc || changed=1; + fi; + +#------------------------------------------------------------- +# Make sure the databases are in the expected locations +if [ -x $sm_path/update_db ]; then + $sm_path/update_db || changed=1; + fi; + +#------------------------------------------------------------- +exit $changed |