aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrafael2k <rafael2k@370017ae-e619-0410-ac65-c121f96126d4>2006-10-31 01:14:17 +0000
committerrafael2k <rafael2k@370017ae-e619-0410-ac65-c121f96126d4>2006-10-31 01:14:17 +0000
commit492fdc65cf351164b1739a16cfa74674abb030d7 (patch)
treeea8cc5667d37042f63b04f2dda9556b1ac4524f6
parent94948bb2f7308a3fcd397ef46e36f13db51a0da7 (diff)
downloadslackbuilds-492fdc65cf351164b1739a16cfa74674abb030d7.tar.gz
slackbuilds-492fdc65cf351164b1739a16cfa74674abb030d7.tar.bz2
oggfwd added
git-svn-id: svn+slack://slack.fluxo.info/var/svn/slackbuilds@548 370017ae-e619-0410-ac65-c121f96126d4
-rw-r--r--oggfwd/oggfwd-0.2.diff25
-rwxr-xr-xoggfwd/oggfwd.SlackBuild120
-rw-r--r--oggfwd/oggfwd/oggfwd-0.2.tar.bz20
-rw-r--r--oggfwd/oggfwd/oggfwd-0.2.tar.gzbin0 -> 10772 bytes
-rw-r--r--oggfwd/slack-required2
5 files changed, 147 insertions, 0 deletions
diff --git a/oggfwd/oggfwd-0.2.diff b/oggfwd/oggfwd-0.2.diff
new file mode 100644
index 00000000..d385874e
--- /dev/null
+++ b/oggfwd/oggfwd-0.2.diff
@@ -0,0 +1,25 @@
+--- Makefile.orig 2006-10-30 22:04:46.000000000 -0200
++++ Makefile 2006-10-30 22:04:28.000000000 -0200
+@@ -2,7 +2,7 @@
+ SRC = oggfwd.c
+ MAN = oggfwd.1
+
+-PREFIX ?= /usr/local
++PREFIX ?= /usr
+ BINDIR ?= ${PREFIX}/bin
+ MAN1DIR ?= ${PREFIX}/man/man1
+
+@@ -23,9 +23,10 @@
+ ${CC} ${CFLAGS} ${PTHREADFLAGS} ${INCLUDEFLAGS} ${LINKFLAGS} -o ${PROG} $<
+
+ install: ${PROG}
+- ${INSTALL} -c -m 555 -o root -g bin ${PROG} ${BINDIR}
+- test -d ${MAN1DIR} || ${INSTALL} -d -o root ${MAN1DIR}
+- ${INSTALL} -c -m 444 -o root -g bin ${MAN} ${MAN1DIR}
++ test -d ${DESTDIR}${BINDIR} || ${INSTALL} -d -o root ${DESTDIR}${BINDIR}
++ ${INSTALL} -c -m 555 -o root -g bin ${PROG} ${DESTDIR}${BINDIR}
++ test -d ${DESTDIR}${MAN1DIR} || ${INSTALL} -d -o root ${DESTDIR}${MAN1DIR}
++ ${INSTALL} -c -m 444 -o root -g bin ${MAN} ${DESTDIR}${MAN1DIR}
+
+ clean:
+ -@rm -f ${PROG} *~ core *.core
diff --git a/oggfwd/oggfwd.SlackBuild b/oggfwd/oggfwd.SlackBuild
new file mode 100755
index 00000000..a11b0187
--- /dev/null
+++ b/oggfwd/oggfwd.SlackBuild
@@ -0,0 +1,120 @@
+#!/bin/bash
+#
+# slackbuild script for oggfwd
+# by rafael at riseup.net
+#
+
+if [ -s "slack-required" ]; then
+ echo Recomended and required packages for building oggfwd 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="oggfwd"
+ARCH=${ARCH:=i486}
+VERSION=${VERSION:=0.2}
+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://v2v.cc/~j/oggfwd/$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 -p0 < $CWD/$PACKAGE-$VERSION.diff
+fi
+
+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-----------------------------------------------------|
+oggfwd: OggFWD (a simple ogg streamer)
+oggfwd:
+oggfwd: A simple ogg streamer (to icecast compatible servers), very useful
+oggfwd: for video streaming.
+oggfwd:
+oggfwd:
+oggfwd:
+oggfwd:
+oggfwd:
+oggfwd: http://v2v.cc/~j/oggfwd/
+oggfwd:
+EOF
+
+# docs
+mkdir -p usr/doc/$PACKAGE-$VERSION
+
+for file in ChangeLog 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/oggfwd/oggfwd/oggfwd-0.2.tar.bz2 b/oggfwd/oggfwd/oggfwd-0.2.tar.bz2
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/oggfwd/oggfwd/oggfwd-0.2.tar.bz2
diff --git a/oggfwd/oggfwd/oggfwd-0.2.tar.gz b/oggfwd/oggfwd/oggfwd-0.2.tar.gz
new file mode 100644
index 00000000..46e2005b
--- /dev/null
+++ b/oggfwd/oggfwd/oggfwd-0.2.tar.gz
Binary files differ
diff --git a/oggfwd/slack-required b/oggfwd/slack-required
new file mode 100644
index 00000000..fe98230d
--- /dev/null
+++ b/oggfwd/slack-required
@@ -0,0 +1,2 @@
+speex
+libshout