Files
Arch-R/packages/network/nfs-utils/install
Stephan Raue 829999d8b9 new package: add package 'nfs-utils'
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2010-12-06 19:56:06 +01:00

21 lines
597 B
Bash
Executable File

#!/bin/sh
. config/options $1
add_user rpcuser x 29 29 "RPC Service User" "/var/lib/nfs" "/bin/sh"
add_group rpcuser 29
mkdir -p $INSTALL/sbin
cp $PKG_BUILD/utils/mount/mount.nfs $INSTALL/sbin/
ln -sf mount.nfs $INSTALL/sbin/mount.nfs4
ln -sf mount.nfs $INSTALL/sbin/umount.nfs
ln -sf mount.nfs $INSTALL/sbin/umount.nfs4
mkdir -p $INSTALL/usr/sbin
cp $PKG_BUILD/utils/statd/statd $INSTALL/usr/sbin/rpc.statd
cp $PKG_BUILD/utils/statd/start-statd $INSTALL/usr/sbin/
chmod +x $INSTALL/usr/sbin/start-statd
mkdir -p $INSTALL/etc
cp $PKG_DIR/config/protocols $INSTALL/etc