summaryrefslogtreecommitdiff
path: root/recipes/netkit-rpc
diff options
context:
space:
mode:
authorDenys Dmytriyenko <denis@denix.org>2009-03-17 14:32:59 -0400
committerDenys Dmytriyenko <denis@denix.org>2009-03-17 14:32:59 -0400
commit709c4d66e0b107ca606941b988bad717c0b45d9b (patch)
tree37ee08b1eb308f3b2b6426d5793545c38396b838 /recipes/netkit-rpc
parentfa6cd5a3b993f16c27de4ff82b42684516d433ba (diff)
rename packages/ to recipes/ per earlier agreement
See links below for more details: http://thread.gmane.org/gmane.comp.handhelds.openembedded/21326 http://thread.gmane.org/gmane.comp.handhelds.openembedded/21816 Signed-off-by: Denys Dmytriyenko <denis@denix.org> Acked-by: Mike Westerhof <mwester@dls.net> Acked-by: Philip Balister <philip@balister.org> Acked-by: Khem Raj <raj.khem@gmail.com> Acked-by: Marcin Juszkiewicz <hrw@openembedded.org> Acked-by: Koen Kooi <koen@openembedded.org> Acked-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
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
+}