diff options
author | Joakim Hernberg | 2015-06-08 18:29:48 +0200 |
---|---|---|
committer | Joakim Hernberg | 2015-06-08 18:29:48 +0200 |
commit | e51ed2e4292c149ef7fd157325314af703ff24b3 (patch) | |
tree | 1abb373369333c6a233abff8d2137aefe7a48b91 | |
download | aur-e51ed2e4292c149ef7fd157325314af703ff24b3.tar.gz |
initial commit of oscam-svn (10680-1)
-rw-r--r-- | .SRCINFO | 25 | ||||
-rw-r--r-- | PKGBUILD | 46 | ||||
-rw-r--r-- | oscam.install | 9 | ||||
-rw-r--r-- | oscam.service | 11 |
4 files changed, 91 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..7378b89625d7 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,25 @@ +# Generated by makepkg 4.2.1 +# Mon Jun 8 16:27:10 UTC 2015 +pkgbase = oscam-svn + pkgdesc = The Open Source Conditional Access Module daemon + pkgver = 10680 + pkgrel = 1 + url = http://oscam.to/ + install = oscam.install + arch = i686 + arch = x86_64 + license = GPL3 + makedepends = subversion + depends = bash + depends = openssl + depends = libusbx + depends = pcsclite + provides = oscam + conflicts = oscam + source = oscam-svn::svn+http://www.streamboard.tv/svn/oscam/trunk + source = oscam.service + md5sums = SKIP + md5sums = 9feece4aed599a1ba005305c5e23960e + +pkgname = oscam-svn + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..740ae5256d63 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,46 @@ +# Maintainer: Joakim Hernberg <jhernberg@alchemy.lu> +# Contributor: Markus Opitz <mastero23 at gmail dot com> + +pkgname=oscam-svn +pkgver=10680 +pkgrel=1 + +pkgdesc="The Open Source Conditional Access Module daemon" +url="http://oscam.to/" +arch=('i686' 'x86_64') +license=('GPL3') + +depends=('bash' 'openssl' 'libusbx' 'pcsclite') +makedepends=('subversion') +provides=('oscam') +conflicts=('oscam') + +install=oscam.install +source=("$pkgname::svn+http://www.streamboard.tv/svn/oscam/trunk" + 'oscam.service') +md5sums=('SKIP' + '9feece4aed599a1ba005305c5e23960e') + +pkgver() { + cd "$SRCDEST/$pkgname" + svnversion +} + +build() { + cd "$srcdir/$pkgname" + make allyesconfig + make OSCAM_BIN=oscam CONF_DIR=/etc/oscam USE_LIBUSB=1 USE_PCSC=1 +} + +package() { + install -D -m 755 "$srcdir/oscam-svn/oscam" "$pkgdir/usr/bin/oscam" + install -D -m 644 "$srcdir/oscam.service" "$pkgdir/usr/lib/systemd/system/oscam.service" + install -m 755 -d "$pkgdir/etc/oscam" + install -m 755 -d "$pkgdir/usr/share/doc/oscam"/{example,monitor} + install -m 644 "$srcdir/oscam-svn/Distribution/doc/txt"/* "${pkgdir}/usr/share/doc/oscam/" + install -m 644 "$srcdir/oscam-svn/Distribution/doc/example"/* "${pkgdir}/usr/share/doc/oscam/example" + install -m 644 "$srcdir/oscam-svn/Distribution/monitor"/* "${pkgdir}/usr/share/doc/oscam/monitor" + install -m 755 -d "$pkgdir/usr/share/man"/{man1,man5} + install -m 644 "$srcdir/oscam-svn/Distribution/doc/man"/*.1 "${pkgdir}/usr/share/man/man1" + install -m 644 "$srcdir/oscam-svn/Distribution/doc/man"/*.5 "${pkgdir}/usr/share/man/man5" +} diff --git a/oscam.install b/oscam.install new file mode 100644 index 000000000000..e1a289369ac1 --- /dev/null +++ b/oscam.install @@ -0,0 +1,9 @@ +post_install() { +cat << 'EOM' + ==> PLEASE NOTE: + ==> + ==> Oscam needs to be configured before first use. + ==> The configuration files have to be placed under /etc/oscam. + ==> Check out /usr/share/doc/oscam/example for examples. +EOM +} diff --git a/oscam.service b/oscam.service new file mode 100644 index 000000000000..259e151cd97b --- /dev/null +++ b/oscam.service @@ -0,0 +1,11 @@ +[Unit] +Description=The Open Source Conditional Access Module daemon +After=tmp.mount network.target + +[Service] +Type=forking +PIDFile=/run/oscam.pid +ExecStart=/usr/bin/oscam -b -B /run/oscam.pid -c /etc/oscam + +[Install] +WantedBy=multi-user.target |