aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2009-10-09 21:12:52 +0000
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2009-10-09 21:12:52 +0000
commit70829e2bafec49fba4aedf552671653902b6bad9 (patch)
tree9aa9920b27a0685d717a9fcfec0aa4540ee5ac69
parenteb3fb21b03ae731a246965a59e6916638772a4cd (diff)
downloadsimplepkg-70829e2bafec49fba4aedf552671653902b6bad9.tar.gz
simplepkg-70829e2bafec49fba4aedf552671653902b6bad9.tar.bz2
Adding support for .sign signatures on mkSlackBuilds
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@822 04377dda-e619-0410-9926-eae83683ac58
-rw-r--r--trunk/Makefile2
-rw-r--r--trunk/mkbuild/generic.mkSlackBuild12
-rw-r--r--trunk/mkbuild/kde4.mkSlackBuild20
-rw-r--r--trunk/mkbuild/perl.mkSlackBuild24
-rw-r--r--trunk/mkbuild/python.mkSlackBuild20
5 files changed, 55 insertions, 23 deletions
diff --git a/trunk/Makefile b/trunk/Makefile
index 7055dc9..2f55389 100644
--- a/trunk/Makefile
+++ b/trunk/Makefile
@@ -15,7 +15,7 @@
#
PACKAGE = simplepkg
-VERSION = $(shell echo '$$Rev$$' | sed -e 's/[^0-9]//g')_svn
+VERSION = $(shell echo '$$Rev$$' | sed -e 's/[^0-9]//g')_svn_teste2
BUILD = 1rha
PREFIX = /usr
INSTALL = /usr/bin/install
diff --git a/trunk/mkbuild/generic.mkSlackBuild b/trunk/mkbuild/generic.mkSlackBuild
index 03bc726..8d98026 100644
--- a/trunk/mkbuild/generic.mkSlackBuild
+++ b/trunk/mkbuild/generic.mkSlackBuild
@@ -214,6 +214,8 @@ else
SIGNATURE="$SRC.sig"
elif [ -s "$SRC_DIR/$SRC.asc" ]; then
SIGNATURE="$SRC.asc"
+ elif [ -s "$SRC_DIR/$SRC.sign" ]; then
+ SIGNATURE="$SRC.sign"
else
echo Trying to get signature file from $URL.sig...
if wget "$URL.sig" -O "$SRC_DIR/$SRC.sig"; then
@@ -225,8 +227,14 @@ else
SIGNATURE="$SRC.asc"
else
rm $SRC_DIR/$SRC.asc
- echo "Error getting source's signature file"
- exit $ERROR_GPG
+ echo Trying to get signature file from $URL.sign...
+ if wget "$URL.sign" -O "$SRC_DIR/$SRC.sign"; then
+ SIGNATURE="$SRC.sign"
+ else
+ rm $SRC_DIR/$SRC.sign
+ echo "Error getting source's signature file"
+ exit $ERROR_GPG
+ fi
fi
fi
fi
diff --git a/trunk/mkbuild/kde4.mkSlackBuild b/trunk/mkbuild/kde4.mkSlackBuild
index 2003545..0052319 100644
--- a/trunk/mkbuild/kde4.mkSlackBuild
+++ b/trunk/mkbuild/kde4.mkSlackBuild
@@ -195,12 +195,14 @@ if echo [[SIGNING URL]] | grep -q -v "SIGNING URL"; then
SIGNATURE="`basename [[SIGNING URL]]`"
if [ ! -s "$SRC_DIR/$SIGNATURE" ]; then
wget "[[SIGNING URL]]" -O "$SRC_DIR/$SIGNATURE" || exit $ERROR_WGET
- fi
+ fi
else
if [ -s "$SRC_DIR/$SRC.sig" ]; then
SIGNATURE="$SRC.sig"
elif [ -s "$SRC_DIR/$SRC.asc" ]; then
SIGNATURE="$SRC.asc"
+ elif [ -s "$SRC_DIR/$SRC.sign" ]; then
+ SIGNATURE="$SRC.sign"
else
echo Trying to get signature file from $URL.sig...
if wget "$URL.sig" -O "$SRC_DIR/$SRC.sig"; then
@@ -212,11 +214,17 @@ else
SIGNATURE="$SRC.asc"
else
rm $SRC_DIR/$SRC.asc
- echo "Error getting source's signature file"
- exit $ERROR_GPG
- fi
- fi
- fi
+ echo Trying to get signature file from $URL.sign...
+ if wget "$URL.sign" -O "$SRC_DIR/$SRC.sign"; then
+ SIGNATURE="$SRC.sign"
+ else
+ rm $SRC_DIR/$SRC.sign
+ echo "Error getting source's signature file"
+ exit $ERROR_GPG
+ fi
+ fi
+ fi
+ fi
fi
echo Checking $SRC_DIR/$SRC with gpg using $SRC_DIR/$SIGNATURE...
diff --git a/trunk/mkbuild/perl.mkSlackBuild b/trunk/mkbuild/perl.mkSlackBuild
index 8a6a88b..9e07195 100644
--- a/trunk/mkbuild/perl.mkSlackBuild
+++ b/trunk/mkbuild/perl.mkSlackBuild
@@ -156,12 +156,14 @@ if echo [[SIGNING URL]] | grep -q -v "SIGNING URL"; then
SIGNATURE="`basename [[SIGNING URL]]`"
if [ ! -s "$SRC_DIR/$SIGNATURE" ]; then
wget "[[SIGNING URL]]" -O "$SRC_DIR/$SIGNATURE" || exit $ERROR_WGET
- fi
+ fi
else
- if [ -f "$SRC_DIR/$SRC.sig" ]; then
+ if [ -s "$SRC_DIR/$SRC.sig" ]; then
SIGNATURE="$SRC.sig"
- elif [ -f "$SRC_DIR/$SRC.asc" ]; then
+ elif [ -s "$SRC_DIR/$SRC.asc" ]; then
SIGNATURE="$SRC.asc"
+ elif [ -s "$SRC_DIR/$SRC.sign" ]; then
+ SIGNATURE="$SRC.sign"
else
echo Trying to get signature file from $URL.sig...
if wget "$URL.sig" -O "$SRC_DIR/$SRC.sig"; then
@@ -173,11 +175,17 @@ else
SIGNATURE="$SRC.asc"
else
rm $SRC_DIR/$SRC.asc
- echo "Error getting source's signature file"
- exit $ERROR_GPG
- fi
- fi
- fi
+ echo Trying to get signature file from $URL.sign...
+ if wget "$URL.sign" -O "$SRC_DIR/$SRC.sign"; then
+ SIGNATURE="$SRC.sign"
+ else
+ rm $SRC_DIR/$SRC.sign
+ echo "Error getting source's signature file"
+ exit $ERROR_GPG
+ fi
+ fi
+ fi
+ fi
fi
echo Checking $SRC_DIR/$SRC with gpg using $SRC_DIR/$SIGNATURE...
diff --git a/trunk/mkbuild/python.mkSlackBuild b/trunk/mkbuild/python.mkSlackBuild
index 144d6cc..46fec30 100644
--- a/trunk/mkbuild/python.mkSlackBuild
+++ b/trunk/mkbuild/python.mkSlackBuild
@@ -208,12 +208,14 @@ if echo [[SIGNING URL]] | grep -q -v "SIGNING URL"; then
SIGNATURE="`basename [[SIGNING URL]]`"
if [ ! -s "$SRC_DIR/$SIGNATURE" ]; then
wget "[[SIGNING URL]]" -O "$SRC_DIR/$SIGNATURE" || exit $ERROR_WGET
- fi
+ fi
else
if [ -s "$SRC_DIR/$SRC.sig" ]; then
SIGNATURE="$SRC.sig"
elif [ -s "$SRC_DIR/$SRC.asc" ]; then
SIGNATURE="$SRC.asc"
+ elif [ -s "$SRC_DIR/$SRC.sign" ]; then
+ SIGNATURE="$SRC.sign"
else
echo Trying to get signature file from $URL.sig...
if wget "$URL.sig" -O "$SRC_DIR/$SRC.sig"; then
@@ -225,11 +227,17 @@ else
SIGNATURE="$SRC.asc"
else
rm $SRC_DIR/$SRC.asc
- echo "Error getting source's signature file"
- exit $ERROR_GPG
- fi
- fi
- fi
+ echo Trying to get signature file from $URL.sign...
+ if wget "$URL.sign" -O "$SRC_DIR/$SRC.sign"; then
+ SIGNATURE="$SRC.sign"
+ else
+ rm $SRC_DIR/$SRC.sign
+ echo "Error getting source's signature file"
+ exit $ERROR_GPG
+ fi
+ fi
+ fi
+ fi
fi
echo Checking $SRC_DIR/$SRC with gpg using $SRC_DIR/$SIGNATURE...