network/dovecot: Updated for version 2.0.0.

Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
This commit is contained in:
Alan Hicks 2010-08-22 11:44:18 -04:00 committed by Erik Hanson
parent e19d3c73eb
commit f30b9a24e5
3 changed files with 34 additions and 10 deletions

View file

@ -3,7 +3,15 @@ openssl installed - openssl-solibs is not enough in itself to meet this
requirement. Additionally, dovecot will be compiled with POP3 support. requirement. Additionally, dovecot will be compiled with POP3 support.
Unfortunately, dovecot does not have a man page at this time, so you'll Unfortunately, dovecot does not have a man page at this time, so you'll
have to find your documentation elsewhere. A few examples are included have to find your documentation elsewhere. A few examples are included
in /usr/doc/dovecot-1.1.3. The dovecot team maintains a wiki that may in /usr/doc/dovecot-$VERSION. The dovecot team operates a wiki that may
prove useful: http://wiki.dovecot.org prove useful: http://wiki.dovecot.org
You should create a dovecot user to run the login processes on your server. You should create a dovecot user to run the login processes on your server.
From the dovecot-new release posting comes this word of advice:
Remember to read http://wiki2.dovecot.org/Upgrading/2.0 before
upgrading from v1.x. Although there is automatic config conversion,
it can't handle everything, so reserve some extra time for upgrading.

View file

@ -21,7 +21,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM="dovecot" PRGNAM="dovecot"
VERSION="1.1.15" VERSION="2.0.0"
BUILD=${BUILD:-1} BUILD=${BUILD:-1}
TAG=${TAG:-_SBo} TAG=${TAG:-_SBo}
@ -40,6 +40,15 @@ TMP=${TMP:-/tmp/SBo}
PKG="$TMP/package-$PRGNAM" PKG="$TMP/package-$PRGNAM"
OUTPUT=${OUTPUT:-/tmp} OUTPUT=${OUTPUT:-/tmp}
# Build with mysql database by default, sqlite/mysql/postgresql are supported
DATABASE=${DATABASE:-mysql}
case "$DATABASE" in
pgsql) DATABASE="--with-pgsql" ;;
mysql) DATABASE="--with-mysql" ;;
sqlite) DATABASE="--with-sqlite" ;;
*) DATABASE="" ;;
esac
# Bail if user isn't valid on your system # Bail if user isn't valid on your system
if ! grep -q ^dovecot: /etc/passwd ; then if ! grep -q ^dovecot: /etc/passwd ; then
echo " You must have a dovecot user to run this script." echo " You must have a dovecot user to run this script."
@ -68,6 +77,7 @@ fi
rm -rf $PKG rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT mkdir -p $TMP $PKG $OUTPUT
cd $TMP cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION cd $PRGNAM-$VERSION
chmod -R a-s,u+w,go+r-w . chmod -R a-s,u+w,go+r-w .
@ -83,11 +93,11 @@ CXXFLAGS="$SLKCFLAGS" \
--docdir=/usr/doc/$PRGNAM-$VERSION \ --docdir=/usr/doc/$PRGNAM-$VERSION \
--enable-header-install \ --enable-header-install \
--with-notify=inotify \ --with-notify=inotify \
--disable-ipv6 \
--without-pam \ --without-pam \
--with-pop3d \ --with-pop3d \
--disable-static \ --disable-static \
--build=$ARCH-slackware-linux --build=$ARCH-slackware-linux \
$DATABASE
make make
make install-strip DESTDIR=$PKG make install-strip DESTDIR=$PKG
@ -97,10 +107,16 @@ cp -a AUTHORS COPYING COPYING.LGPL COPYING.MIT ChangeLog INSTALL NEWS \
README TODO doc/* $PKG/usr/doc/$PRGNAM-$VERSION/ README TODO doc/* $PKG/usr/doc/$PRGNAM-$VERSION/
cat $CWD/dovecot.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/dovecot.SlackBuild cat $CWD/dovecot.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/dovecot.SlackBuild
rm -rf $PKG/usr/share/doc rm -rf $PKG/usr/share/doc
find $PKG/usr/doc -type f \( -name "Makefile*" -o -name "*.in" \) -delete
# Put the example files with the documentation # Place a default conf file in /etc
mv $PKG/etc/dovecot-ldap-example.conf $PKG/etc/dovecot-sql-example.conf \ cat $PKG/usr/doc/dovecot-2.0.0/example-config/dovecot.conf > \
$PKG/usr/doc/$PRGNAM-$VERSION $PKG/etc/dovecot/dovecot.conf
# Handle man pages
mv $PKG/usr/share/man $PKG/usr/man
find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
# Add an init script # Add an init script
mkdir -p $PKG/etc/rc.d mkdir -p $PKG/etc/rc.d

View file

@ -1,8 +1,8 @@
PRGNAM="dovecot" PRGNAM="dovecot"
VERSION="1.1.15" VERSION="2.0.0"
HOMEPAGE="http://www.dovecot.org/" HOMEPAGE="http://www.dovecot.org/"
DOWNLOAD="http://dovecot.org/releases/1.1/dovecot-1.1.15.tar.gz" DOWNLOAD="http://dovecot.org/releases/2.0/dovecot-2.0.0.tar.gz"
MD5SUM="90562401bbf6bd052b23b89f7f5a700f" MD5SUM="2ca3cbd523cac1cbd53a904255dcd4f8"
DOWNLOAD_x86_64="" DOWNLOAD_x86_64=""
MD5SUM_x86_64="" MD5SUM_x86_64=""
MAINTAINER="Alan Hicks" MAINTAINER="Alan Hicks"