From 74440a8ca2a6ea760d5edc344499169cff8b388e Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sat, 28 Jan 2012 16:23:06 +0100 Subject: [PATCH] New package: rpcbind-0.2.0. --- srcpkgs/rpcbind/files/rpcbind.service | 9 ++++++++ srcpkgs/rpcbind/patches/rpcbind-sunrpc.patch | 24 ++++++++++++++++++++ srcpkgs/rpcbind/rpcbind.rshlibs | 3 +++ srcpkgs/rpcbind/template | 24 ++++++++++++++++++++ 4 files changed, 60 insertions(+) create mode 100644 srcpkgs/rpcbind/files/rpcbind.service create mode 100644 srcpkgs/rpcbind/patches/rpcbind-sunrpc.patch create mode 100644 srcpkgs/rpcbind/rpcbind.rshlibs create mode 100644 srcpkgs/rpcbind/template diff --git a/srcpkgs/rpcbind/files/rpcbind.service b/srcpkgs/rpcbind/files/rpcbind.service new file mode 100644 index 00000000000..d3dafa3554f --- /dev/null +++ b/srcpkgs/rpcbind/files/rpcbind.service @@ -0,0 +1,9 @@ +[Unit] +Description=RPC Bind + +[Service] +Type=forking +ExecStart=/usr/bin/rpcbind + +[Install] +WantedBy=multi-user.target diff --git a/srcpkgs/rpcbind/patches/rpcbind-sunrpc.patch b/srcpkgs/rpcbind/patches/rpcbind-sunrpc.patch new file mode 100644 index 00000000000..b4a968944b6 --- /dev/null +++ b/srcpkgs/rpcbind/patches/rpcbind-sunrpc.patch @@ -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", diff --git a/srcpkgs/rpcbind/rpcbind.rshlibs b/srcpkgs/rpcbind/rpcbind.rshlibs new file mode 100644 index 00000000000..60aca072ab6 --- /dev/null +++ b/srcpkgs/rpcbind/rpcbind.rshlibs @@ -0,0 +1,3 @@ +libtirpc.so.1 +libpthread.so.0 +libc.so.6 diff --git a/srcpkgs/rpcbind/template b/srcpkgs/rpcbind/template new file mode 100644 index 00000000000..34a8b344038 --- /dev/null +++ b/srcpkgs/rpcbind/template @@ -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 " +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 +}