Move all to deprecated folder.
This commit is contained in:
@@ -0,0 +1,56 @@
|
||||
From 226b9c57ff403b407dbf1ff8a615da455a4cbd23 Mon Sep 17 00:00:00 2001
|
||||
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||
Date: Sat, 10 Nov 2012 22:03:43 +0100
|
||||
Subject: [PATCH] Remove yellow pages support
|
||||
|
||||
This support requires yellow pages support in libtirpc, which isn't
|
||||
available. As most Buildroot users are most likely never going to need
|
||||
such feature, get rid of it.
|
||||
|
||||
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||
---
|
||||
src/security.c | 18 ------------------
|
||||
1 file changed, 18 deletions(-)
|
||||
|
||||
diff --git a/src/security.c b/src/security.c
|
||||
index 0c9453f..abc81bb 100644
|
||||
--- a/src/security.c
|
||||
+++ b/src/security.c
|
||||
@@ -24,9 +24,6 @@
|
||||
#include <rpcsvc/mount.h>
|
||||
#include <rpcsvc/rquota.h>
|
||||
#include <rpcsvc/nfs_prot.h>
|
||||
-#include <rpcsvc/yp.h>
|
||||
-#include <rpcsvc/ypclnt.h>
|
||||
-#include <rpcsvc/yppasswd.h>
|
||||
#else
|
||||
# define MOUNTPROC_MNT 1
|
||||
# define MOUNTPROC_UMNT 3
|
||||
@@ -325,24 +322,9 @@ check_callit(SVCXPRT *xprt, struct r_rmtcall_args *args, int versnum /*__unused*
|
||||
args->rmt_proc != MOUNTPROC_UMNT)
|
||||
break;
|
||||
goto deny;
|
||||
- case YPBINDPROG:
|
||||
- if (args->rmt_proc != YPBINDPROC_SETDOM)
|
||||
- break;
|
||||
- /* FALLTHROUGH */
|
||||
- case YPPASSWDPROG:
|
||||
case NFS_PROGRAM:
|
||||
case RQUOTAPROG:
|
||||
goto deny;
|
||||
- case YPPROG:
|
||||
- switch (args->rmt_proc) {
|
||||
- case YPPROC_ALL:
|
||||
- case YPPROC_MATCH:
|
||||
- case YPPROC_FIRST:
|
||||
- case YPPROC_NEXT:
|
||||
- goto deny;
|
||||
- default:
|
||||
- break;
|
||||
- }
|
||||
default:
|
||||
break;
|
||||
}
|
||||
--
|
||||
2.4.5
|
||||
|
||||
@@ -0,0 +1,42 @@
|
||||
From 9194122389f2a56b1cd1f935e64307e2e963c2da Mon Sep 17 00:00:00 2001
|
||||
From: Steve Dickson <steved@redhat.com>
|
||||
Date: Mon, 2 Nov 2015 17:05:18 -0500
|
||||
Subject: [PATCH] handle_reply: Don't use the xp_auth pointer directly
|
||||
|
||||
In the latest libtirpc version to access the xp_auth
|
||||
one must use the SVC_XP_AUTH macro. To be backwards
|
||||
compatible a couple ifdefs were added to use the
|
||||
macro when it exists.
|
||||
|
||||
Signed-off-by: Steve Dickson <steved@redhat.com>
|
||||
[peda@axentia.se: backport from upstream]
|
||||
Signed-off-by: Peter Rosin <peda@axentia.se>
|
||||
---
|
||||
src/rpcb_svc_com.c | 7 +++++++
|
||||
1 file changed, 7 insertions(+)
|
||||
|
||||
diff --git a/src/rpcb_svc_com.c b/src/rpcb_svc_com.c
|
||||
index 4ae93f1..22d6c84 100644
|
||||
--- a/src/rpcb_svc_com.c
|
||||
+++ b/src/rpcb_svc_com.c
|
||||
@@ -1295,10 +1295,17 @@ handle_reply(int fd, SVCXPRT *xprt)
|
||||
a.rmt_localvers = fi->versnum;
|
||||
|
||||
xprt_set_caller(xprt, fi);
|
||||
+#if defined(SVC_XP_AUTH)
|
||||
+ SVC_XP_AUTH(xprt) = svc_auth_none;
|
||||
+#else
|
||||
xprt->xp_auth = &svc_auth_none;
|
||||
+#endif
|
||||
svc_sendreply(xprt, (xdrproc_t) xdr_rmtcall_result, (char *) &a);
|
||||
+#if !defined(SVC_XP_AUTH)
|
||||
SVCAUTH_DESTROY(xprt->xp_auth);
|
||||
xprt->xp_auth = NULL;
|
||||
+#endif
|
||||
+
|
||||
done:
|
||||
if (buffer)
|
||||
free(buffer);
|
||||
--
|
||||
2.5.3
|
||||
|
||||
15
deprecated/firmware/buildroot/package/rpcbind/Config.in
Normal file
15
deprecated/firmware/buildroot/package/rpcbind/Config.in
Normal file
@@ -0,0 +1,15 @@
|
||||
config BR2_PACKAGE_RPCBIND
|
||||
bool "rpcbind"
|
||||
# We really need libtirpc and can't work with the native RPC
|
||||
# implementation of toolchains.
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS # libtirpc
|
||||
select BR2_PACKAGE_LIBTIRPC
|
||||
# fork()
|
||||
depends on BR2_USE_MMU
|
||||
help
|
||||
The rpcbind utility is a server that converts RPC program numbers
|
||||
into universal addresses.
|
||||
|
||||
comment "rpcbind needs a toolchain w/ threads"
|
||||
depends on !BR2_TOOLCHAIN_HAS_THREADS
|
||||
depends on BR2_USE_MMU
|
||||
38
deprecated/firmware/buildroot/package/rpcbind/S30rpcbind
Normal file
38
deprecated/firmware/buildroot/package/rpcbind/S30rpcbind
Normal file
@@ -0,0 +1,38 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# Starts rpcbind.
|
||||
#
|
||||
|
||||
start() {
|
||||
printf "Starting rpcbind: "
|
||||
umask 077
|
||||
start-stop-daemon -S -q -p /var/run/rpcbind.pid --exec /usr/bin/rpcbind
|
||||
echo "OK"
|
||||
}
|
||||
stop() {
|
||||
printf "Stopping rpcbind daemon: "
|
||||
start-stop-daemon -K -q -p /var/run/rpcbind.pid
|
||||
echo "OK"
|
||||
}
|
||||
restart() {
|
||||
stop
|
||||
start
|
||||
}
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
start
|
||||
;;
|
||||
stop)
|
||||
stop
|
||||
;;
|
||||
restart|reload)
|
||||
restart
|
||||
;;
|
||||
*)
|
||||
echo "Usage: $0 {start|stop|restart}"
|
||||
exit 1
|
||||
esac
|
||||
|
||||
exit $?
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
# Locally computed:
|
||||
sha256 9897823a9d820ea011d9ea02054d5ab99469b9ca5346265fee380713c8fed27b rpcbind-0.2.3.tar.bz2
|
||||
40
deprecated/firmware/buildroot/package/rpcbind/rpcbind.mk
Normal file
40
deprecated/firmware/buildroot/package/rpcbind/rpcbind.mk
Normal file
@@ -0,0 +1,40 @@
|
||||
################################################################################
|
||||
#
|
||||
# rpcbind
|
||||
#
|
||||
################################################################################
|
||||
|
||||
RPCBIND_VERSION = 0.2.3
|
||||
RPCBIND_SITE = http://downloads.sourceforge.net/project/rpcbind/rpcbind/$(RPCBIND_VERSION)
|
||||
RPCBIND_SOURCE = rpcbind-$(RPCBIND_VERSION).tar.bz2
|
||||
RPCBIND_LICENSE = BSD-3c
|
||||
RPCBIND_LICENSE_FILES = COPYING
|
||||
|
||||
RPCBIND_CONF_ENV += \
|
||||
CFLAGS="$(TARGET_CFLAGS) `$(PKG_CONFIG_HOST_BINARY) --cflags libtirpc`"
|
||||
RPCBIND_DEPENDENCIES += libtirpc host-pkgconf
|
||||
RPCBIND_CONF_OPTS += --with-rpcuser=root
|
||||
|
||||
ifeq ($(BR2_INIT_SYSTEMD),y)
|
||||
RPCBIND_CONF_OPTS += --with-systemdsystemunitdir=/usr/lib/systemd/system
|
||||
else
|
||||
RPCBIND_CONF_OPTS += --with-systemdsystemunitdir=no
|
||||
endif
|
||||
|
||||
define RPCBIND_INSTALL_INIT_SYSTEMD
|
||||
$(INSTALL) -m 0755 -D package/rpcbind/rpcbind.service \
|
||||
$(TARGET_DIR)/usr/lib/systemd/system/rpcbind.service
|
||||
$(INSTALL) -m 0755 -D package/rpcbind/rpcbind.socket \
|
||||
$(TARGET_DIR)/usr/lib/systemd/system/rpcbind.socket
|
||||
mkdir -p $(TARGET_DIR)/etc/systemd/system/sockets.target.wants
|
||||
ln -fs ../../../../usr/lib/systemd/system/rpcbind.socket \
|
||||
$(TARGET_DIR)/etc/systemd/system/sockets.target.wants/rpcbind.socket
|
||||
endef
|
||||
|
||||
define RPCBIND_INSTALL_INIT_SYSV
|
||||
$(INSTALL) -m 0755 -D package/rpcbind/S30rpcbind \
|
||||
$(TARGET_DIR)/etc/init.d/S30rpcbind
|
||||
endef
|
||||
|
||||
|
||||
$(eval $(autotools-package))
|
||||
@@ -0,0 +1,10 @@
|
||||
[Unit]
|
||||
Description=RPC bind service
|
||||
Requires=rpcbind.socket
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
ExecStart=/usr/bin/rpcbind
|
||||
|
||||
[Install]
|
||||
Also=rpcbind.socket
|
||||
@@ -0,0 +1,8 @@
|
||||
[Unit]
|
||||
Description=RPCbind Server Activation Socket
|
||||
|
||||
[Socket]
|
||||
ListenStream=/var/run/rpcbind.sock
|
||||
|
||||
[Install]
|
||||
WantedBy=sockets.target
|
||||
Reference in New Issue
Block a user