aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNick O'Connor <nick@o-connor.io>2020-10-22 01:10:42 -0400
committerNatanael Copa <ncopa@alpinelinux.org>2020-10-23 08:56:49 +0000
commit8b6f97c67de67dd8c7a22f9d5ec8cb6962da2fbd (patch)
tree4fbd607160d758d63fe4f7a79b2acb29a0872249
parent081484f303aa09da27165452ce8d1bee7256635b (diff)
main/nss-pam-ldapd: enable nss module
-rw-r--r--main/nss-pam-ldapd/10-define-netdb-internal.patch15
-rw-r--r--main/nss-pam-ldapd/APKBUILD14
2 files changed, 25 insertions, 4 deletions
diff --git a/main/nss-pam-ldapd/10-define-netdb-internal.patch b/main/nss-pam-ldapd/10-define-netdb-internal.patch
new file mode 100644
index 00000000000..039753c7c81
--- /dev/null
+++ b/main/nss-pam-ldapd/10-define-netdb-internal.patch
@@ -0,0 +1,15 @@
+Author: Nick O'Connor <nick@o-connor.io>
+Summary: Fixes musl compatibility
+----
+--- a/configure.ac.orig
++++ b/configure.ac
+@@ -499,6 +499,9 @@
+ #include <nsswitch.h>
+ #endif])
+
++ # if not defined, define NETDB_INTERNAL
++ AC_CHECK_DECL([NETDB_INTERNAL],,[AC_DEFINE([NETDB_INTERNAL], [-1], "define NETDB_INTERNAL")])
++
+ # check if struct nss_XbyY_args has a returnlen attribute
+ AC_CHECK_MEMBERS([struct nss_XbyY_args.returnlen],,, [[
+ #ifdef HAVE_NSS_H \ No newline at end of file
diff --git a/main/nss-pam-ldapd/APKBUILD b/main/nss-pam-ldapd/APKBUILD
index 8d29f1a2a20..aab67213f44 100644
--- a/main/nss-pam-ldapd/APKBUILD
+++ b/main/nss-pam-ldapd/APKBUILD
@@ -1,18 +1,23 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=nss-pam-ldapd
pkgver=0.9.11
-pkgrel=0
+pkgrel=1
pkgdesc="An nsswitch module which uses directory servers"
url="https://arthurdejong.org/nss-pam-ldapd/"
arch="all"
license="LGPL-2.0-or-later"
-depends_dev="linux-pam-dev openldap-dev"
-makedepends="$depends_dev"
+makedepends="autoconf automake linux-pam-dev openldap-dev musl-nscd-dev"
install="nss-pam-ldapd.pre-install"
subpackages="$pkgname-doc $pkgname-openrc"
source="https://arthurdejong.org/nss-pam-ldapd/nss-pam-ldapd-$pkgver.tar.gz
+ 10-define-netdb-internal.patch
nslcd.initd"
+prepare() {
+ default_prepare
+ autoreconf -fiv
+}
+
build() {
cd "$builddir"
./configure \
@@ -23,7 +28,7 @@ build() {
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--localstatedir=/var \
- --disable-nss
+ --libdir=/lib
make
}
@@ -34,4 +39,5 @@ package() {
}
sha512sums="2b307805667526b85c724e113fe38899eee397e5c8673e89090d4836ce6d0ffcf18dd022d6c20a5e11d4138e736451b841a0f16ba379d524de4faaaf02906645 nss-pam-ldapd-0.9.11.tar.gz
+8916713358d8e8b42877701aaec241a8052c5dd95047355daee4bfbfcf26e138063797a2fa06db0298f7406b58c1ee6da1483d37000d2fcf47c88da9008a7443 10-define-netdb-internal.patch
26db842fd517ccc0b242677d6e92c2fe66028e441681c8e6129150e81c93a282ae0c3142230f61b579f40596c2843ca1f2217d46f9d8fb3ba4b117896912355b nslcd.initd"