mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-07-26 19:47:17 +00:00
netkit-ftp: new recipe
Signed-off-by: Armin Kuster <akuster808@gmail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
This commit is contained in:
committed by
Joe MacDonald
parent
97cffc1f24
commit
cdd5287912
@@ -0,0 +1,28 @@
|
|||||||
|
This adds ARG_MAX define to be _SC_ARG_MAX
|
||||||
|
|
||||||
|
Upstream-Status: Inappropriate.
|
||||||
|
Most distros have their own verion for this fix.
|
||||||
|
|
||||||
|
Signed-off-by: Armin Kuster <akuster808@gmail.com>
|
||||||
|
|
||||||
|
Index: netkit-ftp-0.17/ftp/glob.c
|
||||||
|
===================================================================
|
||||||
|
--- netkit-ftp-0.17.orig/ftp/glob.c
|
||||||
|
+++ netkit-ftp-0.17/ftp/glob.c
|
||||||
|
@@ -50,6 +50,7 @@ char glob_rcsid[] =
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include <string.h>
|
||||||
|
+#include <unistd.h>
|
||||||
|
|
||||||
|
#include "ftp_var.h" /* for protos only */
|
||||||
|
#include "glob.h"
|
||||||
|
@@ -57,6 +58,9 @@ char glob_rcsid[] =
|
||||||
|
#define QUOTE 0200
|
||||||
|
#define TRIM 0177
|
||||||
|
#define eq(a,b) (strcmp(a, b)==0)
|
||||||
|
+#ifndef ARG_MAX
|
||||||
|
+#define ARG_MAX (sysconf(_SC_ARG_MAX))
|
||||||
|
+#endif
|
||||||
|
#define GAVSIZ (ARG_MAX/6)
|
||||||
|
#define isdir(d) ((d.st_mode & S_IFMT) == S_IFDIR)
|
||||||
@@ -0,0 +1,46 @@
|
|||||||
|
DESCRIPTION = "netkit-ft includes the ftp client."
|
||||||
|
SECTION = "networking"
|
||||||
|
HOMEPAGE="ftp://ftp.uk.linux.org/pub/linux/Networking/netkit"
|
||||||
|
LICENSE = "BSD"
|
||||||
|
|
||||||
|
LIC_FILES_CHKSUM = "file://ftp/ftp.c;beginline=2;endline=3;md5=2d40a75a50d83b8f6317b3f53db72bfa"
|
||||||
|
|
||||||
|
SRC_URI = "${DEBIAN_MIRROR}/main/n/netkit-ftp/netkit-ftp_${PV}.orig.tar.gz;name=archive \
|
||||||
|
${DEBIAN_MIRROR}/main/n/netkit-ftp/netkit-ftp_${PV}-31.debian.tar.xz;name=patch31 \
|
||||||
|
file://Add_ARG_MAX_define.patch \
|
||||||
|
"
|
||||||
|
|
||||||
|
SRC_URI[archive.md5sum] = "94441610c9b86ef45c4c6ec609444060"
|
||||||
|
SRC_URI[archive.sha256sum] = "61c913299b81a4671ff089aac821329f7db9bc111aa812993dd585798b700349"
|
||||||
|
SRC_URI[patch31.md5sum] = "93d71e28ce70df69e080c7f90da63cac"
|
||||||
|
SRC_URI[patch31.sha256sum] = "4edd46a32d70daa7ba00f0ebf0118dc5d17dff23d6e46aa21a2722be2e22d1c1"
|
||||||
|
|
||||||
|
inherit autotools-brokensep
|
||||||
|
|
||||||
|
do_configure () {
|
||||||
|
./configure --prefix=${prefix}
|
||||||
|
echo "LDFLAGS=${LDFLAGS}" >> MCONFIG
|
||||||
|
}
|
||||||
|
|
||||||
|
BINMODE = "0755"
|
||||||
|
MANMODE = "0644"
|
||||||
|
|
||||||
|
do_install () {
|
||||||
|
install -d ${D}${bindir}
|
||||||
|
install -d ${D}${mandir}/man1
|
||||||
|
install -d ${D}${mandir}/man5
|
||||||
|
|
||||||
|
install -m${BINMODE} ${S}/ftp/ftp ${D}${bindir}
|
||||||
|
ln -sf ${D}${bindir}/ftp ${D}${bindir}/pftp
|
||||||
|
install -m${MANMODE} ${S}/ftp/ftp.1 ${D}${mandir}/man1
|
||||||
|
ln -sf ftp.1 ${D}${mandir}/man1/pftp.1
|
||||||
|
install -m${MANMODE} ${S}/ftp/netrc.5 ${D}${mandir}/man5
|
||||||
|
}
|
||||||
|
|
||||||
|
PACKAGES = "${PN} ${PN}-doc ${BPN}-dbg"
|
||||||
|
FILES_${PN} = "${bindir}/*"
|
||||||
|
FILES_${PN}-doc = "${mandir}"
|
||||||
|
FILES_${PN}-dbg = "${prefix}/src/debug \
|
||||||
|
${bindir}/.debug"
|
||||||
|
|
||||||
|
RDEPENDS_${PN} = "readline"
|
||||||
Reference in New Issue
Block a user