diff options
author | Carlo Landmeter <clandmeter@gmail.com> | 2012-10-24 17:30:48 +0200 |
---|---|---|
committer | Carlo Landmeter <clandmeter@gmail.com> | 2012-10-24 17:30:48 +0200 |
commit | 4ec6c77251c59fee6e68f7c961e0868c5974dedd (patch) | |
tree | c3d262ac46b27f167c9299b8aec58cbd62eed319 /testing/oscam-svn | |
parent | df032561b129a48157b64ca0e04bcd9886fdb10f (diff) | |
download | aports-4ec6c77251c59fee6e68f7c961e0868c5974dedd.tar.bz2 aports-4ec6c77251c59fee6e68f7c961e0868c5974dedd.tar.xz |
testing/oscam-svn: new aport
Diffstat (limited to 'testing/oscam-svn')
-rw-r--r-- | testing/oscam-svn/APKBUILD | 57 | ||||
-rw-r--r-- | testing/oscam-svn/oscam-svn.confd | 5 | ||||
-rw-r--r-- | testing/oscam-svn/oscam-svn.initd | 30 | ||||
-rw-r--r-- | testing/oscam-svn/oscam-svn.pre-install | 3 |
4 files changed, 95 insertions, 0 deletions
diff --git a/testing/oscam-svn/APKBUILD b/testing/oscam-svn/APKBUILD new file mode 100644 index 000000000..984ab1bb5 --- /dev/null +++ b/testing/oscam-svn/APKBUILD @@ -0,0 +1,57 @@ +# Contributor: Carlo Landmeter <clandmeter@gmail.com> +# Maintainer: +pkgname=oscam-svn +pkgver=7798 +pkgrel=0 +pkgdesc="An Open Source Conditional Access Module software" +url="http://oscam.to" +arch="all" +license="GPL" +depends="" +depends_dev="openssl-dev libusb-dev" +makedepends="$depends_dev bash cmake" +install="$pkgname.pre-install" +pkgusers="$pkgname" +subpackages="$pkgname-doc" +source="http://alpine.nethq.org/distfiles/oscam-svn-$pkgver.tar.gz + $pkgname.initd + $pkgname.confd" + +_builddir="$srcdir"/oscam-svn-$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" + cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DHAVE_DVBAPI=1 \ + -DWEBIF=1 \ + -WITH_SSL=1 \ + "$_builddir" + make || return 1 +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 + install -d "$pkgdir"/var/log/$pkgname/cw || return 1 + install -d "$pkgdir"/etc/$pkgname || return 1 + chown -R oscam "$pkgdir"/var/log/$pkgname || return 1 + install -m755 -D "$srcdir"/$pkgname.initd \ + "$pkgdir"/etc/init.d/$pkgname || return 1 + install -m644 -D "$srcdir"/$pkgname.confd \ + "$pkgdir"/etc/conf.d/$pkgname || return 1 + rm -f "$pkgdir"/usr/lib/*.la +} + +md5sums="5dab76a401770f411400927732e5e7f6 oscam-svn-7798.tar.gz +56f8a71e018973b6fb8f2efa2873b6cb oscam-svn.initd +8aa89df1cb43726dc05f6df64c55781a oscam-svn.confd" diff --git a/testing/oscam-svn/oscam-svn.confd b/testing/oscam-svn/oscam-svn.confd new file mode 100644 index 000000000..154d08d4b --- /dev/null +++ b/testing/oscam-svn/oscam-svn.confd @@ -0,0 +1,5 @@ +# oscam confd file + +user="oscam" +group="video" +args="-b -c /etc/oscam-svn" diff --git a/testing/oscam-svn/oscam-svn.initd b/testing/oscam-svn/oscam-svn.initd new file mode 100644 index 000000000..ed9918fd2 --- /dev/null +++ b/testing/oscam-svn/oscam-svn.initd @@ -0,0 +1,30 @@ +#!/sbin/runscript + +# oscam init.d + +name="oscam" +daemon="/usr/bin/$name" + +depend() { + use net +} + +start() { + ebegin "Starting oscam" + start-stop-daemon --start \ + --quiet \ + --user $user \ + --group $group \ + --name $name \ + --exec $daemon \ + -- $args + eend $? +} + +stop() { + ebegin "Stopping oscam" + start-stop-daemon --stop \ + --signal 2 \ + --name $name + eend $? +} diff --git a/testing/oscam-svn/oscam-svn.pre-install b/testing/oscam-svn/oscam-svn.pre-install new file mode 100644 index 000000000..c78cb9a78 --- /dev/null +++ b/testing/oscam-svn/oscam-svn.pre-install @@ -0,0 +1,3 @@ +#!/bin/sh +adduser -H -G video -D -s /bin/false oscam 2>/dev/null +exit 0 |