core/rpcbind/PKGBUILD

40 lines
1.2 KiB
Bash

#
# Core Packages for Chakra, part of chakra-project.org
#
# maintainer (i686): Samir Benmendil <ram-z[at]chakra-project[dot]org>
# maintainer (x86_64): Samir Benmendil <ram-z[at]chakra-project[dot]org>
pkgname=rpcbind
pkgver=0.2.0
pkgrel=4
pkgdesc="portmap replacement which supports RPC over various protocols"
arch=(i686 x86_64)
depends=('bash' 'glibc' 'libtirpc')
url="http://rpcbind.sourceforge.net"
license=('custom')
source=(http://downloads.sourceforge.net/sourceforge/rpcbind/rpcbind-0.2.0.tar.bz2
rpcbind
rpcbind-sunrpc.patch
rpcbind.service)
md5sums=('1a77ddb1aaea8099ab19c351eeb26316'
'78a963654f57cbb209e228884767836e'
'c02ac36a98baac70b8a26190524b7b73'
'd2615f4c0d58f154aab6e294997ac9be')
build() {
cd $srcdir/$pkgname-$pkgver
patch -p1 -i ../rpcbind-sunrpc.patch
./configure --prefix=/usr
make
}
package() {
cd $srcdir/$pkgname-$pkgver
make DESTDIR=$pkgdir install
# install daemon
install -D -m755 $srcdir/rpcbind $pkgdir/etc/rc.d/rpcbind
# install systemd service file
install -D -m644 $srcdir/rpcbind.service $pkgdir/usr/lib/systemd/system/rpcbind.service
# install license
install -D -m644 COPYING $pkgdir/usr/share/licenses/rpcbind/COPYING
}