23 lines
665 B
Bash
23 lines
665 B
Bash
# Template file for 'pam_netauth'
|
|
pkgname=pam_netauth
|
|
version=0.3.3
|
|
revision=1
|
|
build_style=go
|
|
go_import_path="github.com/netauth/pam_netauth"
|
|
hostmakedepends="git"
|
|
makedepends=pam-devel
|
|
short_desc="PAM plugin for NetAuth"
|
|
maintainer="Michael Aldridge <maldridge@netauth.org>"
|
|
license="MIT"
|
|
homepage="https://netauth.org"
|
|
distfiles="https://github.com/NetAuth/pam_netauth/archive/v$version.tar.gz"
|
|
checksum=974bec19c5c50181e72c3cc1ab3089a5d37a753a7147d432dc7d44caa7dfd9f6
|
|
|
|
do_build() {
|
|
go build -x -o pam_netauth.so -buildmode=c-shared -ldflags "${go_ldflags}" ${go_import_path}
|
|
}
|
|
|
|
do_install() {
|
|
vinstall pam_netauth.so 0755 usr/lib/security/
|
|
vlicense LICENSE
|
|
}
|