aboutsummaryrefslogtreecommitdiff
path: root/dev/libs
diff options
context:
space:
mode:
Diffstat (limited to 'dev/libs')
-rw-r--r--dev/libs/boost/boost-1.33.1.diff19
-rwxr-xr-xdev/libs/boost/boost.SlackBuild46
-rwxr-xr-xdev/libs/boost/boost.build114
-rwxr-xr-xdev/libs/cyrus-sasl/cyrus-sasl.SlackBuild143
-rw-r--r--dev/libs/cyrus-sasl/doinst.sh18
-rw-r--r--dev/libs/cyrus-sasl/rc.saslauthd.new45
-rw-r--r--dev/libs/cyrus-sasl/slack-desc6
-rwxr-xr-xdev/libs/libevent/libevent.SlackBuild111
8 files changed, 502 insertions, 0 deletions
diff --git a/dev/libs/boost/boost-1.33.1.diff b/dev/libs/boost/boost-1.33.1.diff
new file mode 100644
index 00000000..85a56345
--- /dev/null
+++ b/dev/libs/boost/boost-1.33.1.diff
@@ -0,0 +1,19 @@
+--- Makefile.orig 2006-11-14 13:34:02.000000000 -0200
++++ Makefile 2006-11-14 14:54:23.000000000 -0200
+@@ -1,10 +1,12 @@
+ BJAM=./tools/build/jam_src/bin.linuxx86/bjam
+ TOOLSET=gcc
+ BJAM_CONFIG= -sPYTHON_ROOT=/usr -sPYTHON_VERSION=2.4
+-PREFIX=/usr
+-EPREFIX=/usr
+-LIBDIR=/usr/lib
+-INCLUDEDIR=/usr/include
++DESTDIR=${DESTDIR:=/tmp/package-boost}
++LIBDIR=${LIBDIR:=/usr/lib}
++PREFIX=${DESTDIR}/usr
++EPREFIX=${DESTDIR}/usr
++LIBDIR=${DESTDIR}${LIBDIR}
++INCLUDEDIR=${DESTDIR}/usr/include
+ LIBS=
+
+ all: .dummy
diff --git a/dev/libs/boost/boost.SlackBuild b/dev/libs/boost/boost.SlackBuild
new file mode 100755
index 00000000..fb18e386
--- /dev/null
+++ b/dev/libs/boost/boost.SlackBuild
@@ -0,0 +1,46 @@
+#!/bin/bash
+#
+# slackbuild script for boost
+# by rafael at riseup.net
+#
+
+if [ -s "slack-required" ]; then
+ echo Recomended and required packages for building boost 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 "/etc/slackbuildrc" ]; then
+ source /etc/slackbuildrc
+fi
+
+if [ -f "~/.slackbuildrc" ]; then
+ source ~/.slackbuildrc
+fi
+
+# default settings
+PACKAGE="boost"
+ARCH=${ARCH:=i486}
+VERSION=${VERSION:=1.33.1}
+BUILD=${BUILD:=1rd}
+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/dev/libs/boost/boost.build b/dev/libs/boost/boost.build
new file mode 100755
index 00000000..df963ff3
--- /dev/null
+++ b/dev/libs/boost/boost.build
@@ -0,0 +1,114 @@
+#!/bin/bash
+#
+# build script for boost
+# by rafael at riseup.net
+#
+
+CWD="`pwd`"
+
+if [ -f "/etc/slackbuildrc" ]; then
+ source /etc/slackbuildrc
+fi
+
+if [ -f "~/.slackbuildrc" ]; then
+ source ~/.slackbuildrc
+fi
+
+# default settings
+PACKAGE="boost"
+ARCH=${ARCH:=i486}
+VERSION=${VERSION:=1.33.1}
+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
+
+# Warning: hardcoded version!!
+VERSION2=1_33_1
+
+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}_${VERSION2}.tar.$PACKAGE_EXT"
+URL="http://ufpr.dl.sourceforge.net/sourceforge/boost/$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}_${VERSION2}
+
+if [ -f "$CWD/$PACKAGE-$VERSION.diff" ]; then
+ patch -p0 < $CWD/$PACKAGE-$VERSION.diff
+fi
+
+./configure --prefix=/usr --libdir=$LIBDIR --with-libraries=all
+make || exit 32
+make install
+
+CWD="`pwd`"
+
+cd $TMP/package-$PACKAGE
+
+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-----------------------------------------------------|
+boost: boost
+boost:
+boost: Boost provides free peer-reviewed portable C++ source libraries.
+boost:
+boost: We emphasize libraries that work well with the C++ Standard Library.
+boost: Boost libraries are intended to be widely useful, and usable across
+boost: a broad spectrum of applications.
+boost:
+boost:
+boost: http://www.boost.org/
+boost:
+EOF
+
+
+# docs
+mkdir -p /usr/doc/$PACKAGE-$VERSION
+
+for file in LICENSE_1_0.txt README; do
+ cp $CWD/$file* /usr/doc/$PACKAGE-$VERSION/
+done
+
+if [ "$CLEANUP" == "yes" ]; then
+ rm -rf $TMP
+fi
+
diff --git a/dev/libs/cyrus-sasl/cyrus-sasl.SlackBuild b/dev/libs/cyrus-sasl/cyrus-sasl.SlackBuild
new file mode 100755
index 00000000..9953f61f
--- /dev/null
+++ b/dev/libs/cyrus-sasl/cyrus-sasl.SlackBuild
@@ -0,0 +1,143 @@
+#!/bin/bash
+#
+# SlackBuild for Cyrus-SASL-ldap
+#
+##################################
+## Creator: Stefano Stabellini ##
+## stefano@stabellini.net ##
+## http://www.stabellini.net ##
+##################################
+#
+# small changes by rhatto
+#
+
+CWD="`pwd`"
+
+if [ -f ~/.slackbuildrc ]; then
+ source ~/.slackbuildrc
+elif [ -f /etc/slackbuildrc ]; then
+ source /etc/slackbuildrc
+fi
+
+PACKAGE="cyrus-sasl"
+VERSION=${VERSION:=2.1.21}
+ARCH=${ARCH:=i486}
+BUILD=${BUILD:=1rha}
+TMP=${TMP:=/tmp}
+SRC_DIR=${SRC:=$CWD}
+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="ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/KEYS"
+SRC="$PACKAGE-$VERSION.tar.$PACKAGE_EXT"
+URL="ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/$SRC"
+
+if [ ! -d $TMP ]; then
+ mkdir -p $TMP # location to build the source
+fi
+
+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
+
+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_DIR/$SRC || echo WARNING: Could not check signature or WRONG signature found.
+sleep 3
+
+if [ "$ARCH" = "i386" ]; then
+ SLKCFLAGS="-O2 -march=i386 -mcpu=i686"
+elif [ "$ARCH" = "i486" ]; then
+ SLKCFLAGS="-O2 -march=i486 -mcpu=i686"
+elif [ "$ARCH" = "s390" ]; then
+ SLKCFLAGS="-O2"
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2"
+fi
+
+TMP="$TMP/$PACKAGE"
+PKG="$TMP/package-$PACKAGE"
+rm -rf $TMP
+mkdir -p $TMP
+cd $TMP
+
+mkdir -p $PKG/var/state/saslauthd
+echo "+=====================+"
+echo "| cyrus-sasl-$VERSION |"
+echo "+=====================+"
+cd $TMP
+rm -rf cyrus-sasl-$VERSION
+tar xvf$tarflag $SRC_DIR/cyrus-sasl-$VERSION.tar.gz
+cd cyrus-sasl-$VERSION
+chown -R root.root .
+find . -perm 777 -exec chmod 755 {} \;
+find . -perm 775 -exec chmod 755 {} \;
+find . -perm 700 -exec chmod 755 {} \;
+find . -perm 744 -exec chmod 755 {} \;
+find . -perm 666 -exec chmod 644 {} \;
+find . -perm 664 -exec chmod 644 {} \;
+find . -perm 600 -exec chmod 644 {} \;
+CFLAGS="$SLKCFLAGS" \
+CXXFLAGS="$SLKCFLAGS" \
+#./configure --enable-login --enable-plain --enable-anon --enable-digest --with-static-sasl --with-bdb-libdir=/usr/lib \
+# --with-bdb-incdir=/usr/include/db4 --prefix=/usr --sysconfdir=/etc --localstatedir=/var/lib --enable-ldap \
+# --with-ldap=/usr/libexec/openldap --with-authdaemond=/usr/sbin/authdaemond
+./configure --prefix=/usr --sysconfdir=/etc --with-authdaemond=/usr/sbin/authdaemond --libdir=$LIBDIR
+make || exit 32
+make install DESTDIR=$PKG
+strip $PKG/usr/sbin/*
+chown -R root.bin $PKG/usr/bin
+chown -R root.bin $PKG/usr/sbin
+gzip -9 $PKG/usr/man/man3/*
+gzip -9 $PKG/usr/man/cat8/*
+gzip -9 $PKG/usr/man/man8/*
+mkdir -p $PKG/usr/doc/cyrus-sasl-$VERSION
+cp AUTHORS $PKG/usr/doc/cyrus-sasl-$VERSION
+cp COPYRIGHT $PKG/usr/doc/cyrus-sasl-$VERSION
+cp LICENSE $PKG/usr/doc/cyrus-sasl-$VERSION
+cp HISTORY $PKG/usr/doc/cyrus-sasl-$VERSION
+cp doc/* $PKG/usr/doc/cyrus-sasl-$VERSION
+cp ChangeLog $PKG/usr/doc/cyrus-sasl-$VERSION
+cp NEWS $PKG/usr/doc/cyrus-sasl-$VERSION
+cp README $PKG/usr/doc/cyrus-sasl-$VERSION
+cp INSTALL $PKG/usr/doc/cyrus-sasl-$VERSION
+cp README $PKG/usr/doc/cyrus-sasl-$VERSION
+mkdir -p $PKG/etc/rc.d
+cat $CWD/rc.saslauthd.new > $PKG/etc/rc.d/rc.saslauthd.new
+mkdir -p $PKG/install
+cat $CWD/doinst.sh > $PKG/install/doinst.sh
+cat $CWD/slack-desc > $PKG/install/slack-desc
+#cat $CWD/slack-conflicts > $PKG/install/slack-conflicts
+#cat $CWD/slack-required > $PKG/install/slack-required
+#requiredbuilder $PKG
+cd $PKG
+
+find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
+find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
+
+makepkg -l y -c n $REPOS/$PACKAGE-$VERSION-$ARCH-$BUILD.tgz
+
+if [ "$CLEANUP" == "yes" ]; then
+ rm -rf $TMP
+fi
+
diff --git a/dev/libs/cyrus-sasl/doinst.sh b/dev/libs/cyrus-sasl/doinst.sh
new file mode 100644
index 00000000..d2810248
--- /dev/null
+++ b/dev/libs/cyrus-sasl/doinst.sh
@@ -0,0 +1,18 @@
+## Slackware install script for cyrus-sasl-mysql
+## 20050920 Stefano Stabellini
+#
+
+config() {
+ NEW="$1"
+ OLD="`dirname $NEW`/`basename $NEW .new`"
+ # If there's no config file by that name, mv it over:
+ if [ ! -r $OLD ]; then
+ mv $NEW $OLD
+ elif [ "`cat $OLD | md5sum`" = "`cat $NEW | md5sum`" ]; then
+ # toss the redundant copy
+ rm $NEW
+ fi
+ # Otherwise, we leave the .new copy for the admin to consider...
+}
+
+config etc/rc.d/rc.saslauthd.new
diff --git a/dev/libs/cyrus-sasl/rc.saslauthd.new b/dev/libs/cyrus-sasl/rc.saslauthd.new
new file mode 100644
index 00000000..8b69a710
--- /dev/null
+++ b/dev/libs/cyrus-sasl/rc.saslauthd.new
@@ -0,0 +1,45 @@
+#!/bin/sh
+# rc.saslauthd: start/stop/restart saslauthd
+#
+# saslauthd is a daemon process that handles plaintext authentication
+# requests on behalf of the SASL library. The CMU Cyrus SASL library
+# is a general purpose authentication library for sever and client
+# applications. It is mostly used to authenticate to mail servers.
+#
+# saslauthd should be started from the system boot scripts when going
+# to multi-user mode. When running against a protected authentication
+# database (e.g. the shadow mechanism), it must be run as the superuser.
+#
+
+saslauthd_start() {
+ # If saslauthd is not running, start it:
+ if [ ! -r /var/state/saslauthd/saslauthd.pid ]; then
+ # Use shadow authentication by default on Slackware:
+ echo "Starting SASL authentication daemon: /usr/sbin/saslauthd -a shadow"
+ /usr/sbin/saslauthd -a shadow
+ fi
+}
+
+saslauthd_stop() {
+ kill `cat /var/state/saslauthd/saslauthd.pid 2> /dev/null` 2> /dev/null
+ sleep 1
+}
+
+saslauthd_restart() {
+ saslauthd_stop
+ saslauthd_start
+}
+
+case "$1" in
+'start')
+ saslauthd_start
+ ;;
+'stop')
+ saslauthd_stop
+ ;;
+'restart')
+ saslauthd_restart
+ ;;
+*)
+ echo "usage $0 start|stop|restart"
+esac
diff --git a/dev/libs/cyrus-sasl/slack-desc b/dev/libs/cyrus-sasl/slack-desc
new file mode 100644
index 00000000..17ee2615
--- /dev/null
+++ b/dev/libs/cyrus-sasl/slack-desc
@@ -0,0 +1,6 @@
+cyrus-sasl-ldap: Cyrus-SASL
+cyrus-sasl-ldap:
+cyrus-sasl-ldap: Cyrus-SASL is a library that implements the SASL athentication
+cyrus-sasl-ldap: method. This build supports LDAP (needs openldap).
+cyrus-sasl-ldap:
+cyrus-sasl-ldap:
diff --git a/dev/libs/libevent/libevent.SlackBuild b/dev/libs/libevent/libevent.SlackBuild
new file mode 100755
index 00000000..75d7b4b8
--- /dev/null
+++ b/dev/libs/libevent/libevent.SlackBuild
@@ -0,0 +1,111 @@
+#!/bin/bash
+#
+# slackbuild script for libevent
+# by rhatto at riseup.net
+#
+
+# TODO: check package signature
+
+CWD="`pwd`"
+
+if [ -f ~/.slackbuildrc ]; then
+ source ~/.slackbuildrc
+elif [ -f /etc/slackbuildrc ]; then
+ source /etc/slackbuildrc
+fi
+
+# default settings
+PACKAGE="libevent"
+ARCH=${ARCH:=i486}
+VERSION=${VERSION:=1.1b}
+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.monkey.org/~provos/$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-----------------------------------------------------|
+libevent: libevent (Event notification library)
+libevent:
+libevent: The libevent API provides a mechanism to execute a callback function
+libevent: when a specific event occurs on a file descriptor or after a timeout
+libevent: has been reached. Furthermore, libevent also support callbacks due
+libevent: to signals or regular timeouts.
+libevent:
+libevent:
+libevent:
+libevent:
+libevent:
+EOF
+
+# docs
+mkdir -p usr/doc/$PACKAGE-$VERSION
+
+for file in README; do
+ cp $CWD/$file* usr/doc/$PACKAGE-$VERSION/
+done
+
+# could not find package licence
+echo "Libevent has been released under a 3-clause BSD license." > usr/doc/$PACKAGE-$VERSION/LICENSE
+
+makepkg -c y -l y $REPOS/$PACKAGE-$VERSION-$ARCH-$BUILD.tgz
+
+if [ "$CLEANUP" == "yes" ]; then
+ rm -rf $TMP
+fi
+