diff --git a/srcpkgs/NetAuth-server b/srcpkgs/NetAuth-server new file mode 120000 index 00000000000..8d552e69d57 --- /dev/null +++ b/srcpkgs/NetAuth-server @@ -0,0 +1 @@ +NetAuth \ No newline at end of file diff --git a/srcpkgs/NetAuth/template b/srcpkgs/NetAuth/template new file mode 100644 index 00000000000..18435116a4f --- /dev/null +++ b/srcpkgs/NetAuth/template @@ -0,0 +1,37 @@ +# Template file for 'NetAuth' +pkgname=NetAuth +version=0.0.8.1 +revision=1 +build_style=go +hostmakedepends="dep" +go_import_path="github.com/NetAuth/NetAuth" +go_package="${go_import_path}/cmd/netauth + ${go_import_path}/cmd/netauthd" +short_desc="Network authentication and identity system" +maintainer="Michael Aldridge " +license="MIT" +homepage="https://netauth.org" +distfiles="https://github.com/NetAuth/NetAuth/archive/v$version.tar.gz" +checksum=318f76c3f102afe9ef838f492d9fb75fc3e095c26560f8afd6a59bdca1b3a2e3 + +pre_build() { + cd $GOSRCPATH + dep ensure +} + +do_check() { + cd $GOSRCPATH + go test -v ./... +} + +post_install() { + vlicense LICENSE +} + +NetAuth-server_package() { + short_desc+=" - server" + depends="${sourcepkg}>=${version}_${revision}" + pkg_install() { + vmove usr/bin/netauthd + } +}