New package: rpcbind-0.2.0.

This commit is contained in:
Juan RP 2012-01-28 16:23:06 +01:00
parent d51e8b99a0
commit 74440a8ca2
4 changed files with 60 additions and 0 deletions

View file

@ -0,0 +1,9 @@
[Unit]
Description=RPC Bind
[Service]
Type=forking
ExecStart=/usr/bin/rpcbind
[Install]
WantedBy=multi-user.target

View file

@ -0,0 +1,24 @@
# patch for iana services file
--- src/rpcbind.c.orig 2008-11-19 14:17:34.000000000 +0100
+++ src/rpcbind.c 2010-01-07 13:03:37.416632894 +0100
@@ -114,7 +114,7 @@
char *udp_uaddr; /* Universal UDP address */
char *tcp_uaddr; /* Universal TCP address */
#endif
-static char servname[] = "rpcbind";
+static char servname[] = "sunrpc";
static char superuser[] = "superuser";
int main __P((int, char *[]));
--- src/rpcinfo.c~ 2010-01-08 16:14:24.592156602 +0000
+++ src/rpcinfo.c 2010-01-08 16:14:31.578838609 +0000
@@ -633,7 +633,7 @@
{
memset (&hints, 0, sizeof hints);
hints.ai_family = AF_INET;
- if ((error = getaddrinfo (host, "rpcbind", &hints, &res)) != 0 &&
+ if ((error = getaddrinfo (host, "sunrpc", &hints, &res)) != 0 &&
(error = getaddrinfo (host, "portmapper", &hints, &res)) != 0)
{
fprintf (stderr, "rpcinfo: %s: %s\n",

View file

@ -0,0 +1,3 @@
libtirpc.so.1
libpthread.so.0
libc.so.6

24
srcpkgs/rpcbind/template Normal file
View file

@ -0,0 +1,24 @@
# Template file for 'rpcbind'
pkgname=rpcbind
version=0.2.0
homepage="http://rpcbind.sourceforge.net"
distfiles="${SOURCEFORGE_SITE}/$pkgname/$pkgname-$version.tar.bz2"
build_style=gnu-configure
configure_args="--enable-warmstarts --with-statedir=/run"
short_desc="Converts RPC program numbers into universal addresses"
maintainer="Juan RP <xtraeme@gmail.com>"
checksum=c92f263e0353887f16379d7708ef1fb4c7eedcf20448bc1e4838f59497a00de3
long_desc="
The rpcbind utility is a server that converts RPC program numbers into
universal address. It must be running on the host to be able to make
RPC calls on a server on that machine."
systemd_services="${pkgname}.service on"
Add_dependency build libtirpc-devel
post_install() {
vinstall man/rpcbind.8 644 usr/share/man/man8
vinstall man/rpcinfo.8 644 usr/share/man/man8
vinstall ${FILESDIR}/${pkgname}.service 644 lib/systemd/system
}