From ff922506643cf62eb0fe5073560916782b29a9b9 Mon Sep 17 00:00:00 2001 From: rhatto Date: Sat, 25 Apr 2009 18:45:17 +0000 Subject: perl-mail-clamav: updating perl-mail-clamav and dependencies git-svn-id: svn+slack://slack.fluxo.info/var/svn/slackbuilds@2159 370017ae-e619-0410-ac65-c121f96126d4 --- dev/perl/perl-parse-recdescent/Manifest | 23 +++++++ .../perl-parse-recdescent.SlackBuild | 78 ++++++++++++++++++++-- 2 files changed, 97 insertions(+), 4 deletions(-) create mode 100644 dev/perl/perl-parse-recdescent/Manifest (limited to 'dev/perl/perl-parse-recdescent') diff --git a/dev/perl/perl-parse-recdescent/Manifest b/dev/perl/perl-parse-recdescent/Manifest new file mode 100644 index 00000000..f1416d4e --- /dev/null +++ b/dev/perl/perl-parse-recdescent/Manifest @@ -0,0 +1,23 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + +DIST Parse-RecDescent-1.96.0.tar.gz 152818 MD5 373dc01e102d81d01a4fb1431c5ff3fb RMD160 c204d3adcbbad29e098c44aafdf0a74de7621a96 SHA1 9588b31e1e3f79361be185b66dfdf975295cc417 SHA256 36f9416bec324c6c6db4619ed9facd019e7efa2be5ababb55d9733defeb5dac2 SHA512 fdd41457b8d80a4d91cdf173689231f9ca4188f3cae9aca16187c95767f592f43cfa56456f4368cca315b85044b750d721336639f056801dd01eef2239eee327 +MKBUILD perl-parse-recdescent.mkbuild 2431 MD5 078e62440db498be7d54778affb494f1 RMD160 edf996e0146172bb4c2b923d5c334a5482693cd4 SHA1 f937cc2ff61d6d7ea2e8f1985cf12c5d2a6fda4b SHA256 f1c26f464f0e8ffe481ba2ea6d95eee44b6eb89489a11ac42c37236768320b85 SHA512 f85d63517d6e244b971ae02e65547c1dd0f1d4eecfe01110b40f91b15c22ab02e47067f03970dc0058f4bf76247c9fd5c09378ff20d8d67891b846b3d8bb93f3 +SLACKBUILD perl-parse-recdescent.SlackBuild 7140 MD5 ba1c6495651d87b782b6727f4b263adf RMD160 a0195b8fce0ff14e82e412b1bee4d31ac7d22d4f SHA1 45578dd3e5aedd9b5a5a1447d3c887c628dc2edf SHA256 b26c273d55574f719b320cc3ac2477acc5a804308ece15acdb3e7b164acb9c48 SHA512 e8724b731b79b84fce026ea5fb55edccb70ee82e766c01b34606f776f1c5fb319ba4b7237698b204cb8965e1c1c6494f2c13fc7c7ea9cfd9e0f68eb7cd3cf794 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v1.4.9 (GNU/Linux) + +iQIcBAEBAgAGBQJJ81s0AAoJEEHL93ESzgeiPeMQAJnG5iZ/X/uhZZWxeLhDYDlT +uD1nzNFQRCK+kUgeiXwSr2JIU0AYhDLoaPaGnYVP58gqnz4MgF1SBnSHvWaRp191 +capJC4AFJUbp2ElEbOaUV0zcr6Tblr5f8OVZIo5gBrdaVyfmytja9/ag0xuenkFp +x6lOGNN45bMZJWz+3mXPgWQCFNvFrnfiE9ZKutd0RJ11zEBH8kai536AWAFgWW+h +/L9vzrc3FaVcI+1aH+l0e4Hn1z861DtmLHrDhXbLGWqx3MxiGUER5e1FLI75yEcx +D7LweQ8WGheTmlnJtnimOLb8BL105Y9tt5uRO5QsVn9dONCznWrjjlRIlQNYKdnN +V31Y8Vvp67SqQuE3jRALc2Cpc9kY9bXH0ZMrew33QJ22KgprNFqcg6BrU/Ak9Fn4 +NQU0Q5RmI18SxT2OaDwTgX0UTJUERIO512cuYmE9u8fBwkGMsFMMoYSso186edkJ +qY7OdjNVa+iPEhUJ2VrM5kyRvhBQup3DbaNFKQ1umYknxE+WgQwJMseCDnjOycGB +51Fgke3QcNWRIdZuYQB9soiiSMUrVSpHGfmON3zIIsKAa18Y8Z1j8TddJ8NMErXV +0BQzdtWcFX/6IH6+1Qfr8gtWRDG58lraIFdC1Rsm3cXvgpnAY0X8/Dho0SA/JGq3 +txBPChzh0DOVEZ0iOuJv +=VeDS +-----END PGP SIGNATURE----- diff --git a/dev/perl/perl-parse-recdescent/perl-parse-recdescent.SlackBuild b/dev/perl/perl-parse-recdescent/perl-parse-recdescent.SlackBuild index 6ea679d1..638fc899 100755 --- a/dev/perl/perl-parse-recdescent/perl-parse-recdescent.SlackBuild +++ b/dev/perl/perl-parse-recdescent/perl-parse-recdescent.SlackBuild @@ -16,7 +16,8 @@ # # slackbuild for perl-parse-recdescent, by Silvio Rhatto # requires: -# tested: perl-parse-recdescent-v1.95.1 +# tested: perl-parse-recdescent-1.96.0 +# model: perl.mkSlackBuild $Rev: 796 $ # # Look for slackbuildrc @@ -31,13 +32,14 @@ CWD="$(pwd)" SRC_NAME="Parse-RecDescent" PKG_NAME="perl-parse-recdescent" ARCH=${ARCH:=i486} -SRC_VERSION=${VERSION:=v1.95.1} +SRC_VERSION=${VERSION:=1.96.0} PKG_VERSION="$(echo "$SRC_VERSION" | tr '[[:blank:]-]' '_')" BUILD=${BUILD:=1rha} SRC_DIR=${SRC_DIR:=$CWD}/$PKG_NAME TMP=${TMP:=/tmp} PKG=${PKG:=$TMP/package-$PKG_NAME} REPOS=${REPOS:=$TMP} +SLACKBUILD_PATH=${SLACKBUILD_PATH:="dev/perl/perl-parse-recdescent"} PREFIX=${PREFIX:=/usr} PKG_WORK="$TMP/$SRC_NAME" CONF_OPTIONS=${CONF_OPTIONS:=""} @@ -64,6 +66,7 @@ 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; ERROR_VCS=41; ERROR_MKDIR=42 +ERROR_MANIFEST=43; # Clean up any leftovers of previous builds rm -rf "$PKG_SRC" 2> /dev/null @@ -83,6 +86,72 @@ if [ ! -s "$SRC_DIR/$SRC" ] || ! gunzip -t "$SRC_DIR/$SRC" 2> /dev/null; then wget "$URL" -O "$SRC_DIR/$SRC" || exit $ERROR_WGET fi +# Check Manifest file +if [ -e "$CWD/Manifest" ]; then + + # Manifest signature checking + if grep -q -- "-----BEGIN PGP SIGNED MESSAGE-----" $CWD/Manifest; then + echo "Checking Manifest signature..." + gpg --verify $CWD/Manifest + if [ "$?" != "0" ]; then + exit $ERROR_MANIFEST + fi + fi + + MANIFEST_LINES="`grep -E -v "^(MKBUILD|SLACKBUILD)" $CWD/Manifest | wc -l`" + + for ((MANIFEST_COUNT=1; MANIFEST_COUNT <= $MANIFEST_LINES; MANIFEST_COUNT++)); do + + MANIFEST_LINE="`grep -E -v "^(MKBUILD|SLACKBUILD)" $CWD/Manifest | head -n $MANIFEST_COUNT | tail -n 1`" + MANIFEST_FILE="`echo $MANIFEST_LINE | awk '{ print $2 }'`" + MANIFEST_FILE_TYPE="`echo $MANIFEST_LINE | awk '{ print $1 }'`" + + if [ -e "$SRC_DIR/$MANIFEST_FILE" ]; then + MANIFEST_FILE="$SRC_DIR/$MANIFEST_FILE" + else + MANIFEST_FILE="`find $CWD -name $MANIFEST_FILE`" + fi + + if [ ! -e "$MANIFEST_FILE" ] || [ -d "$MANIFEST_FILE" ]; then + continue + fi + + echo "Checking Manifest for $MANIFEST_FILE_TYPE $MANIFEST_FILE integrity..." + + SIZE_SRC="`wc -c $MANIFEST_FILE | awk '{ print $1 }'`" + SIZE_MANIFEST="`echo $MANIFEST_LINE | awk '{ print $3 }'`" + + # Check source code size + if [ "$SIZE_SRC" != "$SIZE_MANIFEST" ]; then + echo "SIZE Manifest: $SIZE_MANIFEST; SIZE $SRC: $SIZE_SRC" + exit $ERROR_MANIFEST + else + echo "Size match." + fi + + # Check source code integrity + for ALGO in md5 sha1 sha256 sha512 rmd160; do + if [ $ALGO = "rmd160" ]; then + ALGO_SRC="`openssl rmd160 $MANIFEST_FILE | awk '{ print $2 }'`" + else + ALGO_SRC="`"$ALGO"sum $MANIFEST_FILE | awk '{ print $1 }'`" + fi + ALGO="`echo $ALGO | tr '[:lower:]' '[:upper:]'`" + ALGO_MANIFEST=$(echo $MANIFEST_LINE | sed "s/.* $ALGO //" | awk '{ print $1 }') + if [ "$ALGO_SRC" != "$ALGO_MANIFEST" ]; then + echo "$ALGO Manifest: $ALGO_MANIFEST; $ALGO $SRC: $ALGO_SRC" + exit $ERROR_MANIFEST + else + echo "$ALGO match." + fi + done + + done + +else + exit $ERROR_MANIFEST +fi + # Untar cd "$PKG_WORK" tar --no-same-owner --no-same-permissions -xvf "$SRC_DIR/$SRC" || exit $ERROR_TAR @@ -148,9 +217,10 @@ EODESC # Build the package cd "$PKG" -makepkg -l y -c n "$REPOS/$PKG_NAME-$PKG_VERSION-$ARCH-$BUILD.tgz" || exit $ERROR_MKPKG +mkdir -p $REPOS/$SLACKBUILD_PATH +makepkg -l y -c n "$REPOS/$SLACKBUILD_PATH/$PKG_NAME-$PKG_VERSION-$ARCH-$BUILD.tgz" || exit $ERROR_MKPKG # Delete source and build directories if requested -if [ "$CLEANUP" == "yes" ]; then +if [ "$CLEANUP" == "yes" ] || [ "$1" = "--cleanup" ]; then rm -rf "$PKG_WORK" "$PKG" fi -- cgit v1.2.3