added my Recipes
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
From 2ee0c51d81a0a08d64b64ab624074e5f7cd9615a Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Sat, 15 Jul 2017 00:07:32 -0700
|
||||
Subject: [PATCH] ftp: include sys/types.h for u_long
|
||||
|
||||
fixes
|
||||
ftp.c:1091:2: error: unknown type name 'u_long'; did you mean 'long'?
|
||||
u_long a1,a2,a3,a4,p1,p2;
|
||||
^~~~~~
|
||||
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
---
|
||||
ftp/ftp.c | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/ftp/ftp.c b/ftp/ftp.c
|
||||
index 7a56af6..5dcb513 100644
|
||||
--- a/ftp/ftp.c
|
||||
+++ b/ftp/ftp.c
|
||||
@@ -43,6 +43,7 @@ char ftp_rcsid[] =
|
||||
#include <sys/socket.h>
|
||||
#include <sys/time.h>
|
||||
#include <sys/file.h>
|
||||
+#include <sys/types.h>
|
||||
|
||||
#include <netinet/in.h>
|
||||
#include <netinet/ip.h>
|
||||
--
|
||||
2.13.3
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
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,50 @@
|
||||
DESCRIPTION = "netkit-ft includes the ftp client."
|
||||
SECTION = "net"
|
||||
HOMEPAGE="ftp://ftp.uk.linux.org/pub/linux/Networking/netkit"
|
||||
LICENSE = "BSD-4-Clause"
|
||||
|
||||
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}-34.debian.tar.xz;name=patch34 \
|
||||
file://Add_ARG_MAX_define.patch \
|
||||
file://0001-ftp-include-sys-types.h-for-u_long.patch \
|
||||
"
|
||||
SRC_URI[archive.sha256sum] = "61c913299b81a4671ff089aac821329f7db9bc111aa812993dd585798b700349"
|
||||
SRC_URI[patch34.sha256sum] = "716b984bc6926ed98345fa4e68adcee2efcf08d0f7315d6be8ad6de76f255748"
|
||||
|
||||
inherit autotools-brokensep update-alternatives
|
||||
|
||||
CLEANBROKEN = "1"
|
||||
|
||||
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 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"
|
||||
|
||||
ALTERNATIVE_PRIORITY = "100"
|
||||
ALTERNATIVE:${PN} = "ftp"
|
||||
ALTERNATIVE_LINK_NAME[ftp] = "${bindir}/ftp"
|
||||
Reference in New Issue
Block a user