aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4>2009-03-27 14:33:24 +0000
committerrhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4>2009-03-27 14:33:24 +0000
commit5682cf882effcc230f4ce3d5504d67b718d76162 (patch)
tree98c3b6b09a450f25662bc79670b2ee4d17845d7d
parent78b6bda0f7979dac3abb3016f99ac5eb558ba1a9 (diff)
downloadslackbuilds-5682cf882effcc230f4ce3d5504d67b718d76162.tar.gz
slackbuilds-5682cf882effcc230f4ce3d5504d67b718d76162.tar.bz2
TracWikiRename: adding TracWikiRename
git-svn-id: svn+slack://slack.fluxo.info/var/svn/slackbuilds@2127 370017ae-e619-0410-ac65-c121f96126d4
-rw-r--r--www/apps/tracwikirename/Manifest23
-rw-r--r--www/apps/tracwikirename/TracWikiRename.SlackBuild160
-rw-r--r--www/apps/tracwikirename/slack-required4
3 files changed, 187 insertions, 0 deletions
diff --git a/www/apps/tracwikirename/Manifest b/www/apps/tracwikirename/Manifest
new file mode 100644
index 00000000..ef756b91
--- /dev/null
+++ b/www/apps/tracwikirename/Manifest
@@ -0,0 +1,23 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+MKBUILD TracWikiRename.mkbuild 2681 MD5 d167a32c82752213f427e68ff946dc0c RMD160 d6d5ad05c84d25b9e884ce865e37f8910716fc1e SHA1 460df18310c7e9d22bed077844986b2bab788af5 SHA256 e167f538bae04d61f332c1c41dc54a072108b0ed2b0c7ea89a7100014e4769de SHA512 0328d566d4a8dee79073cc72a59c40cd99cb133d9ab20585c07372796a17c46bac39fb8e8260580d82e1236a7c1b975ee6fc19f8a4598917245f73f53a719290
+SLACK-REQUIRED slack-required 83 MD5 64212e2e01c7111585539fa5af7f2df3 RMD160 5dcf1f2ddd8ac5ea5f7741e20535c072f5498ad8 SHA1 b3783891a3bf03d12f56cab0f3926a95d21fce21 SHA256 267c1eb9b88bc62fee0f69e731757d9eb668a6b6e7dcde14f02dc1b5fc9a5eba SHA512 1c668dad7e877b423286bc3f643a5a02b0cc3ae746f7bd2343bcaf14799182514c73301d5827351e801ad1a29f4c9e396a9c101332de65dd2ebea86f74a0d541
+SLACKBUILD TracWikiRename.SlackBuild 4939 MD5 f4a13923db9514c62d3a3ab6fb6dac75 RMD160 f7db6af4e71ef268816f733ab223340e8f238bcd SHA1 e81ac6e488d342069d8d019fe6048e138cadcd05 SHA256 47dc8f77720dfc6f4a1cd53141731f7138fd84490b91ec15fdfd1720bd6a5c52 SHA512 e8480b18db2d58c42587711360632b89540d01373999e35afbec8d781f6b23b3ba3925f6b47ccc690fc6ef4c497b4d65ceba63ec37544976665a0f09fa0f8f14
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v1.4.9 (GNU/Linux)
+
+iQIcBAEBAgAGBQJJzOTxAAoJEEHL93ESzgeiC5oQAJapQ7FxCYA6w9t0C51kcBud
+vxC7ZtW/ga1Gm9lLS9QrndUIEix4ZkQOt8q3iwP+bXeSYNxRXSseoxDXlWH3mMqN
+uBEiHfhCu9S5OzcZQFNsx8hNRLZxmt6elOdWNp3GegaBGR5m9Scm7/XmL1dVboPT
+Y1yu4wszx6T5v65C3qwPYR2K7DHJ9Qwkp5G9TvESzYyo4MMSEILevOa+EBSNnXj8
+MOWdVdYCdZg7kMBRUIbrjTY7eg3XKpoDI5dtPjkYrFkmKU7PYhFBULvRW1xALD7t
+aV77sCIjsyizJbeDQEMJ5ozhv/7fcX0FWnosdwFjDt5FBjVDPFsyvqgogyakNIc5
+y1QaRou3wlpLlTmidJE68qf99yKUGhx15ahdcIvmggE7K7wMrA+cPYGqUAVUvU4U
+f/B6kR3jSciagIMfO1Ym68bugZwBvwY7C8lhdwPSq5FUdoHQ2vXAW6kr+w+E2686
+4faBOp/j+qH5DP7PVj5vXVCAZKUMO46uY24FScNZAThPBLAUg6FBY0uePFsTcH31
+EwnMnkeKtDVJVL6A2aBayzuXYIeu6ZhWRdCUHcJG46lA6SMAhu9OYVdWAG/RbEzN
+7RKnXSYzoRIFIjJG2PudfZan7LIILUlVKkaP282Z7WMWaTqmHb+V3v6bTzfvU6Ig
+iqETLbRzuR/r2qGIqove
+=TNkO
+-----END PGP SIGNATURE-----
diff --git a/www/apps/tracwikirename/TracWikiRename.SlackBuild b/www/apps/tracwikirename/TracWikiRename.SlackBuild
new file mode 100644
index 00000000..c253793a
--- /dev/null
+++ b/www/apps/tracwikirename/TracWikiRename.SlackBuild
@@ -0,0 +1,160 @@
+#!/bin/bash
+#
+# TracWikiRename.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.
+#
+# TracWikiRename.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 TracWikiRename, by Silvio Rhatto
+# requires:
+# tested: TracWikiRename-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="TracWikiRename"
+PKG_NAME="TracWikiRename"
+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/tracwikirename"}
+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/wikirenameplugin/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/wikirenameplugin/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-----------------------------------------------|
+TracWikiRename: TracWikiRename
+TracWikiRename:
+TracWikiRename: This plugin allows you to rename Trac wiki pages.
+TracWikiRename:
+TracWikiRename:
+TracWikiRename:
+TracWikiRename:
+TracWikiRename:
+TracWikiRename:
+TracWikiRename:
+TracWikiRename:
+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/tracwikirename/slack-required b/www/apps/tracwikirename/slack-required
new file mode 100644
index 00000000..212023ae
--- /dev/null
+++ b/www/apps/tracwikirename/slack-required
@@ -0,0 +1,4 @@
+# Dependency list to TracWikiRename
+#
+# dependency [condition] [version]]
+Trac