2010-06-15 20:03:29 +02:00
|
|
|
# Description: Server that converts RPC program numbers into universal addresses
|
2021-05-11 13:37:06 +02:00
|
|
|
# URL: https://sourceforge.net/projects/rpcbind/
|
|
|
|
# Maintainer: Juergen Daubert, jue at crux dot nu
|
|
|
|
# Depends on: libtirpc
|
2010-06-15 20:03:29 +02:00
|
|
|
|
|
|
|
name=rpcbind
|
2021-05-11 13:37:06 +02:00
|
|
|
version=1.2.6
|
2022-02-15 18:25:57 +01:00
|
|
|
release=2
|
2020-06-06 13:00:05 +02:00
|
|
|
source=(https://downloads.sourceforge.net/project/$name/$name/$version/$name-$version.tar.bz2 \
|
2021-05-11 13:37:06 +02:00
|
|
|
rpcbind)
|
2010-06-15 20:03:29 +02:00
|
|
|
|
|
|
|
build() {
|
2021-05-11 13:37:06 +02:00
|
|
|
cd $name-$version
|
2015-11-04 10:33:33 +01:00
|
|
|
|
2021-05-11 13:37:06 +02:00
|
|
|
# use sunrpc instead of rpcbind as service-name
|
|
|
|
sed '/servname\[\]/s/rpcbind/sunrpc/' -i src/rpcbind.c
|
2022-02-15 18:25:57 +01:00
|
|
|
sed 's|/var/run|/run/rpcbind|' -i src/rpcbind.c
|
2018-07-22 11:16:21 +02:00
|
|
|
|
2021-05-11 13:37:06 +02:00
|
|
|
./configure \
|
|
|
|
--prefix=/usr \
|
|
|
|
--sbindir=/sbin \
|
2022-02-15 18:25:57 +01:00
|
|
|
--with-statedir=/run/rpcbind \
|
2021-05-11 13:37:06 +02:00
|
|
|
--disable-libwrap \
|
|
|
|
--without-systemdsystemunitdir
|
2015-11-04 10:33:33 +01:00
|
|
|
|
2021-05-11 13:37:06 +02:00
|
|
|
make
|
|
|
|
make DESTDIR=$PKG install
|
2015-11-04 10:33:33 +01:00
|
|
|
|
2021-05-11 13:37:06 +02:00
|
|
|
install -D -m 755 $SRC/rpcbind $PKG/etc/rc.d/rpcbind
|
2010-06-15 20:03:29 +02:00
|
|
|
}
|