42 lines
1.0 KiB
Bash
42 lines
1.0 KiB
Bash
# Template file for 'NetAuth'
|
|
pkgname=NetAuth
|
|
version=0.4.2
|
|
revision=1
|
|
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@netauth.org>"
|
|
license="MIT"
|
|
homepage="https://netauth.org"
|
|
distfiles="https://github.com/NetAuth/NetAuth/archive/v$version.tar.gz"
|
|
checksum=09246b3a9579f56a9c55bc4beefad9c39e9afad434ac13c344e390ee89d707bb
|
|
|
|
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
|
|
}
|
|
}
|