aboutsummaryrefslogtreecommitdiff
path: root/mail
diff options
context:
space:
mode:
authorrhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4>2007-12-23 22:01:14 +0000
committerrhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4>2007-12-23 22:01:14 +0000
commit841241014daa92cc82defc83d73a8acfe255df8a (patch)
treec77d812f1661eacba3eeec247cb4f5929e906095 /mail
parent12f4d8c6a38eb3cf8916009c56718a4df2d6fa24 (diff)
downloadslackbuilds-841241014daa92cc82defc83d73a8acfe255df8a.tar.gz
slackbuilds-841241014daa92cc82defc83d73a8acfe255df8a.tar.bz2
maildrop: forcing uid/gid 5000 on configure
git-svn-id: svn+slack://slack.fluxo.info/var/svn/slackbuilds@1566 370017ae-e619-0410-ac65-c121f96126d4
Diffstat (limited to 'mail')
-rwxr-xr-xmail/filter/maildrop/maildrop.SlackBuild23
1 files changed, 2 insertions, 21 deletions
diff --git a/mail/filter/maildrop/maildrop.SlackBuild b/mail/filter/maildrop/maildrop.SlackBuild
index 5cd05857..445a2713 100755
--- a/mail/filter/maildrop/maildrop.SlackBuild
+++ b/mail/filter/maildrop/maildrop.SlackBuild
@@ -33,14 +33,14 @@ PKG_NAME="maildrop"
ARCH=${ARCH:=i486}
SRC_VERSION=${VERSION:=2.0.4}
PKG_VERSION="$(echo "$SRC_VERSION" | tr '[[:blank:]-]' '_')"
-BUILD=${BUILD:=2rha}
+BUILD=${BUILD:=3rha}
SRC_DIR=${SRC_DIR:=$CWD}/$PKG_NAME
TMP=${TMP:=/tmp}
PKG=${PKG:=$TMP/package-$PKG_NAME}
REPOS=${REPOS:=$TMP}
PREFIX=${PREFIX:=/usr}
PKG_WORK="$TMP/$SRC_NAME"
-CONF_OPTIONS=${CONF_OPTIONS:="--enable-maildrop-uid=vmail --enable-maildrop-gid=vmail"}
+CONF_OPTIONS=${CONF_OPTIONS:="--enable-maildrop-uid=5000 --enable-maildrop-gid=5000"}
NUMJOBS=${NUMJOBS:=""}
# Set system libraries' path and optmization flags based on $ARCH
@@ -146,25 +146,6 @@ maildrop:
maildrop:
EODESC
-# Add a post-installation script (doinst.sh)
-cat << EOSCRIPT > "$PKG/install/doinst.sh"
-config() {
- NEW="\$1"
- OLD="\$(dirname \$NEW)/\$(basename \$NEW .new)"
- # If there's no config file by that name, mv it over:
- if [ ! -r \$OLD ]; then
- mv \$NEW \$OLD
- elif [ "\$(cat \$OLD | md5sum)" = "\$(cat \$NEW | md5sum)" ]; then
- # toss the redundant copy
- rm \$NEW
- fi
- # Otherwise, we leave the .new copy for the admin to consider...
-}
-
-config path/to/config_file.new
-echo Trying to create user/group vmail with UID/GID 5000... ; groupadd vmail -g 5000 ; useradd vmail -u 5000 -g 5000
-EOSCRIPT
-
# Build the package
cd "$PKG"
makepkg -l y -c n "$REPOS/$PKG_NAME-$PKG_VERSION-$ARCH-$BUILD.tgz" || exit $ERROR_MKPKG