[arch-commits] Commit in rpcbind/repos (10 files)

2016-12-01 Thread Andreas Radke
Date: Thursday, December 1, 2016 @ 21:08:21
  Author: andyrtr
Revision: 282497

archrelease: copy trunk to testing-i686, testing-x86_64

Added:
  rpcbind/repos/testing-i686/
  rpcbind/repos/testing-i686/PKGBUILD
(from rev 282496, rpcbind/trunk/PKGBUILD)
  rpcbind/repos/testing-i686/rpcbind-sunrpc.patch
(from rev 282496, rpcbind/trunk/rpcbind-sunrpc.patch)
  rpcbind/repos/testing-i686/rpcbind.conf
(from rev 282496, rpcbind/trunk/rpcbind.conf)
  rpcbind/repos/testing-i686/rpcbind.install
(from rev 282496, rpcbind/trunk/rpcbind.install)
  rpcbind/repos/testing-x86_64/
  rpcbind/repos/testing-x86_64/PKGBUILD
(from rev 282496, rpcbind/trunk/PKGBUILD)
  rpcbind/repos/testing-x86_64/rpcbind-sunrpc.patch
(from rev 282496, rpcbind/trunk/rpcbind-sunrpc.patch)
  rpcbind/repos/testing-x86_64/rpcbind.conf
(from rev 282496, rpcbind/trunk/rpcbind.conf)
  rpcbind/repos/testing-x86_64/rpcbind.install
(from rev 282496, rpcbind/trunk/rpcbind.install)

-+
 testing-i686/PKGBUILD   |   57 ++
 testing-i686/rpcbind-sunrpc.patch   |   11 ++
 testing-i686/rpcbind.conf   |3 +
 testing-i686/rpcbind.install|8 
 testing-x86_64/PKGBUILD |   57 ++
 testing-x86_64/rpcbind-sunrpc.patch |   11 ++
 testing-x86_64/rpcbind.conf |3 +
 testing-x86_64/rpcbind.install  |8 
 8 files changed, 158 insertions(+)

Copied: rpcbind/repos/testing-i686/PKGBUILD (from rev 282496, 
rpcbind/trunk/PKGBUILD)
===
--- testing-i686/PKGBUILD   (rev 0)
+++ testing-i686/PKGBUILD   2016-12-01 21:08:21 UTC (rev 282497)
@@ -0,0 +1,57 @@
+# $Id$
+# Maintainer: AndyRTR 
+# Maintainer: Tobias Powalowski 
+
+pkgname=rpcbind
+pkgver=0.2.4
+pkgrel=1
+pkgdesc="portmap replacement which supports RPC over various protocols"
+arch=(i686 x86_64)
+backup=('etc/conf.d/rpcbind')
+makedepends=('systemd')
+depends=('bash' 'glibc' 'libtirpc' 'libsystemd')
+url="http://rpcbind.sourceforge.net";
+license=('custom')
+replaces=('portmap')
+# 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.service
+#rpcbind.socket
+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
+}
+
+build() {
+  cd $srcdir/$pkgname-$pkgver
+  ./configure --prefix=/usr \
+--with-rpcuser=rpc \
+--enable-warmstarts \
+--with-statedir=/var/lib/rpcbind
+  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/
+  # install systemd service file
+#  install -D -m644 $srcdir/rpcbind.service 
$pkgdir/usr/lib/systemd/system/rpcbind.service
+  # install system socket activation
+#  install -D -m644 $srcdir/rpcbind.socket 
$pkgdir/usr/lib/systemd/system/rpcbind.socket
+  # 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
+}

Copied: rpcbind/repos/testing-i686/rpcbind-sunrpc.patch (from rev 282496, 
rpcbind/trunk/rpcbind-sunrpc.patch)
===
--- testing-i686/rpcbind-sunrpc.patch   (rev 0)
+++ testing-i686/rpcbind-sunrpc.patch   2016-12-01 21:08:21 UTC (rev 282497)
@@ -0,0 +1,11 @@
+--- rpcbind-0.2.3/src/rpcbind.c2015-04-27 16:07:43.0 +0200
 rpcbind-0.2.3/src/rpcbind.c.new2015-04-27 19:48:44.518124944 +0200
+@@ -132,7 +132,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 *[]));

Copied: rpcbind/repos/testing-i686/rpcbind.conf (from rev 282496, 
rpcbind/trunk/rpcbind.conf)
===
--- testing-i686/rpcbind.conf   (rev 0)
+++ testing-i686/rpcbind.conf   2016-12-01 21:08:21 UTC (rev 282497)
@@ -0,0 +1,3 @@
+#
+# Optional arguments passed to rpcbind. See rpcbind(8)
+RPCBIND_ARGS=""

Copied: rpcbind/repos/testing-i686/rpcbind.install (from rev 282496, 
rpcbind/trunk/rpcbind.install)
=

[arch-commits] Commit in rpcbind/repos (10 files)

2014-06-18 Thread Tobias Powalowski
Date: Wednesday, June 18, 2014 @ 23:00:08
  Author: tpowa
Revision: 215301

archrelease: copy trunk to testing-i686, testing-x86_64

Added:
  rpcbind/repos/testing-i686/
  rpcbind/repos/testing-i686/PKGBUILD
(from rev 215300, rpcbind/trunk/PKGBUILD)
  rpcbind/repos/testing-i686/rpcbind-sunrpc.patch
(from rev 215300, rpcbind/trunk/rpcbind-sunrpc.patch)
  rpcbind/repos/testing-i686/rpcbind.install
(from rev 215300, rpcbind/trunk/rpcbind.install)
  rpcbind/repos/testing-i686/rpcbind.service
(from rev 215300, rpcbind/trunk/rpcbind.service)
  rpcbind/repos/testing-x86_64/
  rpcbind/repos/testing-x86_64/PKGBUILD
(from rev 215300, rpcbind/trunk/PKGBUILD)
  rpcbind/repos/testing-x86_64/rpcbind-sunrpc.patch
(from rev 215300, rpcbind/trunk/rpcbind-sunrpc.patch)
  rpcbind/repos/testing-x86_64/rpcbind.install
(from rev 215300, rpcbind/trunk/rpcbind.install)
  rpcbind/repos/testing-x86_64/rpcbind.service
(from rev 215300, rpcbind/trunk/rpcbind.service)

-+
 testing-i686/PKGBUILD   |   49 ++
 testing-i686/rpcbind-sunrpc.patch   |   22 +++
 testing-i686/rpcbind.install|   13 +
 testing-i686/rpcbind.service|   13 +
 testing-x86_64/PKGBUILD |   49 ++
 testing-x86_64/rpcbind-sunrpc.patch |   22 +++
 testing-x86_64/rpcbind.install  |   13 +
 testing-x86_64/rpcbind.service  |   13 +
 8 files changed, 194 insertions(+)

Copied: rpcbind/repos/testing-i686/PKGBUILD (from rev 215300, 
rpcbind/trunk/PKGBUILD)
===
--- testing-i686/PKGBUILD   (rev 0)
+++ testing-i686/PKGBUILD   2014-06-18 21:00:08 UTC (rev 215301)
@@ -0,0 +1,49 @@
+# $Id$
+# Maintainer: Tobias Powalowski 
+
+pkgname=rpcbind
+pkgver=0.2.1
+pkgrel=3
+pkgdesc="portmap replacement which supports RPC over various protocols"
+arch=(i686 x86_64)
+depends=('bash' 'glibc' 'libtirpc')
+url="http://rpcbind.sourceforge.net";
+license=('custom')
+replaces=('portmap')
+source=(http://downloads.sourceforge.net/sourceforge/rpcbind/rpcbind-0.2.1.tar.bz2
+rpcbind-sunrpc.patch
+rpcbind.service)
+install=rpcbind.install
+md5sums=('0a5f9c2142af814c55d957aaab3bcc68'
+ 'c02ac36a98baac70b8a26190524b7b73'
+ 'a7b23a32be2eb52d7dec52da36d4eba1'
+)
+prepare() {
+  cd $srcdir/$pkgname-$pkgver
+  # patch for iana services file
+  patch -Np1 -i ../rpcbind-sunrpc.patch
+}
+
+build() {
+  cd $srcdir/$pkgname-$pkgver
+  ./configure --prefix=/usr --with-rpcuser=rpc --enable-warmstarts 
--with-statedir=/var/lib/rpcbind
+  make
+}
+
+check() {
+  cd $srcdir/$pkgname-$pkgver
+  make check
+}
+
+package() {
+  cd $srcdir/$pkgname-$pkgver
+  make DESTDIR=$pkgdir install
+  # install missing man page - https://bugs.archlinux.org/task/21271
+  install -m644 man/rpcinfo.8 $pkgdir/usr/share/man/man8/
+  # install systemd service file
+  install -D -m644 $srcdir/rpcbind.service 
$pkgdir/usr/lib/systemd/system/rpcbind.service
+  # 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
+}

Copied: rpcbind/repos/testing-i686/rpcbind-sunrpc.patch (from rev 215300, 
rpcbind/trunk/rpcbind-sunrpc.patch)
===
--- testing-i686/rpcbind-sunrpc.patch   (rev 0)
+++ testing-i686/rpcbind-sunrpc.patch   2014-06-18 21:00:08 UTC (rev 215301)
@@ -0,0 +1,22 @@
+--- rpcbind-0.1.7/src/rpcbind.c.orig   2008-11-19 14:17:34.0 +0100
 rpcbind-0.1.7/src/rpcbind.c2010-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 *[]));
+--- rpcbind-0.1.7/src/rpcinfo.c~   2010-01-08 16:14:24.592156602 +
 rpcbind-0.1.7/src/rpcinfo.c2010-01-08 16:14:31.578838609 +
+@@ -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",

Copied: rpcbind/repos/testing-i686/rpcbind.install (from rev 215300, 
rpcbind/trunk/rpcbind.install)
===
--- testing-i686/rpcbind.install(rev 0)
+++ testing-i686/rpcbind.install2014-06-18 21:00:08 UTC (rev 215301)
@@ -0,0 +1,13 @@
+pos

[arch-commits] Commit in rpcbind/repos (10 files)

2013-08-20 Thread Tobias Powalowski
Date: Tuesday, August 20, 2013 @ 11:44:47
  Author: tpowa
Revision: 193448

archrelease: copy trunk to testing-i686, testing-x86_64

Added:
  rpcbind/repos/testing-i686/
  rpcbind/repos/testing-i686/PKGBUILD
(from rev 193447, rpcbind/trunk/PKGBUILD)
  rpcbind/repos/testing-i686/rpcbind-sunrpc.patch
(from rev 193447, rpcbind/trunk/rpcbind-sunrpc.patch)
  rpcbind/repos/testing-i686/rpcbind.install
(from rev 193447, rpcbind/trunk/rpcbind.install)
  rpcbind/repos/testing-i686/rpcbind.service
(from rev 193447, rpcbind/trunk/rpcbind.service)
  rpcbind/repos/testing-x86_64/
  rpcbind/repos/testing-x86_64/PKGBUILD
(from rev 193447, rpcbind/trunk/PKGBUILD)
  rpcbind/repos/testing-x86_64/rpcbind-sunrpc.patch
(from rev 193447, rpcbind/trunk/rpcbind-sunrpc.patch)
  rpcbind/repos/testing-x86_64/rpcbind.install
(from rev 193447, rpcbind/trunk/rpcbind.install)
  rpcbind/repos/testing-x86_64/rpcbind.service
(from rev 193447, rpcbind/trunk/rpcbind.service)

-+
 testing-i686/PKGBUILD   |   47 ++
 testing-i686/rpcbind-sunrpc.patch   |   22 +++
 testing-i686/rpcbind.install|   13 +
 testing-i686/rpcbind.service|   13 +
 testing-x86_64/PKGBUILD |   47 ++
 testing-x86_64/rpcbind-sunrpc.patch |   22 +++
 testing-x86_64/rpcbind.install  |   13 +
 testing-x86_64/rpcbind.service  |   13 +
 8 files changed, 190 insertions(+)

Copied: rpcbind/repos/testing-i686/PKGBUILD (from rev 193447, 
rpcbind/trunk/PKGBUILD)
===
--- testing-i686/PKGBUILD   (rev 0)
+++ testing-i686/PKGBUILD   2013-08-20 09:44:47 UTC (rev 193448)
@@ -0,0 +1,47 @@
+# $Id$
+# Maintainer: Tobias Powalowski 
+
+pkgname=rpcbind
+pkgver=0.2.1
+pkgrel=2
+pkgdesc="portmap replacement which supports RPC over various protocols"
+arch=(i686 x86_64)
+depends=('bash' 'glibc' 'libtirpc')
+url="http://rpcbind.sourceforge.net";
+license=('custom')
+replaces=('portmap')
+source=(http://downloads.sourceforge.net/sourceforge/rpcbind/rpcbind-0.2.1.tar.bz2
+rpcbind-sunrpc.patch
+rpcbind.service)
+install=rpcbind.install
+md5sums=('0a5f9c2142af814c55d957aaab3bcc68'
+ 'c02ac36a98baac70b8a26190524b7b73'
+ 'a7b23a32be2eb52d7dec52da36d4eba1'
+)
+prepare() {
+  cd $srcdir/$pkgname-$pkgver
+  # patch for iana services file
+  patch -Np1 -i ../rpcbind-sunrpc.patch
+}
+
+build() {
+  cd $srcdir/$pkgname-$pkgver
+  ./configure --prefix=/usr --with-rpcuser=rpc --enable-warmstarts 
--with-statedir=/run
+  make
+}
+
+check() {
+  cd $srcdir/$pkgname-$pkgver
+  make check
+}
+
+package() {
+  cd $srcdir/$pkgname-$pkgver
+  make DESTDIR=$pkgdir install
+  # install missing man page - https://bugs.archlinux.org/task/21271
+  install -m644 man/rpcinfo.8 $pkgdir/usr/share/man/man8/
+  # 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
+}

Copied: rpcbind/repos/testing-i686/rpcbind-sunrpc.patch (from rev 193447, 
rpcbind/trunk/rpcbind-sunrpc.patch)
===
--- testing-i686/rpcbind-sunrpc.patch   (rev 0)
+++ testing-i686/rpcbind-sunrpc.patch   2013-08-20 09:44:47 UTC (rev 193448)
@@ -0,0 +1,22 @@
+--- rpcbind-0.1.7/src/rpcbind.c.orig   2008-11-19 14:17:34.0 +0100
 rpcbind-0.1.7/src/rpcbind.c2010-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 *[]));
+--- rpcbind-0.1.7/src/rpcinfo.c~   2010-01-08 16:14:24.592156602 +
 rpcbind-0.1.7/src/rpcinfo.c2010-01-08 16:14:31.578838609 +
+@@ -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",

Copied: rpcbind/repos/testing-i686/rpcbind.install (from rev 193447, 
rpcbind/trunk/rpcbind.install)
===
--- testing-i686/rpcbind.install(rev 0)
+++ testing-i686/rpcbind.install2013-08-20 09:44:47 UTC (rev 193448)
@@ -0,0 +1,13 @@
+post_install() {
+   getent group rpc &>/dev/null || groupadd -r -g 32 rpc >/dev/null
+  

[arch-commits] Commit in rpcbind/repos (10 files)

2013-05-05 Thread Tom Gundersen
Date: Sunday, May 5, 2013 @ 22:46:44
  Author: tomegun
Revision: 184312

archrelease: copy trunk to staging-i686, staging-x86_64

Added:
  rpcbind/repos/staging-i686/
  rpcbind/repos/staging-i686/PKGBUILD
(from rev 184311, rpcbind/trunk/PKGBUILD)
  rpcbind/repos/staging-i686/rpcbind
(from rev 184311, rpcbind/trunk/rpcbind)
  rpcbind/repos/staging-i686/rpcbind-sunrpc.patch
(from rev 184311, rpcbind/trunk/rpcbind-sunrpc.patch)
  rpcbind/repos/staging-i686/rpcbind.service
(from rev 184311, rpcbind/trunk/rpcbind.service)
  rpcbind/repos/staging-x86_64/
  rpcbind/repos/staging-x86_64/PKGBUILD
(from rev 184311, rpcbind/trunk/PKGBUILD)
  rpcbind/repos/staging-x86_64/rpcbind
(from rev 184311, rpcbind/trunk/rpcbind)
  rpcbind/repos/staging-x86_64/rpcbind-sunrpc.patch
(from rev 184311, rpcbind/trunk/rpcbind-sunrpc.patch)
  rpcbind/repos/staging-x86_64/rpcbind.service
(from rev 184311, rpcbind/trunk/rpcbind.service)

-+
 staging-i686/PKGBUILD   |   46 ++
 staging-i686/rpcbind|   39 
 staging-i686/rpcbind-sunrpc.patch   |   22 
 staging-i686/rpcbind.service|   13 +
 staging-x86_64/PKGBUILD |   46 ++
 staging-x86_64/rpcbind  |   39 
 staging-x86_64/rpcbind-sunrpc.patch |   22 
 staging-x86_64/rpcbind.service  |   13 +
 8 files changed, 240 insertions(+)

Copied: rpcbind/repos/staging-i686/PKGBUILD (from rev 184311, 
rpcbind/trunk/PKGBUILD)
===
--- staging-i686/PKGBUILD   (rev 0)
+++ staging-i686/PKGBUILD   2013-05-05 20:46:44 UTC (rev 184312)
@@ -0,0 +1,46 @@
+# $Id$
+# Maintainer: Tobias Powalowski 
+
+pkgname=rpcbind
+pkgver=0.2.0
+pkgrel=11
+pkgdesc="portmap replacement which supports RPC over various protocols"
+arch=(i686 x86_64)
+depends=('bash' 'glibc' 'libtirpc')
+url="http://rpcbind.sourceforge.net";
+license=('custom')
+replaces=('portmap')
+source=(http://downloads.sourceforge.net/sourceforge/rpcbind/rpcbind-0.2.0.tar.bz2
+rpcbind-sunrpc.patch
+rpcbind.service
+rpcbind)
+md5sums=('1a77ddb1aaea8099ab19c351eeb26316'
+ 'c02ac36a98baac70b8a26190524b7b73'
+ 'a7b23a32be2eb52d7dec52da36d4eba1'
+ '78a963654f57cbb209e228884767836e')
+
+build() {
+  cd $srcdir/$pkgname-$pkgver
+  # patch for iana services file
+  patch -Np1 -i ../rpcbind-sunrpc.patch
+  ./configure --prefix=/usr --enable-warmstarts --with-statedir=/run
+  make
+}
+
+check() {
+  cd $srcdir/$pkgname-$pkgver
+  make check
+}
+
+package() {
+  cd $srcdir/$pkgname-$pkgver
+  make DESTDIR=$pkgdir install
+  # install missing man page - https://bugs.archlinux.org/task/21271
+  install -m644 man/rpcinfo.8 $pkgdir/usr/share/man/man8/
+  # 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
+}

Copied: rpcbind/repos/staging-i686/rpcbind (from rev 184311, 
rpcbind/trunk/rpcbind)
===
--- staging-i686/rpcbind(rev 0)
+++ staging-i686/rpcbind2013-05-05 20:46:44 UTC (rev 184312)
@@ -0,0 +1,39 @@
+#!/bin/bash
+
+. /etc/rc.conf
+. /etc/rc.d/functions
+
+PID="$(pidof -o %PPID /usr/bin/rpcbind)"
+case "$1" in
+  start)
+stat_busy "Starting rpcbind"
+[ -z "$PID" ] && /usr/bin/rpcbind &>/dev/null
+if [ $? -gt 0 ]; then
+  stat_fail
+else
+  PID=$(pidof -o %PPID /usr/bin/rpcbind)
+  echo $PID > /var/run/rpcbind.pid
+  add_daemon rpcbind
+  stat_done
+fi
+;;
+  stop)
+stat_busy "Stopping rpcbind"
+[ ! -z "$PID" ]  && kill $PID &> /dev/null
+if [ $? -gt 0 ]; then
+  stat_fail
+else
+  rm /var/run/rpcbind.pid
+  rm_daemon rpcbind
+  stat_done
+fi
+;;
+  restart)
+$0 stop
+sleep 1
+$0 start
+;;
+  *)
+echo "usage: $0 {start|stop|restart}"  
+esac
+exit 0

Copied: rpcbind/repos/staging-i686/rpcbind-sunrpc.patch (from rev 184311, 
rpcbind/trunk/rpcbind-sunrpc.patch)
===
--- staging-i686/rpcbind-sunrpc.patch   (rev 0)
+++ staging-i686/rpcbind-sunrpc.patch   2013-05-05 20:46:44 UTC (rev 184312)
@@ -0,0 +1,22 @@
+--- rpcbind-0.1.7/src/rpcbind.c.orig   2008-11-19 14:17:34.0 +0100
 rpcbind-0.1.7/src/rpcbind.c2010-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 servnam

[arch-commits] Commit in rpcbind/repos (10 files)

2013-05-05 Thread Tom Gundersen
Date: Sunday, May 5, 2013 @ 21:19:27
  Author: tomegun
Revision: 184301

archrelease: copy trunk to testing-i686, testing-x86_64

Added:
  rpcbind/repos/testing-i686/
  rpcbind/repos/testing-i686/PKGBUILD
(from rev 184300, rpcbind/trunk/PKGBUILD)
  rpcbind/repos/testing-i686/rpcbind
(from rev 184300, rpcbind/trunk/rpcbind)
  rpcbind/repos/testing-i686/rpcbind-sunrpc.patch
(from rev 184300, rpcbind/trunk/rpcbind-sunrpc.patch)
  rpcbind/repos/testing-i686/rpcbind.service
(from rev 184300, rpcbind/trunk/rpcbind.service)
  rpcbind/repos/testing-x86_64/
  rpcbind/repos/testing-x86_64/PKGBUILD
(from rev 184300, rpcbind/trunk/PKGBUILD)
  rpcbind/repos/testing-x86_64/rpcbind
(from rev 184300, rpcbind/trunk/rpcbind)
  rpcbind/repos/testing-x86_64/rpcbind-sunrpc.patch
(from rev 184300, rpcbind/trunk/rpcbind-sunrpc.patch)
  rpcbind/repos/testing-x86_64/rpcbind.service
(from rev 184300, rpcbind/trunk/rpcbind.service)

-+
 testing-i686/PKGBUILD   |   46 ++
 testing-i686/rpcbind|   39 
 testing-i686/rpcbind-sunrpc.patch   |   22 
 testing-i686/rpcbind.service|   13 +
 testing-x86_64/PKGBUILD |   46 ++
 testing-x86_64/rpcbind  |   39 
 testing-x86_64/rpcbind-sunrpc.patch |   22 
 testing-x86_64/rpcbind.service  |   13 +
 8 files changed, 240 insertions(+)

Copied: rpcbind/repos/testing-i686/PKGBUILD (from rev 184300, 
rpcbind/trunk/PKGBUILD)
===
--- testing-i686/PKGBUILD   (rev 0)
+++ testing-i686/PKGBUILD   2013-05-05 19:19:27 UTC (rev 184301)
@@ -0,0 +1,46 @@
+# $Id$
+# Maintainer: Tobias Powalowski 
+
+pkgname=rpcbind
+pkgver=0.2.0
+pkgrel=10
+pkgdesc="portmap replacement which supports RPC over various protocols"
+arch=(i686 x86_64)
+depends=('bash' 'glibc' 'libtirpc')
+url="http://rpcbind.sourceforge.net";
+license=('custom')
+replaces=('portmap')
+source=(http://downloads.sourceforge.net/sourceforge/rpcbind/rpcbind-0.2.0.tar.bz2
+rpcbind-sunrpc.patch
+rpcbind.service
+rpcbind)
+md5sums=('1a77ddb1aaea8099ab19c351eeb26316'
+ 'c02ac36a98baac70b8a26190524b7b73'
+ 'a7b23a32be2eb52d7dec52da36d4eba1'
+ '78a963654f57cbb209e228884767836e')
+
+build() {
+  cd $srcdir/$pkgname-$pkgver
+  # patch for iana services file
+  patch -Np1 -i ../rpcbind-sunrpc.patch
+  ./configure --prefix=/usr --enable-warmstarts --with-statedir=/run
+  make
+}
+
+check() {
+  cd $srcdir/$pkgname-$pkgver
+  make check
+}
+
+package() {
+  cd $srcdir/$pkgname-$pkgver
+  make DESTDIR=$pkgdir install
+  # install missing man page - https://bugs.archlinux.org/task/21271
+  install -m644 man/rpcinfo.8 $pkgdir/usr/share/man/man8/
+  # 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
+}

Copied: rpcbind/repos/testing-i686/rpcbind (from rev 184300, 
rpcbind/trunk/rpcbind)
===
--- testing-i686/rpcbind(rev 0)
+++ testing-i686/rpcbind2013-05-05 19:19:27 UTC (rev 184301)
@@ -0,0 +1,39 @@
+#!/bin/bash
+
+. /etc/rc.conf
+. /etc/rc.d/functions
+
+PID="$(pidof -o %PPID /usr/bin/rpcbind)"
+case "$1" in
+  start)
+stat_busy "Starting rpcbind"
+[ -z "$PID" ] && /usr/bin/rpcbind &>/dev/null
+if [ $? -gt 0 ]; then
+  stat_fail
+else
+  PID=$(pidof -o %PPID /usr/bin/rpcbind)
+  echo $PID > /var/run/rpcbind.pid
+  add_daemon rpcbind
+  stat_done
+fi
+;;
+  stop)
+stat_busy "Stopping rpcbind"
+[ ! -z "$PID" ]  && kill $PID &> /dev/null
+if [ $? -gt 0 ]; then
+  stat_fail
+else
+  rm /var/run/rpcbind.pid
+  rm_daemon rpcbind
+  stat_done
+fi
+;;
+  restart)
+$0 stop
+sleep 1
+$0 start
+;;
+  *)
+echo "usage: $0 {start|stop|restart}"  
+esac
+exit 0

Copied: rpcbind/repos/testing-i686/rpcbind-sunrpc.patch (from rev 184300, 
rpcbind/trunk/rpcbind-sunrpc.patch)
===
--- testing-i686/rpcbind-sunrpc.patch   (rev 0)
+++ testing-i686/rpcbind-sunrpc.patch   2013-05-05 19:19:27 UTC (rev 184301)
@@ -0,0 +1,22 @@
+--- rpcbind-0.1.7/src/rpcbind.c.orig   2008-11-19 14:17:34.0 +0100
 rpcbind-0.1.7/src/rpcbind.c2010-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 servnam

[arch-commits] Commit in rpcbind/repos (10 files)

2012-08-23 Thread Tobias Powalowski
Date: Thursday, August 23, 2012 @ 08:23:46
  Author: tpowa
Revision: 165544

archrelease: copy trunk to testing-i686, testing-x86_64

Added:
  rpcbind/repos/testing-i686/
  rpcbind/repos/testing-i686/PKGBUILD
(from rev 165543, rpcbind/trunk/PKGBUILD)
  rpcbind/repos/testing-i686/rpcbind
(from rev 165543, rpcbind/trunk/rpcbind)
  rpcbind/repos/testing-i686/rpcbind-sunrpc.patch
(from rev 165543, rpcbind/trunk/rpcbind-sunrpc.patch)
  rpcbind/repos/testing-i686/rpcbind.service
(from rev 165543, rpcbind/trunk/rpcbind.service)
  rpcbind/repos/testing-x86_64/
  rpcbind/repos/testing-x86_64/PKGBUILD
(from rev 165543, rpcbind/trunk/PKGBUILD)
  rpcbind/repos/testing-x86_64/rpcbind
(from rev 165543, rpcbind/trunk/rpcbind)
  rpcbind/repos/testing-x86_64/rpcbind-sunrpc.patch
(from rev 165543, rpcbind/trunk/rpcbind-sunrpc.patch)
  rpcbind/repos/testing-x86_64/rpcbind.service
(from rev 165543, rpcbind/trunk/rpcbind.service)

-+
 testing-i686/PKGBUILD   |   46 ++
 testing-i686/rpcbind|   39 
 testing-i686/rpcbind-sunrpc.patch   |   22 
 testing-i686/rpcbind.service|   13 +
 testing-x86_64/PKGBUILD |   46 ++
 testing-x86_64/rpcbind  |   39 
 testing-x86_64/rpcbind-sunrpc.patch |   22 
 testing-x86_64/rpcbind.service  |   13 +
 8 files changed, 240 insertions(+)

Copied: rpcbind/repos/testing-i686/PKGBUILD (from rev 165543, 
rpcbind/trunk/PKGBUILD)
===
--- testing-i686/PKGBUILD   (rev 0)
+++ testing-i686/PKGBUILD   2012-08-23 12:23:46 UTC (rev 165544)
@@ -0,0 +1,46 @@
+# $Id$
+# Maintainer: Tobias Powalowski 
+
+pkgname=rpcbind
+pkgver=0.2.0
+pkgrel=9
+pkgdesc="portmap replacement which supports RPC over various protocols"
+arch=(i686 x86_64)
+depends=('bash' 'glibc' 'libtirpc')
+url="http://rpcbind.sourceforge.net";
+license=('custom')
+replaces=('portmap')
+source=(http://downloads.sourceforge.net/sourceforge/rpcbind/rpcbind-0.2.0.tar.bz2
+rpcbind-sunrpc.patch
+rpcbind.service
+rpcbind)
+md5sums=('1a77ddb1aaea8099ab19c351eeb26316'
+ 'c02ac36a98baac70b8a26190524b7b73'
+ 'a7b23a32be2eb52d7dec52da36d4eba1'
+ '78a963654f57cbb209e228884767836e')
+
+build() {
+  cd $srcdir/$pkgname-$pkgver
+  # patch for iana services file
+  patch -Np1 -i ../rpcbind-sunrpc.patch
+  ./configure --prefix=/usr --enable-warmstarts --with-statedir=/run
+  make
+}
+
+check() {
+  cd $srcdir/$pkgname-$pkgver
+  make check
+}
+
+package() {
+  cd $srcdir/$pkgname-$pkgver
+  make DESTDIR=$pkgdir install
+  # install missing man page - https://bugs.archlinux.org/task/21271
+  install -m644 man/rpcinfo.8 $pkgdir/usr/share/man/man8/
+  # 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
+}

Copied: rpcbind/repos/testing-i686/rpcbind (from rev 165543, 
rpcbind/trunk/rpcbind)
===
--- testing-i686/rpcbind(rev 0)
+++ testing-i686/rpcbind2012-08-23 12:23:46 UTC (rev 165544)
@@ -0,0 +1,39 @@
+#!/bin/bash
+
+. /etc/rc.conf
+. /etc/rc.d/functions
+
+PID="$(pidof -o %PPID /usr/bin/rpcbind)"
+case "$1" in
+  start)
+stat_busy "Starting rpcbind"
+[ -z "$PID" ] && /usr/bin/rpcbind &>/dev/null
+if [ $? -gt 0 ]; then
+  stat_fail
+else
+  PID=$(pidof -o %PPID /usr/bin/rpcbind)
+  echo $PID > /var/run/rpcbind.pid
+  add_daemon rpcbind
+  stat_done
+fi
+;;
+  stop)
+stat_busy "Stopping rpcbind"
+[ ! -z "$PID" ]  && kill $PID &> /dev/null
+if [ $? -gt 0 ]; then
+  stat_fail
+else
+  rm /var/run/rpcbind.pid
+  rm_daemon rpcbind
+  stat_done
+fi
+;;
+  restart)
+$0 stop
+sleep 1
+$0 start
+;;
+  *)
+echo "usage: $0 {start|stop|restart}"  
+esac
+exit 0

Copied: rpcbind/repos/testing-i686/rpcbind-sunrpc.patch (from rev 165543, 
rpcbind/trunk/rpcbind-sunrpc.patch)
===
--- testing-i686/rpcbind-sunrpc.patch   (rev 0)
+++ testing-i686/rpcbind-sunrpc.patch   2012-08-23 12:23:46 UTC (rev 165544)
@@ -0,0 +1,22 @@
+--- rpcbind-0.1.7/src/rpcbind.c.orig   2008-11-19 14:17:34.0 +0100
 rpcbind-0.1.7/src/rpcbind.c2010-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 serv

[arch-commits] Commit in rpcbind/repos (10 files)

2012-04-12 Thread Tobias Powalowski
Date: Thursday, April 12, 2012 @ 11:32:54
  Author: tpowa
Revision: 156056

archrelease: copy trunk to testing-i686, testing-x86_64

Added:
  rpcbind/repos/testing-i686/
  
rpcbind/repos/testing-i686/0001-rpcbind-add-support-for-systemd-socket-activation.patch
(from rev 156055, 
rpcbind/trunk/0001-rpcbind-add-support-for-systemd-socket-activation.patch)
  rpcbind/repos/testing-i686/PKGBUILD
(from rev 156055, rpcbind/trunk/PKGBUILD)
  rpcbind/repos/testing-i686/rpcbind
(from rev 156055, rpcbind/trunk/rpcbind)
  rpcbind/repos/testing-i686/rpcbind-sunrpc.patch
(from rev 156055, rpcbind/trunk/rpcbind-sunrpc.patch)
  rpcbind/repos/testing-x86_64/
  
rpcbind/repos/testing-x86_64/0001-rpcbind-add-support-for-systemd-socket-activation.patch
(from rev 156055, 
rpcbind/trunk/0001-rpcbind-add-support-for-systemd-socket-activation.patch)
  rpcbind/repos/testing-x86_64/PKGBUILD
(from rev 156055, rpcbind/trunk/PKGBUILD)
  rpcbind/repos/testing-x86_64/rpcbind
(from rev 156055, rpcbind/trunk/rpcbind)
  rpcbind/repos/testing-x86_64/rpcbind-sunrpc.patch
(from rev 156055, rpcbind/trunk/rpcbind-sunrpc.patch)

-+
 testing-i686/0001-rpcbind-add-support-for-systemd-socket-activation.patch   |  
271 ++
 testing-i686/PKGBUILD   |  
 47 +
 testing-i686/rpcbind|  
 39 +
 testing-i686/rpcbind-sunrpc.patch   |  
 22 
 testing-x86_64/0001-rpcbind-add-support-for-systemd-socket-activation.patch |  
271 ++
 testing-x86_64/PKGBUILD |  
 47 +
 testing-x86_64/rpcbind  |  
 39 +
 testing-x86_64/rpcbind-sunrpc.patch |  
 22 
 8 files changed, 758 insertions(+)

Copied: 
rpcbind/repos/testing-i686/0001-rpcbind-add-support-for-systemd-socket-activation.patch
 (from rev 156055, 
rpcbind/trunk/0001-rpcbind-add-support-for-systemd-socket-activation.patch)
===
--- testing-i686/0001-rpcbind-add-support-for-systemd-socket-activation.patch   
(rev 0)
+++ testing-i686/0001-rpcbind-add-support-for-systemd-socket-activation.patch   
2012-04-12 15:32:54 UTC (rev 156056)
@@ -0,0 +1,271 @@
+From e0a37e07c5ea6557706cc0840802519b8b3fc563 Mon Sep 17 00:00:00 2001
+From: Tom Gundersen 
+Date: Thu, 12 Apr 2012 13:30:28 +0200
+Subject: [PATCH] rpcbind: add support for systemd socket activation
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Making rpcbind sockect activated will greatly simplify
+its integration in systemd systems. In essence, other services
+may now assume that rpcbind is always available, even during very
+early boot. This means that we no longer need to worry about any
+ordering dependencies.
+
+This is based on a patch originally posted by Lennart Poettering:
+.
+
+That patch was not merged due to the lack of a shared library and
+as systemd was seen to be too Fedora specific.
+
+Systemd now provides a shared library, and it is shipped by defalt in
+OpenSUSE in addition to Fedora, and it is available in Debain, Gentoo,
+Arch, and others.
+
+This version of the patch has three changes from the original:
+
+ * It uses the shared library.
+ * It comes with unit files.
+ * It is rebased on top of master.
+
+A followup patch will sort out the indentation issues, as they are left in
+to make review simpler.
+
+Comments welcome.
+
+v2: correctly enable systemd code at compile time
+handle the case where not all the required sockets were supplied
+listen on udp/tcp port 111 in addition to /var/run/rpcbind.sock
+do not daemonize
+v3: default to compile without systemd support when systemd is not
+installed at compile time.
+
+Original-patch-by: Lennart Poettering 
+Cc: systemd-de...@lists.freedesktop.org
+Cc: Steve Dickson 
+Cc: Chuck Lever 
+Acked-by: Cristian Rodríguez 
+Signed-off-by: Tom Gundersen 
+---
+ Makefile.am|   15 
+ configure.in   |   11 ++
+ src/rpcbind.c  |   81 
+ systemd/.gitignore |1 +
+ systemd/rpcbind.service.in |9 +
+ systemd/rpcbind.socket |   12 +++
+ 6 files changed, 123 insertions(+), 6 deletions(-)
+ create mode 100644 systemd/.gitignore
+ create mode 100644 systemd/rpcbind.service.in
+ create mode 100644 systemd/rpcbind.socket
+
+diff --git a/Makefile.am b/Makefile.am
+index 9fa608e..194b467 100644
+--- a/Makefile.am
 b/Makefile.am
+@@ -38,6 +38,21 @@ rpcbind_SOURCES = \
+   src/warmstart.c
+ rpcbind_LDADD = $(TIRPC_LIBS)
+ 
++if SYSTEMD
++AM_CPPFLAGS += $(SYSTEMD_CFLAGS) -DSYSTEMD
++