eglibc: add /etc/nsswitch.conf support

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2010-10-28 04:20:16 +02:00
parent 64dbed46e6
commit 7914cfcfb7
3 changed files with 26 additions and 4 deletions

View File

@ -53,6 +53,8 @@ EOF
# needed by PAM: OPTION_EGLIBC_GETLOGIN = y # needed by PAM: OPTION_EGLIBC_GETLOGIN = y
# needed by PAM: OPTION_EGLIBC_UTMP = y # needed by PAM: OPTION_EGLIBC_UTMP = y
# libiconv replacement: OPTION_EGLIBC_CHARSETS = y # libiconv replacement: OPTION_EGLIBC_CHARSETS = y
# OPTION_EGLIBC_NSSWITCH_FIXED_CONFIG = $NSS_CONF_DIR/fixed-nsswitch.conf
# OPTION_EGLIBC_NSSWITCH_FIXED_FUNCTIONS = $NSS_CONF_DIR/fixed-nsswitch.functions
cat >options-groups.conf <<EOF cat >options-groups.conf <<EOF
OPTION_EGLIBC_ADVANCED_INET6 = n OPTION_EGLIBC_ADVANCED_INET6 = n
@ -62,9 +64,7 @@ OPTION_EGLIBC_CATGETS = n
OPTION_EGLIBC_DB_ALIASES = n OPTION_EGLIBC_DB_ALIASES = n
OPTION_EGLIBC_LOCALES = n OPTION_EGLIBC_LOCALES = n
OPTION_EGLIBC_NIS = n OPTION_EGLIBC_NIS = n
OPTION_EGLIBC_NSSWITCH = n OPTION_EGLIBC_NSSWITCH = y
OPTION_EGLIBC_NSSWITCH_FIXED_CONFIG = $NSS_CONF_DIR/fixed-nsswitch.conf
OPTION_EGLIBC_NSSWITCH_FIXED_FUNCTIONS = $NSS_CONF_DIR/fixed-nsswitch.functions
OPTION_EGLIBC_RCMD = n OPTION_EGLIBC_RCMD = n
OPTION_EGLIBC_RTLD_DEBUG = n OPTION_EGLIBC_RTLD_DEBUG = n
OPTION_POSIX_REGEXP_GLIBC = n OPTION_POSIX_REGEXP_GLIBC = n
@ -90,7 +90,7 @@ EOF
--enable-bind-now \ --enable-bind-now \
--with-elf \ --with-elf \
--with-tls \ --with-tls \
--enable-kernel=2.6.35 \ --enable-kernel=2.6.36 \
--with-__thread \ --with-__thread \
--with-binutils=$BUILD/toolchain/bin \ --with-binutils=$BUILD/toolchain/bin \
--with-headers=$SYSROOT_PREFIX/usr/include \ --with-headers=$SYSROOT_PREFIX/usr/include \

View File

@ -0,0 +1,19 @@
# /etc/nsswitch.conf
#
# Example configuration of GNU Name Service Switch functionality.
#
passwd: db files
group: db files
shadow: db files
gshadow: files
hosts: files dns
networks: files dns
protocols: db files
services: db files
ethers: db files
rpc: db files
netgroup: db files

View File

@ -30,3 +30,6 @@ mkdir -p $INSTALL/bin
# didn't yet find a way to separate only needed modules. # didn't yet find a way to separate only needed modules.
# the way they are used is described within gconv-modules though # the way they are used is described within gconv-modules though
cp $PKG_BUILD/objdir-$1/iconvdata/*.so $INSTALL/usr/lib/gconv cp $PKG_BUILD/objdir-$1/iconvdata/*.so $INSTALL/usr/lib/gconv
mkdir -p $INSTALL/etc
cp $PKG_DIR/config/nsswitch.conf $INSTALL/etc