mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
New package: NetAuth-ldap-0.1.0
This commit is contained in:
parent
a47b73335a
commit
1ba5c8983b
4 changed files with 42 additions and 0 deletions
12
srcpkgs/NetAuth-ldap/INSTALL
Normal file
12
srcpkgs/NetAuth-ldap/INSTALL
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
case "${ACTION}" in
|
||||||
|
post)
|
||||||
|
# Set CAP_NET_BIND_SERVICE capability or exit gracefully if we cannot set the capability
|
||||||
|
# due to invalid permissions (fakeroot install).
|
||||||
|
set +e
|
||||||
|
setcap 'cap_net_bind_service=+ep' /usr/bin/ldap
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
echo "ERROR: failed to set cap_net_bind_service capability on ldap."
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
4
srcpkgs/NetAuth-ldap/files/netauth-ldap/log/run
Normal file
4
srcpkgs/NetAuth-ldap/files/netauth-ldap/log/run
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
exec 2>&1
|
||||||
|
exec vlogger -t netauth-ldap
|
5
srcpkgs/NetAuth-ldap/files/netauth-ldap/run
Normal file
5
srcpkgs/NetAuth-ldap/files/netauth-ldap/run
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
[ -r ./conf ] && . ./conf
|
||||||
|
|
||||||
|
exec chpst -u _netauth_ldap:_netauth_ldap ldap 2>&1
|
21
srcpkgs/NetAuth-ldap/template
Normal file
21
srcpkgs/NetAuth-ldap/template
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
# Template file for 'NetAuth-ldap'
|
||||||
|
pkgname=NetAuth-ldap
|
||||||
|
version=0.1.0
|
||||||
|
revision=1
|
||||||
|
wrksrc=ldap-$version
|
||||||
|
build_style=go
|
||||||
|
go_import_path=github.com/netauth/ldap
|
||||||
|
go_ldflags="-X github.com/netauth/ldap/internal/buildinfo.Version=${version}"
|
||||||
|
hostmakedepends="git"
|
||||||
|
short_desc="LDAP Proxy for NetAuth"
|
||||||
|
maintainer="Michael Aldridge <maldridge@VoidLinux.org>"
|
||||||
|
license="MIT"
|
||||||
|
homepage="https://www.netauth.org/ecosystem/ldap"
|
||||||
|
distfiles="https://github.com/netauth/ldap/archive/v$version.tar.gz"
|
||||||
|
checksum=e179918429f133f8360bf9ee6a1ceefa283f245bf5ee0b705676fff9e1442fb4
|
||||||
|
system_accounts="_netauth_ldap"
|
||||||
|
|
||||||
|
post_install() {
|
||||||
|
vsv netauth-ldap
|
||||||
|
vlicense LICENSE
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue