Skip to contentSkip to conversation

vtun: Add new recipe for vtun

PATCH Superseded Sam Nelson 2 participants 2 messages Feb 11, 2014 – Mar 5, 2014

lore
Share & tools
lore

Sam Nelson

author
#0 lore raw

PATCH v2 1/1 vtun: Add new recipe for vtun

- Virtual Tunnels over TCP/IP networks with
traffic shaping, compression and encryption

---
Changes from previous patch
* Updated LIC_FILES_CHECKSUM to use just the copyright lines
---

---
 .../recipes-connectivity/vtun/vtun_3.0.3.bb        |   23 ++++++++++++++++++++
 1 file changed, 23 insertions(+)
 create mode 100755 meta-arago-extras/recipes-connectivity/vtun/vtun_3.0.3.bb
meta-arago-extras/recipes-connectivity/vtun/vtun_3.0.3.bb new file +23 -0
new file mode 100755
index 0000000..bb4d69d
@@ -0,0 +1,23 @@
+DESCRIPTION = "Virtual Tunnels over TCP/IP networks with traffic shaping, compression and encryption."
+HOMEPAGE = "http://vtun.sourceforge.net/"
+SECTION = "console/network"
+PRIORITY = "optional"
+LICENSE = "GPLv2"
+DEPENDS = "zlib lzo openssl"
+PR = "r0"
+LIC_FILES_CHKSUM = "file://vtun.h;startline=1;endline=17;md5=9ac9e7fefca60c72400239e0de40cde8"
+
+SRC_URI = "http://downloads.sourceforge.net/project/vtun/vtun/${PV}/vtun-${PV}.tar.gz"
+
+SRC_URI[md5sum] = "f3becf2a0270910a841060c08d1db824"
+SRC_URI[sha256sum] = "69dcbe4f8c5ce7d91b4150a6309e536d03b61841169746ca5788413ac7edb9cb"
+
+inherit autotools
+
+do_configure() {
+	sed -i "s/\$BLOWFISH_HDR_DIR \/usr\/include\/ssl/\$BLOWFISH_HDR_DIR \/usr\/include\/ssl \$SSL_HDR_DIR/" configure
+	oe_runconf --with-lzo-headers=${STAGING_INCDIR}/lzo --with-lzo-lib=${STAGING_LIBDIR} --with-ssl-headers=${STAGING_INCDIR}/openssl --with-ssl-lib=${STAGING_LIBDIR}
+	sed '102d' Makefile > Makefile.new
+	mv Makefile.new Makefile
+}
+
Signature · 1 line
1.7.9.5
#1 lore raw
Quoted 2 lines · Sam Nelson

- Virtual Tunnels over TCP/IP networks with
traffic shaping, compression and encryption

Looks mostly good, just couple comments.

Quoted 17 lines

---
Changes from previous patch
* Updated LIC_FILES_CHECKSUM to use just the copyright lines
---

---
 .../recipes-connectivity/vtun/vtun_3.0.3.bb        |   23 ++++++++++++++++++++
 1 file changed, 23 insertions(+)
 create mode 100755 meta-arago-extras/recipes-connectivity/vtun/vtun_3.0.3.bb
meta-arago-extras/recipes-connectivity/vtun/vtun_3.0.3.bb new file +0 -0
new file mode 100755
index 0000000..bb4d69d

meta-arago-extras/recipes-connectivity/vtun/vtun_3.0.3.bb line 4

Quoted 4 lines
meta-arago-extras/recipes-connectivity/vtun/vtun_3.0.3.bb new file +4 -0
@@ -0,0 +1,23 @@
+DESCRIPTION = "Virtual Tunnels over TCP/IP networks with traffic shaping, compression and encryption."
+HOMEPAGE = "http://vtun.sourceforge.net/"
+SECTION = "console/network"
+PRIORITY = "optional"

Drop PRIORITY please.

Quoted 7 lines
meta-arago-extras/recipes-connectivity/vtun/vtun_3.0.3.bb new file +7 -0
+LICENSE = "GPLv2"
+DEPENDS = "zlib lzo openssl"
+PR = "r0"
+LIC_FILES_CHKSUM = "file://vtun.h;startline=1;endline=17;md5=9ac9e7fefca60c72400239e0de40cde8"
+
+SRC_URI = "http://downloads.sourceforge.net/project/vtun/vtun/${PV}/vtun-${PV}.tar.gz"
+

meta-arago-extras/recipes-connectivity/vtun/vtun_3.0.3.bb line 21

Quoted 10 lines
meta-arago-extras/recipes-connectivity/vtun/vtun_3.0.3.bb new file +10 -0
+SRC_URI[md5sum] = "f3becf2a0270910a841060c08d1db824"
+SRC_URI[sha256sum] = "69dcbe4f8c5ce7d91b4150a6309e536d03b61841169746ca5788413ac7edb9cb"
+
+inherit autotools
+
+do_configure() {
+	sed -i "s/\$BLOWFISH_HDR_DIR \/usr\/include\/ssl/\$BLOWFISH_HDR_DIR \/usr\/include\/ssl \$SSL_HDR_DIR/" configure
+	oe_runconf --with-lzo-headers=${STAGING_INCDIR}/lzo --with-lzo-lib=${STAGING_LIBDIR} --with-ssl-headers=${STAGING_INCDIR}/openssl --with-ssl-lib=${STAGING_LIBDIR}
+	sed '102d' Makefile > Makefile.new
+	mv Makefile.new Makefile

What's the reason for the above 2 sed commands? A small comment before do_configure() explaining why you are doing that, would be great! Thanks.

Quoted 9 lines
meta-arago-extras/recipes-connectivity/vtun/vtun_3.0.3.bb new file +2 -0
+}
+
Signature · 6 lines
1.7.9.5

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago