summaryrefslogtreecommitdiffstats
path: root/main/rpcbind/0002-uclibc-rpcsvc-defines.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2010-07-01 14:48:52 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2010-07-01 14:48:52 +0000
commit5c86f55307beee498cfe5c79678fe492a90e7a1a (patch)
tree838f0e2dd6f13ddc87c93d22534952c24a314c2f /main/rpcbind/0002-uclibc-rpcsvc-defines.patch
parent50c6b6ef245d58b7405c42b173f82da205974ccf (diff)
downloadaports-5c86f55307beee498cfe5c79678fe492a90e7a1a.tar.bz2
aports-5c86f55307beee498cfe5c79678fe492a90e7a1a.tar.xz
main/rpcbind: moved from testing
Diffstat (limited to 'main/rpcbind/0002-uclibc-rpcsvc-defines.patch')
-rw-r--r--main/rpcbind/0002-uclibc-rpcsvc-defines.patch58
1 files changed, 58 insertions, 0 deletions
diff --git a/main/rpcbind/0002-uclibc-rpcsvc-defines.patch b/main/rpcbind/0002-uclibc-rpcsvc-defines.patch
new file mode 100644
index 000000000..e394966f5
--- /dev/null
+++ b/main/rpcbind/0002-uclibc-rpcsvc-defines.patch
@@ -0,0 +1,58 @@
+From 077add040c2e30d3ac507362f4afe350f47be027 Mon Sep 17 00:00:00 2001
+From: Natanael Copa <ncopa@alpinelinux.org>
+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 <rpcsvc/mount.h>
+ #include <rpcsvc/rquota.h>
+ #include <rpcsvc/nfs_prot.h>
+@@ -27,6 +53,8 @@
+ #include <rpcsvc/ypclnt.h>
+ #include <rpcsvc/yppasswd.h>
+
++#endif
++
+ #include "rpcbind.h"
+
+ #ifdef LIBWRAP
+--
+1.6.6.1
+