diff options
Diffstat (limited to 'www/apps')
-rw-r--r-- | www/apps/trac/Manifest | 24 | ||||
-rwxr-xr-x | www/apps/trac/Trac.SlackBuild | 82 | ||||
-rw-r--r-- | www/apps/tracfootnotemacro/Manifest | 23 | ||||
-rw-r--r-- | www/apps/tracfootnotemacro/TracFootNoteMacro.SlackBuild | 160 | ||||
-rw-r--r-- | www/apps/tracfootnotemacro/slack-required | 4 |
5 files changed, 287 insertions, 6 deletions
diff --git a/www/apps/trac/Manifest b/www/apps/trac/Manifest new file mode 100644 index 00000000..e70c4ce4 --- /dev/null +++ b/www/apps/trac/Manifest @@ -0,0 +1,24 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + +DIST Trac-0.11.4.tar.gz 724708 MD5 a765087b22661cf4aa1520518cddecae RMD160 dffe20cb4f1cda2d8feaed5746a9701c24ccaeef SHA1 392f5fc0bc8e29ebea07182707ad31a55b9ec46f SHA256 40a8e633fd05b0468f9bce5e426a83a4ad1e42d1c59c29c6182e238efd811920 SHA512 32577419db9b28a09a363b7b21a6a24718435cdb9e6cba22954dc6c69242da176084f3fd9c69164068f9ecbd36f47d98ae0614eb33963ff7ac28569f2ea639dc +MKBUILD Trac.mkbuild 2807 MD5 e875b97330940654de3ad62c5054293c RMD160 3950415a243e5b7b9ab90c723746a83207dbaf9e SHA1 741b4592b908a0792d19300b97d058b5818053e7 SHA256 8d81bc0a08d716a919a4a1bc8bb2a6d69bb3f70b56aabe1fff20f1d8efbe80c3 SHA512 828791000f20bea0cf5013a7a69686aedc41d64dfde640618c9475810a4d7495279bb3485cf6b7a16366ba452a517339b551dc31de815b4037dc80aeaf9c55a3 +SLACK-REQUIRED slack-required 125 MD5 ac1144e206e2e14554d27da8df7265fc RMD160 8eba69d944a6d48ecd38dbceacbe7df0997d45e4 SHA1 019386d63454083ca90b8f29145d59051e250980 SHA256 38bb7d1eaa66da1d85eb5bb5c078fa0e736889d05dc2c480abf452f5e4ea1213 SHA512 cfb550b34702f929360ff7f8cec47af4eb2a26e5f53230a2d3c3cc1da07f2eb5285df11352067ec8a09e599a83981036ebf904141acfb813a68d719761a41460 +SLACKBUILD Trac.SlackBuild 6566 MD5 820530045e3611c4b96ff774d0fd0f02 RMD160 b6f36a8de938954e1b7ced8ed5abe6708ec27cb6 SHA1 fa6c066c7ca572ea6a0ec733fde93cce85466748 SHA256 e27066be9630d42b601868f55e908c9cb4c8e0fcee103a00c97c5aa65a1f834a SHA512 7f9804c3eb6a26eac1fcfe0005a74053410bbfcbf48b8a52aadda26ebf9248af261ef78070fa1d094f97343f996a134dbb07360a223d403857bc4e4ca38efd4d +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v1.4.9 (GNU/Linux) + +iQIcBAEBAgAGBQJJ079gAAoJEEHL93ESzgeiQIYP/3EwBz+SYvFgDFl85Pje617L +HjoBq3uyfgDL2SZzyDCfK8GGtuogUO6dowePW2kHM/qjcnAOwUBS+ICRE+7fKvmG +/fn0zGWRnkRZGa4U2GWHXRJealiCljOzPiyKpVd4dxyJqWY8yIjG46qg8P+mH8yQ +gU9/+oLF7KLa7KKq1oxj8m/dFOkjGB2pYkHVLaMkLd4QDI9djw0t9S86cw0ntMYR +l+fU3bAt8i+QXqJu2CzotZDAaulSkqym9IAO9dnzP2Xb2SUd7m5J3DXAtqIrf6RJ +DZ7G3kC3ICPMQWJxuRfwD2TuLrBHhAi8GGeVKAnGZ2z6F5g3gfsBWvr+hg7bcT+Q +DkLsRJk7kMddj/V/gbA2opIHjVVxvBND8GvwFM8/WRnE8p8itzsT9/27R7NuKjFD +7bhmD7oUHSdKDznIQtP7z+HlMGxPCaiYc7TYRl4xud6a92CUgfTol5ghW8uxRCF/ +HreYoFc+sEpUlGYdv4eOLw6U2tO5VqpdoSpWd/CuUx4WiTNH26WaOsHOd1zTvhW4 +WAzGPrURFd/CHdZMRxO8kD9epaVKAZA0ShfZw6/Os6z84CJCQtG98di3n7zv/IzM +x8J5FBfmhVjkYRWDyDuRZ4xfQunGxCY5OE29xuwS2XRDs28MTXcp2J3jQcP1I8pI +qd14Yy9069GfF16k8wae +=Adw9 +-----END PGP SIGNATURE----- diff --git a/www/apps/trac/Trac.SlackBuild b/www/apps/trac/Trac.SlackBuild index d4958f44..c67f0729 100755 --- a/www/apps/trac/Trac.SlackBuild +++ b/www/apps/trac/Trac.SlackBuild @@ -15,8 +15,9 @@ # 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA # # slackbuild for Trac, by Silvio Rhatto -# requires: setuptools pysqlite swig -# tested: Trac-0.11rc2 +# requires: +# tested: Trac-0.11.4 +# model: generic.mkSlackBuild $Rev: 805 $ # # Look for slackbuildrc @@ -31,13 +32,14 @@ CWD="$(pwd)" SRC_NAME="Trac" PKG_NAME="Trac" ARCH=${ARCH:=i486} -SRC_VERSION=${VERSION:=0.11rc2} +SRC_VERSION=${VERSION:=0.11.4} 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:="www/apps/trac"} PREFIX=${PREFIX:=/usr} PKG_WORK="$TMP/$SRC_NAME" CONF_OPTIONS=${CONF_OPTIONS:=""} @@ -47,9 +49,9 @@ NUMJOBS=${NUMJOBS:=""} 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 @@ -65,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 @@ -84,6 +87,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 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 @@ -134,7 +203,8 @@ fi # 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" ] || [ "$1" = "--cleanup" ]; then diff --git a/www/apps/tracfootnotemacro/Manifest b/www/apps/tracfootnotemacro/Manifest new file mode 100644 index 00000000..bb1cab77 --- /dev/null +++ b/www/apps/tracfootnotemacro/Manifest @@ -0,0 +1,23 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + +MKBUILD TracFootNoteMacro.mkbuild 2736 MD5 a0c639a9a193eecc58bd71f011102d1f RMD160 e6bcb7604877ee3b4759aff9298e7d885559f983 SHA1 0c5625444833104dfc70d6577d8222cc10649ba6 SHA256 47b6c3d7abd824e3f244a5408d883134e5d1c39a1e0c11558bff615bce6a488b SHA512 6356d0aa842a4a40b4caf37814ea49f919c7a60cec9ebc4a8601b62e1310900f0e3be107d6791db9929eee47f3ff0a4eccd73a7897129ed77ebfea1f5fa27973 +SLACK-REQUIRED slack-required 86 MD5 3cef875c30b700980658315b3257cf65 RMD160 d1078142db3f7a0c63061585253655dc6422b74a SHA1 11acd91f6316a0bfa8956580c45331381636fae8 SHA256 7a73caef4022eb5cce134cdee52d556615f531320ea99249b838c178e443a929 SHA512 9bcebb843273e76e979fd47e5f40eb8431806a8cb7426a9ced81b33989dd013e703e25b3bdeb538e4ccefba3f4eba04c5da3a2321555eb160f4e99fbf40567d0 +SLACKBUILD TracFootNoteMacro.SlackBuild 5006 MD5 888e6bc586cbff119a038331e3cfca1f RMD160 a57e9eed7aaf49ebc11502f6a4e7601c19600f36 SHA1 cc8371af5c1bd7d49b6d8de5d06849650f1ffd97 SHA256 f82c3b2d6b91760c731d29a2c95ef289294343fe9dc324d83923222b84e0e736 SHA512 0b43bbb7a132e70b34b50b25f5fa667c8295356f4ee0c21585e15af6d344b5475b591bb0356286a8defd35451ecfa6c243d5d8bf1f2691a3a27e38b763aa75ab +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v1.4.9 (GNU/Linux) + +iQIcBAEBAgAGBQJJ07u4AAoJEEHL93ESzgeiXjUP/iJiODLia6tbKl1OVyW4uZsR +RUQ+wypSBsIC7HMDdTTlXVAtIg9YA3fkxFP/R5aShv/BlIoVETNUYuunaMc0AytB +UKhixYqYWG767lygjsMzXgtqC2X0smH/4VG6xy+4Tkam57oWOQs2LtmWw+9bnYgC +hwdZBCDyprAYxG1NgadLxv1y/hmu5ARUL0r6mgTwMlt6Izh5gGn0yR8caF9Cubkx +/p7K2Vp5i6zJp22onhAX5UDBEVQBdh/R38ShDXZI4tUJhudIycPGLyaJHx+JRARS +N8lkodPZRBKCCIQ8R+cZyDIDb7TEErX8cjcRMrCFZNAxN1kfScB0KQUF+kiOcRBx +XmtKSgokcG/BALdo4bLewJLIa9SqXgQS4+3t/P7ESi8fPBEC2kh7tXzDn5hE3/LS +jjnlUC4+oAs1xnv/YRyckykLCQiecXVN2k/AbxjNbA7lkIwHQOwzF4a4fgZwsCg9 +a5MCh71iQv7iEp1EXL9vpb0tqx4nwY0D1OdiSCp70SiBR31YJvUe9WHnYnBBzzQ0 +rW10e3zofCCaPx+kBUrr+u4S0//nJYDi9nzlmzlple7KAh9GxHAHx0jbOB62ELWB +CcEnF4zMbXZcWQh6AiczxcKNhe/aQg8FniHloKRCAcMT1kV/zIfmDEclNM9q279J +cDl5bFNQoZAuGvebHGK+ +=nudq +-----END PGP SIGNATURE----- diff --git a/www/apps/tracfootnotemacro/TracFootNoteMacro.SlackBuild b/www/apps/tracfootnotemacro/TracFootNoteMacro.SlackBuild new file mode 100644 index 00000000..4a42d2d9 --- /dev/null +++ b/www/apps/tracfootnotemacro/TracFootNoteMacro.SlackBuild @@ -0,0 +1,160 @@ +#!/bin/bash +# +# TracFootNoteMacro.SlackBuild is free software; you can redistribute +# it and/or modify it under the terms of the GNU General Public License as +# published by the Free Software Foundation; either version 2 of the License, +# or any later version. +# +# TracFootNoteMacro.SlackBuild is distributed in the hope that it will +# be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of +# 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 +# +# slackbuild for TracFootNoteMacro, by Silvio Rhatto +# requires: +# tested: TracFootNoteMacro-svn_version +# model: generic.mkSlackBuild $Rev: 805 $ +# + +# Look for slackbuildrc +if [ -f ~/.slackbuildrc ]; then + source ~/.slackbuildrc +elif [ -f /etc/slackbuildrc ]; then + source /etc/slackbuildrc +fi + +# Set variables +CWD="$(pwd)" +SRC_NAME="TracFootNoteMacro" +PKG_NAME="TracFootNoteMacro" +ARCH=${ARCH:=i486} +SRC_VERSION=${VERSION:=svn_version} +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:="www/apps/tracfootnotemacro"} +PREFIX=${PREFIX:=/usr} +PKG_WORK="$TMP/$SRC_NAME" +CONF_OPTIONS=${CONF_OPTIONS:=""} +NUMJOBS=${NUMJOBS:=""} + +# Set system libraries' path and optmization flags based on $ARCH +LIBDIR="$PREFIX/lib" + +if [ "$ARCH" = "i386" ]; then + SLKCFLAGS="-O2 -march=i386 -mtune=i686" +elif [ "$ARCH" = "i486" ]; then + 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 -fPIC" + LIBDIR="$PREFIX/lib64" + LDFLAGS="-L/lib64 -L/usr/lib64" +fi + +# Set error codes (used by createpkg) +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 +rm -rf "$PKG" 2> /dev/null + +# Create directories if necessary +mkdir -p "$SRC_DIR" || exit $ERROR_MKDIR +mkdir -p "$PKG" || exit $ERROR_MKDIR +mkdir -p "$REPOS" || exit $ERROR_MKDIR +mkdir -p "$PKG_WORK" || exit $ERROR_MKDIR + +# Get svn source code +cd "$SRC_DIR" +SND_DIR="`basename http://trac-hacks.org/svn/footnotemacro/0.11`" + +if [ "`find "$SRC_DIR/" -name .svn`" != "" ] && [ -d "$SRC_DIR/$SND_DIR" ]; then + cd $SND_DIR + svn update || exit $ERROR_VCS +else + svn checkout http://trac-hacks.org/svn/footnotemacro/0.11 $SND_DIR || exit $ERROR_VCS + cd $SND_DIR +fi + +PKG_VERSION="`svn info | awk '/Last Changed Rev:/ { print $4 }'`_svn" + +# Copy svn source +cd "$PKG_WORK" +cp -a $SRC_DIR/* . +PKG_SRC="$PWD/$SND_DIR" +cd "$PKG_SRC" + +# Build and install package +python setup.py build install --root=$PKG + +# Strip binaries +( cd "$PKG" + find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \ + xargs strip --strip-unneeded 2> /dev/null + find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \ + xargs strip --strip-unneeded 2> /dev/null +) + +# Install documentation +DOCS="COPYING README" +mkdir -p "$PKG/usr/doc/$PKG_NAME-$PKG_VERSION" || exit $ERROR_MKDIR +for doc in $DOCS; do + if [ -f "$doc" ]; then + cp -a $doc "$PKG/usr/doc/$PKG_NAME-$PKG_VERSION" + fi +done + +# Add package description (slack-desc) +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 +# 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 +# make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':'. + + |-----handy-ruler--------------------------------------------| +TracFootNoteMacro: TracFootNoteMacro +TracFootNoteMacro: +TracFootNoteMacro: The FootNoteMacro automatically collates and generates +TracFootNoteMacro: footnotes. +TracFootNoteMacro: +TracFootNoteMacro: +TracFootNoteMacro: +TracFootNoteMacro: +TracFootNoteMacro: +TracFootNoteMacro: +TracFootNoteMacro: +EODESC + +# Copy slack-required +mkdir -p "$PKG/install" || exit $ERROR_MKDIR +if [ -f "$CWD/slack-required" ]; then + cp $CWD/slack-required $PKG/install +fi + +# Build the package +cd "$PKG" +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" ] || [ "$1" = "--cleanup" ]; then + rm -rf "$PKG_WORK" "$PKG" +fi diff --git a/www/apps/tracfootnotemacro/slack-required b/www/apps/tracfootnotemacro/slack-required new file mode 100644 index 00000000..0ee67b37 --- /dev/null +++ b/www/apps/tracfootnotemacro/slack-required @@ -0,0 +1,4 @@ +# Dependency list to TracFootNoteMacro +# +# dependency [condition] [version]] +Trac |