From f6499eb8393ebb1de5ccefe4356053035b090acb Mon Sep 17 00:00:00 2001 From: rudson Date: Wed, 15 Nov 2006 23:40:22 +0000 Subject: movendo libs... git-svn-id: svn+slack://slack.fluxo.info/var/svn/slackbuilds@685 370017ae-e619-0410-ac65-c121f96126d4 --- net/chat/bitlbee/bitlbee.SlackBuild | 132 -------------------- net/chat/bitlbee/slack-required | 2 - net/chat/ekiga/ekiga.SlackBuild | 119 ------------------ net/chat/ekiga/slack-required | 3 - net/chat/lirc/lirc.SlackBuild | 122 ------------------- net/im/bitlbee/bitlbee.SlackBuild | 132 ++++++++++++++++++++ net/im/bitlbee/slack-required | 2 + net/im/ekiga/ekiga.SlackBuild | 119 ++++++++++++++++++ net/im/ekiga/slack-required | 3 + net/im/lirc/lirc.SlackBuild | 122 +++++++++++++++++++ net/libs/opal/opal.SlackBuild | 111 +++++++++++++++++ net/libs/opal/slack-required | 1 + net/nds/openldap/openldap-client.SlackBuild | 123 +++++++++++++++++++ net/nds/openldap/openldap.SlackBuild | 135 +++++++++++++++++++++ net/p2p/nicotine/nicotine+.SlackBuild | 30 +++++ net/p2p/nicotine/nicotine+.build | 96 +++++++++++++++ net/p2p/nicotine/nicotine.SlackBuild | 42 +++++++ net/p2p/nicotine/nicotine.build | 94 ++++++++++++++ net/p2p/nicotine/slack-required | 1 + net/www/nspluginwrapper/nspluginwrapper.SlackBuild | 121 ++++++++++++++++++ 20 files changed, 1132 insertions(+), 378 deletions(-) delete mode 100755 net/chat/bitlbee/bitlbee.SlackBuild delete mode 100644 net/chat/bitlbee/slack-required delete mode 100755 net/chat/ekiga/ekiga.SlackBuild delete mode 100644 net/chat/ekiga/slack-required delete mode 100755 net/chat/lirc/lirc.SlackBuild create mode 100755 net/im/bitlbee/bitlbee.SlackBuild create mode 100644 net/im/bitlbee/slack-required create mode 100755 net/im/ekiga/ekiga.SlackBuild create mode 100644 net/im/ekiga/slack-required create mode 100755 net/im/lirc/lirc.SlackBuild create mode 100755 net/libs/opal/opal.SlackBuild create mode 100644 net/libs/opal/slack-required create mode 100755 net/nds/openldap/openldap-client.SlackBuild create mode 100755 net/nds/openldap/openldap.SlackBuild create mode 100755 net/p2p/nicotine/nicotine+.SlackBuild create mode 100755 net/p2p/nicotine/nicotine+.build create mode 100755 net/p2p/nicotine/nicotine.SlackBuild create mode 100755 net/p2p/nicotine/nicotine.build create mode 100644 net/p2p/nicotine/slack-required create mode 100755 net/www/nspluginwrapper/nspluginwrapper.SlackBuild (limited to 'net') diff --git a/net/chat/bitlbee/bitlbee.SlackBuild b/net/chat/bitlbee/bitlbee.SlackBuild deleted file mode 100755 index 47713be6..00000000 --- a/net/chat/bitlbee/bitlbee.SlackBuild +++ /dev/null @@ -1,132 +0,0 @@ -#!/bin/bash -# -# slackbuild script for bitlbee -# by rhatto at riseup.net -# - -if [ -s "slack-required" ]; then - echo Recomended and required packages for building bitlbee 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="bitlbee" -ARCH=${ARCH:=i486} -VERSION=${VERSION:=1.0.3} -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://get.bitlbee.org/src/$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 --etcdir=/etc/bitlbee --libdir=$LIBDIR - -if [ "$ARCH" == "x86_64" ]; then - cat Makefile.settings | sed -e 's/^LFLAGS=$/LFLAGS=-L\/lib64 -L\/usr\/lib64 -liconv/' > Makefile.settings.new - mv Makefile.settings.new Makefile.settings -fi - -make || exit 32 -make DESTDIR=$TMP/package-$PACKAGE install - -CWD="`pwd`" - -cd $TMP/package-$PACKAGE - -mkdir -p $TMP/package-$PACKAGE/etc/bitlbee -cp $CWD/bitlbee.conf $TMP/package-$PACKAGE/etc/bitlbee/bitlbee.conf.dist - -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-----------------------------------------------------| -bitlbee: bitlbee (An IRC to other chat networks gateway) -bitlbee: -bitlbee: BitlBee allows users to talk to people on the MSN, ICQ, Jabber, -bitlbee: Yahoo!, and AIM networks with any IRC client by emulating an IRC -bitlbee: server. A virtual channel is created with all of the user's buddies -bitlbee: in it, who can be talked to in the channel or in a query. -bitlbee: -bitlbee: -bitlbee: -bitlbee: -bitlbee: -EOF - -# docs -mkdir -p usr/doc/$PACKAGE-$VERSION -cp $CWD/COPYING usr/doc/$PACKAGE-$VERSION - -for file in AUTHORS CHANGES CREDITS FAQ INSTALL README; do - cp $CWD/doc/$file* usr/doc/$PACKAGE-$VERSION/ -done - -# install script -echo '( if [ ! -f "etc/bitlbee/bitlbee.conf" ]; then mv etc/bitlbee/bitlbee.conf.dist etc/bitlbee/bitlbee.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/net/chat/bitlbee/slack-required b/net/chat/bitlbee/slack-required deleted file mode 100644 index 196e8fce..00000000 --- a/net/chat/bitlbee/slack-required +++ /dev/null @@ -1,2 +0,0 @@ -gnutls -libiconv diff --git a/net/chat/ekiga/ekiga.SlackBuild b/net/chat/ekiga/ekiga.SlackBuild deleted file mode 100755 index 0c43d9c6..00000000 --- a/net/chat/ekiga/ekiga.SlackBuild +++ /dev/null @@ -1,119 +0,0 @@ -#!/bin/bash -# -# slackbuild script for ekiga -# by rafael at riseup.net -# - -if [ -s "slack-required" ]; then - echo Recomended and required packages for building ekiga 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="ekiga" -ARCH=${ARCH:=i486} -VERSION=${VERSION:=2.0.3} -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="gz" -SRC="$PACKAGE-$VERSION.tar.$PACKAGE_EXT" -URL="http://www.ekiga.org/admin/downloads/latest/sources/sources/$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 --disable-gnome --disable-avahi --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-----------------------------------------------------| -ekiga: ekiga (Ekiga is a VoIP softphone) -ekiga: -ekiga: Ekiga (formely known as GnomeMeeting) is an open source VoIP and -ekiga: video conferencing application for GNOME. Ekiga uses both the H.323 -ekiga: and SIP protocols. It supports many audio and video codecs, and is -ekiga: interoperable with other SIP compliant software and also with -ekiga: Microsoft NetMeeting. -ekiga: -ekiga: -ekiga: http://www.ekiga.org/ -ekiga: -EOF - -# docs -mkdir -p usr/doc/$PACKAGE-$VERSION - -for file in AUTHORS COPYING ChangeLog FAQ 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/chat/ekiga/slack-required b/net/chat/ekiga/slack-required deleted file mode 100644 index df2d09b1..00000000 --- a/net/chat/ekiga/slack-required +++ /dev/null @@ -1,3 +0,0 @@ -openldap-client -pwlib -opal diff --git a/net/chat/lirc/lirc.SlackBuild b/net/chat/lirc/lirc.SlackBuild deleted file mode 100755 index 13268723..00000000 --- a/net/chat/lirc/lirc.SlackBuild +++ /dev/null @@ -1,122 +0,0 @@ -#!/bin/bash -# -# slackbuild script for lirc -# by rafael at riseup.net -# - -if [ -s "slack-required" ]; then - echo Recomended and required packages for building lirc 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="lirc" -ARCH=${ARCH:=i486} -VERSION=${VERSION:=0.8.1pre2} -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 - -# ------- 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://lirc.sourceforge.net/software/snapshots/$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 - -# Warning, building without any driver!! -./configure --prefix=/usr --with-driver=none --enable-sandbox --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-----------------------------------------------------| -lirc: lirc -lirc: -lirc: LIRC is a package that allows you to decode and send infra-red -lirc: signals of many (but not all) commonly used remote controls. -lirc: -lirc: -lirc: -lirc: -lirc: -lirc: http://www.lirc.org/ -lirc: -EOF - -# docs -mkdir -p usr/doc/$PACKAGE-$VERSION - -DOCS="ANNOUNCE AUTHORS COPYING ChangeLog INSTALL NEWS README TODO" - -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/net/im/bitlbee/bitlbee.SlackBuild b/net/im/bitlbee/bitlbee.SlackBuild new file mode 100755 index 00000000..47713be6 --- /dev/null +++ b/net/im/bitlbee/bitlbee.SlackBuild @@ -0,0 +1,132 @@ +#!/bin/bash +# +# slackbuild script for bitlbee +# by rhatto at riseup.net +# + +if [ -s "slack-required" ]; then + echo Recomended and required packages for building bitlbee 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="bitlbee" +ARCH=${ARCH:=i486} +VERSION=${VERSION:=1.0.3} +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://get.bitlbee.org/src/$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 --etcdir=/etc/bitlbee --libdir=$LIBDIR + +if [ "$ARCH" == "x86_64" ]; then + cat Makefile.settings | sed -e 's/^LFLAGS=$/LFLAGS=-L\/lib64 -L\/usr\/lib64 -liconv/' > Makefile.settings.new + mv Makefile.settings.new Makefile.settings +fi + +make || exit 32 +make DESTDIR=$TMP/package-$PACKAGE install + +CWD="`pwd`" + +cd $TMP/package-$PACKAGE + +mkdir -p $TMP/package-$PACKAGE/etc/bitlbee +cp $CWD/bitlbee.conf $TMP/package-$PACKAGE/etc/bitlbee/bitlbee.conf.dist + +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-----------------------------------------------------| +bitlbee: bitlbee (An IRC to other chat networks gateway) +bitlbee: +bitlbee: BitlBee allows users to talk to people on the MSN, ICQ, Jabber, +bitlbee: Yahoo!, and AIM networks with any IRC client by emulating an IRC +bitlbee: server. A virtual channel is created with all of the user's buddies +bitlbee: in it, who can be talked to in the channel or in a query. +bitlbee: +bitlbee: +bitlbee: +bitlbee: +bitlbee: +EOF + +# docs +mkdir -p usr/doc/$PACKAGE-$VERSION +cp $CWD/COPYING usr/doc/$PACKAGE-$VERSION + +for file in AUTHORS CHANGES CREDITS FAQ INSTALL README; do + cp $CWD/doc/$file* usr/doc/$PACKAGE-$VERSION/ +done + +# install script +echo '( if [ ! -f "etc/bitlbee/bitlbee.conf" ]; then mv etc/bitlbee/bitlbee.conf.dist etc/bitlbee/bitlbee.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/net/im/bitlbee/slack-required b/net/im/bitlbee/slack-required new file mode 100644 index 00000000..196e8fce --- /dev/null +++ b/net/im/bitlbee/slack-required @@ -0,0 +1,2 @@ +gnutls +libiconv diff --git a/net/im/ekiga/ekiga.SlackBuild b/net/im/ekiga/ekiga.SlackBuild new file mode 100755 index 00000000..0c43d9c6 --- /dev/null +++ b/net/im/ekiga/ekiga.SlackBuild @@ -0,0 +1,119 @@ +#!/bin/bash +# +# slackbuild script for ekiga +# by rafael at riseup.net +# + +if [ -s "slack-required" ]; then + echo Recomended and required packages for building ekiga 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="ekiga" +ARCH=${ARCH:=i486} +VERSION=${VERSION:=2.0.3} +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="gz" +SRC="$PACKAGE-$VERSION.tar.$PACKAGE_EXT" +URL="http://www.ekiga.org/admin/downloads/latest/sources/sources/$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 --disable-gnome --disable-avahi --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-----------------------------------------------------| +ekiga: ekiga (Ekiga is a VoIP softphone) +ekiga: +ekiga: Ekiga (formely known as GnomeMeeting) is an open source VoIP and +ekiga: video conferencing application for GNOME. Ekiga uses both the H.323 +ekiga: and SIP protocols. It supports many audio and video codecs, and is +ekiga: interoperable with other SIP compliant software and also with +ekiga: Microsoft NetMeeting. +ekiga: +ekiga: +ekiga: http://www.ekiga.org/ +ekiga: +EOF + +# docs +mkdir -p usr/doc/$PACKAGE-$VERSION + +for file in AUTHORS COPYING ChangeLog FAQ 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/im/ekiga/slack-required b/net/im/ekiga/slack-required new file mode 100644 index 00000000..df2d09b1 --- /dev/null +++ b/net/im/ekiga/slack-required @@ -0,0 +1,3 @@ +openldap-client +pwlib +opal diff --git a/net/im/lirc/lirc.SlackBuild b/net/im/lirc/lirc.SlackBuild new file mode 100755 index 00000000..13268723 --- /dev/null +++ b/net/im/lirc/lirc.SlackBuild @@ -0,0 +1,122 @@ +#!/bin/bash +# +# slackbuild script for lirc +# by rafael at riseup.net +# + +if [ -s "slack-required" ]; then + echo Recomended and required packages for building lirc 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="lirc" +ARCH=${ARCH:=i486} +VERSION=${VERSION:=0.8.1pre2} +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 + +# ------- 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://lirc.sourceforge.net/software/snapshots/$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 + +# Warning, building without any driver!! +./configure --prefix=/usr --with-driver=none --enable-sandbox --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-----------------------------------------------------| +lirc: lirc +lirc: +lirc: LIRC is a package that allows you to decode and send infra-red +lirc: signals of many (but not all) commonly used remote controls. +lirc: +lirc: +lirc: +lirc: +lirc: +lirc: http://www.lirc.org/ +lirc: +EOF + +# docs +mkdir -p usr/doc/$PACKAGE-$VERSION + +DOCS="ANNOUNCE AUTHORS COPYING ChangeLog INSTALL NEWS README TODO" + +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/net/libs/opal/opal.SlackBuild b/net/libs/opal/opal.SlackBuild new file mode 100755 index 00000000..c9c495c3 --- /dev/null +++ b/net/libs/opal/opal.SlackBuild @@ -0,0 +1,111 @@ +#!/bin/bash +# +# slackbuild script for opal +# by rafael at riseup.net +# + +if [ -s "slack-required" ]; then + echo Recomended and required packages for building pwlib 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="opal" +ARCH=${ARCH:=i486} +VERSION=${VERSION:=2.2.3} +BUILD=${BUILD:=1rd} +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.ekiga.org/admin/downloads/latest/sources/sources/$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 --with-docdir=/usr/doc/$PACKAGE-$VERSION +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-----------------------------------------------------| +opal: opal (Opal is a library for VoIP protocols) +opal: +opal: +opal: +opal: +opal: +opal: +opal: +opal: +opal: +opal: +EOF + +makepkg -c y -l y $REPOS/$PACKAGE-$VERSION-$ARCH-$BUILD.tgz + +if [ "$CLEANUP" == "yes" ]; then + rm -rf $TMP +fi + diff --git a/net/libs/opal/slack-required b/net/libs/opal/slack-required new file mode 100644 index 00000000..de907ed8 --- /dev/null +++ b/net/libs/opal/slack-required @@ -0,0 +1 @@ +pwlib diff --git a/net/nds/openldap/openldap-client.SlackBuild b/net/nds/openldap/openldap-client.SlackBuild new file mode 100755 index 00000000..b2e49184 --- /dev/null +++ b/net/nds/openldap/openldap-client.SlackBuild @@ -0,0 +1,123 @@ +#!/bin/bash +# +# slackbuild script for openldap-client +# + +CWD="`pwd`" + +if [ -f ~/.slackbuildrc ]; then + source ~/.slackbuildrc +elif [ -f /etc/slackbuildrc ]; then + source /etc/slackbuildrc +fi + +# default settings +PACKAGE="openldap-client" +ARCH=${ARCH:=i486} +VERSION=${VERSION:=2.3.24} +BUILD=${BUILD:=2rha} +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="tgz" +SRC="$PACKAGE-$VERSION.tar.$PACKAGE_EXT" +KEY="http://www.courier-mta.org/KEYS.bin" +SRC="openldap-$VERSION.$PACKAGE_EXT" +#URL="ftp://ftp.openldap.org/pub/OpenLDAP/openldap-release/$SRC" +URL="http://public.planetmirror.com/pub/openldap/openldap-release/$SRC" + +if [ "$PACKAGE_EXT" == "bz2" ]; then + tarflag="j" +else + tarflag="z" +fi + +SRC_DIR="$SRC_DIR/openldap" +mkdir -p $SRC_DIR + +if [ "$RTOOL" == "wget" ] && [ ! -f "$SRC_DIR/$SRC" ]; then + wget "$URL" -O "$SRC_DIR/$SRC" +fi + +if [ "$ARCH" == "x86_64" ]; then + LIBDIR="/usr/lib64" +else + LIBDIR="/usr/lib" +fi + +TMP="$TMP/$PACKAGE" +rm -rf $TMP +mkdir -p $TMP +cd $TMP + +tar xvf$tarflag $SRC_DIR/$SRC +mv openldap-$VERSION $PACKAGE-$VERSION +cd $PACKAGE-$VERSION + +./configure --prefix=/usr --sysconfdir=/etc --libdir=$LIBDIR --without-kerberos \ + --without-cyrus-sasl --without-tls --without-threads --disable-slapd --disable-slurpd + +make depend +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-----------------------------------------------------| +openldap-client: openldap-client (LDAP application client) +openldap-client: +openldap-client: The OpenLDAP Project is a collaborative effort to provide a robust, +openldap-client: commercial-grade, fully featured, open source LDAP software suite. +openldap-client: The project is managed by a worldwide community of volunteers that +openldap-client: use the Internet to communicate, plan, and develop OpenLDAP Software +openldap-client: and its related documentation. OpenLDAP Software provides a complete +openldap-client: LDAP implementation including server, clients, C SDK, and associated +openldap-client: tools. +openldap-client: +openldap-client: +EOF + +# configs +if [ -f "etc/openldap/ldap.conf" ]; then + mv etc/openldap/ldap.conf etc/openldap/ldap.conf.new +fi + +if [ -f "etc/openldap/slapd.conf" ]; then + mv etc/openldap/slapd.conf etc/openldap/slapd.conf.new +fi + +# docs +mkdir -p usr/doc/$PACKAGE-$VERSION + +for file in ANNOUNCEMENT CHANGES COPYRIGHT INSTALL LICENSE 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/net/nds/openldap/openldap.SlackBuild b/net/nds/openldap/openldap.SlackBuild new file mode 100755 index 00000000..1cb6ee6c --- /dev/null +++ b/net/nds/openldap/openldap.SlackBuild @@ -0,0 +1,135 @@ +#!/bin/bash +# +# slackbuild script for openldap +# 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="openldap" +ARCH=${ARCH:=i486} +VERSION=${VERSION:=2.3.24} +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="tgz" +SRC="$PACKAGE-$VERSION.tar.$PACKAGE_EXT" +KEY="http://www.courier-mta.org/KEYS.bin" +SRC="$PACKAGE-$VERSION.$PACKAGE_EXT" +#URL="ftp://ftp.openldap.org/pub/OpenLDAP/openldap-release/$SRC" +URL="http://public.planetmirror.com/pub/openldap/openldap-release/$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 + +if [ "$ARCH" == "x86_64" ]; then + LIBDIR="/usr/lib64" +else + LIBDIR="/usr/lib" +fi + +TMP="$TMP/$PACKAGE" +rm -rf $TMP +mkdir -p $TMP +cd $TMP + +tar xvf$tarflag $SRC_DIR/$SRC +cd $PACKAGE-$VERSION + +# otherwise will not work +DBINC="`ls -l /usr/include/db.h | awk '{ print $10 }'`" +if [ ! -f "$DBINC" ]; then + cp /usr/include/db.h db.h.save +fi + +ln -sf /usr/include/db4/db.h /usr/include/db.h + +./configure --prefix=/usr --sysconfdir=/etc --libdir=$LIBDIR +make depend +make || exit 32 +make DESTDIR=$TMP/package-$PACKAGE install + +# fix your system +if [ ! -f "$DBINC" ]; then + cp db.h.save /usr/include/db.h +else + ln -sf $DBINC /usr/include/db.h +fi + +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-----------------------------------------------------| +openldap: openldap (LDAP suite of applications and development tools) +openldap: +openldap: The OpenLDAP Project is a collaborative effort to provide a robust, +openldap: commercial-grade, fully featured, open source LDAP software suite. +openldap: The project is managed by a worldwide community of volunteers that +openldap: use the Internet to communicate, plan, and develop OpenLDAP Software +openldap: and its related documentation. OpenLDAP Software provides a complete +openldap: LDAP implementation including server, clients, C SDK, and associated +openldap: tools. +openldap: +openldap: +EOF + +# configs +mv etc/openldap/ldap.conf etc/openldap/ldap.conf.new +mv etc/openldap/slapd.conf etc/openldap/slapd.conf.new + +# docs +mkdir -p usr/doc/$PACKAGE-$VERSION + +for file in ANNOUNCEMENT CHANGES COPYRIGHT INSTALL LICENSE README; do + cp $CWD/$file* usr/doc/$PACKAGE-$VERSION/ +done + +# install script +echo '( if [ ! -f "etc/openldap/ldap.conf" ]; then mv etc/openldap/ldap.conf.new etc/openldap/ldap.conf; fi )' > install/doinst.sh +echo '( if [ ! -f "etc/openldap/slapd.conf" ]; then mv etc/openldap/slapd.conf.new etc/openldap/slapd.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/net/p2p/nicotine/nicotine+.SlackBuild b/net/p2p/nicotine/nicotine+.SlackBuild new file mode 100755 index 00000000..0da0eac9 --- /dev/null +++ b/net/p2p/nicotine/nicotine+.SlackBuild @@ -0,0 +1,30 @@ +#!/bin/bash +# +# SlackBuild script to call nicotine+.build with correct settings +# + +CWD="`pwd`" + +if [ -f ~/.slackbuildrc ]; then + source ~/.slackbuildrc +elif [ -f /etc/slackbuildrc ]; then + source /etc/slackbuildrc +fi + +# default settings +PACKAGE="nicotine+" +VERSION=${VERSION:=1.2.4.1} +ARCH="noarch" +BUILD=${BUILD:=1rha} +SRC_DIR=${SRC:=$CWD} +TMP=${TMP:=/tmp} +REPOS=${REPOS:=$TMP} + +rm -rf $TMP/$PACKAGE +mkdir -p $SRC_DIR/$PACKAGE $TMP/$PACKAGE $REPOS + +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/net/p2p/nicotine/nicotine+.build b/net/p2p/nicotine/nicotine+.build new file mode 100755 index 00000000..12a6c58a --- /dev/null +++ b/net/p2p/nicotine/nicotine+.build @@ -0,0 +1,96 @@ +#!/bin/bash +# +# build script for nicotine+ +# by rhatto at riseup.net +# build it with slacktrack, example: +# +# slacktrack -jefkzp "nicotine+-1.2.4.1-noarch-1rha.tgz" "./nicotine+.build" +# + +CWD="`pwd`" + +if [ -f "/etc/slackbuildrc" ]; then + source /etc/slackbuildrc +fi + +if [ -f "~/.slackbuildrc" ]; then + source ~/.slackbuildrc +fi + +# default settings +PACKAGE="nicotine+" +VERSION=${VERSION:=1.2.4.1} +ARCH="noarch" +BUILD=${BUILD:=1rha} +SRC_DIR=${SRC:=$CWD} +TMP=${TMP:=/tmp} + +RTOOL="wget" +PACKAGE_EXT="bz2" +SRC="$PACKAGE-$VERSION.tar.$PACKAGE_EXT" +URL="http://easynews.dl.sourceforge.net/sourceforge/nicotine-plus/$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 + +python setup.py install --prefix=/usr + +CWD="`pwd`" + +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-----------------------------------------------------| +nicotine+: nicotine+ (soulseek client clone) +nicotine+: +nicotine+: Nicotine is a SoulSeek client written in Python, based on the +nicotine+: PySoulSeek project by Alexander Kanavin. It features, among other +nicotine+: things, a completely rewritten graphical user interface which uses +nicotine+: the PyGTK-2 toolkit and a less strict user request policy. +nicotine+: +nicotine+: This version is the forked one distributed at +nicotine+: http://nicotine-plus.sourceforge.net +nicotine+: +nicotine+: +EOF + +# docs +mkdir -p /usr/doc/$PACKAGE-$VERSION + +for file in COPYING MANIFEST; do + cp $CWD/$file* /usr/doc/$PACKAGE-$VERSION/ +done + +cp -R $CWD/docs/* /usr/doc/$PACKAGE-$VERSION/ + diff --git a/net/p2p/nicotine/nicotine.SlackBuild b/net/p2p/nicotine/nicotine.SlackBuild new file mode 100755 index 00000000..aa1250d2 --- /dev/null +++ b/net/p2p/nicotine/nicotine.SlackBuild @@ -0,0 +1,42 @@ +#!/bin/bash +# +# SlackBuild script to call nicotine.build with correct settings +# + +if [ -s "slack-required" ]; then + echo Recomended and required packages for building nicotine 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="nicotine" +VERSION=${VERSION:=1.0.8} +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 $REPOS + +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/net/p2p/nicotine/nicotine.build b/net/p2p/nicotine/nicotine.build new file mode 100755 index 00000000..149062fd --- /dev/null +++ b/net/p2p/nicotine/nicotine.build @@ -0,0 +1,94 @@ +#!/bin/bash +# +# build script for nicotine +# by rhatto at riseup.net +# build it with slacktrack, example: +# +# slacktrack -jefkzp "nicotine-1.2.4.1-noarch-1rha.tgz" "./nicotine.build" +# + +CWD="`pwd`" + +if [ -f "/etc/slackbuildrc" ]; then + source /etc/slackbuildrc +fi + +if [ -f "~/.slackbuildrc" ]; then + source ~/.slackbuildrc +fi + +# default settings +PACKAGE="nicotine" +VERSION=${VERSION:=1.0.8} +ARCH=${ARCH:=i486} +BUILD=${BUILD:=1rha} +SRC_DIR=${SRC:=$CWD} +TMP=${TMP:=/tmp} + +RTOOL="wget" +PACKAGE_EXT="bz2" +SRC="$PACKAGE-$VERSION.tar.$PACKAGE_EXT" +URL="http://nicotine.thegraveyard.org/$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 + +python setup.py install --prefix=/usr + +CWD="`pwd`" + +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-----------------------------------------------------| +nicotine: nicotine (soulseek client clone) +nicotine: +nicotine: Nicotine is a SoulSeek client written in Python, based on the +nicotine: PySoulSeek project by Alexander Kanavin. It features, among other +nicotine: things, a completely rewritten graphical user interface which uses +nicotine: the PyGTK-2 toolkit and a less strict user request policy. +nicotine: +nicotine: +nicotine: +nicotine: +nicotine: +EOF + +# docs +mkdir -p /usr/doc/$PACKAGE-$VERSION + +for file in CHANGELOG COPYING INSTALL KNOWN_BUGS MAINTAINERS MANIFEST PKG-INFO README README.import-winconfig TODO TRANSLATORS; do + cp $CWD/$file* /usr/doc/$PACKAGE-$VERSION/ +done + diff --git a/net/p2p/nicotine/slack-required b/net/p2p/nicotine/slack-required new file mode 100644 index 00000000..d01ef22f --- /dev/null +++ b/net/p2p/nicotine/slack-required @@ -0,0 +1 @@ +pygtk diff --git a/net/www/nspluginwrapper/nspluginwrapper.SlackBuild b/net/www/nspluginwrapper/nspluginwrapper.SlackBuild new file mode 100755 index 00000000..59102127 --- /dev/null +++ b/net/www/nspluginwrapper/nspluginwrapper.SlackBuild @@ -0,0 +1,121 @@ +#!/bin/bash +# +# slackbuild script for nspluginwrapper +# by rhatto at riseup.net +# + +if [ -s "slack-required" ]; then + echo Recomended and required packages for building nspluginwrapper 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="nspluginwrapper" +ARCH=${ARCH:=i486} +VERSION=${VERSION:=0.9.90.1} +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="bz2" +SRC="$PACKAGE-$VERSION.tar.$PACKAGE_EXT" +URL="http://www.gibix.net/projects/nspluginwrapper/files/$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 --with-lib=$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-----------------------------------------------------| +nspluginwrapper: nspluginwrapper +nspluginwrapper: +nspluginwrapper: nspluginwrapper is an Open Source compatibility plugin for Netscape +nspluginwrapper: 4 (NPAPI) plugins. That is, it enables you to use plugins on +nspluginwrapper: platforms they were not built for. For example, you can use the +nspluginwrapper: Adobe Flash plugin with x86-64 compiled Mozilla browsers. +nspluginwrapper: +nspluginwrapper: +nspluginwrapper: +nspluginwrapper: +nspluginwrapper: +EOF + +# docs +mkdir -p usr/doc/$PACKAGE-$VERSION + +DOCS="COPYING NEWS README TODO" + +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