Updated mount.nfs command - allows mounting nfs4 volumes
endef
+TARGET_CFLAGS += -I$(PKG_BUILD_DIR)/lib -I$(STAGING_DIR)/usr/include -Drpc_uint=uint
+TARGET_LDFLAGS += -Wl,-rpath-link=$(STAGING_DIR)/usr/lib $(LIBRPC)
+
CONFIGURE_ARGS += \
--disable-gss \
--disable-nfsv4 \
--enable-static \
--enable-shared
-TARGET_CFLAGS += -I$(PKG_BUILD_DIR)/lib
-TARGET_LDFLAGS += -Wl,-rpath-link=$(STAGING_DIR)/usr/lib
-
MAKE_FLAGS += \
OPT="$(TARGET_CFLAGS)" \
INSTALLSUID="install -m 4755" \
-diff -urN nfs-utils-1.1.5/utils/mountd/cache.c nfs-utils-1.1.5.new/utils/mountd/cache.c
---- nfs-utils-1.1.5/utils/mountd/cache.c 2009-03-05 12:42:56.000000000 +0100
-+++ nfs-utils-1.1.5.new/utils/mountd/cache.c 2009-04-07 16:11:09.000000000 +0200
-@@ -142,6 +142,7 @@
+--- a/utils/mountd/cache.c
++++ b/utils/mountd/cache.c
+@@ -142,6 +142,7 @@ void auth_unix_gid(FILE *f)
pw = getpwuid(uid);
if (!pw)
rv = -1;
else {
rv = getgrouplist(pw->pw_name, pw->pw_gid, groups, &ngroups);
if (rv == -1 && ngroups >= 100) {
-@@ -153,6 +154,7 @@
+@@ -153,6 +154,7 @@ void auth_unix_gid(FILE *f)
groups, &ngroups);
}
}
qword_printint(f, uid);
qword_printint(f, time(0)+30*60);
if (rv >= 0) {
-diff -burN nfs-utils-1.1.5/support/nfs/svc_socket.c nfs-utils-1.1.5.p/support/nfs/svc_socket.c
---- nfs-utils-1.1.5/support/nfs/svc_socket.c 2009-03-05 12:42:56.000000000 +0100
-+++ nfs-utils-1.1.5.p/support/nfs/svc_socket.c 2009-04-07 17:33:07.307458029 +0200
-@@ -66,9 +66,13 @@
+--- a/support/nfs/svc_socket.c
++++ b/support/nfs/svc_socket.c
+@@ -66,9 +66,13 @@ svc_socket (u_long number, int type, int
memset (&addr, 0, sizeof (addr));
addr.sin_family = AF_INET;
if (ret == 0 && rpcp != NULL)
{
/* First try name. */
+--- a/utils/statd/sm_inter_svc.c
++++ b/utils/statd/sm_inter_svc.c
+@@ -10,7 +10,9 @@
+ #include <stdlib.h>
+ #include <netdb.h>
+ #include <signal.h>
++#ifndef __UCLIBC__
+ #include <sys/ttycom.h>
++#endif
+ #include <memory.h>
+ #include <sys/socket.h>
+ #include <netinet/in.h>