tunctl: add from OE-Classic and tweak
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Tue, 27 Nov 2012 11:25:47 +0000 (11:25 +0000)
committerPatrick Ohly <patrick.ohly@intel.com>
Fri, 9 Jan 2015 16:24:53 +0000 (08:24 -0800)
* Set SUMMARY (which sets DESCRIPTION)
* Make LICENSE more accurate
* Add LIC_FILES_CHKSUM

(From meta-openembedded rev: 4a851a8f25bb9d8d4f7eb40e4bd0e70f74e3ce12)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
meta-openembedded/meta-networking/recipes-support/tunctl/tunctl.inc [new file with mode: 0644]
meta-openembedded/meta-networking/recipes-support/tunctl/tunctl_1.5.bb [new file with mode: 0644]

diff --git a/meta-openembedded/meta-networking/recipes-support/tunctl/tunctl.inc b/meta-openembedded/meta-networking/recipes-support/tunctl/tunctl.inc
new file mode 100644 (file)
index 0000000..952af24
--- /dev/null
@@ -0,0 +1,15 @@
+SUMMARY = "Tool for controlling the Linux TUN/TAP driver"
+SECTION = "net"
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://tunctl.c;startline=1;endline=4;md5=ff3a09996bc5fff6bc5d4e0b4c28f999"
+
+SRC_URI = "${SOURCEFORGE_MIRROR}/tunctl/tunctl-${PV}.tar.gz"
+
+do_compile() {
+       oe_runmake tunctl
+}
+
+do_install() {
+       install -d ${D}/${sbindir}
+       install -m 755 tunctl ${D}/${sbindir}
+}
diff --git a/meta-openembedded/meta-networking/recipes-support/tunctl/tunctl_1.5.bb b/meta-openembedded/meta-networking/recipes-support/tunctl/tunctl_1.5.bb
new file mode 100644 (file)
index 0000000..dd26561
--- /dev/null
@@ -0,0 +1,4 @@
+require tunctl.inc
+
+SRC_URI[md5sum] = "fdbedc263b3e85bb0e087cd567414607"
+SRC_URI[sha256sum] = "aa2a6c4cc6bfacb11e0d9f62334a6638a0d435475c61230116f00b6af8b14fff"