Files
buildroot/package/libnss-ato/libnss-ato.mk
Vincent Cruz 9624acf9aa 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>
2026-03-28 22:22:13 +01:00

27 lines
909 B
Makefile

################################################################################
#
# 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))