diff options
author | Bernd PrĂ¼nster | 2015-07-13 10:46:51 +0200 |
---|---|---|
committer | Bernd PrĂ¼nster | 2015-07-13 10:46:51 +0200 |
commit | 07026cb4edaad121ff9f687adb8b76fc64e1709b (patch) | |
tree | 23d7aa1dffb9a40bdc8a6afaf450cebb3ed1cc09 /courier-mta.install | |
download | aur-07026cb4edaad121ff9f687adb8b76fc64e1709b.tar.gz |
Update and migrate to AUR4
Diffstat (limited to 'courier-mta.install')
-rw-r--r-- | courier-mta.install | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/courier-mta.install b/courier-mta.install new file mode 100644 index 000000000000..43cf7038da1a --- /dev/null +++ b/courier-mta.install @@ -0,0 +1,46 @@ +# arg 1: the new package version +post_install() { + cat << EOM + --> if you are using LDAP services to provide lookup in sqwebmail or aliases + --> then you have to install: + libldap +EOM + # create the *.dat files + makealiases + makesmtpaccess +} + +pre_upgrade() { + pre_remove $1 +} + +# arg 1: the new package version +# arg 2: the old package version +post_upgrade() { + post_install $1 +} + + +pre_remove() { + # manual backup, since courier is always processing the whole directory + # - so it would process "system" AND "system.pacsave" -> bad + [ ! -d /etc/courier/_backup ] && mkdir /etc/courier/_backup + cp /etc/courier/aliases/system /etc/courier/_backup/aliases.system + cp /etc/courier/smtpaccess/default /etc/courier/_backup/smtpaccess.default + cat << EOM + --> the /etc/courier/aliases/system and the /etc/courier/smtpaccess/default + --> files have been backed up to /etc/courier/_backup since the *.pacsave + --> files cannot stay in place. Read about couriers alias handling from the + --> documentation! +EOM +} + +# arg 1: the old package version +post_remove() { + /bin/true +} + +op=$1 +shift + +$op $* |