diff options
author | rhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4> | 2009-05-08 14:28:49 +0000 |
---|---|---|
committer | rhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4> | 2009-05-08 14:28:49 +0000 |
commit | 027e40839f6125c4e4c8e4b6080938b7b1fb3a34 (patch) | |
tree | a17a4623eabb39d9afd70698729bd53654370921 /www/apps/tracwikiprint | |
parent | ebef5ec495d64d565deaecdd74ccfd6ac4911fa5 (diff) | |
download | slackbuilds-027e40839f6125c4e4c8e4b6080938b7b1fb3a34.tar.gz slackbuilds-027e40839f6125c4e4c8e4b6080938b7b1fb3a34.tar.bz2 |
TracWikiPrint: added fix ; TracWikiPrint: added fix
git-svn-id: svn+slack://slack.fluxo.info/var/svn/slackbuilds@2196 370017ae-e619-0410-ac65-c121f96126d4
Diffstat (limited to 'www/apps/tracwikiprint')
-rw-r--r-- | www/apps/tracwikiprint/Manifest | 32 | ||||
-rw-r--r-- | www/apps/tracwikiprint/TracWikiPrint.SlackBuild | 69 |
2 files changed, 84 insertions, 17 deletions
diff --git a/www/apps/tracwikiprint/Manifest b/www/apps/tracwikiprint/Manifest index 2132284a..dfb6fe68 100644 --- a/www/apps/tracwikiprint/Manifest +++ b/www/apps/tracwikiprint/Manifest @@ -1,23 +1,23 @@ -----BEGIN PGP SIGNED MESSAGE----- -Hash: SHA1 +Hash: SHA256 -MKBUILD TracWikiPrint.mkbuild 2751 MD5 0edbbc3eff976509cc8051b115be1505 RMD160 f46081b9a881cbf56d6f00fa21b1d8646c5f31ef SHA1 c01b7f4b102d071e7441eb826033b63779bb83ec SHA256 6cc8d5e1db458fdf7ce3c69b4ca86c7760f5485d6b8f320d827802234c754952 SHA512 704a7e18067b1a73f3d4f24f43f563915249a4dd154d5af2dd74deaf981046074d68b0bc62ff506fb48e7cd9dea76223b302fd558d5927bba6022a00c986c747 +MKBUILD TracWikiPrint.mkbuild 2836 MD5 fab3ab3fdd5ba52e3d296d147c717fce RMD160 4c48173bc8785b997493330362b3f050f3bcd042 SHA1 d91c4c3d601c4bf1c7c040cdf9566844bec7433b SHA256 dde920ec26fbd6cb438a4fc1aa48dd48fe9525c0cb698b75abaec8012bb4b321 SHA512 7a1439c6eddb249d0d2de85b3dc559417c5716778cda1498701c9746f7f534277f0af0c6fa77c58238749327412a0a0d9df5084c918fb0ae1ab826dfaaf637a0 SLACK-REQUIRED slack-required 91 MD5 9d944aa1dbca6b807a154707efb48748 RMD160 93fe8eab397a78e438603fba9b5c20a20b7f3f76 SHA1 f840fec0df64cdebbbb141beb9cf847a14d98436 SHA256 c3ea7c263cba1fdd3709c6d4df48444659025ff625f2b6baa28357cdfbb65eca SHA512 c9f1367b4ea43dc493db10fe0baaef847ff3df1351d1a1af6c4bbdcf3eca67622a047bc9534300230a863a329fd712e56e34d5b452bf31f13ce2da3293a26877 -SLACKBUILD TracWikiPrint.SlackBuild 5095 MD5 aea4a6388f32b256ed0032a3a2583bb4 RMD160 cb29a667b20fad5a4b139b95497dbad7e751dcd5 SHA1 3ac0d1755d1e3bf13b07665252c8138d8ac23af1 SHA256 2080eba12ec2c6560070546a362ba38c84e389c56fc948c9e9ce9a18725ea6fa SHA512 2564e3028b7e3bb00caa5f17778158145ac75029293000ac26ede7afd1b482bc424787150ac400fee6b4d2859860e76fec1b0e96fc8cff3b8d41401aef831486 +SLACKBUILD TracWikiPrint.SlackBuild 7201 MD5 e9ec7b8dce78565ddd0bf87cb1af1b09 RMD160 0339a624dae6e700879496ef1be74d680c78fae6 SHA1 39518306e69135b76fc4133665e1c51e59f45125 SHA256 e324cc3654df1b45ab42dc7fb977409f655d873fb79e0b34fdd7128b23143139 SHA512 1af2e1135f095c83c9e8f6113e98fcd423bbd99dbb0429d88f24d57093c5fbc15864630da97dd670e51a4f680bdb71812498eb56f77b9b056c218541f1484252 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) -iQIcBAEBAgAGBQJJ+fu+AAoJEEHL93ESzgeiGKAP/1boR9nK3W3T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/AI/YvdAQ+cSxOid6timKiUg +3Jr6m5/kDGtD96QgLKHv8/Ed8Y2bAe1V1B2XE9kCKSSgpkkLTFe0mTDXDF9ZPhpB +f9JKt8lsBNHTDRecbMRwI8jLpRwmnPL1Bc4XWnfbvwLVsmEaMmexow4q6VkxDEqH +zP4eX+qE2D7mEJnpJjiqsF1w3s4SEce1qRqutNqsegyqZTjnmFHhatcPR7ScoGG3 +TKQ1P5Kj/fBKWEuJmWxfdLtQvA5S4FkW3FgoZZfaxAyOJSFigb6/axvvd/0RPOnz +QO6MTxxiFhrejNOQG0pu/ZoXEa2HjKWqTqSS7L4CvwWtBp4wvzobBQiq3YjWm4X7 +ALpbS6hYr6DzIwUDHK1W +=yd0p -----END PGP SIGNATURE----- diff --git a/www/apps/tracwikiprint/TracWikiPrint.SlackBuild b/www/apps/tracwikiprint/TracWikiPrint.SlackBuild index dfa574cd..ee9b0630 100644 --- a/www/apps/tracwikiprint/TracWikiPrint.SlackBuild +++ b/www/apps/tracwikiprint/TracWikiPrint.SlackBuild @@ -15,7 +15,7 @@ # 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA # # slackbuild for TracWikiPrint, by Silvio Rhatto -# requires: pisa +# requires: # tested: TracWikiPrint-svn_version # model: generic.mkSlackBuild $Rev: 805 $ # @@ -99,8 +99,75 @@ cp -a $SRC_DIR/* . PKG_SRC="$PWD/$SND_DIR" cd "$PKG_SRC" +# 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 rmd160 sha1 sha256 sha512; 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 + # Build and install package python setup.py build install --root=$PKG +touch $PKG/$LIBDIR/python2.5/site-packages/wikiprint/__init__.py # Strip binaries ( cd "$PKG" |