[oe] [PATCH] ftplib: add initial version of recipe

Vitaly Perov vitperov at gmail.com
Sat Dec 10 20:10:21 UTC 2011


From: Vitaly Perov <vit at vt-tech.eu>

---
 recipes/ftplib/ftplib_3.1.bb |   38 ++++++++++++++++++++++++++++++++++++++
 1 files changed, 38 insertions(+), 0 deletions(-)
 create mode 100644 recipes/ftplib/ftplib_3.1.bb

diff --git a/recipes/ftplib/ftplib_3.1.bb b/recipes/ftplib/ftplib_3.1.bb
new file mode 100644
index 0000000..1dcdb3d
--- /dev/null
+++ b/recipes/ftplib/ftplib_3.1.bb
@@ -0,0 +1,38 @@
+#! /bin/sh
+
+DESCRIPTION = "A set of routines that implement the FTP protocol"
+HOMEPAGE = "http://nbpfaus.net/~pfau/ftplib/"
+LICENSE = "LGPLv2"
+
+PR = "r1"
+
+######################################################################################
+
+TARGET_CC_ARCH += "${LDFLAGS}"
+
+SRC_URI = "http://nbpfaus.net/~pfau/ftplib/ftplib-${PV}-src.tar.gz"
+
+S = "${WORKDIR}/ftplib-${PV}"
+
+######################################################################################
+
+SRC_URI[md5sum] = "c6af758ccbf806b28f022a587a41d9c5"
+SRC_URI[sha256sum] = "be524e1086cfe9d86afa832e1413dde79a4e88ee8ea5325a87ffaaf6620a0a2b"
+
+######################################################################################
+do_compile() {
+    cd linux && make
+}
+
+do_install() {
+    install -d ${D}/${libdir}
+    install -d ${D}/${includedir}
+    install -d ${D}/${bindir}
+    install -m 755 ${S}/linux/libftp.so.3.1 ${D}/${libdir}
+    install -m 755 ${S}/linux/libftp.a ${D}/${libdir}
+    install -m 644 ${S}/linux/ftplib.h ${D}/${includedir}
+    install -m 755 ${S}/linux/qftp ${D}/${bindir}
+    (cd ${D}/${libdir} && \
+     ln -sf libftp.so.3.1 libftp.so.3 && \
+     ln -sf libftp.so.3 libftp.so)
+}
-- 
1.7.6





More information about the Openembedded-devel mailing list