From 1b3d0b0c6a64f3d635a45763bf4b0a21b5841e63 Mon Sep 17 00:00:00 2001 From: Michael Aldridge Date: Wed, 12 Aug 2020 23:27:51 -0700 Subject: [PATCH] NetAuth: update to 0.3.4 --- srcpkgs/NetAuth/files/netauthd/log/run | 4 ++++ srcpkgs/NetAuth/files/netauthd/run | 7 +++++++ srcpkgs/NetAuth/template | 13 +++++++++++-- 3 files changed, 22 insertions(+), 2 deletions(-) create mode 100644 srcpkgs/NetAuth/files/netauthd/log/run create mode 100644 srcpkgs/NetAuth/files/netauthd/run diff --git a/srcpkgs/NetAuth/files/netauthd/log/run b/srcpkgs/NetAuth/files/netauthd/log/run new file mode 100644 index 0000000000..c128c8e303 --- /dev/null +++ b/srcpkgs/NetAuth/files/netauthd/log/run @@ -0,0 +1,4 @@ +#!/bin/sh + +exec 2>&1 +exec vlogger -t netauthd diff --git a/srcpkgs/NetAuth/files/netauthd/run b/srcpkgs/NetAuth/files/netauthd/run new file mode 100644 index 0000000000..31aadf24d7 --- /dev/null +++ b/srcpkgs/NetAuth/files/netauthd/run @@ -0,0 +1,7 @@ +#!/bin/sh + +[ -r ./conf ] && . ./conf + +cd /var/lib/netauthd/ || exit 1 + +chpst -u _netauthd:_netauthd netauthd 2>&1 diff --git a/srcpkgs/NetAuth/template b/srcpkgs/NetAuth/template index 8c53de56dd..8a2cc84cd5 100644 --- a/srcpkgs/NetAuth/template +++ b/srcpkgs/NetAuth/template @@ -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 " 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 } }