[WIP] PKGBUILD to build and install knot on ArchLinux
archlinux aur pkgbuild

Let's forget hardening for now

-2
.SRCINFO
··· 18 18 source = git+https://tangled.org/tangled.org/core 19 19 source = knotserver.service 20 20 source = openssh.conf 21 - source = sysuser.conf 22 21 source = tmpfile.conf 23 22 source = sample-.knot.env 24 23 source = sample-nginx.conf 25 - sha256sums = SKIP 26 24 sha256sums = SKIP 27 25 sha256sums = SKIP 28 26 sha256sums = SKIP
+2 -4
PKGBUILD
··· 4 4 5 5 _pkgname='tangled-knot' 6 6 pkgname="${_pkgname}-git" 7 - pkgver=1.11.0.alpha.r14.gdb394ce9 7 + pkgver=1.11.0.alpha.r22.ga8e82883 8 8 pkgrel=1 9 9 pkgdesc='Tangled knot — a code colaboration planform built on the AT protocol (development version)' 10 10 arch=('aarch64' 'x86_64') ··· 22 22 "git+$url" 23 23 'knotserver.service' 24 24 'openssh.conf' 25 - 'sysuser.conf' 26 25 'tmpfile.conf' 27 26 'sample-.knot.env' 28 27 'sample-nginx.conf' 29 28 ) 30 - sha256sums=('SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP') 29 + sha256sums=('SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP') 31 30 install="$_pkgname.install" 32 31 33 32 pkgver() { ··· 87 86 cd "$srcdir" 88 87 89 88 install -vDm0644 -t "$pkgdir/usr/lib/systemd/system" knotserver.service 90 - install -vDm0644 sysuser.conf "$pkgdir/usr/lib/sysusers.d/$_pkgname.conf" 91 89 install -vDm0644 tmpfile.conf "$pkgdir/usr/lib/tmpfiles.d/$_pkgname.conf" 92 90 install -vDm0644 openssh.conf "$pkgdir/etc/ssh/sshd_config.d/$_pkgname.conf" 93 91
+2 -2
knotserver.service
··· 8 8 User=git 9 9 WorkingDirectory=/home/git 10 10 EnvironmentFile=/home/git/.knot.env 11 - ProtectSystem=strict 12 - ReadWritePaths=/home/git 11 + #ProtectSystem=strict 12 + #ReadWritePaths=/run /home/git 13 13 StandardOutput=journal 14 14 StandardError=journal 15 15 LimitNOFILE=65536