Initial Commit
- initial default booting image
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
From 8ddb983a546f632986a84a784c4625110f7782a2 Mon Sep 17 00:00:00 2001
|
||||
From: Arthur de Jong <arthur@arthurdejong.org>
|
||||
Date: Sun, 23 Feb 2025 15:22:38 +0100
|
||||
Subject: Fix variable name (bool) which is a keyword in C23
|
||||
|
||||
Closes https://bugs.debian.org/1097481
|
||||
|
||||
Upstream: https://arthurdejong.org/git/nss-pam-ldapd/commit/?id=8ddb983a546f632986a84a784c4625110f7782a2
|
||||
|
||||
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
|
||||
---
|
||||
nslcd/cfg.c | 6 +++---
|
||||
1 file changed, 3 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/nslcd/cfg.c b/nslcd/cfg.c
|
||||
index ded797a..b984b0e 100644
|
||||
--- a/nslcd/cfg.c
|
||||
+++ b/nslcd/cfg.c
|
||||
@@ -207,10 +207,10 @@ static int get_boolean(const char *filename, int lnr,
|
||||
return parse_boolean(filename, lnr, token);
|
||||
}
|
||||
|
||||
-static const char *print_boolean(int bool)
|
||||
+static const char *print_boolean(int value)
|
||||
{
|
||||
- if (bool) return "yes";
|
||||
- else return "no";
|
||||
+ if (value) return "yes";
|
||||
+ else return "no";
|
||||
}
|
||||
|
||||
#define TIME_MINUTES 60
|
||||
--
|
||||
cgit v1.2.3
|
||||
|
||||
25
package/nss-pam-ldapd/Config.in
Normal file
25
package/nss-pam-ldapd/Config.in
Normal file
@@ -0,0 +1,25 @@
|
||||
config BR2_PACKAGE_NSS_PAM_LDAPD
|
||||
bool "nss-pam-ldapd"
|
||||
depends on BR2_TOOLCHAIN_USES_GLIBC
|
||||
select BR2_PACKAGE_OPENLDAP
|
||||
help
|
||||
Name Service Switch (NSS) module that allows your LDAP
|
||||
server to provide user account, group, host name, alias,
|
||||
netgroup, and basically any other information that you would
|
||||
normally get from /etc flat files or NIS. It also provides a
|
||||
Pluggable Authentication Module (PAM) to do authentication
|
||||
to an LDAP server.
|
||||
|
||||
http://arthurdejong.org/nss-pam-ldapd/
|
||||
|
||||
if BR2_PACKAGE_NSS_PAM_LDAPD
|
||||
|
||||
config BR2_PACKAGE_NSS_PAM_LDAPD_UTILITIES
|
||||
bool "nss-pam-ldapd utilities"
|
||||
help
|
||||
Build/Install command-line utilities.
|
||||
|
||||
endif
|
||||
|
||||
comment "nss-pam-ldapd needs a glibc toolchain"
|
||||
depends on !BR2_TOOLCHAIN_USES_GLIBC
|
||||
25
package/nss-pam-ldapd/S45nslcd
Normal file
25
package/nss-pam-ldapd/S45nslcd
Normal file
@@ -0,0 +1,25 @@
|
||||
#!/bin/sh
|
||||
|
||||
NAME="nslcd"
|
||||
DAEMON="/usr/sbin/${NAME}"
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
echo -n "Starting ${NAME}: "
|
||||
start-stop-daemon -S -x ${DAEMON}
|
||||
[ $? -eq 0 ] && echo "OK" || echo "FAIL"
|
||||
;;
|
||||
stop)
|
||||
echo -n "Stopping ${NAME}: "
|
||||
start-stop-daemon -K -x ${DAEMON}
|
||||
[ $? -eq 0 ] && echo "OK" || echo "FAIL"
|
||||
;;
|
||||
restart|reload)
|
||||
$0 stop
|
||||
$0 start
|
||||
;;
|
||||
*)
|
||||
echo "Usage: $0 {start|stop|restart|reload}"
|
||||
exit 1
|
||||
esac
|
||||
|
||||
11
package/nss-pam-ldapd/nslcd.service
Normal file
11
package/nss-pam-ldapd/nslcd.service
Normal file
@@ -0,0 +1,11 @@
|
||||
[Unit]
|
||||
Description=Naming services LDAP client daemon.
|
||||
After=syslog.target network.target
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
PIDFile=/run/nslcd/nslcd.pid
|
||||
ExecStart=/usr/sbin/nslcd
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
5
package/nss-pam-ldapd/nss-pam-ldapd.hash
Normal file
5
package/nss-pam-ldapd/nss-pam-ldapd.hash
Normal file
@@ -0,0 +1,5 @@
|
||||
# From https://arthurdejong.org/nss-pam-ldapd/nss-pam-ldapd-0.9.13.tar.gz.md5
|
||||
md5 f6fbb61e537029804c401741ecb76224 nss-pam-ldapd-0.9.13.tar.gz
|
||||
# Locally computed:
|
||||
sha256 e01784e17cb533bb66bd0601e205e785263445c3c2df7a6f90232ab4131c716d nss-pam-ldapd-0.9.13.tar.gz
|
||||
sha256 5df07007198989c622f5d41de8d703e7bef3d0e79d62e24332ee739a452af62a COPYING
|
||||
43
package/nss-pam-ldapd/nss-pam-ldapd.mk
Normal file
43
package/nss-pam-ldapd/nss-pam-ldapd.mk
Normal file
@@ -0,0 +1,43 @@
|
||||
################################################################################
|
||||
#
|
||||
# nss-pam-ldapd
|
||||
#
|
||||
################################################################################
|
||||
|
||||
NSS_PAM_LDAPD_VERSION = 0.9.13
|
||||
NSS_PAM_LDAPD_SITE = http://arthurdejong.org/nss-pam-ldapd
|
||||
NSS_PAM_LDAPD_LICENSE = LGPL-2.1+
|
||||
NSS_PAM_LDAPD_LICENSE_FILES = COPYING
|
||||
NSS_PAM_LDAPD_INSTALL_STAGING = YES
|
||||
|
||||
NSS_PAM_LDAPD_CONF_OPTS = --disable-sasl
|
||||
NSS_PAM_LDAPD_DEPENDENCIES = openldap
|
||||
|
||||
ifeq ($(BR2_PACKAGE_NSS_PAM_LDAPD_UTILITIES),y)
|
||||
NSS_PAM_LDAPD_CONF_OPTS += --enable-utils
|
||||
else
|
||||
NSS_PAM_LDAPD_CONF_OPTS += --disable-utils
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LINUX_PAM),y)
|
||||
NSS_PAM_LDAPD_CONF_OPTS += --enable-pam
|
||||
NSS_PAM_LDAPD_DEPENDENCIES += linux-pam
|
||||
else
|
||||
NSS_PAM_LDAPD_CONF_OPTS += --disable-pam
|
||||
endif
|
||||
|
||||
define NSS_PAM_LDAPD_INSTALL_INIT_SYSTEMD
|
||||
$(INSTALL) -m 644 -D package/nss-pam-ldapd/nslcd.service \
|
||||
$(TARGET_DIR)/usr/lib/systemd/system/nslcd.service
|
||||
endef
|
||||
|
||||
define NSS_PAM_LDAPD_INSTALL_INIT_SYSV
|
||||
$(INSTALL) -m 755 -D package/nss-pam-ldapd/S45nslcd \
|
||||
$(TARGET_DIR)/etc/init.d/S45nslcd
|
||||
endef
|
||||
|
||||
define NSS_PAM_LDAPD_USERS
|
||||
nslcd -1 nslcd -1 * - - - nslcd user
|
||||
endef
|
||||
|
||||
$(eval $(autotools-package))
|
||||
Reference in New Issue
Block a user