diff options
Diffstat (limited to 'testing')
-rw-r--r-- | testing/gnump3d/APKBUILD | 29 | ||||
-rw-r--r-- | testing/gnump3d/gnump3d.confd | 6 | ||||
-rw-r--r-- | testing/gnump3d/gnump3d.initd | 37 | ||||
-rw-r--r-- | testing/hping/APKBUILD | 34 | ||||
-rw-r--r-- | testing/iperf/APKBUILD | 27 |
5 files changed, 133 insertions, 0 deletions
diff --git a/testing/gnump3d/APKBUILD b/testing/gnump3d/APKBUILD new file mode 100644 index 000000000..b36743294 --- /dev/null +++ b/testing/gnump3d/APKBUILD @@ -0,0 +1,29 @@ +# Contributor: Michael Mason <ms13sp@gmail.com> +# Maintainer: Michael Mason <ms13sp@gmail.com> +pkgname=gnump3d +pkgver=3.0 +pkgrel=0 +pkgdesc="A streaming server for MP3, OGG vorbis and other streamable files" +url="http://www.gnump3d.org/" +license="GPL-2" +depends="perl" +makedepends="" +install= +subpackages="$pkgname-doc" +source="http://savannah.gnu.org/download/gnump3d/$pkgname-$pkgver.tar.gz + gnump3d.confd + gnump3d.initd" + +build() { + cd "$srcdir"/$pkgname-$pkgver + + make PREFIX="$pkgdir" install + + install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname + install -m644 -D "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname + mv "$pkgdir"/usr/local "$pkgdir"-doc/ +} + +md5sums="d2b665c3267253cc8cae29659131b9b4 gnump3d-3.0.tar.gz +59f0286d4c943226a67ab7b7787547c6 gnump3d.confd +5202488dff1c7e6c6788fb00fb32f071 gnump3d.initd" diff --git a/testing/gnump3d/gnump3d.confd b/testing/gnump3d/gnump3d.confd new file mode 100644 index 000000000..1d6cf397d --- /dev/null +++ b/testing/gnump3d/gnump3d.confd @@ -0,0 +1,6 @@ +# Set this to 0 to stop the init script from indexing your mp3s. +# It takes the longest on the first time, but after that, it only does +# updates. + +DO_INDEX=1 + diff --git a/testing/gnump3d/gnump3d.initd b/testing/gnump3d/gnump3d.initd new file mode 100644 index 000000000..43290ee30 --- /dev/null +++ b/testing/gnump3d/gnump3d.initd @@ -0,0 +1,37 @@ +#!/sbin/runscript +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/www/viewcvs.gentoo.org/raw_cvs/gentoo-x86/media-sound/gnump3d/files/gnump3d.init.d,v 1.4 2008/06/03 14:52:33 beandog Exp $ + +opts="start stop index" + +depend() { + need net + after netmount nfsmount +} + +start() { + ebegin "Starting gnump3d" + + if [ ${DO_INDEX} -eq 1 ]; then + ebegin "Updating index of music files (may take a while for the first time)" + /usr/bin/gnump3d-index + eend $? + fi + + start-stop-daemon --start --quiet --exec /usr/bin/gnump3d2 --make-pidfile \ + --pidfile /var/run/gnump3d.pid --background -- --quiet + eend $? +} + +stop() { + ebegin "Stopping gnump3d" + start-stop-daemon --stop --quiet --pidfile /var/run/gnump3d.pid + eend $? +} + +index() { + ebegin "Indexing music files" + /usr/bin/gnump3d-index + eend $? +} diff --git a/testing/hping/APKBUILD b/testing/hping/APKBUILD new file mode 100644 index 000000000..5f48e8033 --- /dev/null +++ b/testing/hping/APKBUILD @@ -0,0 +1,34 @@ +# Contributor: Michael Mason <ms13sp@gmail.com> +# Maintainer: Michael Mason <ms13sp@gmail.com> +pkgname=hping +_altname=hping3 +pkgver=20051105 +pkgrel=0 +pkgdesc="A ping-like TCP/IP packet assembler/analyzer" +url="http://www.hping.org" +license="GPL" +depends="" +makedepends="libpcap-dev" +install= +subpackages="$pkgname-doc" +source="http://www.hping.org/$_altname-$pkgver.tar.gz" + +build() { + cd "$srcdir"/$_altname-$pkgver + ln -s /usr/include/pcap/bpf.h /usr/include/net/bpf.h + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --no-tcl + make || return 1 + make strip || return 1 + install -m755 -D "$srcdir"/"$_altname-$pkgver"/$_altname "$pkgdir"/usr/sbin/$pkgname + ln -s "$pkgdir"/usr/sbin/$pkgname "$pkgdir"/usr/sbin/hping3 + ln -s "$pkgdir"/usr/sbin/$pkgname "$pkgdir"/usr/sbin/hping2 + install -m644 -D "$srcdir"/"$_altname-$pkgver"/docs/hping2.8 "$pkgdir"/usr/share/man/man8/hping2.8 + install -m644 -D "$srcdir"/"$_altname-$pkgver"/docs/hping3.8 "$pkgdir"/usr/share/man/man8/hping3.8 + +} + +md5sums="ca4ea4e34bcc2162aedf25df8b2d1747 hping3-20051105.tar.gz" diff --git a/testing/iperf/APKBUILD b/testing/iperf/APKBUILD new file mode 100644 index 000000000..06c93a46f --- /dev/null +++ b/testing/iperf/APKBUILD @@ -0,0 +1,27 @@ +# Contributor: Michael Mason <ms13sp@gmail.com> +# Maintainer: Michael Mason <ms13sp@gmail.com> +pkgname=iperf +pkgver=2.0.3 +pkgrel=0 +pkgdesc="tool to measure IP bandwidth using UDP or TCP" +url="http://iperf.sourceforge.net/" +license="GPL" +depends="" +makedepends="" +install= +subpackages="" +source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz" + +build() { + cd "$srcdir"/$pkgname-$pkgver + + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info + make || return 1 + make DESTDIR="$pkgdir" install + +} + +md5sums="78f6a49b5f051d18b55789999c12c7a6 iperf-2.0.3.tar.gz" |