aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancesco Colista <francesco.colista@gmail.com>2011-02-27 15:44:04 +0000
committerFrancesco Colista <francesco.colista@gmail.com>2011-02-27 15:44:04 +0000
commit32c855584083dff4152ac2314ef0838b7019f2e6 (patch)
tree74bc5040096ab0f3c1329d59f622c988e2d2e23c
parentf1b0759f75b8997aa1a67d0756a3c490ec227463 (diff)
parenta28ae53cd4a6d1d297fe943769ef34abc8b12814 (diff)
downloadaports-32c855584083dff4152ac2314ef0838b7019f2e6.tar.bz2
aports-32c855584083dff4152ac2314ef0838b7019f2e6.tar.xz
Merge branch 'master' of ssh://git.alpinelinux.org/gitroot/fcolista/aports
-rw-r--r--testing/libshout/APKBUILD42
-rw-r--r--testing/openvcp/APKBUILD43
-rw-r--r--testing/openvcp/openvcp.initd21
-rw-r--r--testing/qpage/APKBUILD3
4 files changed, 108 insertions, 1 deletions
diff --git a/testing/libshout/APKBUILD b/testing/libshout/APKBUILD
new file mode 100644
index 0000000000..b30976ddec
--- /dev/null
+++ b/testing/libshout/APKBUILD
@@ -0,0 +1,42 @@
+# Contributor: Francesco Colista <francesco.colista@gmail.com>
+# Maintainer: Francesco Colista <francesco.colista@gmail.com>
+pkgname=libshout
+pkgver=2.2.2
+pkgrel=0
+pkgdesc="Library for accessing a shoutcast/icecast server"
+url="http://www.icecast.org/"
+arch="all"
+license="LGPL"
+depends=
+depends_dev="speex-dev libtheora-dev libvorbis-dev"
+makedepends="$depends_dev"
+install=""
+subpackages="$pkgname-dev $pkgname-doc"
+source="http://downloads.xiph.org/releases/$pkgname/$pkgname-$pkgver.tar.gz"
+
+_builddir="$srcdir"/$pkgname-$pkgver
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+build() {
+
+ cd "$_builddir"
+ ./configure --prefix=/usr
+ --sysconfdir=/etc
+ --localstatedir=/var
+ make LDFLAGS+=-lspeex || return 1
+
+}
+package() {
+
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+}
+
+md5sums="4f75fc9901c724b712c371c9a1e782d3 libshout-2.2.2.tar.gz"
diff --git a/testing/openvcp/APKBUILD b/testing/openvcp/APKBUILD
new file mode 100644
index 0000000000..f72c2637c6
--- /dev/null
+++ b/testing/openvcp/APKBUILD
@@ -0,0 +1,43 @@
+# Contributor: Francesco Colista <francesco.colista@gmail.com>
+# Maintainer: Francesco Colista <francesco.colista@gmail.com>
+pkgname=openvcp
+_pkgname=openvcpd
+pkgver=0.5
+_pkgver=0.5rc3
+pkgrel=0
+pkgdesc="Control Panel for VServer instances"
+url="http://www.openvcp.org"
+arch="all"
+license="GPL"
+depends="rsync"
+depends_dev="gnutls-dev util-vserver-dev libxml2-dev libpcap-dev sqlite-dev"
+makedepends="$depends_dev"
+install=""
+subpackages=""
+source="http://files.openvcp.org/$_pkgname-$_pkgver.tar.gz
+ $pkgname.initd"
+_builddir="$srcdir"/$_pkgname-$_pkgver
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+build() {
+ cd "$_builddir"
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --with-gnutls
+ make || return 1
+}
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+ install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
+}
+
+md5sums="9c65d706133ea48553c90236997f1b8b openvcpd-0.5rc3.tar.gz
+08cef22e3abc5824133733e17aa4e607 openvcp.initd"
diff --git a/testing/openvcp/openvcp.initd b/testing/openvcp/openvcp.initd
new file mode 100644
index 0000000000..9acc4d1092
--- /dev/null
+++ b/testing/openvcp/openvcp.initd
@@ -0,0 +1,21 @@
+#!/sbin/runscript
+
+PATH=/sbin:/usr/sbin:/bin:/usr/bin
+DESC="openvcpd"
+NAME=openvcpd
+DAEMON=/usr/bin/$NAME
+DAEMON_ARGS=""
+PIDFILE=/var/run/$NAME.pid
+SCRIPTNAME=/etc/init.d/$NAME
+
+start() {
+ ebegin "OpenVCP Starting"
+ start-stop-daemon --start --quiet --background --pidfile $PIDFILE --exec $DAEMON -- $DAEMON_ARGS || return 1
+ eend $?
+}
+
+stop() {
+ ebegin "OpenVCP Stopping"
+ start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --pidfile $PIDFILE --name $NAME
+ eend $?
+}
diff --git a/testing/qpage/APKBUILD b/testing/qpage/APKBUILD
index 30eff28be0..57fc97086e 100644
--- a/testing/qpage/APKBUILD
+++ b/testing/qpage/APKBUILD
@@ -37,7 +37,8 @@ package() {
mkdir -p "$pkgdir"/usr/bin
mkdir -p "$pkgdir"/etc/qpage
install -m755 "$_builddir"/$pkgname "$pkgdir"/usr/bin/"$pkgname"
- install -Dm644 "$_builddir"/example.cf "$pkgdir"/etc/qpage/qpage.conf.example
+ install -m644 -D "$_builddir"/example.cf "$pkgdir"/etc/qpage/qpage.conf.example
+ install -m644 -D "$_builddir"/LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}