mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-08-01 21:23:51 -09:00
package/libnss-ato: new package
The libnss_ato module is a set of C library extensions which allows to map every nss request for unknown user to a single predefined user. Signed-off-by: Vincent Jardin <vjardin@free.fr> Signed-off-by: Vincent Cruz <mooz@blockos.org> Signed-off-by: Julien Olivain <ju.o@free.fr>
This commit is contained in:
committed by
Julien Olivain
parent
6561290de5
commit
9624acf9aa
@@ -3362,6 +3362,7 @@ F: configs/nvidia_bf3_defconfig
|
||||
F: package/bfscripts/
|
||||
F: package/dpdk/
|
||||
F: package/libecoli/
|
||||
F: package/libnss-ato/
|
||||
F: package/libyang-cpp/
|
||||
F: package/sysrepo-cpp/
|
||||
|
||||
|
||||
@@ -1633,6 +1633,7 @@ menu "Crypto"
|
||||
source "package/libksba/Config.in"
|
||||
source "package/libmd/Config.in"
|
||||
source "package/libnss/Config.in"
|
||||
source "package/libnss-ato/Config.in"
|
||||
source "package/libp11/Config.in"
|
||||
source "package/libscrypt/Config.in"
|
||||
source "package/libsecret/Config.in"
|
||||
|
||||
11
package/libnss-ato/Config.in
Normal file
11
package/libnss-ato/Config.in
Normal file
@@ -0,0 +1,11 @@
|
||||
config BR2_PACKAGE_LIBNSS_ATO
|
||||
bool "libnss-ato"
|
||||
depends on BR2_TOOLCHAIN_USES_GLIBC
|
||||
help
|
||||
Library to map every nss request for unknown user to a
|
||||
single predefined user.
|
||||
|
||||
https://github.com/donapieppo/libnss-ato
|
||||
|
||||
comment "libnss-ato needs a glibc toolchain"
|
||||
depends on !BR2_TOOLCHAIN_USES_GLIBC
|
||||
4
package/libnss-ato/libnss-ato.hash
Normal file
4
package/libnss-ato/libnss-ato.hash
Normal file
@@ -0,0 +1,4 @@
|
||||
# Locally computed
|
||||
sha256 7fe56dcfaed74884fa1f9323d000135a4de2a32177a474ee2b9e4a217ae83994 libnss-ato-0.2.0.tar.gz
|
||||
sha256 3de3161d298c48e55d7416ad89130e13dd72263b93563f3fb79c899fa8450ce2 copyright
|
||||
sha256 e3a994d82e644b03a792a930f574002658412f62407f5fee083f2555c5f23118 lgpl-3.0.txt
|
||||
26
package/libnss-ato/libnss-ato.mk
Normal file
26
package/libnss-ato/libnss-ato.mk
Normal file
@@ -0,0 +1,26 @@
|
||||
################################################################################
|
||||
#
|
||||
# libnss-ato
|
||||
#
|
||||
################################################################################
|
||||
|
||||
LIBNSS_ATO_VERSION = 0.2.0
|
||||
LIBNSS_ATO_SITE = $(call github,donapieppo,libnss-ato,v$(LIBNSS_ATO_VERSION))
|
||||
LIBNSS_ATO_LICENSE = LGPL-3.0+
|
||||
LIBNSS_ATO_LICENSE_FILES = copyright lgpl-3.0.txt
|
||||
|
||||
# Skip the default build system (avoid patching Makefile for 1 .c)
|
||||
define LIBNSS_ATO_BUILD_CMDS
|
||||
$(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_LDFLAGS) \
|
||||
-fPIC -Wall -shared -o $(@D)/libnss_ato.so.2 \
|
||||
-Wl,-soname,libnss_ato.so.2 \
|
||||
$(@D)/libnss_ato.c
|
||||
endef
|
||||
|
||||
define LIBNSS_ATO_INSTALL_TARGET_CMDS
|
||||
$(INSTALL) -D -m 0755 $(@D)/libnss_ato.so.2 $(TARGET_DIR)/lib/libnss_ato.so.2
|
||||
ln -sf libnss_ato.so.2 $(TARGET_DIR)/lib/libnss_ato.so
|
||||
$(INSTALL) -D -m 0644 $(@D)/libnss-ato.conf $(TARGET_DIR)/etc/libnss-ato.conf
|
||||
endef
|
||||
|
||||
$(eval $(generic-package))
|
||||
Reference in New Issue
Block a user