summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-networking/recipes-support/netcat/netcat-openbsd/0001-bundle-own-base64-encode-decode-functions.patch12
-rw-r--r--meta-networking/recipes-support/netcat/netcat-openbsd/0001-fix-netcat-openbsd-ftbfs-with-GCC-15.patch10
-rw-r--r--meta-networking/recipes-support/netcat/netcat-openbsd_1.228.bb (renamed from meta-networking/recipes-support/netcat/netcat-openbsd_1.195.bb)14
3 files changed, 17 insertions, 19 deletions
diff --git a/meta-networking/recipes-support/netcat/netcat-openbsd/0001-bundle-own-base64-encode-decode-functions.patch b/meta-networking/recipes-support/netcat/netcat-openbsd/0001-bundle-own-base64-encode-decode-functions.patch
index 929f63f4a9..7e665d777f 100644
--- a/meta-networking/recipes-support/netcat/netcat-openbsd/0001-bundle-own-base64-encode-decode-functions.patch
+++ b/meta-networking/recipes-support/netcat/netcat-openbsd/0001-bundle-own-base64-encode-decode-functions.patch
@@ -14,7 +14,7 @@ Update to version 1.190-2
14Signed-off-by: Changqing Li <changqing.li@windriver.com> 14Signed-off-by: Changqing Li <changqing.li@windriver.com>
15--- 15---
16 Makefile | 4 +- 16 Makefile | 4 +-
17 base64.c | 313 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 17 base64.c | 313 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
18 netcat.c | 3 + 18 netcat.c | 3 +
19 socks.c | 3 + 19 socks.c | 3 +
20 4 files changed, 321 insertions(+), 2 deletions(-) 20 4 files changed, 321 insertions(+), 2 deletions(-)
@@ -360,8 +360,8 @@ diff --git a/netcat.c b/netcat.c
360index a0fb51b..9c4ed23 100644 360index a0fb51b..9c4ed23 100644
361--- a/netcat.c 361--- a/netcat.c
362+++ b/netcat.c 362+++ b/netcat.c
363@@ -240,6 +240,9 @@ static int connect_with_timeout(int fd, const struct sockaddr *sa, 363@@ -239,6 +239,9 @@ char *proto_name(int, int);
364 364 static int connect_with_timeout(int, const struct sockaddr *, socklen_t, int);
365 static void quit(); 365 static void quit();
366 366
367+int b64_ntop(u_char const *src, size_t srclength, char *target, size_t targsize); 367+int b64_ntop(u_char const *src, size_t srclength, char *target, size_t targsize);
@@ -378,10 +378,10 @@ index 9068f39..c576f6b 100644
378 #define SOCKS_DOMAIN 3 378 #define SOCKS_DOMAIN 3
379 #define SOCKS_IPV6 4 379 #define SOCKS_IPV6 4
380 380
381+int b64_ntop(u_char const *src, size_t srclength, char *target, size_t targsize); 381+int b64_ntop(u_char const *src, size_t srclength, char *target, size_t targsize);
382+int b64_pton(char const *src, u_char *target, size_t targsize); 382+int b64_pton(char const *src, u_char *target, size_t targsize);
383+ 383+
384 int remote_connect(const char *, const char *, struct addrinfo); 384 int remote_connect(const char *, const char *, struct addrinfo, char *);
385 int socks_connect(const char *, const char *, struct addrinfo, 385 int socks_connect(const char *, const char *, struct addrinfo,
386 const char *, const char *, struct addrinfo, int, 386 const char *, const char *, struct addrinfo, int,
387-- 387--
diff --git a/meta-networking/recipes-support/netcat/netcat-openbsd/0001-fix-netcat-openbsd-ftbfs-with-GCC-15.patch b/meta-networking/recipes-support/netcat/netcat-openbsd/0001-fix-netcat-openbsd-ftbfs-with-GCC-15.patch
index c1757d39ad..d574ee0b67 100644
--- a/meta-networking/recipes-support/netcat/netcat-openbsd/0001-fix-netcat-openbsd-ftbfs-with-GCC-15.patch
+++ b/meta-networking/recipes-support/netcat/netcat-openbsd/0001-fix-netcat-openbsd-ftbfs-with-GCC-15.patch
@@ -28,19 +28,19 @@ Signed-off-by: mark.yang <mark.yang@lge.com>
28 1 file changed, 2 insertions(+), 2 deletions(-) 28 1 file changed, 2 insertions(+), 2 deletions(-)
29 29
30diff --git a/netcat.c b/netcat.c 30diff --git a/netcat.c b/netcat.c
31index d70598a..b8ba959 100644 31index 62d01d8..7367f47 100644
32--- a/netcat.c 32--- a/netcat.c
33+++ b/netcat.c 33+++ b/netcat.c
34@@ -238,7 +238,7 @@ char *proto_name(int uflag, int dccpflag); 34@@ -237,7 +237,7 @@ ssize_t fillbuf(int, unsigned char *, size_t *);
35 static int connect_with_timeout(int fd, const struct sockaddr *sa,
36 socklen_t salen, int ctimeout);
37 35
36 char *proto_name(int, int);
37 static int connect_with_timeout(int, const struct sockaddr *, socklen_t, int);
38-static void quit(); 38-static void quit();
39+static void quit(int sig); 39+static void quit(int sig);
40 40
41 int b64_ntop(u_char const *src, size_t srclength, char *target, size_t targsize); 41 int b64_ntop(u_char const *src, size_t srclength, char *target, size_t targsize);
42 int b64_pton(char const *src, u_char *target, size_t targsize); 42 int b64_pton(char const *src, u_char *target, size_t targsize);
43@@ -2235,7 +2235,7 @@ usage(int ret) 43@@ -2347,7 +2347,7 @@ usage(int ret)
44 * quit() 44 * quit()
45 * handler for a "-q" timeout (exit 0 instead of 1) 45 * handler for a "-q" timeout (exit 0 instead of 1)
46 */ 46 */
diff --git a/meta-networking/recipes-support/netcat/netcat-openbsd_1.195.bb b/meta-networking/recipes-support/netcat/netcat-openbsd_1.228.bb
index 99ae90aa91..82753b9f42 100644
--- a/meta-networking/recipes-support/netcat/netcat-openbsd_1.195.bb
+++ b/meta-networking/recipes-support/netcat/netcat-openbsd_1.228.bb
@@ -1,22 +1,20 @@
1require netcat.inc 1require netcat.inc
2SUMMARY = "OpenBSD Netcat" 2SUMMARY = "OpenBSD Netcat"
3HOMEPAGE = "http://ftp.debian.org" 3HOMEPAGE = "http://ftp.debian.org"
4LICENSE = "BSD-2-Clause" 4LICENSE = "BSD-3-Clause"
5LIC_FILES_CHKSUM = "file://debian/copyright;md5=f39e60ae4ea9fdb559c833be2e59de99" 5LIC_FILES_CHKSUM = "file://debian/copyright;md5=7c58e21ba8c9e76c25f46b2182b23bb8"
6 6
7DEPENDS += "glib-2.0 libbsd" 7DEPENDS += "glib-2.0 libbsd"
8do_patch[depends] = "quilt-native:do_populate_sysroot" 8do_patch[depends] = "quilt-native:do_populate_sysroot"
9 9
10SRC_URI = "http://snapshot.debian.org/archive/debian/20181022T085404Z/pool/main/n/netcat-openbsd/netcat-openbsd_${PV}.orig.tar.gz;name=netcat \ 10SRC_URI = "http://snapshot.debian.org/archive/debian/20250301T025722Z/pool/main/n/netcat-openbsd/netcat-openbsd_${PV}.orig.tar.gz;name=netcat \
11 http://snapshot.debian.org/archive/debian/20181022T085404Z/pool/main/n/netcat-openbsd/netcat-openbsd_${PV}-1.debian.tar.xz;name=netcat-patch;subdir=${BP} \ 11 http://snapshot.debian.org/archive/debian/20250301T025722Z/pool/main/n/netcat-openbsd/netcat-openbsd_${PV}-1.debian.tar.xz;name=netcat-patch;subdir=${BP} \
12 file://0001-bundle-own-base64-encode-decode-functions.patch \ 12 file://0001-bundle-own-base64-encode-decode-functions.patch \
13 file://0001-fix-netcat-openbsd-ftbfs-with-GCC-15.patch \ 13 file://0001-fix-netcat-openbsd-ftbfs-with-GCC-15.patch \
14 " 14 "
15 15
16SRC_URI[netcat.md5sum] = "219d5e49c45658e229a3bda63063a986" 16SRC_URI[netcat.sha256sum] = "e501b0239db0d8f981b964adee74effe80e6337e5d402a00515a6df8d933269e"
17SRC_URI[netcat.sha256sum] = "0e283b2a214313c69447cd962c528ac19afb3ddfe606b25de6d179f187cde4c3" 17SRC_URI[netcat-patch.sha256sum] = "7989cc18b3ffa4ef1da57149bd3fc03999546a91c35b82b49caf4d758015c573"
18SRC_URI[netcat-patch.md5sum] = "7eba241989dbef6caa78ec4bc8e35151"
19SRC_URI[netcat-patch.sha256sum] = "c6736fcbab5254cbbc52278993a951da1126e42800a297c27db297e332e2017e"
20 18
21inherit pkgconfig 19inherit pkgconfig
22 20