From f56ebc1894a80e8801f515aab6b10f095e6bca90 Mon Sep 17 00:00:00 2001 From: rhatto Date: Mon, 23 Jul 2007 23:46:48 +0000 Subject: added patches/subversion git-svn-id: svn+slack://slack.fluxo.info/var/svn/slackbuilds@1288 370017ae-e619-0410-ac65-c121f96126d4 --- patches/subversion/slack-desc | 19 +++++ patches/subversion/subversion.SlackBuild | 142 +++++++++++++++++++++++++++++++ 2 files changed, 161 insertions(+) create mode 100644 patches/subversion/slack-desc create mode 100644 patches/subversion/subversion.SlackBuild (limited to 'patches') diff --git a/patches/subversion/slack-desc b/patches/subversion/slack-desc new file mode 100644 index 00000000..935a5221 --- /dev/null +++ b/patches/subversion/slack-desc @@ -0,0 +1,19 @@ +# 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------------------------------------------------------| +subversion: subversion (a version control system) +subversion: +subversion: Subversion is a version control system which allows you to keep old +subversion: versions of files and directories (usually source code), and keep a +subversion: log of who, when, and why changes occurred, similar to other such +subversion: systems like CVS, RCS or SCCS. Subversion keeps all the information +subversion: to permit extracting previous versions of those files at any time. +subversion: +subversion: For more information about the Subversion project, visit: +subversion: http://subversion.tigris.org +subversion: diff --git a/patches/subversion/subversion.SlackBuild b/patches/subversion/subversion.SlackBuild new file mode 100644 index 00000000..a45a7134 --- /dev/null +++ b/patches/subversion/subversion.SlackBuild @@ -0,0 +1,142 @@ +#!/bin/bash +# +# got it from ftp://ftp.slackware.com/pub/slackware/slackware-12.0/source/d/subversion/subversion.SlackBuild +# small changes by rhatto at riseup.net +# + +if [ -s "slack-required" ]; then + echo Recomended and required packages for building cairo are: + cat slack-required | sed -e 's/^/\t/' + if [ "$INTERACT" != "no" ]; then + echo If you dont have those installed, press Ctrl-C. Otherwise, hit ENTER. + read crap +# else +# echo Sleeping 3 seconds... +# sleep 3 + fi +fi + +CWD="`pwd`" + +if [ -f ~/.slackbuildrc ]; then + source ~/.slackbuildrc +elif [ -f /etc/slackbuildrc ]; then + source /etc/slackbuildrc +fi + +# default settings +PACKAGE="subversion" +ARCH=${ARCH:=i486} +VERSION=${VERSION:=1.4.4} +BUILD=${BUILD:=1rha} +SRC_DIR=${SRC:=$CWD} +TMP=${TMP:=/tmp} +REPOS=${REPOS:=$TMP} + +LIBDIR=/usr/lib +if [ "$ARCH" = "i386" ]; then + SLKCFLAGS="-O2 -march=i386 -mcpu=i686" +elif [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mtune=i686" +elif [ "$ARCH" = "s390" ]; then + SLKCFLAGS="-O2" +elif [ "$ARCH" = "x86_64" ]; then + LIBDIR="/usr/lib64" + SLKCFLAGS="-O2 -fPIC" +fi + +# ------- error codes for 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 + +RTOOL="wget" +PACKAGE_EXT="bz2" +SRC="$PACKAGE-$VERSION.tar.$PACKAGE_EXT" +URL="http://subversion.tigris.org/downloads/$SRC" + +SRC_DIR="$SRC_DIR/$PACKAGE" +mkdir -p $SRC_DIR + +if [ "$RTOOL" == "wget" ] && [ ! -f "$SRC_DIR/$SRC" ]; then + wget "$URL" -O "$SRC_DIR/$SRC" || exit $ERROR_WGET +fi + +wget http://svnbook.red-bean.com/nightly/en/svn-book-html.tar.bz2 -O $SRC_DIR/svn-book-html.tar.bz2 +chmod 644 $SRC_DIR/svn-book-html.tar.bz2 + +PKG=$TMP/$PACKAGE/package-subversion +rm -rf $PKG +mkdir -p $PKG + +cd $TMP +rm -rf subversion-$VERSION +tar xvf $SRC_DIR/$SRC || exit $ERROR_TAR +cd subversion-$VERSION + +chown -R root:root . +find . \ + \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ + -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ + -exec chmod 644 {} \; + +CFLAGS="$SLKCFLAGS" \ +./configure \ + --prefix=/usr \ + --libdir=$LIBDIR \ + --enable-shared \ + --disable-static \ + --with-apr=/usr \ + --with-apr-util=/usr \ + --with-apxs=/usr/sbin/apxs \ + --with-neon=/usr \ + --with-pic \ + --with-ssl \ + --with-zlib \ + --build=$ARCH-slackware-linux +make -j4 || exit 1 +make install DESTDIR=$PKG +make install-docs DESTDIR=$PKG + +( 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 +) +rm -rf $PKG/usr/info +gzip -9 $PKG/usr/man/man?/* + +# What is this junk for? Since I don't know, I'll erase it. :-) +rm -rf $PKG/usr/build + +cp -a \ + BUGS CHANGES COMMITTERS COPYING HACKING INSTALL README TRANSLATING doc \ + $PKG/usr/doc/subversion-$VERSION +# too big && useless for most || if you think not, can be found in the source tarball +rm -rf $PKG/usr/doc/subversion-$VERSION/doc/tools +# Add the HTML svn book: +( cd $PKG/usr/doc/subversion-$VERSION + tar xjf $SRC_DIR/svn-book-html.tar.bz2 + mv svn-book-html book + cd book + find . -type d -exec chmod 755 {} \; + find . -type f -exec chmod 644 {} \; + chown -R root:root . + find . \ + \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 -o perm 2755 \) \ + -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ + -exec chmod 644 {} \; +) + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + +cd $PKG +makepkg -c y -l y $REPOS/$PACKAGE-$VERSION-$ARCH-$BUILD.tgz || exit $ERROR_MKPKG + +if [ "$CLEANUP" == "yes" ]; then + rm -rf $TMP +fi + -- cgit v1.2.3