Skip to contentSkip to conversation

ftplib: add initial version of recipe 3.1

PATCH Superseded Vitaly Perov 1 participant 1 message Dec 13, 2011

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 ftplib: add initial version of recipe 3.1

From: Vitaly Perov <[email protected]>

tested on armv5te(AT91SAM9260)

---
 recipes/ftplib/ftplib_3.1.bb |   38 ++++++++++++++++++++++++++++++++++++++
 1 files changed, 38 insertions(+), 0 deletions(-)
 create mode 100644 recipes/ftplib/ftplib_3.1.bb
recipes/ftplib/ftplib_3.1.bb new file +38 -0
new file mode 100644
index 0000000..00a49bc
@@ -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)
+}
Signature · 1 line
1.7.6