./0000775000175000017500000000000012511411357011435 5ustar nielsenrnielsenr./rpcbind.service0000664000175000017500000000033712511411357014443 0ustar nielsenrnielsenr[Unit] Description=RPC Bind Service Requires=rpcbind.socket [Service] Type=forking EnvironmentFile=-@SYSCONFDIR@/rpcbind.conf ExecStart=@SBINDIR@/rpcbind -w $RPCBIND_OPTS SuccessExitStatus=2 [Install] Also=rpcbind.socket ./0001-rpcbind-rpcuser-not-being-set-in-Makefile.am.patch0000664000175000017500000000212012511411357023315 0ustar nielsenrnielsenrFrom 914507aa6980129fefb4decaabea1a4f60c7182b Mon Sep 17 00:00:00 2001 From: Steve Dickson Date: Wed, 21 Aug 2013 14:40:22 -0400 Subject: [PATCH 1/1] rpcbind: rpcuser not being set in Makefile.am Upstream-Status: backport Commit 8d7a0708 cause a regression where the rpcuser id was not being set, which in turn cause rpcbind to immediately exit. This patch removes the extra ',' that was in the AC_ARG_WITH statement in the configure.ac file. Signed-off-by: Steve Dickson Signed-off-by: Cristian Iorga --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 2b67720..1cf42d3 100644 --- a/configure.ac +++ b/configure.ac @@ -23,7 +23,7 @@ AC_ARG_WITH([statedir], AC_SUBST([statedir], [$with_statedir]) AC_ARG_WITH([rpcuser], - AS_HELP_STRING([--with-rpcuser=ARG], [use ARG for RPC @<:@default=root@:>@]), + AS_HELP_STRING([--with-rpcuser=ARG], [use ARG for RPC @<:@default=root@:>@]) ,, [with_rpcuser=root]) AC_SUBST([rpcuser], [$with_rpcuser]) -- 1.8.3.2 ./init.d0000664000175000017500000000341312511411357012546 0ustar nielsenrnielsenr#!/bin/sh # # start/stop rpcbind daemon. ### BEGIN INIT INFO # Provides: rpcbind # Required-Start: $network # Required-Stop: $network # Default-Start: S 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: RPC portmapper replacement # Description: rpcbind is a server that converts RPC (Remote # Procedure Call) program numbers into DARPA # protocol port numbers. It must be running in # order to make RPC calls. Services that use # RPC include NFS and NIS. ### END INIT INFO # Source function library. . /etc/init.d/functions test -f /sbin/rpcbind || exit 0 OPTIONS="" if [ -f /etc/default/rpcbind ] then . /etc/default/rpcbind elif [ -f /etc/rpcbind.conf ] then . /etc/rpcbind.conf fi start () { echo -n "Starting rpcbind daemon..." if pidof /sbin/rpcbind >/dev/null; then echo "already running." exit 0 fi start-stop-daemon --start --quiet --exec /sbin/rpcbind -- "$@" if [ $? -eq 0 ]; then echo "done." else echo "failed." fi } stop () { echo "Stopping rpcbind daemon..." if ! pidof /sbin/rpcbind >/dev/null; then echo "not running." return 0 fi start-stop-daemon --stop --quiet --exec /sbin/rpcbind if [ $? -eq 0 ]; then echo "done." else echo "failed." fi } case "$1" in start) start $OPTIONS ;; stop) stop ;; force-reload) stop start $OPTIONS ;; restart) stop start $OPTIONS ;; status) status /sbin/rpcbind ;; *) echo "Usage: /etc/init.d/rpcbind {start|stop|force-reload|restart|status}" exit 1 ;; esac exit $? ./0001-uclibc-nss.patch0000664000175000017500000000117512511411357015102 0ustar nielsenrnielsenrUpstream-Status: Pending From b8f0d7b7318ba344c25785d6f5cf3f8de98012d4 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Tue, 2 Feb 2010 09:36:03 +0000 Subject: [PATCH 1/2] uclibc-nss --- src/rpcbind.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/src/rpcbind.c b/src/rpcbind.c index 525ffba..1fe1a60 100644 --- a/src/rpcbind.c +++ b/src/rpcbind.c @@ -67,7 +67,11 @@ #include #include #include +#if defined(__UCLIBC__) +#define __nss_configure_lookup(x,y) +#else #include +#endif #include "config.h" #include "rpcbind.h" -- 1.6.6.1 ./0002-uclibc-rpcsvc-defines.patch0000664000175000017500000000234712511411357017215 0ustar nielsenrnielsenrUpstream-Status: Pending From 077add040c2e30d3ac507362f4afe350f47be027 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Tue, 2 Feb 2010 09:47:57 +0000 Subject: [PATCH 2/2] uclibc-rpcsvc-defines --- src/security.c | 28 ++++++++++++++++++++++++++++ 1 files changed, 28 insertions(+), 0 deletions(-) diff --git a/src/security.c b/src/security.c index 0edeac6..e9fed55 100644 --- a/src/security.c +++ b/src/security.c @@ -20,6 +20,32 @@ /* * XXX for special case checks in check_callit. */ +#if defined(__UCLIBC__) + +#define MOUNTPROC_MNT 1 +#define MOUNTPROC_UMNT 3 + +#define NFS_PROGRAM 100003 +#define YPPROG 100004 +#define MOUNTPROG 100005 +#define YPBINDPROG 100007 +#define YPPASSWDPROG 100009 +#define RQUOTAPROG 100011 + +#define YPPROC_NULL 0 +#define YPPROC_DOMAIN 1 +#define YPPROC_DOMAIN_NONACK 2 +#define YPPROC_MATCH 3 +#define YPPROC_FIRST 4 +#define YPPROC_NEXT 5 +#define YPPROC_XFR 6 +#define YPPROC_CLEAR 7 +#define YPPROC_ALL 8 + +#define YPBINDPROC_SETDOM 2 + +#else + #include #include #include @@ -27,6 +53,8 @@ #include #include +#endif + #include "rpcbind.h" #ifdef LIBWRAP -- 1.6.6.1 ./rpcbind.socket0000664000175000017500000000020412511411357014264 0ustar nielsenrnielsenr[Unit] Description=RPCbind Server Activation Socket [Socket] ListenStream=/var/run/rpcbind.sock [Install] WantedBy=sockets.target ./rpcbind.conf0000664000175000017500000000007212511411357013724 0ustar nielsenrnielsenr# Optional arguments passed to rpcbind. # RPCBIND_OPTS=""