NetAuth: update to 0.3.4

This commit is contained in:
Michael Aldridge 2020-08-12 23:27:51 -07:00
parent 7d27984064
commit 1b3d0b0c6a
3 changed files with 22 additions and 2 deletions

View file

@ -0,0 +1,4 @@
#!/bin/sh
exec 2>&1
exec vlogger -t netauthd

View file

@ -0,0 +1,7 @@
#!/bin/sh
[ -r ./conf ] && . ./conf
cd /var/lib/netauthd/ || exit 1
chpst -u _netauthd:_netauthd netauthd 2>&1

View file

@ -1,6 +1,6 @@
# Template file for 'NetAuth'
pkgname=NetAuth
version=0.3.2
version=0.3.4
revision=1
wrksrc=netauth-$version
build_style="go"
@ -13,7 +13,7 @@ maintainer="Michael Aldridge <maldridge@voidlinux.org>"
license="MIT"
homepage="https://netauth.org"
distfiles="https://github.com/NetAuth/NetAuth/archive/v$version.tar.gz"
checksum=ad5251f2fa36a0a4175d5483bb5aa6de62efd7a0b048da9e2f4d1a5ff5fb86bb
checksum=76811411d4ebd00876e553b4eb9c912c16ee5ebc5c6aaeab922e233275f56a94
do_check() {
go test -v ./...
@ -21,12 +21,21 @@ do_check() {
post_install() {
vlicense LICENSE
vsv netauthd
}
NetAuth-server_package() {
short_desc+=" - server"
depends="${sourcepkg}>=${version}_${revision}"
make_dirs="/var/lib/netauth 0750 _netauth _netauth"
system_group="_netauth"
system_accounts="_netauth"
_netauth_homedir="/var/lib/netauth"
_netauth_shell="/bin/nologin"
_netauth_descr="Unprivileged service account"
_netauth_pgroup="_netauth"
pkg_install() {
vmove usr/bin/netauthd
vmove etc/sv/netauthd
}
}