2012-02-16 05:26:38 +08:00
|
|
|
|
2010-03-13 23:25:19 +08:00
|
|
|
pkgname=rpcbind
|
2015-06-08 04:43:58 +08:00
|
|
|
pkgver=0.2.3
|
|
|
|
pkgrel=1
|
2010-03-13 23:25:19 +08:00
|
|
|
pkgdesc="portmap replacement which supports RPC over various protocols"
|
2012-12-16 05:40:53 +08:00
|
|
|
arch=('x86_64')
|
2010-03-13 23:25:19 +08:00
|
|
|
depends=('bash' 'glibc' 'libtirpc')
|
|
|
|
url="http://rpcbind.sourceforge.net"
|
|
|
|
license=('custom')
|
2014-09-26 02:17:22 +08:00
|
|
|
source=("http://downloads.sourceforge.net/sourceforge/rpcbind/rpcbind-${pkgver}.tar.bz2"
|
2012-12-16 05:40:53 +08:00
|
|
|
'rpcbind-sunrpc.patch'
|
2014-09-26 02:17:22 +08:00
|
|
|
'rpcbind.service'
|
|
|
|
'rpcbind.socket'
|
|
|
|
'rpcbind.conf')
|
2014-09-30 13:58:57 +08:00
|
|
|
install=rpcbind.install
|
2015-06-08 04:43:58 +08:00
|
|
|
md5sums=('c8875246b2688a1adfbd6ad43480278d'
|
|
|
|
'68f403f51b72619fecdc3d57550a2fdb'
|
2014-09-26 02:17:22 +08:00
|
|
|
'0f493a590c250267034e230e7bf1f894'
|
|
|
|
'e5a205cd7402fedaf74a744b2a22f0ad'
|
|
|
|
'd4c74d1be9f98344af138a15ad3b6f8c')
|
2010-03-13 23:25:19 +08:00
|
|
|
|
2014-09-26 02:17:22 +08:00
|
|
|
prepare() {
|
|
|
|
cd $pkgname-$pkgver
|
2012-06-18 06:19:40 +08:00
|
|
|
patch -p1 -i ../rpcbind-sunrpc.patch
|
2014-09-26 02:17:22 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd $pkgname-$pkgver
|
|
|
|
./configure \
|
|
|
|
--prefix=/usr \
|
|
|
|
--with-rpcuser=rpc \
|
|
|
|
--enable-warmstarts \
|
|
|
|
--with-statedir=/var/lib/rpcbind
|
2012-02-16 05:26:38 +08:00
|
|
|
make
|
|
|
|
}
|
2014-09-26 02:17:22 +08:00
|
|
|
|
2012-02-16 05:26:38 +08:00
|
|
|
package() {
|
2014-09-26 02:17:22 +08:00
|
|
|
cd $pkgname-$pkgver
|
2012-12-16 05:40:53 +08:00
|
|
|
|
2012-02-16 05:26:38 +08:00
|
|
|
make DESTDIR=$pkgdir install
|
2014-09-26 02:17:22 +08:00
|
|
|
|
|
|
|
# install rpcbind config file
|
|
|
|
install -D -m644 $srcdir/rpcbind.conf $pkgdir/etc/conf.d/rpcbind
|
|
|
|
# install missing man page - https://bugs.archlinux.org/task/21271
|
|
|
|
install -m644 man/rpcinfo.8 $pkgdir/usr/share/man/man8/
|
2012-06-18 06:19:40 +08:00
|
|
|
# install systemd service file
|
|
|
|
install -D -m644 $srcdir/rpcbind.service $pkgdir/usr/lib/systemd/system/rpcbind.service
|
2014-09-26 02:17:22 +08:00
|
|
|
# install system socket activation
|
|
|
|
install -D -m644 $srcdir/rpcbind.socket $pkgdir/usr/lib/systemd/system/rpcbind.socket
|
|
|
|
|
|
|
|
# add symlinks
|
|
|
|
mkdir $pkgdir/usr/lib/systemd/system/sockets.target.wants
|
|
|
|
mkdir $pkgdir/usr/lib/systemd/system/multi-user.target.wants
|
|
|
|
ln -sf ../rpcbind.socket $pkgdir/usr/lib/systemd/system/sockets.target.wants/rpcbind.socket
|
|
|
|
ln -sf ../rpcbind.service $pkgdir/usr/lib/systemd/system/multi-user.target.wants/rpcbind.service
|
|
|
|
|
|
|
|
# add state directory
|
|
|
|
install -d -m 700 -o 32 -g 32 $pkgdir/var/lib/rpcbind
|
2010-03-13 23:25:19 +08:00
|
|
|
# install license
|
|
|
|
install -D -m644 COPYING $pkgdir/usr/share/licenses/rpcbind/COPYING
|
|
|
|
}
|