diff options
author | rhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4> | 2008-12-24 15:40:31 +0000 |
---|---|---|
committer | rhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4> | 2008-12-24 15:40:31 +0000 |
commit | 025b7a3588b0ff0d6d91551e6db44d36b2c52553 (patch) | |
tree | 74bb7a1a548517cd14fc803654a09f57801cd442 | |
parent | 673f60870d307975f733f5e29f58f9cc35d150d2 (diff) | |
download | slackbuilds-025b7a3588b0ff0d6d91551e6db44d36b2c52553.tar.gz slackbuilds-025b7a3588b0ff0d6d91551e6db44d36b2c52553.tar.bz2 |
-ca gtkmm gtkmm: enabling manifest check
git-svn-id: svn+slack://slack.fluxo.info/var/svn/slackbuilds@2024 370017ae-e619-0410-ac65-c121f96126d4
-rw-r--r-- | dev/cpp/gtkmm/Manifest | 9 | ||||
-rwxr-xr-x | dev/cpp/gtkmm/gtkmm.SlackBuild | 57 |
2 files changed, 62 insertions, 4 deletions
diff --git a/dev/cpp/gtkmm/Manifest b/dev/cpp/gtkmm/Manifest index 305b06bc..8bb5f571 100644 --- a/dev/cpp/gtkmm/Manifest +++ b/dev/cpp/gtkmm/Manifest @@ -1,7 +1,8 @@ DIST gtkmm-2.8.12.tar.bz2 5955916 MD5 512170bf8cb2593797c169f92345d7e9 SHA1 38d11d72ac242178703b81f6d2ed6ddec78867b9 SHA256 f65928ae0c7efe510c12f9546a6e843b52c5ba0121fac31d211f335d29d4a7ad SHA512 da79417c475de564868c3f94dbd4ccabe3b3a70206c3ad8b387d85dde887380ba1baa39f2108b900531e05e1907c512e3feb74899dd108fbce4789c3820e9dbe RMD160 a157fd0608599469aabc8ca62fa73186ee0b60d2 -MISC entries 377 MD5 21defa174e67a3508ab55b2bc866ef1a SHA1 1c3f9bb73f52c31c8f00738a5df886490e38fd71 SHA256 bfb596cc07a6f946e12a562b0d543df2aa8dd9d1b435cb49474493957ae2e2fb SHA512 72510b8dfab6807103411514b960b91ebd5630b6484734b1f5e10f2b30f41a90479ea8b80adb000a23df09a39bf2a4870bed9f82f0460a21ca42bda4e7c8477f RMD160 2ad9fecb53928c528bcda5278e12cbdccbc97b63 +MISC Manifest.svn-base 2564 MD5 c591a0ab41c97cbb55be9452256ca3f3 SHA1 31c97379a858bc6aadb7a4a782d9db7f78ba226b SHA256 867f6c44ed6a616c5cffed267d724ff217b82650250a6bd3eaaff22c5783ec37 SHA512 c92ad29d2a377ef7ba7c38a71cf293d1f59ddd3cb78f9a8ffe46214874bb4e091650f23ccac27b785ac6b66681393e33d07d610c006dcb67896fca50e8303070 RMD160 744bcfda8150a80ad4fa93a70490439fd8e13dca +MISC entries 555 MD5 f1e16d0d49fc13eab7a0f4e3f6fa6c26 SHA1 af6094e87f510e83fd88fd74430a87e0c3105790 SHA256 0af9a31a98a23b5b4441f1e593963af180952c40f30b1e203472da0ea8398bfc SHA512 3778fc322dc28dc19cfc8438238aadbb9f4fb06c02263b38fb13cca677b44d2f2bdcb2ca2f0ca42640befcaf892e825ceab5c16190af1bb2df6e56c2514c33b7 RMD160 295d1a7e500ad44205b62f0cee8aae97b42d3729 MISC format 2 MD5 7c5aba41f53293b712fd86d08ed5b36e SHA1 b6abd567fa79cbe0196d093a067271361dc6ca8b SHA256 2e6d31a5983a91251bfae5aefa1c0a19d8ba3cf601d0e8a706b4cfa9661a6b8a SHA512 67403e2e061fea6d54770f26bb22883c4586cbf3b37898d8b8e1b41f56a123b62a2f85bbfa891c6bebc1a0c9d0c5849acd5d79af364938ff80725dfbc69037c4 RMD160 32481d88a9c980b93b921ed5f1cc3f37b89b20ee -MISC gtkmm.mkbuild.svn-base 2835 MD5 1199e31f3cd2f23de80ce1db2400530e SHA1 e81bc6428dac152c450c71fc09ee619da300084f SHA256 ba79a78779cf58e00088233dd3f17a1a48574d24ee5a24d82ce029f17f8d164d SHA512 c1ac39e5317047d16d7133ab5fa2163edabd19385ddd13638b2aca49d2f6e665e98c3b872c3a877504fb9a9dafe68bcb6b7dee92b8bba9bbbd2d92fdfe8e59f8 RMD160 68c5eece0c3a34fec8ebe0cc2c6bdfc8ce1b35ab -MKBUILD gtkmm.mkbuild 2836 MD5 95b29944ef1825e0d7bfa6ebc223febd SHA1 98adff3096f8a0450f784ba195e29df3aa89969b SHA256 3cceb712f5e19cc4030cc57792e202d126fd7a087c0e63564e271557fa942fe8 SHA512 44e457920d59dd96c90706b92bc931ed15b89fe9bfbaf619050d0db0a04fbe4f195e8ddb8510fc61d7e68de69eed3fc14e5950be727e5a886c2a7b0829282552 RMD160 dd63b539f6d107decf3464996bfbc28056300490 +MISC gtkmm.mkbuild.svn-base 2836 MD5 95b29944ef1825e0d7bfa6ebc223febd SHA1 98adff3096f8a0450f784ba195e29df3aa89969b SHA256 3cceb712f5e19cc4030cc57792e202d126fd7a087c0e63564e271557fa942fe8 SHA512 44e457920d59dd96c90706b92bc931ed15b89fe9bfbaf619050d0db0a04fbe4f195e8ddb8510fc61d7e68de69eed3fc14e5950be727e5a886c2a7b0829282552 RMD160 dd63b539f6d107decf3464996bfbc28056300490 +MKBUILD gtkmm.mkbuild 2856 MD5 8005ee60a3f3e187ddcc9f43d828fa5d SHA1 73995c7348824dbc7e0877d48b044159c73e839d SHA256 f85804a1603e8171b48546b72bc0655ec50a38ef2f018630855483dccb07be17 SHA512 4cba80158926b6481de9e0d0437b19477c58546198031325f76081cacc41bd872fb4eea7f2081a37afe92654641591ab3440f52b4e05aab6a2277c68d1e2a924 RMD160 a1ef174e4e74d31669b37ce7bf3b069d66d61294 SLACK-REQUIRED slack-required 88 MD5 94bd42f84661ff1ba4aef45f4efca148 SHA1 c2d5024b9bcbb29d90072f9991c711a880b47790 SHA256 89af433964038ac2561c99b40190dbd12d6ed2c2c28eb7576afbfb1e0b430db3 SHA512 6cc0832535f2c5d84bb4dc1abd5dd5eb9e4f6ae46d6ed2478ac591062804bea67c18c2cdb8528de90a81ac57541ededfa2354ce0fc7c8e93ab58856f1790a0fd RMD160 c72b3104833b6358b393acb8abec645130b447a8 -SLACKBUILD gtkmm.SlackBuild 4923 MD5 2d3f766fa2f8768a222de553d80c3b9a SHA1 ab9bdfaf1e2b8ca661535e04530ef90e0b9ca37c SHA256 c48346859bb5213c30befbf626723052d121410b0821f0339420c503e449a056 SHA512 868bfb5c4d640c613ad3e0a5784b4a697ab1eb1046ee4744de86941dad0c95d9ce048a007772032ac34545bcb68eb97d1a758551fd353229c3b6acd85202c80a RMD160 a50565557b528b5666cc86b13b83baf848a5d2f3 +SLACKBUILD gtkmm.SlackBuild 6684 MD5 2379a0c67c24cfac482f612fe241d590 SHA1 97ceeb237b638a1da1636459e81a3be59e072a69 SHA256 4c3fe58f06e07e663b4eaaf0207de50bd31e52e273e5ac5a2cfb9c721839cd05 SHA512 46b2f62db6659ba322b2c372100cc63e0c133f886de8d936e29c5bf86519b583a440618922ed574bf0e537512de34fc6f7744ad53a36abcb9311a9070c6b4e94 RMD160 fe130c2ee78efcf0b6b53c2c9c277bbdb839fbdc diff --git a/dev/cpp/gtkmm/gtkmm.SlackBuild b/dev/cpp/gtkmm/gtkmm.SlackBuild index 138aa212..7195218a 100755 --- a/dev/cpp/gtkmm/gtkmm.SlackBuild +++ b/dev/cpp/gtkmm/gtkmm.SlackBuild @@ -91,6 +91,63 @@ tar --no-same-owner --no-same-permissions -xvf "$SRC_DIR/$SRC" || exit $ERROR_TA PKG_SRC="$PWD/`ls -l | awk '/^d/ { print $NF }'`" cd "$PKG_SRC" +# Check Manifest file +if [ -e "$CWD/Manifest" ]; then + + MANIFEST_LINES="`grep -E -v "^(MKBUILD|SLACKBUILD)" $CWD/Manifest | wc -l`" + + for ((MANIFEST_COUNT=1; MANIFEST_COUNT <= $MANIFEST_LINES; MANIFEST_COUNT++)); do + + MANIFEST_LINE="`head -n $MANIFEST_COUNT $CWD/Manifest | 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 + # Configure CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ |