From 6f1885bc7b5ffdcec1954364c7acad20c25821b8 Mon Sep 17 00:00:00 2001 From: rudson Date: Wed, 15 Nov 2006 23:56:32 +0000 Subject: movendo libs... git-svn-id: svn+slack://slack.fluxo.info/var/svn/slackbuilds@689 370017ae-e619-0410-ac65-c121f96126d4 --- apps/arch/unrar/unrar.SlackBuild | 109 ++++++++++++++++++ apps/misc/wipe/wipe.SlackBuild | 30 +++++ apps/misc/wipe/wipe.build | 112 ++++++++++++++++++ apps/text/unrtf/unrtf.SlackBuild | 121 ++++++++++++++++++++ dev/perl/wxwidgets/wxWidgets.SlackBuild | 127 ++++++++++++++++++++ media/plugins/xmms-jack/slack-required | 2 + media/plugins/xmms-jack/xmms-jack.SlackBuild | 127 ++++++++++++++++++++ media/sound/twolame/twolame.SlackBuild | 119 +++++++++++++++++++ media/video/vlc/slack-required | 6 + media/video/vlc/vlc.SlackBuild | 120 +++++++++++++++++++ net/misc/tor/rc.tor.new | 20 ++++ net/misc/tor/slack-required | 1 + net/misc/tor/tor.SlackBuild | 140 +++++++++++++++++++++++ others/torsmo/torsmo.SlackBuild | 124 ++++++++++++++++++++ sys/cluster/util-vserver/beecrypt.SlackBuild | 127 ++++++++++++++++++++ sys/cluster/util-vserver/util-vserver.SlackBuild | 129 +++++++++++++++++++++ sys/cluster/util-vserver/vlan.SlackBuild | 101 ++++++++++++++++ tor/rc.tor.new | 20 ---- tor/slack-required | 1 - tor/tor.SlackBuild | 140 ----------------------- torsmo/torsmo.SlackBuild | 124 -------------------- twolame/twolame.SlackBuild | 119 ------------------- unrar/unrar.SlackBuild | 109 ------------------ unrtf/unrtf.SlackBuild | 121 -------------------- util-vserver/beecrypt.SlackBuild | 127 -------------------- util-vserver/util-vserver.SlackBuild | 129 --------------------- util-vserver/vlan.SlackBuild | 101 ---------------- vlc/slack-required | 6 - vlc/vlc.SlackBuild | 120 ------------------- wipe/wipe.SlackBuild | 30 ----- wipe/wipe.build | 112 ------------------ wxwidgets/wxWidgets.SlackBuild | 127 -------------------- xmms-jack/slack-required | 2 - xmms-jack/xmms-jack.SlackBuild | 127 -------------------- 34 files changed, 1515 insertions(+), 1515 deletions(-) create mode 100755 apps/arch/unrar/unrar.SlackBuild create mode 100755 apps/misc/wipe/wipe.SlackBuild create mode 100755 apps/misc/wipe/wipe.build create mode 100755 apps/text/unrtf/unrtf.SlackBuild create mode 100755 dev/perl/wxwidgets/wxWidgets.SlackBuild create mode 100644 media/plugins/xmms-jack/slack-required create mode 100755 media/plugins/xmms-jack/xmms-jack.SlackBuild create mode 100755 media/sound/twolame/twolame.SlackBuild create mode 100644 media/video/vlc/slack-required create mode 100755 media/video/vlc/vlc.SlackBuild create mode 100755 net/misc/tor/rc.tor.new create mode 100644 net/misc/tor/slack-required create mode 100755 net/misc/tor/tor.SlackBuild create mode 100755 others/torsmo/torsmo.SlackBuild create mode 100755 sys/cluster/util-vserver/beecrypt.SlackBuild create mode 100755 sys/cluster/util-vserver/util-vserver.SlackBuild create mode 100755 sys/cluster/util-vserver/vlan.SlackBuild delete mode 100755 tor/rc.tor.new delete mode 100644 tor/slack-required delete mode 100755 tor/tor.SlackBuild delete mode 100755 torsmo/torsmo.SlackBuild delete mode 100755 twolame/twolame.SlackBuild delete mode 100755 unrar/unrar.SlackBuild delete mode 100755 unrtf/unrtf.SlackBuild delete mode 100755 util-vserver/beecrypt.SlackBuild delete mode 100755 util-vserver/util-vserver.SlackBuild delete mode 100755 util-vserver/vlan.SlackBuild delete mode 100644 vlc/slack-required delete mode 100755 vlc/vlc.SlackBuild delete mode 100755 wipe/wipe.SlackBuild delete mode 100755 wipe/wipe.build delete mode 100755 wxwidgets/wxWidgets.SlackBuild delete mode 100644 xmms-jack/slack-required delete mode 100755 xmms-jack/xmms-jack.SlackBuild diff --git a/apps/arch/unrar/unrar.SlackBuild b/apps/arch/unrar/unrar.SlackBuild new file mode 100755 index 00000000..1f977d26 --- /dev/null +++ b/apps/arch/unrar/unrar.SlackBuild @@ -0,0 +1,109 @@ +#!/bin/bash +# +# slackbuild script for unrar +# by rhatto at riseup.net +# + +CWD="`pwd`" + +if [ -f ~/.slackbuildrc ]; then + source ~/.slackbuildrc +elif [ -f /etc/slackbuildrc ]; then + source /etc/slackbuildrc +fi + +# default settings +PACKAGE="unrar" +ARCH=${ARCH:=i486} +VERSION=${VERSION:=0.40} +BUILD=${BUILD:=1rha} +SRC_DIR=${SRC:=$CWD} +TMP=${TMP:=/tmp} +REPOS=${REPOS:=$TMP} + +if [ "$ARCH" == "x86_64" ]; then + LIBDIR=/usr/lib64 +else + LIBDIR=/usr/lib +fi + +SRC_DIR="$SRC_DIR/$PACKAGE" +mkdir -p $SRC_DIR + +RTOOL="wget" +PACKAGE_EXT="bz2" +SRC="unrarlib040.tar.bz2" +URL="http://www.unrarlib.org/download/$SRC" +PATCH="unrarlib040-unrar-patch-ab.tar.gz" +PATCH_URL="http://www.unrarlib.org/download/contribution/$PATCH" + +if [ "$PACKAGE_EXT" == "bz2" ]; then + tarflag="j" +else + tarflag="z" +fi + +if [ "$RTOOL" == "wget" ]; then + if [ ! -f "$SRC_DIR/$SRC" ]; then + wget "$URL" -O "$SRC_DIR/$SRC" + fi + + if [ ! -f "$SRC_DIR/$PATCH" ]; then + wget "$PATCH_URL" -O "$SRC_DIR/$PATCH" + fi +fi + +TMP="$TMP/$PACKAGE" +rm -rf $TMP +mkdir -p $TMP +cd $TMP + +tar zxvf $SRC_DIR/$PATCH +tar xvf$tarflag $SRC_DIR/$SRC +cd unrarlib040-unrar-patch-ab +cp ../unrarlib-0.4.0/unrarlib/* . + +make || exit 32 + +mkdir -p $TMP/package-$PACKAGE/usr/{bin,doc/$PACKAGE-$VERSION} +cp unrar $TMP/package-$PACKAGE/usr/bin +cp readme.txt $TMP/package-$PACKAGE/usr/doc/$PACKAGE-$VERSION/readme-unrar.txt +cp ../unrarlib-0.4.0/{gpl,licence,unrarlib-license}.txt $TMP/package-$PACKAGE/usr/doc/$PACKAGE-$VERSION +cp ../unrarlib-0.4.0/readme.txt $TMP/package-$PACKAGE/usr/doc/$PACKAGE-$VERSION/readme-unrarlib.txt + +CWD="`pwd`" + +cd $TMP/package-$PACKAGE + +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 + +mkdir install +cat << EOF > 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-----------------------------------------------------| +unrar: unrar (unpack RAR 2 archives) +unrar: +unrar: +unrar: +unrar: +unrar: +unrar: +unrar: +unrar: +unrar: +unrar: +EOF + +makepkg -c y -l y $REPOS/$PACKAGE-$VERSION-$ARCH-$BUILD.tgz + +if [ "$CLEANUP" == "yes" ]; then + rm -rf $TMP +fi + diff --git a/apps/misc/wipe/wipe.SlackBuild b/apps/misc/wipe/wipe.SlackBuild new file mode 100755 index 00000000..631fed79 --- /dev/null +++ b/apps/misc/wipe/wipe.SlackBuild @@ -0,0 +1,30 @@ +#!/bin/bash +# +# SlackBuild script to call wipe.build with correct settings +# + +CWD="`pwd`" + +if [ -f ~/.slackbuildrc ]; then + source ~/.slackbuildrc +elif [ -f /etc/slackbuildrc ]; then + source /etc/slackbuildrc +fi + +# default settings +PACKAGE="wipe" +VERSION=${VERSION:=2.2.0} +ARCH="${ARCH:=i486}" +BUILD=${BUILD:=1rha} +SRC_DIR=${SRC:=$CWD} +TMP=${TMP:=/tmp} +REPOS=${REPOS:=$TMP} + +rm -rf $TMP/$PACKAGE +mkdir -p $SRC_DIR/$PACKAGE $TMP/$PACKAGE + +slacktrack -b $REPOS -x $TMP,$SRC_DIR,/dev -jefkzp "$PACKAGE-$VERSION-$ARCH-$BUILD.tgz" "./$PACKAGE.build" + +if [ "$CLEANUP" == "yes" ]; then + rm -rf $TMP/$PACKAGE +fi diff --git a/apps/misc/wipe/wipe.build b/apps/misc/wipe/wipe.build new file mode 100755 index 00000000..59c4e1ff --- /dev/null +++ b/apps/misc/wipe/wipe.build @@ -0,0 +1,112 @@ +#!/bin/bash +# +# build script for wipe +# by rhatto at riseup.net +# build it with slacktrack, example: +# +# ARCH=x86_64 slacktrack -jefkzp "wipe-2.2.0-x86_64-1rha.tgz" "./wipe.build" +# + +CWD="`pwd`" + +if [ -f "/etc/slackbuildrc" ]; then + source /etc/slackbuildrc +fi + +if [ -f "~/.slackbuildrc" ]; then + source ~/.slackbuildrc +fi + +# default settings +PACKAGE="wipe" +ARCH=${ARCH:=i486} +VERSION=${VERSION:=2.2.0} +BUILD=${BUILD:=1rha} +SRC_DIR=${SRC:=$CWD} +TMP=${TMP:=/tmp} +REPOS=${REPOS:=$TMP} + +if [ "$ARCH" == "x86_64" ]; then + LIBDIR=/usr/lib64 +else + LIBDIR=/usr/lib +fi + +RTOOL="wget" +PACKAGE_EXT="bz2" +SRC="$PACKAGE-$VERSION.tar.$PACKAGE_EXT" +URL="http://easynews.dl.sourceforge.net/sourceforge/wipe/$SRC" + +SRC_DIR="$SRC_DIR/$PACKAGE" +if [ ! -d "$SRC_DIR" ]; then + mkdir -p $SRC_DIR +fi + +if [ "$PACKAGE_EXT" == "bz2" ]; then + tarflag="j" +else + tarflag="z" +fi + +if [ "$RTOOL" == "wget" ] && [ ! -f "$SRC_DIR/$SRC" ]; then + wget "$URL" -O "$SRC_DIR/$SRC" +fi + +TMP="$TMP/$PACKAGE" +if [ ! -d "$TMP" ]; then + mkdir -p $TMP +fi +cd $TMP + +tar xvf$tarflag $SRC_DIR/$SRC +cd $PACKAGE-$VERSION + +if [ -f "$CWD/$PACKAGE-$VERSION.diff" ]; then + patch -p1 < $CWD/$PACKAGE-$VERSION.diff +fi + +autoheader +autoconf +./configure --prefix=/usr --sysconfdir=/etc/$PACKAGE --libdir=$LIBDIR +make || exit 32 +make install + +CWD="`pwd`" + +# strip --strip-unneeded /usr/bin/wipe + +mkdir /install +cat << EOF > /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-----------------------------------------------------| +wipe: wipe (secure deletion of files from magnetic media) +wipe: +wipe: Wipe repeatedly writes special patterns to the file or files to be +wipe: destroyed, using the fsync() call and/or the O_SYNC bit to force +wipe: disk access, in order to lessen the chance of data recovery using +wipe: techniques such as magnetic force microscopy. +wipe: +wipe: +wipe: +wipe: +wipe: +EOF + +# docs +mv /usr/doc/$PACKAGE /usr/doc/$PACKAGE-$VERSION +# mkdir -p /usr/doc/$PACKAGE-$VERSION + +# for file in CHANGES INSTALL LICENSE README TESTING TODO; do +# cp $CWD/$file* /usr/doc/$PACKAGE-$VERSION/ +# done + +if [ "$CLEANUP" == "yes" ]; then + rm -rf $TMP +fi + diff --git a/apps/text/unrtf/unrtf.SlackBuild b/apps/text/unrtf/unrtf.SlackBuild new file mode 100755 index 00000000..748995e8 --- /dev/null +++ b/apps/text/unrtf/unrtf.SlackBuild @@ -0,0 +1,121 @@ +#!/bin/bash +# +# slackbuild script for unrtf +# by rhatto at riseup.net +# + +if [ -s "slack-required" ]; then + echo Recomended and required packages for building unrtf 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="unrtf" +ARCH=${ARCH:=i486} +VERSION=${VERSION:=0.20.2} +BUILD=${BUILD:=1rha} +SRC_DIR=${SRC:=$CWD} +TMP=${TMP:=/tmp} +REPOS=${REPOS:=$TMP} + +if [ "$ARCH" == "x86_64" ]; then + export LDFLAGS="-L/lib64 -L/usr/lib64" + LIBDIR=/usr/lib64 +else + LIBDIR=/usr/lib +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="gz" +SRC="$PACKAGE"_"$VERSION.tar.$PACKAGE_EXT" +URL="http://www.gnu.org/software/unrtf/$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 + +TMP="$TMP/$PACKAGE" +rm -rf $TMP +mkdir -p $TMP +cd $TMP + +tar xvf $SRC_DIR/$SRC || exit $ERROR_TAR +cd "$PACKAGE"_"$VERSION" + +if [ -f "$CWD/$PACKAGE-$VERSION.diff" ]; then + patch -p1 < $CWD/$PACKAGE-$VERSION.diff || exit $ERROR_PATCH +fi + +./configure --prefix=/usr --sysconfdir=/etc --libdir=$LIBDIR || exit $ERROR_CONF +make || exit $ERROR_MAKE +make DESTDIR=$TMP/package-$PACKAGE install || exit $ERROR_INSTALL + +CWD="`pwd`" + +cd $TMP/package-$PACKAGE + +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 + +mkdir install +cat << EOF > 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-----------------------------------------------------| +unrtf: unrtf (Rich Text to other formats converter) +unrtf: +unrtf: UnRTF is a command-line program written in C which converts +unrtf: documents in Rich Text (.rtf) format to HTML, LaTeX, PostScript +unrtf: and other formats. Converting to HTML, it supports a number of +unrtf: features of Rich Text Format, like changes in text appearence, +unrtf: background and foreground colors. +unrtf: +unrtf: +unrtf: +unrtf: +EOF + +# docs +mkdir -p usr/doc/$PACKAGE-$VERSION + +DOCS="AUTHORS COPYING ChangeLog INSTALL NEWS README" + +for file in $DOCS; do + cp $CWD/$file* usr/doc/$PACKAGE-$VERSION/ +done + +makepkg -c y -l y $REPOS/$PACKAGE-$VERSION-$ARCH-$BUILD.tgz || exit $ERROR_MKPKG + +if [ "$CLEANUP" == "yes" ]; then + rm -rf $TMP +fi + diff --git a/dev/perl/wxwidgets/wxWidgets.SlackBuild b/dev/perl/wxwidgets/wxWidgets.SlackBuild new file mode 100755 index 00000000..41722f9a --- /dev/null +++ b/dev/perl/wxwidgets/wxWidgets.SlackBuild @@ -0,0 +1,127 @@ +#!/bin/bash +# +# slackbuild script for wxWidgets +# by rafael at riseup.net +# + +if [ -s "slack-required" ]; then + echo Recomended and required packages for building wxWidgets 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="wxWidgets" +ARCH=${ARCH:=i486} +VERSION=${VERSION:=2.6.3} +BUILD=${BUILD:=1rd} +SRC_DIR=${SRC:=$CWD} +TMP=${TMP:=/tmp} +REPOS=${REPOS:=$TMP} + +# ------- 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 + +if [ "$ARCH" == "x86_64" ]; then + LIBDIR=/usr/lib64 +else + LIBDIR=/usr/lib +fi + +RTOOL="wget" +PACKAGE_EXT="gz" +SRC="$PACKAGE-$VERSION.tar.$PACKAGE_EXT" +URL="http://heanet.dl.sourceforge.net/sourceforge/wxwindows/$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 + +TMP="$TMP/$PACKAGE" +rm -rf $TMP +mkdir -p $TMP +cd $TMP + +tar xvf $SRC_DIR/$SRC +cd $PACKAGE-$VERSION + +if [ -f "$CWD/$PACKAGE-$VERSION.diff" ]; then + patch -p1 < $CWD/$PACKAGE-$VERSION.diff || exit $ERROR_PATCH +fi + +./configure --prefix=/usr --sysconfdir=/etc --libdir=$LIBDIR --with-docdir=/usr/doc/$PACKAGE-$VERSION --enable-unicode --enable-config || exit $ERROR_CONF +make || exit $ERROR_MAKE +make DESTDIR=$TMP/package-$PACKAGE install || exit $ERROR_INSTALL + +# make clean +# ./configure --prefix=/usr --sysconfdir=/etc --libdir=$LIBDIR --with-docdir=/usr/doc/$PACKAGE-$VERSION --enable-config || exit $ERROR_CONF +# make || exit $ERROR_MAKE +# make DESTDIR=$TMP/package-$PACKAGE install || exit $ERROR_INSTALL + +CWD="`pwd`" + +cd $TMP/package-$PACKAGE + +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 + +# do we really need that?? +# ( cd usr/bin && rm wx-config ) +# ( cd usr/bin && ln -sf $LIBDIR/wx/config/gtk2-unicode-release-2.6 wx-config ) + +mkdir install +cat << EOF > 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-----------------------------------------------------| +wxWidgets: wxWidgets (WxWidgets is a library to write portable GUI code) +wxWidgets: +wxWidgets: wxWidgets lets developers create applications for Win32, Mac OS X, +wxWidgets: GTK+, X11, Motif, WinCE, and more using one codebase. It can be used +wxWidgets: from languages such as C++, Python, Perl, and C#/.NET. Unlike other +wxWidgets: cross-platform toolkits, wxWidgets applications look and feel native. +wxWidgets: This is because wxWidgets uses the platform's own native controls +wxWidgets: rather than emulating them. It's also extensive, free, open-source, +wxWidgets: and mature. +wxWidgets: http://www.wxwidgets.org/ +wxWidgets: +EOF + +# docs +mkdir -p usr/doc/$PACKAGE-$VERSION + +for file in CHANGES.txt COPYING.LIB INSTALL-MAC.txt INSTALL-MGL.txt INSTALL-MOTIF.txt INSTALL-OS2.txt INSTALL-X11.txt LICENCE.txt README.txt;do + cp $CWD/$file* usr/doc/$PACKAGE-$VERSION/ +done + +makepkg -c y -l y $REPOS/$PACKAGE-$VERSION-$ARCH-$BUILD.tgz || exit $ERROR_MKPKG + +if [ "$CLEANUP" == "yes" ]; then + rm -rf $TMP +fi + diff --git a/media/plugins/xmms-jack/slack-required b/media/plugins/xmms-jack/slack-required new file mode 100644 index 00000000..03607b95 --- /dev/null +++ b/media/plugins/xmms-jack/slack-required @@ -0,0 +1,2 @@ +jack +libsamplerate diff --git a/media/plugins/xmms-jack/xmms-jack.SlackBuild b/media/plugins/xmms-jack/xmms-jack.SlackBuild new file mode 100755 index 00000000..c97fb5b0 --- /dev/null +++ b/media/plugins/xmms-jack/xmms-jack.SlackBuild @@ -0,0 +1,127 @@ +#!/bin/bash +# +# slackbuild script for xmms-jack +# by rhatto at riseup.net +# + +if [ -s "slack-required" ]; then + echo Recomended and required packages for building xmms-jack 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="xmms-jack" +ARCH=${ARCH:=i486} +VERSION=${VERSION:=0.17} +BUILD=${BUILD:=1rha} +SRC_DIR=${SRC:=$CWD} +TMP=${TMP:=/tmp} +REPOS=${REPOS:=$TMP} + +if [ "$ARCH" == "x86_64" ]; then + export LDFLAGS="-L/lib64 -L/usr/lib64" + LIBDIR=/usr/lib64 +else + LIBDIR=/usr/lib +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 + +RTOOL="wget" +PACKAGE_EXT="gz" +SRC="$PACKAGE-$VERSION.tar.$PACKAGE_EXT" +URL="http://easynews.dl.sourceforge.net/sourceforge/$PACKAGE/$SRC" + +SRC_DIR="$SRC_DIR/$PACKAGE" +mkdir -p $SRC_DIR + +if [ "$PACKAGE_EXT" == "bz2" ]; then + tarflag="j" +else + tarflag="z" +fi + +if [ "$RTOOL" == "wget" ] && [ ! -f "$SRC_DIR/$SRC" ]; then + wget "$URL" -O "$SRC_DIR/$SRC" || exit $ERROR_WGET +fi + +TMP="$TMP/$PACKAGE" +rm -rf $TMP +mkdir -p $TMP +cd $TMP + +tar xvf$tarflag $SRC_DIR/$SRC || exit $ERROR_TAR +mv $PACKAGE $PACKAGE-$VERSION +cd $PACKAGE-$VERSION + +if [ -f "$CWD/$PACKAGE-$VERSION.diff" ]; then + patch -p1 < $CWD/$PACKAGE-$VERSION.diff +fi + +./configure --prefix=/usr --sysconfdir=/etc --libdir=$LIBDIR || exit $ERROR_CONF +make || exit $ERROR_MAKE +make DESTDIR=$TMP/package-$PACKAGE install || exit $ERROR_INSTALL + +CWD="`pwd`" + +cd $TMP/package-$PACKAGE + +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 + +mkdir install +cat << EOF > 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-----------------------------------------------------| +xmms-jack: xmms-jack (jack plugin for XMMS) +xmms-jack: +xmms-jack: jack output plugin for XMMS by Chris Morgan +xmms-jack: (cmorgan at alum.wpi.edu) +xmms-jack: +xmms-jack: +xmms-jack: +xmms-jack: +xmms-jack: +xmms-jack: +xmms-jack: +EOF + +# docs +mkdir -p usr/doc/$PACKAGE-$VERSION + +DOCS="AUTHORS COPYING ChangeLog INSTALL" + +for file in $DOCS; do + cp $CWD/$file* usr/doc/$PACKAGE-$VERSION/ +done + +makepkg -c y -l y $REPOS/$PACKAGE-$VERSION-$ARCH-$BUILD.tgz || exit $ERROR_MKPKG + +if [ "$CLEANUP" == "yes" ]; then + rm -rf $TMP +fi + diff --git a/media/sound/twolame/twolame.SlackBuild b/media/sound/twolame/twolame.SlackBuild new file mode 100755 index 00000000..dc11cf59 --- /dev/null +++ b/media/sound/twolame/twolame.SlackBuild @@ -0,0 +1,119 @@ +#!/bin/bash +# +# slackbuild script for twolame +# by rhatto at riseup.net +# + +if [ -s "slack-required" ]; then + echo Recomended and required packages for building twolame 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="twolame" +ARCH=${ARCH:=i486} +VERSION=${VERSION:=0.3.7} +BUILD=${BUILD:=1rha} +SRC_DIR=${SRC:=$CWD} +TMP=${TMP:=/tmp} +REPOS=${REPOS:=$TMP} + +if [ "$ARCH" == "x86_64" ]; then + export LDFLAGS="-L/lib64 -L/usr/lib64" + LIBDIR=/usr/lib64 +else + LIBDIR=/usr/lib +fi + +RTOOL="wget" +PACKAGE_EXT="gz" +SRC="$PACKAGE-$VERSION.tar.$PACKAGE_EXT" +URL="http://easynews.dl.sourceforge.net/sourceforge/twolame/$SRC" + +SRC_DIR="$SRC_DIR/$PACKAGE" +mkdir -p $SRC_DIR + +if [ "$PACKAGE_EXT" == "bz2" ]; then + tarflag="j" +else + tarflag="z" +fi + +if [ "$RTOOL" == "wget" ] && [ ! -f "$SRC_DIR/$SRC" ]; then + wget "$URL" -O "$SRC_DIR/$SRC" +fi + +TMP="$TMP/$PACKAGE" +rm -rf $TMP +mkdir -p $TMP +cd $TMP + +tar xvf$tarflag $SRC_DIR/$SRC +cd $PACKAGE-$VERSION + +if [ -f "$CWD/$PACKAGE-$VERSION.diff" ]; then + patch -p1 < $CWD/$PACKAGE-$VERSION.diff +fi + +./configure --prefix=/usr --sysconfdir=/etc --libdir=$LIBDIR +make || exit 32 +make DESTDIR=$TMP/package-$PACKAGE install + +CWD="`pwd`" + +cd $TMP/package-$PACKAGE + +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 + +mkdir install +cat << EOF > 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-----------------------------------------------------| +twolame: twolame +twolame: +twolame: TwoLAME is an optimised MPEG Audio Layer 2 (MP2) encoder based on +twolame: tooLAME by Mike Cheng, which in turn is based upon the ISO dist10 +twolame: code and portions of LAME. TwoLAME includes libtwolame, a fully +twolame: thread-safe shared library with an API very similar to LAME's. +twolame: +twolame: +twolame: +twolame: +twolame: +EOF + +# docs +mkdir -p usr/doc/$PACKAGE-$VERSION + +for file in AUTHORS COPYING ChangeLog README TODO; do + cp $CWD/$file* usr/doc/$PACKAGE-$VERSION/ +done + +makepkg -c y -l y $REPOS/$PACKAGE-$VERSION-$ARCH-$BUILD.tgz + +if [ "$CLEANUP" == "yes" ]; then + rm -rf $TMP +fi + diff --git a/media/video/vlc/slack-required b/media/video/vlc/slack-required new file mode 100644 index 00000000..0512cc86 --- /dev/null +++ b/media/video/vlc/slack-required @@ -0,0 +1,6 @@ +mpeg2dec +liba52 +faac +faad2 +lame +wxWidgets diff --git a/media/video/vlc/vlc.SlackBuild b/media/video/vlc/vlc.SlackBuild new file mode 100755 index 00000000..9840de81 --- /dev/null +++ b/media/video/vlc/vlc.SlackBuild @@ -0,0 +1,120 @@ +#!/bin/bash +# +# slackbuild script for vlc +# by rafael at riseup.net +# + +if [ -s "slack-required" ]; then + echo Recomended and required packages for building vlc 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="vlc" +ARCH=${ARCH:=i486} +VERSION=${VERSION:=0.8.5} +BUILD=${BUILD:=1rd} +SRC_DIR=${SRC:=$CWD} +TMP=${TMP:=/tmp} +REPOS=${REPOS:=$TMP} + +if [ "$ARCH" == "x86_64" ]; then + export LDFLAGS="-L/lib64 -L/usr/lib64" + LIBDIR=/usr/lib64 +else + LIBDIR=/usr/lib +fi + +RTOOL="wget" +PACKAGE_EXT="bz2" +SRC="$PACKAGE-$VERSION.tar.$PACKAGE_EXT" +URL="http://download.videolan.org/pub/videolan/vlc/$VERSION/$SRC" + +SRC_DIR="$SRC_DIR/$PACKAGE" +mkdir -p $SRC_DIR + +if [ "$PACKAGE_EXT" == "bz2" ]; then + tarflag="j" +else + tarflag="z" +fi + +if [ "$RTOOL" == "wget" ] && [ ! -f "$SRC_DIR/$SRC" ]; then + wget "$URL" -O "$SRC_DIR/$SRC" +fi + +TMP="$TMP/$PACKAGE" +rm -rf $TMP +mkdir -p $TMP +cd $TMP + +tar xvf$tarflag $SRC_DIR/$SRC +cd $PACKAGE-$VERSION + +if [ -f "$CWD/$PACKAGE-$VERSION.diff" ]; then + patch -p1 < $CWD/$PACKAGE-$VERSION.diff +fi + +# h264 free implementation is unstable and changing a lot... +./configure --prefix=/usr --enable-theora --disable-x264 --libdir=$LIBDIR +make || exit 32 +make DESTDIR=$TMP/package-$PACKAGE install + +CWD="`pwd`" + +cd $TMP/package-$PACKAGE + +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 + +mkdir install +cat << EOF > 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-----------------------------------------------------| +vlc: VLC (Video Lan Client) +vlc: +vlc: VLC media player is a highly portable multimedia player for various +vlc: audio and video formats (MPEG-1, MPEG-2, MPEG-4, DivX, mp3, ogg, ...) +vlc: as well as DVDs, VCDs, and various streaming protocols. It can also +vlc: be used as a server to stream in unicast or multicast in IPv4 or IPv6 +vlc: on a high-bandwidth network. +vlc: +vlc: +vlc: http://www.videolan.org/ +vlc: +EOF + +# docs +mkdir -p usr/doc/$PACKAGE-$VERSION + +for file in AUTHORS COPYING ChangeLog INSTALL NEWS README TODO; do + cp $CWD/$file* usr/doc/$PACKAGE-$VERSION/ +done + +makepkg -c y -l y $REPOS/$PACKAGE-$VERSION-$ARCH-$BUILD.tgz + +if [ "$CLEANUP" == "yes" ]; then + rm -rf $TMP +fi + diff --git a/net/misc/tor/rc.tor.new b/net/misc/tor/rc.tor.new new file mode 100755 index 00000000..f90b6d3e --- /dev/null +++ b/net/misc/tor/rc.tor.new @@ -0,0 +1,20 @@ +#!/bin/sh +# +# init script for tor +# + +PID="/var/run" +PRIVOXY_PID="$PID/privoxy.pid" +TOR_PID="$PID/tor.pid" +USER="privoxy" + +if [ -f $TOR_PID ]; then + if ps `cat $TOR_PID` | grep -q tor; then + kill `cat $TOR_PID` + fi + rm $TOR_PID +fi + +sudo -u $USER /usr/bin/tor &> /dev/null & +echo "$!" > $TOR_PID + diff --git a/net/misc/tor/slack-required b/net/misc/tor/slack-required new file mode 100644 index 00000000..dd6fade5 --- /dev/null +++ b/net/misc/tor/slack-required @@ -0,0 +1 @@ +libevent diff --git a/net/misc/tor/tor.SlackBuild b/net/misc/tor/tor.SlackBuild new file mode 100755 index 00000000..8cfceb64 --- /dev/null +++ b/net/misc/tor/tor.SlackBuild @@ -0,0 +1,140 @@ +#!/bin/bash +# +# slackbuild script for tor +# by rhatto at riseup.net +# + +if [ -s "slack-required" ]; then + echo Recomended and required packages for building tor 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="tor" +ARCH=${ARCH:=i486} +VERSION=${VERSION:=0.1.1.23} +BUILD=${BUILD:=1rha} +SRC_DIR=${SRC:=$CWD} +TMP=${TMP:=/tmp} +REPOS=${REPOS:=$TMP} + +# ------- 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 + +if [ "$ARCH" == "x86_64" ]; then + LIBDIR=/usr/lib64 +else + LIBDIR=/usr/lib +fi + +RTOOL="wget" +PACKAGE_EXT="gz" +SRC="$PACKAGE-$VERSION.tar.$PACKAGE_EXT" +URL="http://tor.eff.org/dist/$SRC" + +SRC_DIR="$SRC_DIR/$PACKAGE" +mkdir -p $SRC_DIR + +if [ "$PACKAGE_EXT" == "bz2" ]; then + tarflag="j" +else + tarflag="z" +fi + +if [ "$RTOOL" == "wget" ] && [ ! -f "$SRC_DIR/$SRC" ]; then + wget "$URL" -O "$SRC_DIR/$SRC" || exit $ERROR_WGET + wget "$URL.asc" -O "$SRC_DIR/$SRC.asc" || exit $ERROR_WGET +fi + +gpg --keyserver subkeys.pgp.net --recv-keys 0x28988BF5 +gpg --keyserver subkeys.pgp.net --recv-keys 0x165733EA +gpg --verify $SRC_DIR/$SRC.asc $SRC_DIR/$SRC || exit $ERROR_GPG +sleep 3 + +TMP="$TMP/$PACKAGE" +rm -rf $TMP +mkdir -p $TMP +cd $TMP + +tar xvf$tarflag $SRC_DIR/$SRC || exit $ERROR_TAR +cd $PACKAGE-$VERSION + +if [ -f "$CWD/$PACKAGE-$VERSION.diff" ]; then + patch -p1 < $CWD/$PACKAGE-$VERSION.diff || exit $ERROR_PATCH +fi + +./configure --prefix=/usr --sysconfdir=/etc --libdir=$LIBDIR || exit $ERROR_CONF +make || exit $ERROR_MAKE +make DESTDIR=$TMP/package-$PACKAGE install || exit $ERROR_INSTALL + +mkdir $TMP/package-$PACKAGE/etc/rc.d +cp $CWD/rc.tor.new $TMP/package-$PACKAGE/etc/rc.d + +CWD="`pwd`" +cd $TMP/package-$PACKAGE + +mv etc/tor/tor-tsocks.conf etc/tor/tor-tsocks.conf.sample + +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 + +mkdir install +cat << EOF > 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-----------------------------------------------------| +tor: tor (An anonymous Internet communication system) +tor: +tor: Tor is a toolset for a wide range of organizations and people that +tor: want to improve their safety and security on the Internet. Using Tor +tor: can help you anonymize web browsing and publishing, instant +tor: messaging, IRC, SSH, and other applications that use the TCP +tor: protocol. Tor also provides a platform on which software developers +tor: can build new applications with built-in anonymity, safety, and +tor: privacy features. +tor: +tor: +EOF + +# docs +mkdir -p usr/doc/$PACKAGE-$VERSION + +for file in AUTHORS ChangeLog INSTALL LICENSE README; do + cp $CWD/$file* usr/doc/$PACKAGE-$VERSION/ +done + +# install script +echo '( chroot . /sbin/ldconfig )' > install/doinst.sh +echo '( if [ ! -f "etc/rc.d/rc.tor" ]; then mv etc/rc.d/rc.tor.new etc/rc.d/rc.tor ; fi )' >> install/doinst.sh +echo '( if [ ! -f "etc/tor/torrc" ]; then mv etc/tor/torrc.sample etc/tor/torrc ; fi )' >> install/doinst.sh +echo '( if [ ! -f "etc/tor/tor-tsocks.conf" ]; then mv etc/tor/tor-tsocks.conf.sample etc/tor/tor-tsocks.conf ; fi )' >> install/doinst.sh + +makepkg -c y -l y $REPOS/$PACKAGE-$VERSION-$ARCH-$BUILD.tgz || exit $ERROR_MKPKG + +if [ "$CLEANUP" == "yes" ]; then + rm -rf $TMP +fi + diff --git a/others/torsmo/torsmo.SlackBuild b/others/torsmo/torsmo.SlackBuild new file mode 100755 index 00000000..ecbd92b3 --- /dev/null +++ b/others/torsmo/torsmo.SlackBuild @@ -0,0 +1,124 @@ +#!/bin/bash +# +# slackbuild script for torsmo +# by rhatto at riseup.net +# + +if [ -s "slack-required" ]; then + echo Recomended and required packages for building torsmo 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="torsmo" +ARCH=${ARCH:=i486} +VERSION=${VERSION:=0.18} +BUILD=${BUILD:=1rha} +SRC_DIR=${SRC:=$CWD} +TMP=${TMP:=/tmp} +REPOS=${REPOS:=$TMP} + +export CFLAGS="-I/usr/X11R6/include" + +if [ "$ARCH" == "x86_64" ]; then + export LDFLAGS="-L/lib64 -L/usr/lib64" + export CFLAGS="-L/usr/X11R6/lib64 -lX11 -lXext" + LIBDIR=/usr/lib64 +else + LIBDIR=/usr/lib +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="gz" +SRC="$PACKAGE-$VERSION.tar.$PACKAGE_EXT" +URL="http://easynews.dl.sourceforge.net/sourceforge/$PACKAGE/$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 + +TMP="$TMP/$PACKAGE" +rm -rf $TMP +mkdir -p $TMP +cd $TMP + +tar xvf $SRC_DIR/$SRC || exit $ERROR_TAR +cd $PACKAGE-$VERSION + +if [ -f "$CWD/$PACKAGE-$VERSION.diff" ]; then + patch -p1 < $CWD/$PACKAGE-$VERSION.diff || exit $ERROR_PATCH +fi + +./configure --prefix=/usr --sysconfdir=/etc --libdir=$LIBDIR || exit $ERROR_CONF +make || exit $ERROR_MAKE +make DESTDIR=$TMP/package-$PACKAGE install || exit $ERROR_INSTALL + +CWD="`pwd`" + +cd $TMP/package-$PACKAGE + +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 + +mkdir install +cat << EOF > 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-----------------------------------------------------| +torsmo: torsmo (Tyopoyta ORvelo System MOnitor) +torsmo: +torsmo: Torsmo is a system monitor that sits in the corner of your desktop. +torsmo: Torsmo can show various information about your system and its +torsmo: peripherals. Torsmo is very light and customizable, and it +torsmo: renders text on the root window. +torsmo: +torsmo: +torsmo: +torsmo: +torsmo: +EOF + +# docs +mkdir -p usr/doc/$PACKAGE-$VERSION + +DOCS="AUTHORS COPYING ChangeLog INSTALL NEWS README" + +for file in $DOCS; do + cp $CWD/$file* usr/doc/$PACKAGE-$VERSION/ +done + +makepkg -c y -l y $REPOS/$PACKAGE-$VERSION-$ARCH-$BUILD.tgz || exit $ERROR_MKPKG + +if [ "$CLEANUP" == "yes" ]; then + rm -rf $TMP +fi + diff --git a/sys/cluster/util-vserver/beecrypt.SlackBuild b/sys/cluster/util-vserver/beecrypt.SlackBuild new file mode 100755 index 00000000..2733c090 --- /dev/null +++ b/sys/cluster/util-vserver/beecrypt.SlackBuild @@ -0,0 +1,127 @@ +#!/bin/bash +# +# slackbuild script for beecrypt +# by rhatto at riseup.net +# + +cat << EOCAT +Check if you have the following stuff installed: + + libgcrypt + libgpg-error + +EOCAT + +if [ "$INTERACT" != "no" ]; then + echo "Hit ENTER do continue, Crtl-C to abort" + read crap +else + echo sleeping 3 seconds... + sleep 3 +fi + +CWD="`pwd`" + +if [ -f ~/.slackbuildrc ]; then + source ~/.slackbuildrc +elif [ -f /etc/slackbuildrc ]; then + source /etc/slackbuildrc +fi + +# default settings +PACKAGE="beecrypt" +ARCH=${ARCH:=i486} +VERSION=${VERSION:=4.1.2} +BUILD=${BUILD:=1rha} +SRC_DIR=${SRC:=$CWD} +TMP=${TMP:=/tmp} +REPOS=${REPOS:=$TMP} + +if [ "$ARCH" == "x86_64" ]; then + LIBDIR=/usr/lib64 +else + LIBDIR=/usr/lib +fi + +RTOOL="wget" +PACKAGE_EXT="gz" +SRC="$PACKAGE-$VERSION.tar.$PACKAGE_EXT" +# KEY="http://www.courier-mta.org/KEYS.bin" +SRC="$PACKAGE-$VERSION.tar.$PACKAGE_EXT" +URL="http://easynews.dl.sourceforge.net/sourceforge/$PACKAGE/$SRC" + +if [ "$PACKAGE_EXT" == "bz2" ]; then + tarflag="j" +else + tarflag="z" +fi + +SRC_DIR="$SRC_DIR/$PACKAGE" +mkdir -p $SRC_DIR + +if [ "$RTOOL" == "wget" ] && [ ! -f "$SRC_DIR/$SRC" ]; then + wget "$URL" -O "$SRC_DIR/$SRC" + wget "$URL.sig" -O "$SRC_DIR/$SRC.sig" +fi + +# TODO: signature checking +#if [ ! -f "$SRC_DIR/$PACKAGE-key.asc" ]; then +# wget "$KEY" -O "$SRC_DIR/$PACKAGE-key.asc" && gpg --import $SRC_DIR/$PACKAGE-key.asc +#fi + +gpg --verify $SRC_DIR/$SRC.sig $SRC || echo WARNING: Could not check signature or WRONG signature found. + +TMP="$TMP/$PACKAGE" +rm -rf $TMP +mkdir -p $TMP +cd $TMP + +tar xvf$tarflag $SRC_DIR/$SRC +cd $PACKAGE-$VERSION +./configure --prefix=/usr --sysconfdir=/etc --libdir=$LIBDIR +make || exit 32 +make DESTDIR=$TMP/package-$PACKAGE install + +CWD="`pwd`" + +cd $TMP/package-$PACKAGE + +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 + +mkdir install +cat << EOF > 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-----------------------------------------------------| +beecrypt: beecrypt (cryptography toolkit) +beecrypt: +beecrypt: BeeCrypt is an ongoing project to provide strong and fast +beecrypt: cryptography in the form of a toolkit usable by commercial and open +beecrypt: source projects. Included in the library are entropy sources, random +beecrypt: generators, block ciphers, hash functions, message authentication +beecrypt: codes, multiprecision integer routines, and public key primitives. +beecrypt: +beecrypt: +beecrypt: +beecrypt: +EOF + +# docs +mkdir -p usr/doc/$PACKAGE-$VERSION + +for file in AUTHORS BENCHMARKS BUGS CONTRIBUTORS COPYING ChangeLog INSTALL NEWS README; do + cp $CWD/$file* usr/doc/$PACKAGE-$VERSION/ +done + +makepkg -c y -l y $REPOS/$PACKAGE-$VERSION-$ARCH-$BUILD.tgz + +if [ "$CLEANUP" == "yes" ]; then + rm -rf $TMP +fi + diff --git a/sys/cluster/util-vserver/util-vserver.SlackBuild b/sys/cluster/util-vserver/util-vserver.SlackBuild new file mode 100755 index 00000000..8aefcbe4 --- /dev/null +++ b/sys/cluster/util-vserver/util-vserver.SlackBuild @@ -0,0 +1,129 @@ +#!/bin/bash +# +# slackbuild for util-vserver +# + +cat << EOCAT +Check if you have the following stuff installed: + + beecrypt + vlan + iproute2 + iptables + modutils + +EOCAT + +if [ "$INTERACT" != "no" ]; then + echo "Hit ENTER do continue, Crtl-C to abort" + read crap +else + echo sleeping 3 seconds... + sleep 3 +fi + +CWD="`pwd`" + +if [ -f ~/.slackbuildrc ]; then + source ~/.slackbuildrc +elif [ -f /etc/slackbuildrc ]; then + source /etc/slackbuildrc +fi + +# default settings +PACKAGE="util-vserver" +ARCH=${ARCH:=i486} +VERSION=${VERSION:=0.30.210} +BUILD=${BUILD:=1rha} +SRC_DIR=${SRC:=$CWD} +TMP=${TMP:=/tmp} +REPOS=${REPOS:=$TMP} + +if [ "$ARCH" == "x86_64" ]; then + LIBDIR=/usr/lib64 +else + LIBDIR=/usr/lib +fi + +RTOOL="wget" +PACKAGE_EXT="bz2" +SRC="$PACKAGE-$VERSION.tar.$PACKAGE_EXT" +SRC="$PACKAGE-$VERSION.tar.$PACKAGE_EXT" +URL="http://www.13thfloor.at/~ensc/util-vserver/files/alpha/$SRC" + +if [ "$PACKAGE_EXT" == "bz2" ]; then + tarflag="j" +else + tarflag="z" +fi + +SRC_DIR="$SRC_DIR/$PACKAGE" +mkdir -p $SRC_DIR + +if [ "$RTOOL" == "wget" ] && [ ! -f "$SRC_DIR/$SRC" ]; then + wget "$URL" -O "$SRC_DIR/$SRC" + wget "$URL.sig" -O "$SRC_DIR/$SRC.sig" +fi + +gpg --verify $SRC_DIR/$SRC.sig $SRC || echo WARNING: Could not check signature or WRONG signature found. + +TMP="$TMP/$PACKAGE" +rm -rf $TMP +mkdir -p $TMP/package-$PACKAGE +cd $TMP + +tar xvf$tarflag $SRC_DIR/$SRC +cd $PACKAGE-$VERSION +./configure --prefix=/usr --sysconfdir=/etc --libdir=$LIBDIR --with-initrddir=/etc/rc.d --localstatedir=/var +make || exit 32 +make DESTDIR=$TMP/package-$PACKAGE install + +CWD="`pwd`" + +cd $TMP/package-$PACKAGE + +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 + +mkdir install +cat << EOF > 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-----------------------------------------------------| +util-vserver: util-vserver (userland tools for Linux-VServer) +util-vserver: +util-vserver: +util-vserver: +util-vserver: +util-vserver: +util-vserver: +util-vserver: +util-vserver: +util-vserver: +util-vserver: +EOF + +# config +mv etc/vservers.conf etc/vservers.conf.new + +# docs +mkdir -p usr/doc/$PACKAGE-$VERSION + +for file in AUTHORS COPYING ChangeLog FEATURES.txt INSTALL NEWS README REQUIREMENTS THANKS; do + cp $CWD/$file* usr/doc/$PACKAGE-$VERSION/ +done + +# install script +echo '( if [ ! -f "etc/vservers.conf" ]; then mv etc/vservers.conf.new etc/vservers.conf; fi )' > install/doinst.sh + +makepkg -c y -l y $REPOS/$PACKAGE-$VERSION-$ARCH-$BUILD.tgz + +if [ "$CLEANUP" == "yes" ]; then + rm -rf $TMP +fi + diff --git a/sys/cluster/util-vserver/vlan.SlackBuild b/sys/cluster/util-vserver/vlan.SlackBuild new file mode 100755 index 00000000..06386b8c --- /dev/null +++ b/sys/cluster/util-vserver/vlan.SlackBuild @@ -0,0 +1,101 @@ +#!/bin/bash +# +# slackbuild for vlan +# + +CWD="`pwd`" + +if [ -f ~/.slackbuildrc ]; then + source ~/.slackbuildrc +elif [ -f /etc/slackbuildrc ]; then + source /etc/slackbuildrc +fi + +# default settings +PACKAGE="vlan" +ARCH=${ARCH:=i486} +VERSION=${VERSION:=1.9} +BUILD=${BUILD:=1rha} +SRC_DIR=${SRC:=$CWD} +TMP=${TMP:=/tmp} +REPOS=${REPOS:=$TMP} + +if [ "$ARCH" == "x86_64" ]; then + LIBDIR=/usr/lib64 +else + LIBDIR=/usr/lib +fi + +RTOOL="wget" +PACKAGE_EXT="gz" +SRC="$PACKAGE.$VERSION.tar.$PACKAGE_EXT" +URL="http://www.candelatech.com/~greear/vlan/$SRC" + +if [ "$PACKAGE_EXT" == "bz2" ]; then + tarflag="j" +else + tarflag="z" +fi + +SRC_DIR="$SRC_DIR/$PACKAGE" +mkdir -p $SRC_DIR + +if [ "$RTOOL" == "wget" ] && [ ! -f "$SRC_DIR/$SRC" ]; then + wget "$URL" -O "$SRC_DIR/$SRC" +fi + +TMP="$TMP/$PACKAGE" +rm -rf $TMP +mkdir -p $TMP +cd $TMP + +tar xvf$tarflag $SRC_DIR/$SRC +mv $PACKAGE $PACKAGE-$VERSION +cd $PACKAGE-$VERSION +rm -f vconfig vconfig.o +make || exit 32 + +CWD="`pwd`" + +mkdir $TMP/package-$PACKAGE +cd $TMP/package-$PACKAGE + +mkdir -p usr/bin +cp $CWD/vconfig usr/bin + +mkdir install +cat << EOF > 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-----------------------------------------------------| +vlan: vlan (802.1Q VLAN implementation for Linux) +vlan: +vlan: http://www.candelatech.com/~greear/vlan.html +vlan: +vlan: +vlan: +vlan: +vlan: +vlan: +vlan: +vlan: +EOF + +# docs +mkdir -p usr/doc/$PACKAGE-$VERSION + +for file in CHANGELOG README vlan.html howto.html; do + cp $CWD/$file* usr/doc/$PACKAGE-$VERSION/ +done + +makepkg -c y -l y $REPOS/$PACKAGE-$VERSION-$ARCH-$BUILD.tgz + +if [ "$CLEANUP" == "yes" ]; then + rm -rf $TMP +fi + diff --git a/tor/rc.tor.new b/tor/rc.tor.new deleted file mode 100755 index f90b6d3e..00000000 --- a/tor/rc.tor.new +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/sh -# -# init script for tor -# - -PID="/var/run" -PRIVOXY_PID="$PID/privoxy.pid" -TOR_PID="$PID/tor.pid" -USER="privoxy" - -if [ -f $TOR_PID ]; then - if ps `cat $TOR_PID` | grep -q tor; then - kill `cat $TOR_PID` - fi - rm $TOR_PID -fi - -sudo -u $USER /usr/bin/tor &> /dev/null & -echo "$!" > $TOR_PID - diff --git a/tor/slack-required b/tor/slack-required deleted file mode 100644 index dd6fade5..00000000 --- a/tor/slack-required +++ /dev/null @@ -1 +0,0 @@ -libevent diff --git a/tor/tor.SlackBuild b/tor/tor.SlackBuild deleted file mode 100755 index 8cfceb64..00000000 --- a/tor/tor.SlackBuild +++ /dev/null @@ -1,140 +0,0 @@ -#!/bin/bash -# -# slackbuild script for tor -# by rhatto at riseup.net -# - -if [ -s "slack-required" ]; then - echo Recomended and required packages for building tor 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="tor" -ARCH=${ARCH:=i486} -VERSION=${VERSION:=0.1.1.23} -BUILD=${BUILD:=1rha} -SRC_DIR=${SRC:=$CWD} -TMP=${TMP:=/tmp} -REPOS=${REPOS:=$TMP} - -# ------- 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 - -if [ "$ARCH" == "x86_64" ]; then - LIBDIR=/usr/lib64 -else - LIBDIR=/usr/lib -fi - -RTOOL="wget" -PACKAGE_EXT="gz" -SRC="$PACKAGE-$VERSION.tar.$PACKAGE_EXT" -URL="http://tor.eff.org/dist/$SRC" - -SRC_DIR="$SRC_DIR/$PACKAGE" -mkdir -p $SRC_DIR - -if [ "$PACKAGE_EXT" == "bz2" ]; then - tarflag="j" -else - tarflag="z" -fi - -if [ "$RTOOL" == "wget" ] && [ ! -f "$SRC_DIR/$SRC" ]; then - wget "$URL" -O "$SRC_DIR/$SRC" || exit $ERROR_WGET - wget "$URL.asc" -O "$SRC_DIR/$SRC.asc" || exit $ERROR_WGET -fi - -gpg --keyserver subkeys.pgp.net --recv-keys 0x28988BF5 -gpg --keyserver subkeys.pgp.net --recv-keys 0x165733EA -gpg --verify $SRC_DIR/$SRC.asc $SRC_DIR/$SRC || exit $ERROR_GPG -sleep 3 - -TMP="$TMP/$PACKAGE" -rm -rf $TMP -mkdir -p $TMP -cd $TMP - -tar xvf$tarflag $SRC_DIR/$SRC || exit $ERROR_TAR -cd $PACKAGE-$VERSION - -if [ -f "$CWD/$PACKAGE-$VERSION.diff" ]; then - patch -p1 < $CWD/$PACKAGE-$VERSION.diff || exit $ERROR_PATCH -fi - -./configure --prefix=/usr --sysconfdir=/etc --libdir=$LIBDIR || exit $ERROR_CONF -make || exit $ERROR_MAKE -make DESTDIR=$TMP/package-$PACKAGE install || exit $ERROR_INSTALL - -mkdir $TMP/package-$PACKAGE/etc/rc.d -cp $CWD/rc.tor.new $TMP/package-$PACKAGE/etc/rc.d - -CWD="`pwd`" -cd $TMP/package-$PACKAGE - -mv etc/tor/tor-tsocks.conf etc/tor/tor-tsocks.conf.sample - -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 - -mkdir install -cat << EOF > 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-----------------------------------------------------| -tor: tor (An anonymous Internet communication system) -tor: -tor: Tor is a toolset for a wide range of organizations and people that -tor: want to improve their safety and security on the Internet. Using Tor -tor: can help you anonymize web browsing and publishing, instant -tor: messaging, IRC, SSH, and other applications that use the TCP -tor: protocol. Tor also provides a platform on which software developers -tor: can build new applications with built-in anonymity, safety, and -tor: privacy features. -tor: -tor: -EOF - -# docs -mkdir -p usr/doc/$PACKAGE-$VERSION - -for file in AUTHORS ChangeLog INSTALL LICENSE README; do - cp $CWD/$file* usr/doc/$PACKAGE-$VERSION/ -done - -# install script -echo '( chroot . /sbin/ldconfig )' > install/doinst.sh -echo '( if [ ! -f "etc/rc.d/rc.tor" ]; then mv etc/rc.d/rc.tor.new etc/rc.d/rc.tor ; fi )' >> install/doinst.sh -echo '( if [ ! -f "etc/tor/torrc" ]; then mv etc/tor/torrc.sample etc/tor/torrc ; fi )' >> install/doinst.sh -echo '( if [ ! -f "etc/tor/tor-tsocks.conf" ]; then mv etc/tor/tor-tsocks.conf.sample etc/tor/tor-tsocks.conf ; fi )' >> install/doinst.sh - -makepkg -c y -l y $REPOS/$PACKAGE-$VERSION-$ARCH-$BUILD.tgz || exit $ERROR_MKPKG - -if [ "$CLEANUP" == "yes" ]; then - rm -rf $TMP -fi - diff --git a/torsmo/torsmo.SlackBuild b/torsmo/torsmo.SlackBuild deleted file mode 100755 index ecbd92b3..00000000 --- a/torsmo/torsmo.SlackBuild +++ /dev/null @@ -1,124 +0,0 @@ -#!/bin/bash -# -# slackbuild script for torsmo -# by rhatto at riseup.net -# - -if [ -s "slack-required" ]; then - echo Recomended and required packages for building torsmo 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="torsmo" -ARCH=${ARCH:=i486} -VERSION=${VERSION:=0.18} -BUILD=${BUILD:=1rha} -SRC_DIR=${SRC:=$CWD} -TMP=${TMP:=/tmp} -REPOS=${REPOS:=$TMP} - -export CFLAGS="-I/usr/X11R6/include" - -if [ "$ARCH" == "x86_64" ]; then - export LDFLAGS="-L/lib64 -L/usr/lib64" - export CFLAGS="-L/usr/X11R6/lib64 -lX11 -lXext" - LIBDIR=/usr/lib64 -else - LIBDIR=/usr/lib -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="gz" -SRC="$PACKAGE-$VERSION.tar.$PACKAGE_EXT" -URL="http://easynews.dl.sourceforge.net/sourceforge/$PACKAGE/$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 - -TMP="$TMP/$PACKAGE" -rm -rf $TMP -mkdir -p $TMP -cd $TMP - -tar xvf $SRC_DIR/$SRC || exit $ERROR_TAR -cd $PACKAGE-$VERSION - -if [ -f "$CWD/$PACKAGE-$VERSION.diff" ]; then - patch -p1 < $CWD/$PACKAGE-$VERSION.diff || exit $ERROR_PATCH -fi - -./configure --prefix=/usr --sysconfdir=/etc --libdir=$LIBDIR || exit $ERROR_CONF -make || exit $ERROR_MAKE -make DESTDIR=$TMP/package-$PACKAGE install || exit $ERROR_INSTALL - -CWD="`pwd`" - -cd $TMP/package-$PACKAGE - -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 - -mkdir install -cat << EOF > 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-----------------------------------------------------| -torsmo: torsmo (Tyopoyta ORvelo System MOnitor) -torsmo: -torsmo: Torsmo is a system monitor that sits in the corner of your desktop. -torsmo: Torsmo can show various information about your system and its -torsmo: peripherals. Torsmo is very light and customizable, and it -torsmo: renders text on the root window. -torsmo: -torsmo: -torsmo: -torsmo: -torsmo: -EOF - -# docs -mkdir -p usr/doc/$PACKAGE-$VERSION - -DOCS="AUTHORS COPYING ChangeLog INSTALL NEWS README" - -for file in $DOCS; do - cp $CWD/$file* usr/doc/$PACKAGE-$VERSION/ -done - -makepkg -c y -l y $REPOS/$PACKAGE-$VERSION-$ARCH-$BUILD.tgz || exit $ERROR_MKPKG - -if [ "$CLEANUP" == "yes" ]; then - rm -rf $TMP -fi - diff --git a/twolame/twolame.SlackBuild b/twolame/twolame.SlackBuild deleted file mode 100755 index dc11cf59..00000000 --- a/twolame/twolame.SlackBuild +++ /dev/null @@ -1,119 +0,0 @@ -#!/bin/bash -# -# slackbuild script for twolame -# by rhatto at riseup.net -# - -if [ -s "slack-required" ]; then - echo Recomended and required packages for building twolame 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="twolame" -ARCH=${ARCH:=i486} -VERSION=${VERSION:=0.3.7} -BUILD=${BUILD:=1rha} -SRC_DIR=${SRC:=$CWD} -TMP=${TMP:=/tmp} -REPOS=${REPOS:=$TMP} - -if [ "$ARCH" == "x86_64" ]; then - export LDFLAGS="-L/lib64 -L/usr/lib64" - LIBDIR=/usr/lib64 -else - LIBDIR=/usr/lib -fi - -RTOOL="wget" -PACKAGE_EXT="gz" -SRC="$PACKAGE-$VERSION.tar.$PACKAGE_EXT" -URL="http://easynews.dl.sourceforge.net/sourceforge/twolame/$SRC" - -SRC_DIR="$SRC_DIR/$PACKAGE" -mkdir -p $SRC_DIR - -if [ "$PACKAGE_EXT" == "bz2" ]; then - tarflag="j" -else - tarflag="z" -fi - -if [ "$RTOOL" == "wget" ] && [ ! -f "$SRC_DIR/$SRC" ]; then - wget "$URL" -O "$SRC_DIR/$SRC" -fi - -TMP="$TMP/$PACKAGE" -rm -rf $TMP -mkdir -p $TMP -cd $TMP - -tar xvf$tarflag $SRC_DIR/$SRC -cd $PACKAGE-$VERSION - -if [ -f "$CWD/$PACKAGE-$VERSION.diff" ]; then - patch -p1 < $CWD/$PACKAGE-$VERSION.diff -fi - -./configure --prefix=/usr --sysconfdir=/etc --libdir=$LIBDIR -make || exit 32 -make DESTDIR=$TMP/package-$PACKAGE install - -CWD="`pwd`" - -cd $TMP/package-$PACKAGE - -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 - -mkdir install -cat << EOF > 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-----------------------------------------------------| -twolame: twolame -twolame: -twolame: TwoLAME is an optimised MPEG Audio Layer 2 (MP2) encoder based on -twolame: tooLAME by Mike Cheng, which in turn is based upon the ISO dist10 -twolame: code and portions of LAME. TwoLAME includes libtwolame, a fully -twolame: thread-safe shared library with an API very similar to LAME's. -twolame: -twolame: -twolame: -twolame: -twolame: -EOF - -# docs -mkdir -p usr/doc/$PACKAGE-$VERSION - -for file in AUTHORS COPYING ChangeLog README TODO; do - cp $CWD/$file* usr/doc/$PACKAGE-$VERSION/ -done - -makepkg -c y -l y $REPOS/$PACKAGE-$VERSION-$ARCH-$BUILD.tgz - -if [ "$CLEANUP" == "yes" ]; then - rm -rf $TMP -fi - diff --git a/unrar/unrar.SlackBuild b/unrar/unrar.SlackBuild deleted file mode 100755 index 1f977d26..00000000 --- a/unrar/unrar.SlackBuild +++ /dev/null @@ -1,109 +0,0 @@ -#!/bin/bash -# -# slackbuild script for unrar -# by rhatto at riseup.net -# - -CWD="`pwd`" - -if [ -f ~/.slackbuildrc ]; then - source ~/.slackbuildrc -elif [ -f /etc/slackbuildrc ]; then - source /etc/slackbuildrc -fi - -# default settings -PACKAGE="unrar" -ARCH=${ARCH:=i486} -VERSION=${VERSION:=0.40} -BUILD=${BUILD:=1rha} -SRC_DIR=${SRC:=$CWD} -TMP=${TMP:=/tmp} -REPOS=${REPOS:=$TMP} - -if [ "$ARCH" == "x86_64" ]; then - LIBDIR=/usr/lib64 -else - LIBDIR=/usr/lib -fi - -SRC_DIR="$SRC_DIR/$PACKAGE" -mkdir -p $SRC_DIR - -RTOOL="wget" -PACKAGE_EXT="bz2" -SRC="unrarlib040.tar.bz2" -URL="http://www.unrarlib.org/download/$SRC" -PATCH="unrarlib040-unrar-patch-ab.tar.gz" -PATCH_URL="http://www.unrarlib.org/download/contribution/$PATCH" - -if [ "$PACKAGE_EXT" == "bz2" ]; then - tarflag="j" -else - tarflag="z" -fi - -if [ "$RTOOL" == "wget" ]; then - if [ ! -f "$SRC_DIR/$SRC" ]; then - wget "$URL" -O "$SRC_DIR/$SRC" - fi - - if [ ! -f "$SRC_DIR/$PATCH" ]; then - wget "$PATCH_URL" -O "$SRC_DIR/$PATCH" - fi -fi - -TMP="$TMP/$PACKAGE" -rm -rf $TMP -mkdir -p $TMP -cd $TMP - -tar zxvf $SRC_DIR/$PATCH -tar xvf$tarflag $SRC_DIR/$SRC -cd unrarlib040-unrar-patch-ab -cp ../unrarlib-0.4.0/unrarlib/* . - -make || exit 32 - -mkdir -p $TMP/package-$PACKAGE/usr/{bin,doc/$PACKAGE-$VERSION} -cp unrar $TMP/package-$PACKAGE/usr/bin -cp readme.txt $TMP/package-$PACKAGE/usr/doc/$PACKAGE-$VERSION/readme-unrar.txt -cp ../unrarlib-0.4.0/{gpl,licence,unrarlib-license}.txt $TMP/package-$PACKAGE/usr/doc/$PACKAGE-$VERSION -cp ../unrarlib-0.4.0/readme.txt $TMP/package-$PACKAGE/usr/doc/$PACKAGE-$VERSION/readme-unrarlib.txt - -CWD="`pwd`" - -cd $TMP/package-$PACKAGE - -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 - -mkdir install -cat << EOF > 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-----------------------------------------------------| -unrar: unrar (unpack RAR 2 archives) -unrar: -unrar: -unrar: -unrar: -unrar: -unrar: -unrar: -unrar: -unrar: -unrar: -EOF - -makepkg -c y -l y $REPOS/$PACKAGE-$VERSION-$ARCH-$BUILD.tgz - -if [ "$CLEANUP" == "yes" ]; then - rm -rf $TMP -fi - diff --git a/unrtf/unrtf.SlackBuild b/unrtf/unrtf.SlackBuild deleted file mode 100755 index 748995e8..00000000 --- a/unrtf/unrtf.SlackBuild +++ /dev/null @@ -1,121 +0,0 @@ -#!/bin/bash -# -# slackbuild script for unrtf -# by rhatto at riseup.net -# - -if [ -s "slack-required" ]; then - echo Recomended and required packages for building unrtf 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="unrtf" -ARCH=${ARCH:=i486} -VERSION=${VERSION:=0.20.2} -BUILD=${BUILD:=1rha} -SRC_DIR=${SRC:=$CWD} -TMP=${TMP:=/tmp} -REPOS=${REPOS:=$TMP} - -if [ "$ARCH" == "x86_64" ]; then - export LDFLAGS="-L/lib64 -L/usr/lib64" - LIBDIR=/usr/lib64 -else - LIBDIR=/usr/lib -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="gz" -SRC="$PACKAGE"_"$VERSION.tar.$PACKAGE_EXT" -URL="http://www.gnu.org/software/unrtf/$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 - -TMP="$TMP/$PACKAGE" -rm -rf $TMP -mkdir -p $TMP -cd $TMP - -tar xvf $SRC_DIR/$SRC || exit $ERROR_TAR -cd "$PACKAGE"_"$VERSION" - -if [ -f "$CWD/$PACKAGE-$VERSION.diff" ]; then - patch -p1 < $CWD/$PACKAGE-$VERSION.diff || exit $ERROR_PATCH -fi - -./configure --prefix=/usr --sysconfdir=/etc --libdir=$LIBDIR || exit $ERROR_CONF -make || exit $ERROR_MAKE -make DESTDIR=$TMP/package-$PACKAGE install || exit $ERROR_INSTALL - -CWD="`pwd`" - -cd $TMP/package-$PACKAGE - -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 - -mkdir install -cat << EOF > 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-----------------------------------------------------| -unrtf: unrtf (Rich Text to other formats converter) -unrtf: -unrtf: UnRTF is a command-line program written in C which converts -unrtf: documents in Rich Text (.rtf) format to HTML, LaTeX, PostScript -unrtf: and other formats. Converting to HTML, it supports a number of -unrtf: features of Rich Text Format, like changes in text appearence, -unrtf: background and foreground colors. -unrtf: -unrtf: -unrtf: -unrtf: -EOF - -# docs -mkdir -p usr/doc/$PACKAGE-$VERSION - -DOCS="AUTHORS COPYING ChangeLog INSTALL NEWS README" - -for file in $DOCS; do - cp $CWD/$file* usr/doc/$PACKAGE-$VERSION/ -done - -makepkg -c y -l y $REPOS/$PACKAGE-$VERSION-$ARCH-$BUILD.tgz || exit $ERROR_MKPKG - -if [ "$CLEANUP" == "yes" ]; then - rm -rf $TMP -fi - diff --git a/util-vserver/beecrypt.SlackBuild b/util-vserver/beecrypt.SlackBuild deleted file mode 100755 index 2733c090..00000000 --- a/util-vserver/beecrypt.SlackBuild +++ /dev/null @@ -1,127 +0,0 @@ -#!/bin/bash -# -# slackbuild script for beecrypt -# by rhatto at riseup.net -# - -cat << EOCAT -Check if you have the following stuff installed: - - libgcrypt - libgpg-error - -EOCAT - -if [ "$INTERACT" != "no" ]; then - echo "Hit ENTER do continue, Crtl-C to abort" - read crap -else - echo sleeping 3 seconds... - sleep 3 -fi - -CWD="`pwd`" - -if [ -f ~/.slackbuildrc ]; then - source ~/.slackbuildrc -elif [ -f /etc/slackbuildrc ]; then - source /etc/slackbuildrc -fi - -# default settings -PACKAGE="beecrypt" -ARCH=${ARCH:=i486} -VERSION=${VERSION:=4.1.2} -BUILD=${BUILD:=1rha} -SRC_DIR=${SRC:=$CWD} -TMP=${TMP:=/tmp} -REPOS=${REPOS:=$TMP} - -if [ "$ARCH" == "x86_64" ]; then - LIBDIR=/usr/lib64 -else - LIBDIR=/usr/lib -fi - -RTOOL="wget" -PACKAGE_EXT="gz" -SRC="$PACKAGE-$VERSION.tar.$PACKAGE_EXT" -# KEY="http://www.courier-mta.org/KEYS.bin" -SRC="$PACKAGE-$VERSION.tar.$PACKAGE_EXT" -URL="http://easynews.dl.sourceforge.net/sourceforge/$PACKAGE/$SRC" - -if [ "$PACKAGE_EXT" == "bz2" ]; then - tarflag="j" -else - tarflag="z" -fi - -SRC_DIR="$SRC_DIR/$PACKAGE" -mkdir -p $SRC_DIR - -if [ "$RTOOL" == "wget" ] && [ ! -f "$SRC_DIR/$SRC" ]; then - wget "$URL" -O "$SRC_DIR/$SRC" - wget "$URL.sig" -O "$SRC_DIR/$SRC.sig" -fi - -# TODO: signature checking -#if [ ! -f "$SRC_DIR/$PACKAGE-key.asc" ]; then -# wget "$KEY" -O "$SRC_DIR/$PACKAGE-key.asc" && gpg --import $SRC_DIR/$PACKAGE-key.asc -#fi - -gpg --verify $SRC_DIR/$SRC.sig $SRC || echo WARNING: Could not check signature or WRONG signature found. - -TMP="$TMP/$PACKAGE" -rm -rf $TMP -mkdir -p $TMP -cd $TMP - -tar xvf$tarflag $SRC_DIR/$SRC -cd $PACKAGE-$VERSION -./configure --prefix=/usr --sysconfdir=/etc --libdir=$LIBDIR -make || exit 32 -make DESTDIR=$TMP/package-$PACKAGE install - -CWD="`pwd`" - -cd $TMP/package-$PACKAGE - -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 - -mkdir install -cat << EOF > 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-----------------------------------------------------| -beecrypt: beecrypt (cryptography toolkit) -beecrypt: -beecrypt: BeeCrypt is an ongoing project to provide strong and fast -beecrypt: cryptography in the form of a toolkit usable by commercial and open -beecrypt: source projects. Included in the library are entropy sources, random -beecrypt: generators, block ciphers, hash functions, message authentication -beecrypt: codes, multiprecision integer routines, and public key primitives. -beecrypt: -beecrypt: -beecrypt: -beecrypt: -EOF - -# docs -mkdir -p usr/doc/$PACKAGE-$VERSION - -for file in AUTHORS BENCHMARKS BUGS CONTRIBUTORS COPYING ChangeLog INSTALL NEWS README; do - cp $CWD/$file* usr/doc/$PACKAGE-$VERSION/ -done - -makepkg -c y -l y $REPOS/$PACKAGE-$VERSION-$ARCH-$BUILD.tgz - -if [ "$CLEANUP" == "yes" ]; then - rm -rf $TMP -fi - diff --git a/util-vserver/util-vserver.SlackBuild b/util-vserver/util-vserver.SlackBuild deleted file mode 100755 index 8aefcbe4..00000000 --- a/util-vserver/util-vserver.SlackBuild +++ /dev/null @@ -1,129 +0,0 @@ -#!/bin/bash -# -# slackbuild for util-vserver -# - -cat << EOCAT -Check if you have the following stuff installed: - - beecrypt - vlan - iproute2 - iptables - modutils - -EOCAT - -if [ "$INTERACT" != "no" ]; then - echo "Hit ENTER do continue, Crtl-C to abort" - read crap -else - echo sleeping 3 seconds... - sleep 3 -fi - -CWD="`pwd`" - -if [ -f ~/.slackbuildrc ]; then - source ~/.slackbuildrc -elif [ -f /etc/slackbuildrc ]; then - source /etc/slackbuildrc -fi - -# default settings -PACKAGE="util-vserver" -ARCH=${ARCH:=i486} -VERSION=${VERSION:=0.30.210} -BUILD=${BUILD:=1rha} -SRC_DIR=${SRC:=$CWD} -TMP=${TMP:=/tmp} -REPOS=${REPOS:=$TMP} - -if [ "$ARCH" == "x86_64" ]; then - LIBDIR=/usr/lib64 -else - LIBDIR=/usr/lib -fi - -RTOOL="wget" -PACKAGE_EXT="bz2" -SRC="$PACKAGE-$VERSION.tar.$PACKAGE_EXT" -SRC="$PACKAGE-$VERSION.tar.$PACKAGE_EXT" -URL="http://www.13thfloor.at/~ensc/util-vserver/files/alpha/$SRC" - -if [ "$PACKAGE_EXT" == "bz2" ]; then - tarflag="j" -else - tarflag="z" -fi - -SRC_DIR="$SRC_DIR/$PACKAGE" -mkdir -p $SRC_DIR - -if [ "$RTOOL" == "wget" ] && [ ! -f "$SRC_DIR/$SRC" ]; then - wget "$URL" -O "$SRC_DIR/$SRC" - wget "$URL.sig" -O "$SRC_DIR/$SRC.sig" -fi - -gpg --verify $SRC_DIR/$SRC.sig $SRC || echo WARNING: Could not check signature or WRONG signature found. - -TMP="$TMP/$PACKAGE" -rm -rf $TMP -mkdir -p $TMP/package-$PACKAGE -cd $TMP - -tar xvf$tarflag $SRC_DIR/$SRC -cd $PACKAGE-$VERSION -./configure --prefix=/usr --sysconfdir=/etc --libdir=$LIBDIR --with-initrddir=/etc/rc.d --localstatedir=/var -make || exit 32 -make DESTDIR=$TMP/package-$PACKAGE install - -CWD="`pwd`" - -cd $TMP/package-$PACKAGE - -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 - -mkdir install -cat << EOF > 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-----------------------------------------------------| -util-vserver: util-vserver (userland tools for Linux-VServer) -util-vserver: -util-vserver: -util-vserver: -util-vserver: -util-vserver: -util-vserver: -util-vserver: -util-vserver: -util-vserver: -util-vserver: -EOF - -# config -mv etc/vservers.conf etc/vservers.conf.new - -# docs -mkdir -p usr/doc/$PACKAGE-$VERSION - -for file in AUTHORS COPYING ChangeLog FEATURES.txt INSTALL NEWS README REQUIREMENTS THANKS; do - cp $CWD/$file* usr/doc/$PACKAGE-$VERSION/ -done - -# install script -echo '( if [ ! -f "etc/vservers.conf" ]; then mv etc/vservers.conf.new etc/vservers.conf; fi )' > install/doinst.sh - -makepkg -c y -l y $REPOS/$PACKAGE-$VERSION-$ARCH-$BUILD.tgz - -if [ "$CLEANUP" == "yes" ]; then - rm -rf $TMP -fi - diff --git a/util-vserver/vlan.SlackBuild b/util-vserver/vlan.SlackBuild deleted file mode 100755 index 06386b8c..00000000 --- a/util-vserver/vlan.SlackBuild +++ /dev/null @@ -1,101 +0,0 @@ -#!/bin/bash -# -# slackbuild for vlan -# - -CWD="`pwd`" - -if [ -f ~/.slackbuildrc ]; then - source ~/.slackbuildrc -elif [ -f /etc/slackbuildrc ]; then - source /etc/slackbuildrc -fi - -# default settings -PACKAGE="vlan" -ARCH=${ARCH:=i486} -VERSION=${VERSION:=1.9} -BUILD=${BUILD:=1rha} -SRC_DIR=${SRC:=$CWD} -TMP=${TMP:=/tmp} -REPOS=${REPOS:=$TMP} - -if [ "$ARCH" == "x86_64" ]; then - LIBDIR=/usr/lib64 -else - LIBDIR=/usr/lib -fi - -RTOOL="wget" -PACKAGE_EXT="gz" -SRC="$PACKAGE.$VERSION.tar.$PACKAGE_EXT" -URL="http://www.candelatech.com/~greear/vlan/$SRC" - -if [ "$PACKAGE_EXT" == "bz2" ]; then - tarflag="j" -else - tarflag="z" -fi - -SRC_DIR="$SRC_DIR/$PACKAGE" -mkdir -p $SRC_DIR - -if [ "$RTOOL" == "wget" ] && [ ! -f "$SRC_DIR/$SRC" ]; then - wget "$URL" -O "$SRC_DIR/$SRC" -fi - -TMP="$TMP/$PACKAGE" -rm -rf $TMP -mkdir -p $TMP -cd $TMP - -tar xvf$tarflag $SRC_DIR/$SRC -mv $PACKAGE $PACKAGE-$VERSION -cd $PACKAGE-$VERSION -rm -f vconfig vconfig.o -make || exit 32 - -CWD="`pwd`" - -mkdir $TMP/package-$PACKAGE -cd $TMP/package-$PACKAGE - -mkdir -p usr/bin -cp $CWD/vconfig usr/bin - -mkdir install -cat << EOF > 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-----------------------------------------------------| -vlan: vlan (802.1Q VLAN implementation for Linux) -vlan: -vlan: http://www.candelatech.com/~greear/vlan.html -vlan: -vlan: -vlan: -vlan: -vlan: -vlan: -vlan: -vlan: -EOF - -# docs -mkdir -p usr/doc/$PACKAGE-$VERSION - -for file in CHANGELOG README vlan.html howto.html; do - cp $CWD/$file* usr/doc/$PACKAGE-$VERSION/ -done - -makepkg -c y -l y $REPOS/$PACKAGE-$VERSION-$ARCH-$BUILD.tgz - -if [ "$CLEANUP" == "yes" ]; then - rm -rf $TMP -fi - diff --git a/vlc/slack-required b/vlc/slack-required deleted file mode 100644 index 0512cc86..00000000 --- a/vlc/slack-required +++ /dev/null @@ -1,6 +0,0 @@ -mpeg2dec -liba52 -faac -faad2 -lame -wxWidgets diff --git a/vlc/vlc.SlackBuild b/vlc/vlc.SlackBuild deleted file mode 100755 index 9840de81..00000000 --- a/vlc/vlc.SlackBuild +++ /dev/null @@ -1,120 +0,0 @@ -#!/bin/bash -# -# slackbuild script for vlc -# by rafael at riseup.net -# - -if [ -s "slack-required" ]; then - echo Recomended and required packages for building vlc 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="vlc" -ARCH=${ARCH:=i486} -VERSION=${VERSION:=0.8.5} -BUILD=${BUILD:=1rd} -SRC_DIR=${SRC:=$CWD} -TMP=${TMP:=/tmp} -REPOS=${REPOS:=$TMP} - -if [ "$ARCH" == "x86_64" ]; then - export LDFLAGS="-L/lib64 -L/usr/lib64" - LIBDIR=/usr/lib64 -else - LIBDIR=/usr/lib -fi - -RTOOL="wget" -PACKAGE_EXT="bz2" -SRC="$PACKAGE-$VERSION.tar.$PACKAGE_EXT" -URL="http://download.videolan.org/pub/videolan/vlc/$VERSION/$SRC" - -SRC_DIR="$SRC_DIR/$PACKAGE" -mkdir -p $SRC_DIR - -if [ "$PACKAGE_EXT" == "bz2" ]; then - tarflag="j" -else - tarflag="z" -fi - -if [ "$RTOOL" == "wget" ] && [ ! -f "$SRC_DIR/$SRC" ]; then - wget "$URL" -O "$SRC_DIR/$SRC" -fi - -TMP="$TMP/$PACKAGE" -rm -rf $TMP -mkdir -p $TMP -cd $TMP - -tar xvf$tarflag $SRC_DIR/$SRC -cd $PACKAGE-$VERSION - -if [ -f "$CWD/$PACKAGE-$VERSION.diff" ]; then - patch -p1 < $CWD/$PACKAGE-$VERSION.diff -fi - -# h264 free implementation is unstable and changing a lot... -./configure --prefix=/usr --enable-theora --disable-x264 --libdir=$LIBDIR -make || exit 32 -make DESTDIR=$TMP/package-$PACKAGE install - -CWD="`pwd`" - -cd $TMP/package-$PACKAGE - -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 - -mkdir install -cat << EOF > 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-----------------------------------------------------| -vlc: VLC (Video Lan Client) -vlc: -vlc: VLC media player is a highly portable multimedia player for various -vlc: audio and video formats (MPEG-1, MPEG-2, MPEG-4, DivX, mp3, ogg, ...) -vlc: as well as DVDs, VCDs, and various streaming protocols. It can also -vlc: be used as a server to stream in unicast or multicast in IPv4 or IPv6 -vlc: on a high-bandwidth network. -vlc: -vlc: -vlc: http://www.videolan.org/ -vlc: -EOF - -# docs -mkdir -p usr/doc/$PACKAGE-$VERSION - -for file in AUTHORS COPYING ChangeLog INSTALL NEWS README TODO; do - cp $CWD/$file* usr/doc/$PACKAGE-$VERSION/ -done - -makepkg -c y -l y $REPOS/$PACKAGE-$VERSION-$ARCH-$BUILD.tgz - -if [ "$CLEANUP" == "yes" ]; then - rm -rf $TMP -fi - diff --git a/wipe/wipe.SlackBuild b/wipe/wipe.SlackBuild deleted file mode 100755 index 631fed79..00000000 --- a/wipe/wipe.SlackBuild +++ /dev/null @@ -1,30 +0,0 @@ -#!/bin/bash -# -# SlackBuild script to call wipe.build with correct settings -# - -CWD="`pwd`" - -if [ -f ~/.slackbuildrc ]; then - source ~/.slackbuildrc -elif [ -f /etc/slackbuildrc ]; then - source /etc/slackbuildrc -fi - -# default settings -PACKAGE="wipe" -VERSION=${VERSION:=2.2.0} -ARCH="${ARCH:=i486}" -BUILD=${BUILD:=1rha} -SRC_DIR=${SRC:=$CWD} -TMP=${TMP:=/tmp} -REPOS=${REPOS:=$TMP} - -rm -rf $TMP/$PACKAGE -mkdir -p $SRC_DIR/$PACKAGE $TMP/$PACKAGE - -slacktrack -b $REPOS -x $TMP,$SRC_DIR,/dev -jefkzp "$PACKAGE-$VERSION-$ARCH-$BUILD.tgz" "./$PACKAGE.build" - -if [ "$CLEANUP" == "yes" ]; then - rm -rf $TMP/$PACKAGE -fi diff --git a/wipe/wipe.build b/wipe/wipe.build deleted file mode 100755 index 59c4e1ff..00000000 --- a/wipe/wipe.build +++ /dev/null @@ -1,112 +0,0 @@ -#!/bin/bash -# -# build script for wipe -# by rhatto at riseup.net -# build it with slacktrack, example: -# -# ARCH=x86_64 slacktrack -jefkzp "wipe-2.2.0-x86_64-1rha.tgz" "./wipe.build" -# - -CWD="`pwd`" - -if [ -f "/etc/slackbuildrc" ]; then - source /etc/slackbuildrc -fi - -if [ -f "~/.slackbuildrc" ]; then - source ~/.slackbuildrc -fi - -# default settings -PACKAGE="wipe" -ARCH=${ARCH:=i486} -VERSION=${VERSION:=2.2.0} -BUILD=${BUILD:=1rha} -SRC_DIR=${SRC:=$CWD} -TMP=${TMP:=/tmp} -REPOS=${REPOS:=$TMP} - -if [ "$ARCH" == "x86_64" ]; then - LIBDIR=/usr/lib64 -else - LIBDIR=/usr/lib -fi - -RTOOL="wget" -PACKAGE_EXT="bz2" -SRC="$PACKAGE-$VERSION.tar.$PACKAGE_EXT" -URL="http://easynews.dl.sourceforge.net/sourceforge/wipe/$SRC" - -SRC_DIR="$SRC_DIR/$PACKAGE" -if [ ! -d "$SRC_DIR" ]; then - mkdir -p $SRC_DIR -fi - -if [ "$PACKAGE_EXT" == "bz2" ]; then - tarflag="j" -else - tarflag="z" -fi - -if [ "$RTOOL" == "wget" ] && [ ! -f "$SRC_DIR/$SRC" ]; then - wget "$URL" -O "$SRC_DIR/$SRC" -fi - -TMP="$TMP/$PACKAGE" -if [ ! -d "$TMP" ]; then - mkdir -p $TMP -fi -cd $TMP - -tar xvf$tarflag $SRC_DIR/$SRC -cd $PACKAGE-$VERSION - -if [ -f "$CWD/$PACKAGE-$VERSION.diff" ]; then - patch -p1 < $CWD/$PACKAGE-$VERSION.diff -fi - -autoheader -autoconf -./configure --prefix=/usr --sysconfdir=/etc/$PACKAGE --libdir=$LIBDIR -make || exit 32 -make install - -CWD="`pwd`" - -# strip --strip-unneeded /usr/bin/wipe - -mkdir /install -cat << EOF > /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-----------------------------------------------------| -wipe: wipe (secure deletion of files from magnetic media) -wipe: -wipe: Wipe repeatedly writes special patterns to the file or files to be -wipe: destroyed, using the fsync() call and/or the O_SYNC bit to force -wipe: disk access, in order to lessen the chance of data recovery using -wipe: techniques such as magnetic force microscopy. -wipe: -wipe: -wipe: -wipe: -wipe: -EOF - -# docs -mv /usr/doc/$PACKAGE /usr/doc/$PACKAGE-$VERSION -# mkdir -p /usr/doc/$PACKAGE-$VERSION - -# for file in CHANGES INSTALL LICENSE README TESTING TODO; do -# cp $CWD/$file* /usr/doc/$PACKAGE-$VERSION/ -# done - -if [ "$CLEANUP" == "yes" ]; then - rm -rf $TMP -fi - diff --git a/wxwidgets/wxWidgets.SlackBuild b/wxwidgets/wxWidgets.SlackBuild deleted file mode 100755 index 41722f9a..00000000 --- a/wxwidgets/wxWidgets.SlackBuild +++ /dev/null @@ -1,127 +0,0 @@ -#!/bin/bash -# -# slackbuild script for wxWidgets -# by rafael at riseup.net -# - -if [ -s "slack-required" ]; then - echo Recomended and required packages for building wxWidgets 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="wxWidgets" -ARCH=${ARCH:=i486} -VERSION=${VERSION:=2.6.3} -BUILD=${BUILD:=1rd} -SRC_DIR=${SRC:=$CWD} -TMP=${TMP:=/tmp} -REPOS=${REPOS:=$TMP} - -# ------- 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 - -if [ "$ARCH" == "x86_64" ]; then - LIBDIR=/usr/lib64 -else - LIBDIR=/usr/lib -fi - -RTOOL="wget" -PACKAGE_EXT="gz" -SRC="$PACKAGE-$VERSION.tar.$PACKAGE_EXT" -URL="http://heanet.dl.sourceforge.net/sourceforge/wxwindows/$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 - -TMP="$TMP/$PACKAGE" -rm -rf $TMP -mkdir -p $TMP -cd $TMP - -tar xvf $SRC_DIR/$SRC -cd $PACKAGE-$VERSION - -if [ -f "$CWD/$PACKAGE-$VERSION.diff" ]; then - patch -p1 < $CWD/$PACKAGE-$VERSION.diff || exit $ERROR_PATCH -fi - -./configure --prefix=/usr --sysconfdir=/etc --libdir=$LIBDIR --with-docdir=/usr/doc/$PACKAGE-$VERSION --enable-unicode --enable-config || exit $ERROR_CONF -make || exit $ERROR_MAKE -make DESTDIR=$TMP/package-$PACKAGE install || exit $ERROR_INSTALL - -# make clean -# ./configure --prefix=/usr --sysconfdir=/etc --libdir=$LIBDIR --with-docdir=/usr/doc/$PACKAGE-$VERSION --enable-config || exit $ERROR_CONF -# make || exit $ERROR_MAKE -# make DESTDIR=$TMP/package-$PACKAGE install || exit $ERROR_INSTALL - -CWD="`pwd`" - -cd $TMP/package-$PACKAGE - -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 - -# do we really need that?? -# ( cd usr/bin && rm wx-config ) -# ( cd usr/bin && ln -sf $LIBDIR/wx/config/gtk2-unicode-release-2.6 wx-config ) - -mkdir install -cat << EOF > 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-----------------------------------------------------| -wxWidgets: wxWidgets (WxWidgets is a library to write portable GUI code) -wxWidgets: -wxWidgets: wxWidgets lets developers create applications for Win32, Mac OS X, -wxWidgets: GTK+, X11, Motif, WinCE, and more using one codebase. It can be used -wxWidgets: from languages such as C++, Python, Perl, and C#/.NET. Unlike other -wxWidgets: cross-platform toolkits, wxWidgets applications look and feel native. -wxWidgets: This is because wxWidgets uses the platform's own native controls -wxWidgets: rather than emulating them. It's also extensive, free, open-source, -wxWidgets: and mature. -wxWidgets: http://www.wxwidgets.org/ -wxWidgets: -EOF - -# docs -mkdir -p usr/doc/$PACKAGE-$VERSION - -for file in CHANGES.txt COPYING.LIB INSTALL-MAC.txt INSTALL-MGL.txt INSTALL-MOTIF.txt INSTALL-OS2.txt INSTALL-X11.txt LICENCE.txt README.txt;do - cp $CWD/$file* usr/doc/$PACKAGE-$VERSION/ -done - -makepkg -c y -l y $REPOS/$PACKAGE-$VERSION-$ARCH-$BUILD.tgz || exit $ERROR_MKPKG - -if [ "$CLEANUP" == "yes" ]; then - rm -rf $TMP -fi - diff --git a/xmms-jack/slack-required b/xmms-jack/slack-required deleted file mode 100644 index 03607b95..00000000 --- a/xmms-jack/slack-required +++ /dev/null @@ -1,2 +0,0 @@ -jack -libsamplerate diff --git a/xmms-jack/xmms-jack.SlackBuild b/xmms-jack/xmms-jack.SlackBuild deleted file mode 100755 index c97fb5b0..00000000 --- a/xmms-jack/xmms-jack.SlackBuild +++ /dev/null @@ -1,127 +0,0 @@ -#!/bin/bash -# -# slackbuild script for xmms-jack -# by rhatto at riseup.net -# - -if [ -s "slack-required" ]; then - echo Recomended and required packages for building xmms-jack 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="xmms-jack" -ARCH=${ARCH:=i486} -VERSION=${VERSION:=0.17} -BUILD=${BUILD:=1rha} -SRC_DIR=${SRC:=$CWD} -TMP=${TMP:=/tmp} -REPOS=${REPOS:=$TMP} - -if [ "$ARCH" == "x86_64" ]; then - export LDFLAGS="-L/lib64 -L/usr/lib64" - LIBDIR=/usr/lib64 -else - LIBDIR=/usr/lib -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 - -RTOOL="wget" -PACKAGE_EXT="gz" -SRC="$PACKAGE-$VERSION.tar.$PACKAGE_EXT" -URL="http://easynews.dl.sourceforge.net/sourceforge/$PACKAGE/$SRC" - -SRC_DIR="$SRC_DIR/$PACKAGE" -mkdir -p $SRC_DIR - -if [ "$PACKAGE_EXT" == "bz2" ]; then - tarflag="j" -else - tarflag="z" -fi - -if [ "$RTOOL" == "wget" ] && [ ! -f "$SRC_DIR/$SRC" ]; then - wget "$URL" -O "$SRC_DIR/$SRC" || exit $ERROR_WGET -fi - -TMP="$TMP/$PACKAGE" -rm -rf $TMP -mkdir -p $TMP -cd $TMP - -tar xvf$tarflag $SRC_DIR/$SRC || exit $ERROR_TAR -mv $PACKAGE $PACKAGE-$VERSION -cd $PACKAGE-$VERSION - -if [ -f "$CWD/$PACKAGE-$VERSION.diff" ]; then - patch -p1 < $CWD/$PACKAGE-$VERSION.diff -fi - -./configure --prefix=/usr --sysconfdir=/etc --libdir=$LIBDIR || exit $ERROR_CONF -make || exit $ERROR_MAKE -make DESTDIR=$TMP/package-$PACKAGE install || exit $ERROR_INSTALL - -CWD="`pwd`" - -cd $TMP/package-$PACKAGE - -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 - -mkdir install -cat << EOF > 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-----------------------------------------------------| -xmms-jack: xmms-jack (jack plugin for XMMS) -xmms-jack: -xmms-jack: jack output plugin for XMMS by Chris Morgan -xmms-jack: (cmorgan at alum.wpi.edu) -xmms-jack: -xmms-jack: -xmms-jack: -xmms-jack: -xmms-jack: -xmms-jack: -xmms-jack: -EOF - -# docs -mkdir -p usr/doc/$PACKAGE-$VERSION - -DOCS="AUTHORS COPYING ChangeLog INSTALL" - -for file in $DOCS; do - cp $CWD/$file* usr/doc/$PACKAGE-$VERSION/ -done - -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