summaryrefslogtreecommitdiff
path: root/recipes/netkit-rpc
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/netkit-rpc')
-rw-r--r--recipes/netkit-rpc/netkit-rpc-native_0.17.bb4
-rw-r--r--recipes/netkit-rpc/netkit-rpc/gcc4.patch37
-rw-r--r--recipes/netkit-rpc/netkit-rpc/install.patch29
-rw-r--r--recipes/netkit-rpc/netkit-rpc_0.17.bb39
4 files changed, 109 insertions, 0 deletions
diff --git a/recipes/netkit-rpc/netkit-rpc-native_0.17.bb b/recipes/netkit-rpc/netkit-rpc-native_0.17.bb
new file mode 100644
index 0000000000..524d20bf47
--- /dev/null
+++ b/recipes/netkit-rpc/netkit-rpc-native_0.17.bb
@@ -0,0 +1,4 @@
+require netkit-rpc_${PV}.bb
+inherit native
+
+FILESPATH = "${FILE_DIRNAME}/netkit-rpc-${PV}:${FILE_DIRNAME}/netkit-rpc:${FILE_DIRNAME}/files:${FILE_DIRNAME}"
diff --git a/recipes/netkit-rpc/netkit-rpc/gcc4.patch b/recipes/netkit-rpc/netkit-rpc/gcc4.patch
new file mode 100644
index 0000000000..c3ba7d94c3
--- /dev/null
+++ b/recipes/netkit-rpc/netkit-rpc/gcc4.patch
@@ -0,0 +1,37 @@
+
+#
+# Patch managed by http://www.holgerschurig.de/patcher.html
+#
+
+--- netkit-rpc-0.17/rpcgen/rpc_cout.c~gcc4
++++ netkit-rpc-0.17/rpcgen/rpc_cout.c
+@@ -101,8 +101,6 @@
+ case DEF_TYPEDEF:
+ emit_typedef(def);
+ break;
+- default:
+- /* can't happen */
+ }
+ print_trailer();
+ }
+@@ -664,9 +662,6 @@
+ decl->name,decl->array_max);
+ emit_single_in_line(decl,flag,REL_VECTOR);
+ f_print(fout,"\t\t }\n\t\t };\n");
+-
+- default:
+- /* ?... do nothing I guess */
+ }
+ }
+
+--- netkit-rpc-0.17/rpcgen/rpc_hout.c~gcc4
++++ netkit-rpc-0.17/rpcgen/rpc_hout.c
+@@ -106,8 +106,6 @@
+ f_print(fout, "\n");
+ pprogramdef(def);
+ break;
+- default:
+- /* ?... shouldn't happen I guess */
+ }
+ }
+
diff --git a/recipes/netkit-rpc/netkit-rpc/install.patch b/recipes/netkit-rpc/netkit-rpc/install.patch
new file mode 100644
index 0000000000..6b45c4d761
--- /dev/null
+++ b/recipes/netkit-rpc/netkit-rpc/install.patch
@@ -0,0 +1,29 @@
+
+#
+# Patch managed by http://www.holgerschurig.de/patcher.html
+#
+
+--- netkit-rpc-0.17/rpcgen/Makefile~install.patch
++++ netkit-rpc-0.17/rpcgen/Makefile
+@@ -13,7 +13,9 @@
+ rpc_main.o: ../version.h
+
+ install: rpcgen
++ install -d $(INSTALLROOT)$(BINDIR)
+ install -s -m$(BINMODE) rpcgen $(INSTALLROOT)$(BINDIR)
++ install -d $(INSTALLROOT)$(MANDIR)
+ install -m$(MANMODE) rpcgen.1 $(INSTALLROOT)$(MANDIR)/man1
+
+ clean:
+--- netkit-rpc-0.17/rpcinfo/Makefile~install.patch
++++ netkit-rpc-0.17/rpcinfo/Makefile
+@@ -8,7 +8,9 @@
+ rpcinfo.o: ../version.h
+
+ install: rpcinfo
++ install -d $(INSTALLROOT)$(BINDIR)
+ install -s -m$(BINMODE) rpcinfo $(INSTALLROOT)$(BINDIR)
++ install -d $(INSTALLROOT)$(MANDIR)/man8
+ install -m$(MANMODE) rpcinfo.8 $(INSTALLROOT)$(MANDIR)/man8
+
+ clean:
diff --git a/recipes/netkit-rpc/netkit-rpc_0.17.bb b/recipes/netkit-rpc/netkit-rpc_0.17.bb
new file mode 100644
index 0000000000..0e0287c041
--- /dev/null
+++ b/recipes/netkit-rpc/netkit-rpc_0.17.bb
@@ -0,0 +1,39 @@
+SECTION = "console/network"
+DESCRIPTION = "netkit-rpc includes rpcgen and rpcinfo."
+PR = "r1"
+LICENSE = "GPL"
+SRC_URI = "ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/netkit-rpc-${PV}.tar.gz \
+ file://gcc4.patch;patch=1 \
+ file://install.patch;patch=1"
+S = "${WORKDIR}/netkit-rpc-${PV}"
+
+EXTRA_OEMAKE = ""
+do_configure () {
+ cat <<END >MCONFIG
+BINDIR=${bindir}
+SBINDIR=${sbindir}
+MANDIR=${mandir}
+ROOTBINDIR=/bin
+BINMODE=755
+DAEMONMODE=755
+MANMODE=644
+SUIDMODE=4755
+PREFIX=${prefix}
+EXECPREFIX=${exec_prefix}
+ROOTPREFIX=
+INSTALLROOT=
+CC=${CC}
+LD=${LD}
+CFLAGS=${CFLAGS}
+LDFLAGS=${LDFLAGS}
+LIBS=
+END
+}
+
+do_compile () {
+ oe_runmake all
+}
+
+do_install () {
+ oe_runmake 'INSTALLROOT=${D}' install
+}