commit 8abb1ecbc0a62038a23c2bd8629e9ac93c405044 Author: horstderheld Date: Mon Jul 24 01:43:04 2023 +0200 initial commit diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000..c520e2f --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,28 @@ +pkgbase = ncam-git + pkgdesc = Open Source Conditional Access Module software + pkgver = f6f9d0cd + pkgrel = 1 + url = https://github.com/fairbird/NCam + arch = x86_64 + arch = i686 + arch = arm + arch = armv6h + arch = armv7h + arch = aarch64 + license = GPL3 + makedepends = git + depends = libusb + depends = openssl + depends = glibc + depends = pcsclite + optdepends = ccid: PC/SC reader generic dsudriver + conflicts = oscam-svn + backup = etc/ncam/ncam.conf + source = ncam-git::git+https://github.com/fairbird/NCam.git + source = ncam.service + source = ncam.sysusers + b2sums = SKIP + b2sums = 20dce0bc4dcdfd702af529c3e7176c647b99f9f2953fe5923eba6576a86cb91e2272a677faf6836ea634d23701308b215edffb8a41dd5996ac8a691fa9a6a74c + b2sums = 3956ad1798949ad13710e446929e7c5bd344b080d38d7f08ad38df6199e19f5d1878651d64614651a851dce57610b478273535fd9f3b3680a6dbe87a835e3ecc + +pkgname = ncam-git diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..b967e78 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,58 @@ +# Maintainer: lod +# Contributer: Christopher Reimer +# Contributer: Julian Xhokaxhiu + +pkgname=ncam-git +pkgver=f6f9d0cd +pkgrel=1 +pkgdesc="Open Source Conditional Access Module software" +url="https://github.com/fairbird/NCam" +arch=('x86_64' 'i686' 'arm' 'armv6h' 'armv7h' 'aarch64') +license=('GPL3') +depends=('libusb' 'openssl' 'glibc' 'pcsclite') +makedepends=('git') +optdepends=('ccid: PC/SC reader generic dsudriver') +conflicts=('oscam-svn') +backup=('etc/ncam/ncam.conf') +source=("$pkgname::git+https://github.com/fairbird/NCam.git" + 'ncam.service' + 'ncam.sysusers') +b2sums=('SKIP' + '20dce0bc4dcdfd702af529c3e7176c647b99f9f2953fe5923eba6576a86cb91e2272a677faf6836ea634d23701308b215edffb8a41dd5996ac8a691fa9a6a74c' + '3956ad1798949ad13710e446929e7c5bd344b080d38d7f08ad38df6199e19f5d1878651d64614651a851dce57610b478273535fd9f3b3680a6dbe87a835e3ecc') + +pkgver() { + cd $pkgname + printf "%s" $(git rev-parse --short HEAD) +} + +build() { + cd $pkgname + + make allyesconfig + + make CONF_DIR=/etc/ncam \ + USE_SSL=1 \ + USE_LIBUSB=1 \ + USE_PCSC=1 \ + NCAM_BIN=ncam \ + LIST_SMARGO_BIN=list_smargo \ + EXTRA_CC_WARN=-w +} + +package() { + cd $pkgname + + #binaries + install -Dm755 ncam $pkgdir/usr/bin/ncam + install -Dm755 list_smargo $pkgdir/usr/bin/list_smargo + #config examples + install -Dm644 Distribution/doc/example/ncam.conf -t $pkgdir/etc/ncam/ + install -Dm644 Distribution/doc/example/* -t $pkgdir/usr/share/doc/ncam/ + #man-pages + install -Dm644 Distribution/doc/man/*.1 -t $pkgdir/usr/share/man/man1 + install -Dm644 Distribution/doc/man/*.5 -t $pkgdir/usr/share/man/man5 + #service and sysuser + install -Dm644 $srcdir/ncam.service $pkgdir/usr/lib/systemd/system/ncam.service + install -Dm644 $srcdir/ncam.sysusers $pkgdir/usr/lib/sysusers.d/ncam.conf +} diff --git a/ncam.service b/ncam.service new file mode 100644 index 0000000..8630532 --- /dev/null +++ b/ncam.service @@ -0,0 +1,18 @@ +[Unit] +Description=Open Source Conditional Access Module +Wants=pcscd.service +After=tmp.mount network.target + +[Service] +Type=forking +ExecStart=/usr/bin/ncam -b +User=ncam +ConfigurationDirectory=ncam +PrivateTmp=yes +ProtectHome=yes +ProtectSystem=strict +NoNewPrivileges=yes +ReadWritePaths=-/var/lib/ncam + +[Install] +WantedBy=multi-user.target diff --git a/ncam.sysusers b/ncam.sysusers new file mode 100644 index 0000000..7c1d3c5 --- /dev/null +++ b/ncam.sysusers @@ -0,0 +1,3 @@ +u ncam - "ncam user" /var/lib/ncam +m ncam uucp +m ncam video