diff options
author | rhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4> | 2009-03-29 13:56:22 +0000 |
---|---|---|
committer | rhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4> | 2009-03-29 13:56:22 +0000 |
commit | e71c832051c461f7acefcc1716f2a47d6c094159 (patch) | |
tree | 09aa1cd34e86840253d4dfc3cfd6a35651bd0fa3 /www/apps | |
parent | 5682cf882effcc230f4ce3d5504d67b718d76162 (diff) | |
download | slackbuilds-e71c832051c461f7acefcc1716f2a47d6c094159.tar.gz slackbuilds-e71c832051c461f7acefcc1716f2a47d6c094159.tar.bz2 |
TracTicketChange: adding TracTicketChange and dependency
git-svn-id: svn+slack://slack.fluxo.info/var/svn/slackbuilds@2128 370017ae-e619-0410-ac65-c121f96126d4
Diffstat (limited to 'www/apps')
-rw-r--r-- | www/apps/tracticketchange/Manifest | 23 | ||||
-rw-r--r-- | www/apps/tracticketchange/TracTicketChange.SlackBuild | 160 | ||||
-rw-r--r-- | www/apps/tracticketchange/slack-required | 5 | ||||
-rw-r--r-- | www/apps/tracticketdelete/Manifest | 23 | ||||
-rw-r--r-- | www/apps/tracticketdelete/TracTicketDelete.SlackBuild | 160 | ||||
-rw-r--r-- | www/apps/tracticketdelete/slack-required | 4 |
6 files changed, 375 insertions, 0 deletions
diff --git a/www/apps/tracticketchange/Manifest b/www/apps/tracticketchange/Manifest new file mode 100644 index 00000000..668f5c11 --- /dev/null +++ b/www/apps/tracticketchange/Manifest @@ -0,0 +1,23 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + +MKBUILD TracTicketChange.mkbuild 2793 MD5 8dc417a56f65c6f62cc4e36c2ca070cd RMD160 cd34afdfdb618d58ef814c7f56e759d8c8733013 SHA1 219afebb3b3dd6ad330e3cc244d7020b34d05a8e SHA256 7ec97755d701f1676b4ed1fe94a5e47d3af2ca4808403e3d9ee558fa8d79a95b SHA512 d3910e55e1964704642236853ca4e463168612bfef08ff13410b28e32620298a1112a35552259de06168abbaccf1d7352acb31801f1fa0334a189dbcfb1343d6 +SLACK-REQUIRED slack-required 106 MD5 5da3433e0016dcc3a0f5c03d4adf9bb5 RMD160 fe6f40547f87d0c34edc5467dbfcb07c0d8d5a34 SHA1 0f3e36284e832a85b39354e3b226d99e107b9497 SHA256 832261525f70593513187dfc036490c636d56d7c16e4ce1ca88c2d06e261aca8 SHA512 35575933478160db668d59a14fb4351d087a0ce4e7b5e031b09a9ab99434ca6a2be75d1dde968ef0e9782c8780e2a7f9ddf895f43d50c5d34b48a33978b8f51e +SLACKBUILD TracTicketChange.SlackBuild 5046 MD5 5b8eff5a55a57d121c8ddc95b6a4a0d5 RMD160 dfc99646773f75ec5139b949a771e41416cb3003 SHA1 94c48b12cc94b7135208679e493f392b9b92e6be SHA256 e56e5631d471dad2a90f913960fd3be9ce9e8a4ced060ed890edd3206052fb9c SHA512 9fb596ce72a8f441dfe75ab12f4b5227c539e6388fb98b4b3a73187428fbc0fb64166ded5960f27076fcfa48ce825525b8c126abbd1e72ed6cfccc14eaf6a60f +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v1.4.9 (GNU/Linux) + +iQIcBAEBAgAGBQJJz38qAAoJEEHL93ESzgeibrQP/jsDHeuUuP+RCD7MOgy1hg4N +ZJ3zKY3Dcxop/u0aEFLzS7jXjGBAoqz3EE9EgTiC8WG4XUOGk0IEuy3i/2ygnn3k +wNIV6yC+m6Rx0Y7XheibltfCEOFKcP2gR+72aAo/2XCluM42Ed4tn/vz27x/lSGM +LE2gyFRAIdJ+ljJRWC7d/rg/pniQ8G2aVEn3KHGrqoYf3YLKam15zc7oFIXZupzW +msl96vZCrnQbIDSLxypSi35WFgxm21821yVbXJZ5ykj2N40RY8byWtS7cIA8f9kW +he0i2NUJ8UFCfC3wHHeXZSNShndnqkZCYvimPw8Xzxkm683LDNpn4QPxWO72FS8g +vYhayTfblsF5wFCeTQSSoX4JQp1iNQkPjuUjwYu9JEg55aq+Uq7yEunrTlptvcZp +PMUZsEnQr4SdztGl9mPHLDELuH6ZNxvxe4YNUPMdbefMrP9YyA3nXbAee398aneb +LPY6pv3hRM1yRdpwVWkT3vYv6pSos8pQ0sykYwLjEysG1M+lX8CuTOveDrCStgxC +XuOGMDaDpSdKLS+Twz4xn7aQdBx6aNz/NpTQYLfNrcuemNR1YNfL51xsNF2gwTlN +CtbUCw3wQZ/Y+Vrl/Cr9bQknpq+4Pd8sVNs3j6nRPj02amJ6ydRHFWE2Gv+Biv6o +l2RZn8I0Qsi8bDsnaNso +=Dfg+ +-----END PGP SIGNATURE----- diff --git a/www/apps/tracticketchange/TracTicketChange.SlackBuild b/www/apps/tracticketchange/TracTicketChange.SlackBuild new file mode 100644 index 00000000..ceceecdd --- /dev/null +++ b/www/apps/tracticketchange/TracTicketChange.SlackBuild @@ -0,0 +1,160 @@ +#!/bin/bash +# +# TracTicketChange.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. +# +# TracTicketChange.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 TracTicketChange, by Silvio Rhatto +# requires: +# tested: TracTicketChange-svn_version +# model: generic.mkSlackBuild $Rev: 796 $ +# + +# Look for slackbuildrc +if [ -f ~/.slackbuildrc ]; then + source ~/.slackbuildrc +elif [ -f /etc/slackbuildrc ]; then + source /etc/slackbuildrc +fi + +# Set variables +CWD="$(pwd)" +SRC_NAME="TracTicketChange" +PKG_NAME="TracTicketChange" +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/tracticketchange"} +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/ticketchangeplugin/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/ticketchangeplugin/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---------------------------------------------| +TracTicketChange: TracTicketChange +TracTicketChange: +TracTicketChange: In the Change History section of the ticket view there is the Reply button. +TracTicketChange: TicketChangePlugin adds Change button. +TracTicketChange: +TracTicketChange: +TracTicketChange: +TracTicketChange: +TracTicketChange: +TracTicketChange: +TracTicketChange: +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/tracticketchange/slack-required b/www/apps/tracticketchange/slack-required new file mode 100644 index 00000000..b0ab2298 --- /dev/null +++ b/www/apps/tracticketchange/slack-required @@ -0,0 +1,5 @@ +# Dependency list to TracTicketChange +# +# dependency [condition] [version]] +Trac +TracTicketDelete diff --git a/www/apps/tracticketdelete/Manifest b/www/apps/tracticketdelete/Manifest new file mode 100644 index 00000000..e7b3d1dd --- /dev/null +++ b/www/apps/tracticketdelete/Manifest @@ -0,0 +1,23 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + +MKBUILD TracTicketDelete.mkbuild 2727 MD5 ebce3f5c09fd286896b804465a762460 RMD160 dd1221310f535beeb1f33b4dc5627e0578c42347 SHA1 ca4a7d3e32d716f93f904286974873e16787a95b SHA256 3c8ea5c16c252c03bb1448dfc06b1e5b3be13d615d9fe0a3f4ea82b45722e27a SHA512 efb51fb61ef9b516a4ddfd753732ee4de35567e44da9e0661a186ede7a150d985897f2623e5e7ff9951f13d56a7986e86727eefef6eeb9a3057db8f90694d5ea +SLACK-REQUIRED slack-required 85 MD5 88394c8c89aae2622e2658cfe364c88f RMD160 72dbd74082f766c47443c5b3d6c000f1ed2921d7 SHA1 7d6c8a74dcfbbaf4eea9117bbd2b41419497f373 SHA256 e91c70e07a739ae6115f26ad6305c746e692bad47e92d28b370ce4109d6f2fe8 SHA512 2bfe86c0e8528db6582b81a6c03b782d6e760273556e65b8b2e897452bd6e5c0ff331a556bdd53a9e81692b16a59f3824cc3fe3037b22d8723554178d7f5d60a +SLACKBUILD TracTicketDelete.SlackBuild 4997 MD5 20ebe3255ea21463fc6e212a481806ce RMD160 a744629b78d58dce91db861a23ab03092342d76d SHA1 e1a8520c170a86cfc48dc5bf7a0c341da1446448 SHA256 2a0ce2d6dfc697d44fd6f9b8a1542ae9cf9465728efa85f821ddb04c7b05511e SHA512 d8c6557a76f62e8223d9a94585f2ee3a65cd74b77e00cd122e8d9f93b3c0e0538dd088e466f7b6f4b6578f4b15b87c23995889e33bf8dd808dd36809808c34ce +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v1.4.9 (GNU/Linux) + +iQIcBAEBAgAGBQJJz35hAAoJEEHL93ESzgei9X4P/1hIXVeAIOaKHdH0g4t5UcaD +lNA3byvEye+r7NOT1nqNqZ/25kmymg/2WAbUYSVmTtbwYhal3u9dak11bNSOxRvL +qdysdc64LWqYTd/9CjhOxHH1WQoB09cHNFW51yE5VZN8fEpZcGY1p5qYdFALd/WI +XixRZedWL9KTvuWcmoi3COTKejo2ZVwg07kPCnsUjoV978wXfo/1Lkvm8TEk/9+j +QaXl8dwlIo48IfHBfs1OMusU70fPUdad2DPBCrAuIGznLQoAaHX2isFH82Qugyge +UDgVtex9NOyq8c47fkwM/5wuog/M0lXw6gWigKMKNWTcORn84e3zg5ys273e9lDv +WvPfBiTgaWDluzfG6qGgs/1xWZ/tKOg9AwRb7nZHMQvQRhMBBJ4zCj5WL0DOfgyw +UTTopXc5QMnavg216ZoX5iIOtLKj7F0VhECNxjW1deYKkExLY1ACGx3ly/JYIdbL +oMyZ48z4YpqhIncXg9KcAnkNqvQOeKb0M+xmuKifDrrVF10a2Y/XILG8VtrGziQb +qUSbdAUKm0LTWU3U+Vnkc+j4/GX7LlYVZFyNcPWze6n8H5Jq2f6cA28bih3Ojrvg +NO+/4NR6bAIup05nBdXyraUgAB6Go9xv+t3wmqQzVujkHvvie4Phy0mMGrxG/Gql +ZFqKWvVxvRspuPmH+UXh +=OExs +-----END PGP SIGNATURE----- diff --git a/www/apps/tracticketdelete/TracTicketDelete.SlackBuild b/www/apps/tracticketdelete/TracTicketDelete.SlackBuild new file mode 100644 index 00000000..50ea457b --- /dev/null +++ b/www/apps/tracticketdelete/TracTicketDelete.SlackBuild @@ -0,0 +1,160 @@ +#!/bin/bash +# +# TracTicketDelete.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. +# +# TracTicketDelete.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 TracTicketDelete, by Silvio Rhatto +# requires: +# tested: TracTicketDelete-svn_version +# model: generic.mkSlackBuild $Rev: 796 $ +# + +# Look for slackbuildrc +if [ -f ~/.slackbuildrc ]; then + source ~/.slackbuildrc +elif [ -f /etc/slackbuildrc ]; then + source /etc/slackbuildrc +fi + +# Set variables +CWD="$(pwd)" +SRC_NAME="TracTicketDelete" +PKG_NAME="TracTicketDelete" +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/tracticketdelete"} +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/ticketdeleteplugin/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/ticketdeleteplugin/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---------------------------------------------| +TracTicketDelete: TracTicketDelete +TracTicketDelete: +TracTicketDelete: This is a small plugin to allow deleting +TracTicketDelete: tickets from within Trac. +TracTicketDelete: +TracTicketDelete: +TracTicketDelete: +TracTicketDelete: +TracTicketDelete: +TracTicketDelete: +TracTicketDelete: +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/tracticketdelete/slack-required b/www/apps/tracticketdelete/slack-required new file mode 100644 index 00000000..36d8c6fd --- /dev/null +++ b/www/apps/tracticketdelete/slack-required @@ -0,0 +1,4 @@ +# Dependency list to TracTicketDelete +# +# dependency [condition] [version]] +Trac |