41 lines
1 KiB
Bash
41 lines
1 KiB
Bash
# Template file for 'NetAuth'
|
|
pkgname=NetAuth
|
|
version=0.3.4
|
|
revision=5
|
|
wrksrc=netauth-$version
|
|
build_style="go"
|
|
go_import_path="github.com/netauth/netauth"
|
|
go_package="${go_import_path}/cmd/netauth
|
|
${go_import_path}/cmd/netauthd"
|
|
hostmakedepends="git"
|
|
short_desc="Network authentication and identity system"
|
|
maintainer="Michael Aldridge <maldridge@voidlinux.org>"
|
|
license="MIT"
|
|
homepage="https://netauth.org"
|
|
distfiles="https://github.com/NetAuth/NetAuth/archive/v$version.tar.gz"
|
|
checksum=76811411d4ebd00876e553b4eb9c912c16ee5ebc5c6aaeab922e233275f56a94
|
|
|
|
do_check() {
|
|
go test -v ./...
|
|
}
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
vsv netauthd
|
|
}
|
|
|
|
NetAuth-server_package() {
|
|
short_desc+=" - server"
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
make_dirs="/var/lib/netauth 0755 _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
|
|
}
|
|
}
|