Compare commits

...

2 commits

Author SHA1 Message Date
lod
150badc66d use Ninja and deactivate signing 2024-10-21 17:51:10 +02:00
lod
a42bb63039 add LogDir, ProtectSystem=yes and capabilities to bind ports 2024-10-21 17:50:05 +02:00
3 changed files with 28 additions and 20 deletions

View file

@ -1,6 +1,6 @@
pkgbase = ncam-git pkgbase = ncam-git
pkgdesc = Open Source Conditional Access Module software pkgdesc = Open Source Conditional Access Module software
pkgver = f6f9d0cd pkgver = 0e88b8d9
pkgrel = 1 pkgrel = 1
url = https://github.com/fairbird/NCam url = https://github.com/fairbird/NCam
arch = x86_64 arch = x86_64
@ -9,8 +9,11 @@ pkgbase = ncam-git
arch = armv6h arch = armv6h
arch = armv7h arch = armv7h
arch = aarch64 arch = aarch64
license = GPL3 license = GPL-3.0-only
makedepends = git makedepends = git
makedepends = cmake
makedepends = ninja
depends = curl
depends = libusb depends = libusb
depends = openssl depends = openssl
depends = glibc depends = glibc
@ -22,7 +25,7 @@ pkgbase = ncam-git
source = ncam.service source = ncam.service
source = ncam.sysusers source = ncam.sysusers
b2sums = SKIP b2sums = SKIP
b2sums = 20dce0bc4dcdfd702af529c3e7176c647b99f9f2953fe5923eba6576a86cb91e2272a677faf6836ea634d23701308b215edffb8a41dd5996ac8a691fa9a6a74c b2sums = 8c06c8c22090b5c9ece7fa72af78e05ac79d41e3df7697901f530e844b6bca3d8c73fd6a80584a1640504d410edbff32d88cdeac8db35f88cf321e3f7c6d2bb0
b2sums = 3956ad1798949ad13710e446929e7c5bd344b080d38d7f08ad38df6199e19f5d1878651d64614651a851dce57610b478273535fd9f3b3680a6dbe87a835e3ecc b2sums = 3956ad1798949ad13710e446929e7c5bd344b080d38d7f08ad38df6199e19f5d1878651d64614651a851dce57610b478273535fd9f3b3680a6dbe87a835e3ecc
pkgname = ncam-git pkgname = ncam-git

View file

@ -3,14 +3,14 @@
# Contributer: Julian Xhokaxhiu <info@julianxhokaxhiu.com> # Contributer: Julian Xhokaxhiu <info@julianxhokaxhiu.com>
pkgname=ncam-git pkgname=ncam-git
pkgver=f6f9d0cd pkgver=0e88b8d9
pkgrel=1 pkgrel=1
pkgdesc="Open Source Conditional Access Module software" pkgdesc="Open Source Conditional Access Module software"
url="https://github.com/fairbird/NCam" url="https://github.com/fairbird/NCam"
arch=('x86_64' 'i686' 'arm' 'armv6h' 'armv7h' 'aarch64') arch=('x86_64' 'i686' 'arm' 'armv6h' 'armv7h' 'aarch64')
license=('GPL3') license=('GPL-3.0-only')
depends=('libusb' 'openssl' 'glibc' 'pcsclite') depends=('curl' 'libusb' 'openssl' 'glibc' 'pcsclite')
makedepends=('git') makedepends=('git' 'cmake' 'ninja')
optdepends=('ccid: PC/SC reader generic dsudriver') optdepends=('ccid: PC/SC reader generic dsudriver')
provides=('ncam') provides=('ncam')
backup=('etc/ncam/ncam.conf') backup=('etc/ncam/ncam.conf')
@ -18,7 +18,7 @@ source=("$pkgname::git+https://github.com/fairbird/NCam.git"
'ncam.service' 'ncam.service'
'ncam.sysusers') 'ncam.sysusers')
b2sums=('SKIP' b2sums=('SKIP'
'20dce0bc4dcdfd702af529c3e7176c647b99f9f2953fe5923eba6576a86cb91e2272a677faf6836ea634d23701308b215edffb8a41dd5996ac8a691fa9a6a74c' '8c06c8c22090b5c9ece7fa72af78e05ac79d41e3df7697901f530e844b6bca3d8c73fd6a80584a1640504d410edbff32d88cdeac8db35f88cf321e3f7c6d2bb0'
'3956ad1798949ad13710e446929e7c5bd344b080d38d7f08ad38df6199e19f5d1878651d64614651a851dce57610b478273535fd9f3b3680a6dbe87a835e3ecc') '3956ad1798949ad13710e446929e7c5bd344b080d38d7f08ad38df6199e19f5d1878651d64614651a851dce57610b478273535fd9f3b3680a6dbe87a835e3ecc')
pkgver() { pkgver() {
@ -28,24 +28,28 @@ pkgver() {
build() { build() {
cd $pkgname cd $pkgname
mkdir -p build
make allyesconfig cmake \
-B build \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \
-DDEFAULT_CS_CONFDIR=/etc/ncam \
-DUSE_SSL=ON \
-DUSE_LIBUSB=ON \
-DUSE_PCSC=ON \
-DWITH_SIGNING=OFF \
-G Ninja
make CONF_DIR=/etc/ncam \ ninja -C build
USE_SSL=1 \
USE_LIBUSB=1 \
USE_PCSC=1 \
NCAM_BIN=ncam \
LIST_SMARGO_BIN=list_smargo \
EXTRA_CC_WARN=-w
} }
package() { package() {
cd $pkgname cd $pkgname
#binaries #binaries
install -Dm755 ncam $pkgdir/usr/bin/ncam install -Dm755 build/ncam $pkgdir/usr/bin/ncam
install -Dm755 list_smargo $pkgdir/usr/bin/list_smargo install -Dm755 build/utils/list_smargo $pkgdir/usr/bin/list_smargo
#config examples #config examples
install -Dm644 Distribution/doc/example/ncam.conf -t $pkgdir/etc/ncam/ install -Dm644 Distribution/doc/example/ncam.conf -t $pkgdir/etc/ncam/
install -Dm644 Distribution/doc/example/* -t $pkgdir/usr/share/doc/ncam/ install -Dm644 Distribution/doc/example/* -t $pkgdir/usr/share/doc/ncam/

View file

@ -8,11 +8,12 @@ Type=forking
ExecStart=/usr/bin/ncam -b ExecStart=/usr/bin/ncam -b
User=ncam User=ncam
ConfigurationDirectory=ncam ConfigurationDirectory=ncam
LogsDirectory=ncam
PrivateTmp=yes PrivateTmp=yes
ProtectHome=yes ProtectHome=yes
ProtectSystem=strict ProtectSystem=yes
NoNewPrivileges=yes NoNewPrivileges=yes
ReadWritePaths=-/var/lib/ncam AmbientCapabilities=CAP_NET_BIND_SERVICE
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target