Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] nss-pam-ldapd: update to 0.9.13.
@ 2025-02-10 21:36 Emru1
  2025-02-18  3:45 ` [PR PATCH] [Closed]: " classabbyamp
  0 siblings, 1 reply; 2+ messages in thread
From: Emru1 @ 2025-02-10 21:36 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 665 bytes --]

There is a new pull request by Emru1 against master on the void-packages repository

https://github.com/Emru1/void-packages nss-pam-ldapd
https://github.com/void-linux/void-packages/pull/54280

nss-pam-ldapd: update to 0.9.13.
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

#### Local build testing
- I built this PR locally for my native architecture, x86_64
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - armv7l-musl


A patch file from https://github.com/void-linux/void-packages/pull/54280.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-nss-pam-ldapd-54280.patch --]
[-- Type: text/x-diff, Size: 3760 bytes --]

From 821efc3b5a6ff90c999e2b13796e1aafc163d605 Mon Sep 17 00:00:00 2001
From: Emil Tomczyk <emru@emru.xyz>
Date: Mon, 10 Feb 2025 19:30:55 +0100
Subject: [PATCH] nss-pam-ldapd: update to 0.9.13.

---
 srcpkgs/nss-pam-ldapd/files/nslcd/run         |  7 ++++-
 .../nss-pam-ldapd-0.9.12-netdb-defines.patch  | 26 -------------------
 srcpkgs/nss-pam-ldapd/template                | 17 +++++++-----
 3 files changed, 17 insertions(+), 33 deletions(-)
 delete mode 100644 srcpkgs/nss-pam-ldapd/patches/nss-pam-ldapd-0.9.12-netdb-defines.patch

diff --git a/srcpkgs/nss-pam-ldapd/files/nslcd/run b/srcpkgs/nss-pam-ldapd/files/nslcd/run
index c17fecb4e4af86..67e6eac2d5157e 100644
--- a/srcpkgs/nss-pam-ldapd/files/nslcd/run
+++ b/srcpkgs/nss-pam-ldapd/files/nslcd/run
@@ -1,5 +1,10 @@
 #!/bin/sh
 exec 2>&1
+
+[ -r conf ] && . ./conf
+
+NSLCD_CONF=${NSLCD_CONF:-/etc/nslcd.conf}
+
 mkdir -p /var/run/nslcd
 chown nslcd:nslcd /var/run/nslcd
-exec chpst -u nslcd:nslcd nslcd -n
+exec chpst -u nslcd:nslcd nslcd -n -f "$NSLCD_CONF"
diff --git a/srcpkgs/nss-pam-ldapd/patches/nss-pam-ldapd-0.9.12-netdb-defines.patch b/srcpkgs/nss-pam-ldapd/patches/nss-pam-ldapd-0.9.12-netdb-defines.patch
deleted file mode 100644
index 1b43686c28e73e..00000000000000
--- a/srcpkgs/nss-pam-ldapd/patches/nss-pam-ldapd-0.9.12-netdb-defines.patch
+++ /dev/null
@@ -1,26 +0,0 @@
-Bug: https://bugs.gentoo.org/716272
-
---- a/nss/hosts.c
-+++ b/nss/hosts.c
-@@ -49,6 +49,9 @@
-   *h_errnop = NO_RECOVERY;                                                  \
-   return NSS_STATUS_UNAVAIL;
-
-+#ifndef NETDB_INTERNAL
-+#define NETDB_INTERNAL -1
-+#endif
- #undef ERROR_OUT_BUFERROR
- #define ERROR_OUT_BUFERROR(fp)                                              \
-   *errnop = ERANGE;                                                         \
---- a/nss/networks.c
-+++ b/nss/networks.c
-@@ -49,6 +49,9 @@
-   *h_errnop = NO_RECOVERY;                                                  \
-   return NSS_STATUS_UNAVAIL;
-
-+#ifndef NETDB_INTERNAL
-+#define NETDB_INTERNAL -1
-+#endif
- #undef ERROR_OUT_BUFERROR
- #define ERROR_OUT_BUFERROR(fp)                                              \
-   *errnop = ERANGE;                                                         \
diff --git a/srcpkgs/nss-pam-ldapd/template b/srcpkgs/nss-pam-ldapd/template
index 83944593610ef4..5edb8f641a7e56 100644
--- a/srcpkgs/nss-pam-ldapd/template
+++ b/srcpkgs/nss-pam-ldapd/template
@@ -1,18 +1,18 @@
 # Template file for 'nss-pam-ldapd'
 pkgname=nss-pam-ldapd
-version=0.9.12
-revision=3
+version=0.9.13
+revision=1
 build_style=gnu-configure
 configure_args="--enable-sasl --enable-kerberos --with-pam-seclib-dir=/usr/lib/security/"
 conf_files="/etc/nslcd.conf"
 hostmakedepends="autoconf automake"
 makedepends="pam-devel libldap-devel libsasl-devel mit-krb5-devel"
-short_desc="LDAP identity management via nsswitch"
+short_desc="NSS and PAM support for LDAP"
 maintainer="Michael Aldridge <maldridge@voidlinux.org>"
 license="LGPL-2.1-or-later"
 homepage="https://arthurdejong.org/nss-pam-ldapd/"
-distfiles="https://github.com/arthurdejong/nss-pam-ldapd/archive/$version.tar.gz"
-checksum=829b2371be42c040108165d2ea422eb6f6cacba6a01083f67025752a574a685b
+distfiles="https://arthurdejong.org/nss-pam-ldapd/nss-pam-ldapd-${version}.tar.gz"
+checksum=e01784e17cb533bb66bd0601e205e785263445c3c2df7a6f90232ab4131c716d
 system_accounts="nslcd"
 
 case "$XBPS_TARGET_MACHINE" in
@@ -23,11 +23,16 @@ pre_configure() {
 	case "$XBPS_TARGET_MACHINE" in
 		*musl)
 			vsed -i 's/ lookup_netgroup / /' tests/Makefile.am
+			autoreconf -fi
 			;;
 	esac
-	./autogen.sh
 }
 
 post_install() {
 	vsv nslcd
+	vman man/nslcd.8
+	vman man/nslcd.conf.5
+	vman man/chsh.ldap.1
+	vman man/getent.ldap.1
+	vman man/pam_ldap.8
 }

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PR PATCH] [Closed]: nss-pam-ldapd: update to 0.9.13.
  2025-02-10 21:36 [PR PATCH] nss-pam-ldapd: update to 0.9.13 Emru1
@ 2025-02-18  3:45 ` classabbyamp
  0 siblings, 0 replies; 2+ messages in thread
From: classabbyamp @ 2025-02-18  3:45 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 512 bytes --]

There's a closed pull request on the void-packages repository

nss-pam-ldapd: update to 0.9.13.
https://github.com/void-linux/void-packages/pull/54280

Description:
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

#### Local build testing
- I built this PR locally for my native architecture, x86_64
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - armv7l-musl


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-02-18  3:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-02-10 21:36 [PR PATCH] nss-pam-ldapd: update to 0.9.13 Emru1
2025-02-18  3:45 ` [PR PATCH] [Closed]: " classabbyamp

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).