Skip to content

Instantly share code, notes, and snippets.

@artixnous
Created December 21, 2016 08:33
Show Gist options
  • Save artixnous/e00163d1a6aa11f8116321d436193af3 to your computer and use it in GitHub Desktop.
Save artixnous/e00163d1a6aa11f8116321d436193af3 to your computer and use it in GitHub Desktop.
rpcbind-nosystemd
# $Id: PKGBUILD 282924 2016-12-07 16:49:26Z andyrtr $
# Maintainer: AndyRTR <[email protected]>
# Maintainer: Tobias Powalowski <[email protected]>
pkgname=rpcbind-nosystemd
_pkgname=rpcbind
pkgver=0.2.4
pkgrel=2
pkgdesc="portmap replacement which supports RPC over various protocols"
arch=(i686 x86_64)
backup=('etc/conf.d/rpcbind')
depends=('bash' 'glibc' 'libtirpc')
url="http://rpcbind.sourceforge.net"
license=('custom')
provides=('rpcbind')
replaces=('portmap' 'rpcbind')
conflicts=('rpcbind')
# see also http://git.infradead.org/users/steved/rpcbind.git
source=(https://downloads.sourceforge.net/sourceforge/$_pkgname/$_pkgname-$pkgver.tar.bz2
rpcbind-sunrpc.patch
rpcbind.conf)
install=rpcbind.install
sha1sums=('8a6045dd3397e9f71bf3a7c9d269e255cca537bd'
'1b997ce76f9727efc8c72fc5f97189591c9a60e2'
'08246ff18d12cee01e5c9391c6ba8f5597cac936')
prepare() {
cd $srcdir/$_pkgname-$pkgver
# patch for iana services file # FS#20273
patch -Np1 -i ../rpcbind-sunrpc.patch
# use distro config file; FS#52058
# patch -Np1 -i ../systemd_service.diff
}
build() {
cd $srcdir/$_pkgname-$pkgver
./configure --prefix=/usr \
--with-rpcuser=rpc \
--enable-warmstarts \
--with-statedir=/var/lib/rpcbind \
--without-systemdsystemunitdir
make
}
package() {
cd $srcdir/$_pkgname-$pkgver
make DESTDIR=$pkgdir install
# 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/
# add state directory
install -d -m 700 -o 32 -g 32 $pkgdir/var/lib/rpcbind
# install license
install -D -m644 COPYING $pkgdir/usr/share/licenses/rpcbind/COPYING
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment