Difference between revisions of "Libnfsidmap"

From CBLFS
Jump to navigationJump to search
m
(Multilib: Added a quick patch that's required for 0.25 and above seeing how they hard-code their plugins path)
 
Line 44: Line 44:
 
Configure and compile the package:
 
Configure and compile the package:
  
 +
sed -i "/PATH_PLUGINS/s:/usr/lib:&32:" libnfsidmap.c
 
  CC="gcc ${BUILDN32}" ./configure --prefix=/usr \
 
  CC="gcc ${BUILDN32}" ./configure --prefix=/usr \
 
     --libdir=/usr/lib32 &&
 
     --libdir=/usr/lib32 &&
Line 56: Line 57:
 
Configure and compile the package:
 
Configure and compile the package:
  
 +
sed -i "/PATH_PLUGINS/s:/usr/lib:&64:" libnfsidmap.c
 
  CC="gcc ${BUILD64}" ./configure --prefix=/usr \
 
  CC="gcc ${BUILD64}" ./configure --prefix=/usr \
 
     --libdir=/usr/lib64 &&
 
     --libdir=/usr/lib64 &&

Latest revision as of 05:39, 8 July 2013

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