summaryrefslogtreecommitdiff
path: root/testing/dovecot/dovecot.install
diff options
context:
space:
mode:
authorJoshua Ismael Haase Hernandez <hahj87@gmail.com>2011-05-19 12:44:24 -0500
committerJoshua Ismael Haase Hernandez <hahj87@gmail.com>2011-05-19 12:44:24 -0500
commit071445e6a2bb31ddf638e6f2e5362953b47e72dc (patch)
tree9ec266d72aaa5971dee2d1abbe2de511d971de87 /testing/dovecot/dovecot.install
parentc14218d562c03601d6d23666f77ed0c2f0025c1b (diff)
parentb8ea4461e461f0e1782e28b5810eb811423afa79 (diff)
Merge branch 'master' of vparabola:~/abslibre-pre-mips64el into pre
Conflicts: core/heimdal/PKGBUILD extra/apache-ant/PKGBUILD extra/aria2/PKGBUILD extra/bs/PKGBUILD extra/dosbox/PKGBUILD extra/ettercap-gtk/PKGBUILD extra/gqmpeg/PKGBUILD extra/gtk-theme-switch2/PKGBUILD extra/icecast/PKGBUILD extra/kmldonkey/PKGBUILD extra/kmplayer/PKGBUILD extra/libbtctl/PKGBUILD extra/libx86/PKGBUILD extra/mc/PKGBUILD extra/monotone/PKGBUILD extra/nbsmtp/PKGBUILD extra/nickle/PKGBUILD extra/nppangband/PKGBUILD extra/numlockx/PKGBUILD extra/python-gtkglext/PKGBUILD extra/speedcrunch/PKGBUILD extra/vbetool/PKGBUILD libre/xchat-gnome-libre/PKGBUILD libre/xchat-gnome-libre/gtk2-2.20.patch libre/xchat-gnome-libre/xchat-gnome-0.26.1-deprecated-symbol.patch libre/xchat-gnome-libre/xchat-gnome.install
Diffstat (limited to 'testing/dovecot/dovecot.install')
-rw-r--r--testing/dovecot/dovecot.install57
1 files changed, 0 insertions, 57 deletions
diff --git a/testing/dovecot/dovecot.install b/testing/dovecot/dovecot.install
deleted file mode 100644
index 51d1509ee..000000000
--- a/testing/dovecot/dovecot.install
+++ /dev/null
@@ -1,57 +0,0 @@
-# arg 1: the new package version
-post_install() {
-
- # Make sure the group and user "dovecot"+"dovenull exists on this system and have the correct values
-
- # dovecot
- if grep -q "^dovecot:" /etc/group &> /dev/null ; then
- groupmod -g 76 -n dovecot dovecot &> /dev/null
- else
- groupadd -g 76 dovecot &> /dev/null
- fi
-
- if grep -q "^dovecot:" /etc/passwd 2> /dev/null ; then
- usermod -s /sbin/nologin -c "Dovecot user" -d /var/run/dovecot/login -u 76 -g dovecot dovecot &> /dev/null
- else
- useradd -s /sbin/nologin -c "Dovecot user" -d /var/run/dovecot/login -u 76 -g dovecot -m -r dovecot &> /dev/null
- fi
-
- # dovenull
- if grep -q "^dovenull:" /etc/group &> /dev/null ; then
- groupmod -g 74 -n dovenull dovenull &> /dev/null
- else
- groupadd -g 74 dovenull &> /dev/null
- fi
-
- if grep -q "^dovenull:" /etc/passwd 2> /dev/null ; then
- usermod -s /sbin/nologin -c "Dovecot user for completely untrustworthy processes" -d /var/run/dovecot/login -u 74 -g dovenull dovenull &> /dev/null
- else
- useradd -s /sbin/nologin -c "Dovecot user for completely untrustworthy processes" -d /var/run/dovecot/login -u 74 -g dovenull -m -r dovenull &> /dev/null
- fi
-
- # harden some permissions
- chgrp dovenull /var/run/dovecot/login
-}
-
-# arg 1: the new package version
-# arg 2: the old package version
-post_upgrade() {
- post_install $1
- if [ "`vercmp $2 2.0.0`" -lt 0 ]; then
- # important upgrade notice
- echo "> IMPORTANT DOVECOT 2.0 UPGRADE NOTICE"
- echo "> ------------------------------------"
- echo "> see http://wiki2.dovecot.org/Upgrading/2.0"
- echo "> make sure, you convert the dovecot.conf file"
- fi
-
-}
-
-# arg 1: the old package version
-pre_remove() {
- userdel dovecot &> /dev/null
- userdel dovenull &> /dev/null
- groupdel dovecot &> /dev/null || /bin/true
- groupdel dovenull &> /dev/null || /bin/true
- rm -rf /var/run/dovecot/ &> /dev/null || /bin/true
-}