aboutsummaryrefslogtreecommitdiff
path: root/net/mail/mhonarc
diff options
context:
space:
mode:
authorrhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4>2006-12-05 14:21:15 +0000
committerrhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4>2006-12-05 14:21:15 +0000
commitea0a283aa736fd994a3558f05f1a1e51b8f8e906 (patch)
treece291c02266e03a10e3741cec5c70262ace449f6 /net/mail/mhonarc
parent0aa3cd372d2fa120b6fd152a66ee54d7d0203383 (diff)
downloadslackbuilds-ea0a283aa736fd994a3558f05f1a1e51b8f8e906.tar.gz
slackbuilds-ea0a283aa736fd994a3558f05f1a1e51b8f8e906.tar.bz2
sympa & MHonArc update
git-svn-id: svn+slack://slack.fluxo.info/var/svn/slackbuilds@839 370017ae-e619-0410-ac65-c121f96126d4
Diffstat (limited to 'net/mail/mhonarc')
-rwxr-xr-xnet/mail/mhonarc/MHonArc.build25
1 files changed, 11 insertions, 14 deletions
diff --git a/net/mail/mhonarc/MHonArc.build b/net/mail/mhonarc/MHonArc.build
index 0e9f9466..9c2fd7d9 100755
--- a/net/mail/mhonarc/MHonArc.build
+++ b/net/mail/mhonarc/MHonArc.build
@@ -2,9 +2,6 @@
#
# build script for MHonArc
# by rhatto at riseup.net by rhatto | gpl
-# build it with slacktrack, example:
-#
-# slacktrack -jefkzp "MHonArc-2.6.15-noarch-1rha.tgz" "./MHonArc.build"
#
CWD="`pwd`"
@@ -27,6 +24,12 @@ BUILD=${BUILD:=1rha}
SRC_DIR=${SRC:=$CWD}
PREFIX="/usr/local"
+# ------- error codes for createpkg --------------
+ERROR_WGET=31; ERROR_MAKE=32; ERROR_INSTALL=33
+ERROR_MD5=34; ERROR_CONF=35; ERROR_HELP=36
+ERROR_TAR=37; ERROR_MKPKG=38; ERROR_GPG=39
+ERROR_PATCH=40
+
RTOOL="wget"
PACKAGE_EXT="gz"
SRC="$PACKAGE-$VERSION.tar.$PACKAGE_EXT"
@@ -74,17 +77,11 @@ fi
if [ "$RTOOL" == "wget" ] && [ ! -f "$SRC_DIR/$SRC" ]; then
rm -f $SRC_DIR/$SRC $SRC_DIR/$SRC.sig
- wget "$URL" -O "$SRC_DIR/$SRC"
- wget "$URL.sig" -O "$SRC_DIR/$SRC.sig"
+ wget "$URL" -O "$SRC_DIR/$SRC" || exit $ERROR_WGET
+ wget "$URL.sig" -O "$SRC_DIR/$SRC.sig" || exit $ERROR_WGET
fi
-gpg --verify $SRC_DIR/$SRC.asc $SRC_DIR/$SRC || echo WARNING: Could not check signature or WRONG signature found.
-
-if [ "$PACKAGE_EXT" == "bz2" ]; then
- tarflag="j"
-else
- tarflag="z"
-fi
+gpg --verify $SRC_DIR/$SRC.asc $SRC_DIR/$SRC || exit $ERROR_GPG
TMP="$TMP/$PACKAGE"
@@ -94,10 +91,10 @@ fi
cd $TMP
-tar xvf$tarflag $SRC_DIR/$SRC
+tar xvf $SRC_DIR/$SRC || exit $ERROR_TAR
cd $PACKAGE-$VERSION
-perl install.me -batch
+perl install.me -batch || exit $ERROR_INSTALL
mkdir -p /usr/doc/$PACKAGE