Libnfsidmap

From CBLFS
Revision as of 06:39, 8 July 2013 by DX-MON (talk | contribs) (Multilib: Added a quick patch that's required for 0.25 and above seeing how they hard-code their plugins path)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search
Download Source: http://www.citi.umich.edu/projects/nfsv4/linux/libnfsidmap/libnfsidmap-0.25.tar.gz

Introduction to Libnfsidmap

Library to help mapping id's, mainly for NFSv4.

Project Homepage: http://www.citi.umich.edu/projects/nfsv4/linux/libnfsidmap/

Dependencies

Optional

Non-Multilib

Configure and compile the package:

./configure --prefix=/usr &&
make

Install the package:

make install &&
install -m644 -v idmapd.conf /etc/idmapd.conf

Multilib

32Bit

Configure and compile the package:

CC="gcc ${BUILD32}" ./configure --prefix=/usr &&
make

Install the package:

make install

N32

Configure and compile the package:

sed -i "/PATH_PLUGINS/s:/usr/lib:&32:" libnfsidmap.c
CC="gcc ${BUILDN32}" ./configure --prefix=/usr \
    --libdir=/usr/lib32 &&
make

Install the package:

make install

64Bit

Configure and compile the package:

sed -i "/PATH_PLUGINS/s:/usr/lib:&64:" libnfsidmap.c
CC="gcc ${BUILD64}" ./configure --prefix=/usr \
    --libdir=/usr/lib64 &&
make

Install the package:

make install &&
install -m644 -v idmapd.conf /etc/idmapd.conf

Configuring

idmapd.conf

Create a basic idmapd.conf, You can use the configuration file installed above as a base, edit as you see fit:

cat > /etc/idmapd.conf << "EOF"
# Begin /etc/idmapd.conf

[General]
Domain = <dns domain>

[Translation]
Method = nsswitch

# End of /etc/idmapd.conf
EOF