summaryrefslogtreecommitdiff
path: root/network/cyrus-imapd/cyrus-imapd.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'network/cyrus-imapd/cyrus-imapd.SlackBuild')
-rw-r--r--network/cyrus-imapd/cyrus-imapd.SlackBuild49
1 files changed, 21 insertions, 28 deletions
diff --git a/network/cyrus-imapd/cyrus-imapd.SlackBuild b/network/cyrus-imapd/cyrus-imapd.SlackBuild
index ff0e9c5ce2..5ea71fd7c5 100644
--- a/network/cyrus-imapd/cyrus-imapd.SlackBuild
+++ b/network/cyrus-imapd/cyrus-imapd.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for cyrus-imapd
-# Copyright 2010, 2011, 2014 Mario Preksavec, Zagreb, HR
+# Copyright 2010, 2011, 2014, 2016 Mario Preksavec, Zagreb, Croatia
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,12 +23,10 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=cyrus-imapd
-VERSION=${VERSION:-2.4.17}
-BUILD=${BUILD:-2}
+VERSION=${VERSION:-2.5.7}
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
-PATCHES=${PATCHES:-yes}
-
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
@@ -84,16 +82,10 @@ tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
- \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \
- -exec chmod 755 {} \; -o \
- \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
- -exec chmod 644 {} \;
-
-if [ "$PATCHES" = yes ]; then
-# Patches for autocreate/autosieve
- patch -p1 <$CWD/patches/cyrus-imapd-2.4.4-autocreate-0.10-0-sv1.patch
- patch -p1 <$CWD/patches/cyrus-imapd-2.4.12-autosieve-0.6.0.patch
-fi
+ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
+ -o -perm 511 \) -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
@@ -110,15 +102,23 @@ CXXFLAGS="$SLKCFLAGS" \
--with-perl \
--with-cyrus-user=cyrus \
--with-cyrus-group=cyrus \
+ --enable-autocreate \
--enable-idled \
- --build=$ARCH-slackware-linux \
- $DATABASE
+ $DATABASE \
+ --build=$ARCH-slackware-linux
-make -j1 PERL_MM_OPT='INSTALLDIRS=vendor'
+make PERL_MM_OPT='INSTALLDIRS=vendor'
make install DESTDIR=$PKG
-# Move incorrectly installed man pages
-mv $PKG/usr/share/man $PKG/usr/ && rmdir $PKG/usr/share || true
+# Move man pages where they belong
+mv $PKG/usr/share/man $PKG/usr/
+
+# Perl might have some other stuff as well
+[ -d $PKG/usr/share/perl5/Cyrus ] \
+&& mv $PKG/usr/share/perl5/Cyrus/* $PKG/usr/lib$LIBDIRSUFFIX/perl5/Cyrus/
+
+# Cruft removal
+rm -rf $PKG/usr/share
# Copy init script
install -D -m0755 -oroot -groot $CWD/rc.cyrus-imapd $PKG/etc/rc.d/rc.cyrus-imapd.new
@@ -139,17 +139,10 @@ find $PKG -name perllocal.pod \
| xargs rm -f
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a COPYRIGHT README* doc/* master/conf tools/ $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a COPYING README doc/* master/conf tools/ $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
cat $CWD/README.SLACKWARE > $PKG/usr/doc/$PRGNAM-$VERSION/README.SLACKWARE
-# Clean up the obsolete /usr/lib on 64bit systems.
-[ "$ARCH" = "x86_64" ] && rmdir $PKG/usr/lib
-
-# Remove perllocal.pod and other special files; remove empty directories
-find $PKG -name perllocal.pod -o -name ".packlist" -o -name "*.bs" | xargs rm -f || true
-find $PKG -depth -type d -empty -delete || true
-
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh