diff options
author | rhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4> | 2009-03-25 15:00:39 +0000 |
---|---|---|
committer | rhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4> | 2009-03-25 15:00:39 +0000 |
commit | 97a4064d0b54bdf015240f32d87d7ba8046d51ca (patch) | |
tree | 9a22c861059ecdb8e2e291ad99f0433c636e8650 /app/text/gnome-doc-utils | |
parent | de6fc8d3cd1074e89cbcf4a3b5a0d0aa2d1f3d3c (diff) | |
download | slackbuilds-97a4064d0b54bdf015240f32d87d7ba8046d51ca.tar.gz slackbuilds-97a4064d0b54bdf015240f32d87d7ba8046d51ca.tar.bz2 |
ekiga: updating ekiga (to 3.0.0) and its dependencies
git-svn-id: svn+slack://slack.fluxo.info/var/svn/slackbuilds@2124 370017ae-e619-0410-ac65-c121f96126d4
Diffstat (limited to 'app/text/gnome-doc-utils')
-rw-r--r-- | app/text/gnome-doc-utils/Manifest | 23 | ||||
-rw-r--r-- | app/text/gnome-doc-utils/gnome-doc-utils.SlackBuild | 97 |
2 files changed, 107 insertions, 13 deletions
diff --git a/app/text/gnome-doc-utils/Manifest b/app/text/gnome-doc-utils/Manifest new file mode 100644 index 00000000..a4f8f046 --- /dev/null +++ b/app/text/gnome-doc-utils/Manifest @@ -0,0 +1,23 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + +DIST gnome-doc-utils-0.12.0.tar.bz2 592073 MD5 5934c08d12407d8233416343cd73df24 RMD160 3ac9b6f04163ba2581b048282f64558f608ca44d SHA1 e20c74ad415b9ddfdf6c8d663e22bf27c0b939c4 SHA256 6bb8ec068558e380aff1e3f0aa130b52161ad68f8d495fce45c55783bbba9076 SHA512 0d687cfbae27a2bfa2eeb5e1af39e4dc0b7791ef46266f7b084e58be7b576308fcc59a97b41168946fd786bb2a68eb965692befb127dbaa0d53b9a0a6a58b8b3 +MKBUILD gnome-doc-utils.mkbuild 4170 MD5 1647da44912ee172c1f30dcb58dc9d25 RMD160 f5047a978bdcf2e5c1de75283367d3c77e77d99d SHA1 589c6c8c800e346ae3a5049c1b3b7ff1b8324474 SHA256 be828fbef3e1e7e1c9dd4af10b93e925b0a8f7ed195ad03774d6197a70219784 SHA512 3a74f3917ff082b70b3d66050fcde191e66d9fa564261e440d2649378e17bc9af1846533e3508cdd6634384ca4df59404ac3de44735d4570a1ae2d3bb1234635 +SLACKBUILD gnome-doc-utils.SlackBuild 7329 MD5 9fa533181d4cd6822ccf3fec4059ea67 RMD160 5c6c73ff308f5db7ad591531c38479675ccf4491 SHA1 d8b9d040ff90c7726a6305de483dbb2a45cf1725 SHA256 be1aad5b387ff10db1b80341e412206135e8d243f402c0e0521d60c47846da89 SHA512 7a608925e695b6c0f6c037d46c9bfe3df281f703c835407a977c255985169f3121efeb96898898e373228e73b71ac156add291e1bfe65006b0aaf3e11613ec4a +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v1.4.9 (GNU/Linux) + +iQIcBAEBAgAGBQJJyYPxAAoJEEHL93ESzgei5RYP/jNrmjVGiTKOluHMH3BYzs4R +HhSJ+NyJp3ZEUBSf2V+CrAEs2DypS8Qbwz3R0BPCY0yMwju4WOqr+NTRBoc1Dw+E +aEr3idGN19VEoQ49/kWOgs9IIV6e8YoSQX8HTlh5pmzsZEf2eDaoVXZyFocHZr79 +eojhLmwVtVZPjNx6+u26hdCcwqR/1ZzyXuPu+qT+9fBWAQLADbrMEg1nSESkBYjO +fYp0kykRVm42Msq5/SXlRpHkUA01ndDGOn5AUmvp4J8DRaSPjgIZEDc36r6tuVku +a62R1w/sIRIgEHKcn0n/5ey2GTCuWBb3ogffoRPAgn6V30e08R2mxNfG+pNPfzzb +8geQ4Qs3BIezIhT0QHamU/saxyFQJ84VOCBDkimx1TGIgJk1MxOmVA9tfGwS1/bD +Z873h47YSJS9NFBVICsGQANpJlqaNs5u+DtD/yqnbrHi/DpVELA0HW5zcAmFvqWu +lxTqLzV9dcMmvwCczRV+0hTeftee1inBpD6H/Vsuy/z9OqDRCf8Iy2D1duFejcRe +GgacCB4t3UjNwamTPeYKBXDKvDUqV9sbsaE4PFFqCohpuPdK93GdFGckMC1GPmPJ +qM8llatarDskaOi0dvIiH418RmYECGyFqxV0jiiZY8dzcNOoN99r1fMxt9oLq3OF +agCcOYkA1mAENN7XLRDe +=7Cyv +-----END PGP SIGNATURE----- diff --git a/app/text/gnome-doc-utils/gnome-doc-utils.SlackBuild b/app/text/gnome-doc-utils/gnome-doc-utils.SlackBuild index 24b1826a..d376e541 100644 --- a/app/text/gnome-doc-utils/gnome-doc-utils.SlackBuild +++ b/app/text/gnome-doc-utils/gnome-doc-utils.SlackBuild @@ -10,13 +10,14 @@ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General # Public License for more details. # -# You should have received a copy of the GNU General Public License along with -# this program; if not, write to the Free Software Foundation, Inc., 59 Temple -# Place - Suite 330, Boston, MA 02111-1307, USA +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA # # slackbuild for gnome-doc-utils, by Rudson R. Alves # requires: -# tested: gnome-doc-utils-0.12.0, 0.12.2 +# tested: gnome-doc-utils-0.12.0 +# model: generic.mkSlackBuild $Rev: 796 $ # # Look for slackbuildrc @@ -31,13 +32,14 @@ CWD="$(pwd)" SRC_NAME="gnome-doc-utils" PKG_NAME="gnome-doc-utils" ARCH=${ARCH:=i486} -SRC_VERSION=${VERSION:=0.12.2} +SRC_VERSION=${VERSION:=0.12.0} PKG_VERSION="$(echo "$SRC_VERSION" | tr '[[:blank:]-]' '_')" BUILD=${BUILD:=1rra} SRC_DIR=${SRC_DIR:=$CWD}/$PKG_NAME TMP=${TMP:=/tmp} PKG=${PKG:=$TMP/package-$PKG_NAME} REPOS=${REPOS:=$TMP} +SLACKBUILD_PATH=${SLACKBUILD_PATH:="app/text/gnome-doc-utils"} PREFIX=${PREFIX:=/usr} PKG_WORK="$TMP/$SRC_NAME" CONF_OPTIONS=${CONF_OPTIONS:=""} @@ -47,16 +49,17 @@ NUMJOBS=${NUMJOBS:="-j7"} LIBDIR="$PREFIX/lib" if [ "$ARCH" = "i386" ]; then - SLKCFLAGS="-O2 -march=i386 -mcpu=i686" + SLKCFLAGS="-O2 -march=i386 -mtune=i686" elif [ "$ARCH" = "i486" ]; then - SLKCFLAGS="-O2 -march=i486 -mcpu=i686" + SLKCFLAGS="-O2 -march=i486 -mtune=i686" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686" elif [ "$ARCH" = "s390" ]; then SLKCFLAGS="-O2" elif [ "$ARCH" = "x86_64" ]; then - SLKCFLAGS="-O2" + SLKCFLAGS="-O2 -fPIC" LIBDIR="$PREFIX/lib64" + LDFLAGS="-L/lib64 -L/usr/lib64" fi # Set error codes (used by createpkg) @@ -64,6 +67,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_WORK" 2> /dev/null @@ -83,10 +87,76 @@ if [ ! -s "$SRC_DIR/$SRC" ] || ! bunzip2 -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 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 + # Untar cd "$PKG_WORK" tar --no-same-owner --no-same-permissions -xvf "$SRC_DIR/$SRC" || exit $ERROR_TAR -PKG_SRC="$PWD/`ls -l | awk '/^d/ { print $8 }'`" +PKG_SRC="$PWD/`ls -l | awk '/^d/ { print $NF }'`" cd "$PKG_SRC" # Configure @@ -122,9 +192,9 @@ done mkdir -p "$PKG/install" || exit $ERROR_MKDIR cat << EODESC > "$PKG/install/slack-desc" # HOW TO EDIT THIS FILE: -# The "handy ruler" below makes it easier to edit a package description. Line +# The "handy ruler" below makes it easier to edit a package description. Line # up the first '|' above the ':' following the base package name, and the '|' -# on the right side marks the last column you can put a character in. You must +# on the right side marks the last column you can put a character in. You must # make exactly 11 lines for the formatting to be correct. It's also # customary to leave one space after the ':'. @@ -144,9 +214,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 |