aboutsummaryrefslogtreecommitdiff
path: root/mail/filter
diff options
context:
space:
mode:
authorrhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4>2007-12-21 17:12:26 +0000
committerrhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4>2007-12-21 17:12:26 +0000
commit166dbb22af2460ddef511c12c99238278f7355c3 (patch)
tree48e563c192c5c4b7ca7995a09e30cb6865c4dfae /mail/filter
parentf52b6383857a93155401564a5523514468193786 (diff)
downloadslackbuilds-166dbb22af2460ddef511c12c99238278f7355c3.tar.gz
slackbuilds-166dbb22af2460ddef511c12c99238278f7355c3.tar.bz2
maildrop: added --enable-maildropmysql
git-svn-id: svn+slack://slack.fluxo.info/var/svn/slackbuilds@1554 370017ae-e619-0410-ac65-c121f96126d4
Diffstat (limited to 'mail/filter')
-rwxr-xr-xmail/filter/maildrop/maildrop.SlackBuild13
1 files changed, 8 insertions, 5 deletions
diff --git a/mail/filter/maildrop/maildrop.SlackBuild b/mail/filter/maildrop/maildrop.SlackBuild
index f2de6d69..be8f8db0 100755
--- a/mail/filter/maildrop/maildrop.SlackBuild
+++ b/mail/filter/maildrop/maildrop.SlackBuild
@@ -15,7 +15,7 @@
# Place - Suite 330, Boston, MA 02111-1307, USA
#
# slackbuild for maildrop, by Silvio Rhatto
-# requires:
+# requires:
# tested: maildrop-2.0.4
#
@@ -40,7 +40,7 @@ PKG=${PKG:=$TMP/package-$PKG_NAME}
REPOS=${REPOS:=$TMP}
PREFIX=${PREFIX:=/usr}
PKG_WORK="$TMP/$SRC_NAME"
-CONF_OPTIONS=${CONF_OPTIONS:=""}
+CONF_OPTIONS=${CONF_OPTIONS:="--enable-maildropmysql"}
NUMJOBS=${NUMJOBS:=""}
# Set system libraries' path and optmization flags based on $ARCH
@@ -83,7 +83,6 @@ if [ ! -s "$SRC_DIR/$SRC" ] || ! bunzip2 -t "$SRC_DIR/$SRC" 2> /dev/null; then
wget "$URL" -O "$SRC_DIR/$SRC" || exit $ERROR_WGET
fi
-
# Untar
cd "$PKG_WORK"
tar --no-same-owner --no-same-permissions -xvf "$SRC_DIR/$SRC" || exit $ERROR_TAR
@@ -113,7 +112,11 @@ make install DESTDIR="$PKG" || exit $ERROR_INSTALL
# Install documentation
DOCS="AUTHORS COPYING COPYING.GPL ChangeLog INSTALL NEWS README UPGRADE"
mkdir -p "$PKG/usr/doc/$PKG_NAME-$PKG_VERSION" || exit $ERROR_MKDIR
-cp -a $DOCS "$PKG/usr/doc/$PKG_NAME-$PKG_VERSION"
+for doc in $DOCS; do
+ if [ -f "$doc" ]; then
+ cp -a $doc "$PKG/usr/doc/$PKG_NAME-$PKG_VERSION"
+ fi
+done
# Add package description (slack-desc)
mkdir -p "$PKG/install" || exit $ERROR_MKDIR
@@ -145,5 +148,5 @@ makepkg -l y -c n "$REPOS/$PKG_NAME-$PKG_VERSION-$ARCH-$BUILD.tgz" || exit $ERRO
# Delete source and build directories if requested
if [ "$CLEANUP" == "yes" ]; then
- rm -rf "$PKG_SRC" "$PKG"
+ rm -rf "$PKG_WORK" "$PKG"
fi