Patchwork [v3] ftplib: add initial recipe with version 3.1

login
register
mail settings
Submitter Vitaly Perov
Date Dec. 15, 2011, 4:48 p.m.
Message ID <1323967720-6899-1-git-send-email-vitperov@gmail.com>
Download mbox | patch
Permalink /patch/17037/
State New, archived
Headers show

Comments

Vitaly Perov - Dec. 15, 2011, 4:48 p.m.
From: Vitaly Perov <vit@vt-tech.eu>

fplib provides a set of routines that implement the FTP protocol.

Build tested with 'angstrom v2011.12' and Angstrom-console-image for machine AT91SAM9260

Signed-off-by: Vitaly Perov <vitperov@gmail.com>
---
 recipes/ftplib/ftplib_3.1.bb |   38 ++++++++++++++++++++++++++++++++++++++
 1 files changed, 38 insertions(+), 0 deletions(-)
 create mode 100644 recipes/ftplib/ftplib_3.1.bb

Patch

diff --git a/recipes/ftplib/ftplib_3.1.bb b/recipes/ftplib/ftplib_3.1.bb
new file mode 100644
index 0000000..00a49bc
--- /dev/null
+++ b/recipes/ftplib/ftplib_3.1.bb
@@ -0,0 +1,38 @@ 
+DESCRIPTION = "A set of routines that implement the FTP protocol"
+HOMEPAGE = "http://nbpfaus.net/~pfau/ftplib/"
+LICENSE = "LGPLv2"
+
+PR = "r0"
+
+# LDFLAGS are missing in Makefile build section
+TARGET_CC_ARCH += "${LDFLAGS}"
+
+# Use current directory for linking qftp with just-build ftplib
+EXTRA_OEMAKE = "LDFLAGS='${LDFLAGS} -L.'"
+
+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 && oe_runmake
+}
+
+do_install() {
+    install -d ${D}/${libdir}
+    install -d ${D}/${includedir}
+    install -d ${D}/${bindir}
+    oe_libinstall -so -C linux libftp ${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}/${bindir} && \
+     ln -sf qftp ftpdir && \
+     ln -sf qftp ftpget && \
+     ln -sf qftp ftplist && \
+     ln -sf qftp fptrm && \
+     ln -sf qftp ftpsend)
+}