talimat 950 B

1234567891011121314151617181920212223242526272829303132333435
  1. # Description: portmap replacement which supports RPC over various protocols
  2. # URL: http://rpcbind.sourceforge.net/
  3. # Packager: alienus at nutyx dot org, tnut at nutyx dot org
  4. # Depends on: libtirpc
  5. name=rpcbind
  6. version=0.2.3
  7. release=1
  8. source=(http://downloads.sourceforge.net/rpcbind/rpcbind-$version.tar.bz2 )
  9. build() {
  10. source /etc/blfs-bootscripts
  11. wget http://www.linuxfromscratch.org/blfs/downloads/svn/$scripts-$scriptsversion.tar.bz2
  12. tar xvf $scripts-$scriptsversion.tar.bz2
  13. cd rpcbind-$version
  14. sed -i "/servname/s:rpcbind:sunrpc:" src/rpcbind.c
  15. ./configure --prefix=/usr \
  16. --bindir=/sbin \
  17. --with-rpcuser=root \
  18. --without-systemdsystemunitdir
  19. make
  20. make DESTDIR=$PKG install
  21. cd ../$scripts-$scriptsversion
  22. make DESTDIR=$PKG install-rpcbind
  23. make DESTDIR=$PKG install-netfs
  24. # cut is in /bin
  25. sed -i "s,usr/bin/cut,bin/cut," $PKG/etc/rc.d/init.d/netfs
  26. }