opt/rpcbind/Pkgfile

32 lines
919 B
Plaintext

# Description: Server that converts RPC program numbers into universal addresses
# URL: http://sourceforge.net/projects/rpcbind/
# Maintainer: Juergen Daubert, jue at crux dot nu
# Depends on: libtirpc
name=rpcbind
version=0.2.4
release=3
source=(http://downloads.sourceforge.net/project/$name/$name/$version/$name-$version.tar.bz2 \
rpcbind-CVE-2017-8779.patch rpcbind)
build() {
cd $name-$version
# security fix, see
# http://openwall.com/lists/oss-security/2017/05/03/12
patch -p1 -i $SRC/rpcbind-CVE-2017-8779.patch
# use sunrpc instead of rpcbind as service-name
sed '/servname\[\]/s/rpcbind/sunrpc/' -i src/rpcbind.c
./configure --prefix=/usr \
--bindir=/sbin \
--disable-libwrap \
--without-systemdsystemunitdir
make
make DESTDIR=$PKG install
install -D -m 755 $SRC/rpcbind $PKG/etc/rc.d/rpcbind
}