initial buildroot for linux 5.15
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
socat: disable documentation build/installation
|
||||
|
||||
The documentation generation process requires a special yold2man
|
||||
program, for which we don't have a package in Buildroot. Since we
|
||||
generally don't care much about documentation of packages, just adjust
|
||||
the package Makefile.in to not build/install its documentation.
|
||||
|
||||
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||
|
||||
Index: b/Makefile.in
|
||||
===================================================================
|
||||
--- a/Makefile.in
|
||||
+++ b/Makefile.in
|
||||
@@ -93,7 +93,7 @@
|
||||
Config/Makefile.Cygwin-1-5-25 Config/config.Cygwin-1-5-25.h \
|
||||
Config/Makefile.MacOSX-10-5 Config/config.MacOSX-10-5.h
|
||||
|
||||
-all: progs doc
|
||||
+all: progs
|
||||
|
||||
scmclean: gitclean
|
||||
|
||||
@@ -136,13 +136,11 @@
|
||||
strip: progs
|
||||
strip $(PROGS)
|
||||
|
||||
-install: progs $(srcdir)/doc/socat.1
|
||||
+install: progs
|
||||
mkdir -p $(DESTDIR)$(BINDEST)
|
||||
$(INSTALL) -m 755 socat $(DESTDIR)$(BINDEST)
|
||||
$(INSTALL) -m 755 procan $(DESTDIR)$(BINDEST)
|
||||
$(INSTALL) -m 755 filan $(DESTDIR)$(BINDEST)
|
||||
- mkdir -p $(DESTDIR)$(MANDEST)/man1
|
||||
- $(INSTALL) -m 644 $(srcdir)/doc/socat.1 $(DESTDIR)$(MANDEST)/man1/
|
||||
|
||||
uninstall:
|
||||
rm -f $(DESTDIR)$(BINDEST)/socat
|
||||
@@ -0,0 +1,35 @@
|
||||
From e7804d1750652e39c7a5803d360b29b2637a695f Mon Sep 17 00:00:00 2001
|
||||
From: Romain Naour <romain.naour@gmail.com>
|
||||
Date: Sun, 28 Aug 2016 21:04:01 +0200
|
||||
Subject: [PATCH] compat: set NETDB_INTERNAL
|
||||
|
||||
Musl doesn't provide NETDB_INTERNAL which is defined in resolv/netdb.h
|
||||
in Glibc [1].
|
||||
|
||||
Set NETDB_INTERNAL to -1 locally if not already defined.
|
||||
Based on [2].
|
||||
|
||||
[1] https://sourceware.org/git/?p=glibc.git;a=blob;f=resolv/netdb.h;h=3aba530932c7a62a4f23e3193e9186da677f552b;hb=fdfc9260b61d3d72541f18104d24c7bcb0ce5ca2#l74
|
||||
[2] http://git.alpinelinux.org/cgit/aports/tree/main/socat/netdb-internal.patch?id=5a45173b50892cb634197c30b3506ebff98d3b7d
|
||||
|
||||
Signed-off-by: Romain Naour <romain.naour@gmail.com>
|
||||
---
|
||||
compat.h | 2 ++
|
||||
1 file changed, 2 insertions(+)
|
||||
|
||||
diff --git a/compat.h b/compat.h
|
||||
index 19a929f..4f5ee6d 100644
|
||||
--- a/compat.h
|
||||
+++ b/compat.h
|
||||
@@ -666,6 +666,8 @@ typedef int sig_atomic_t;
|
||||
|
||||
#if !defined(NETDB_INTERNAL) && defined(h_NETDB_INTERNAL)
|
||||
# define NETDB_INTERNAL h_NETDB_INTERNAL
|
||||
+#elif !defined(NETDB_INTERNAL)
|
||||
+# define NETDB_INTERNAL (-1)
|
||||
#endif
|
||||
|
||||
#ifndef INET_ADDRSTRLEN
|
||||
--
|
||||
2.5.5
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
config BR2_PACKAGE_SOCAT
|
||||
bool "socat"
|
||||
depends on BR2_USE_MMU # fork()
|
||||
help
|
||||
Multipurpose socket relay program.
|
||||
|
||||
http://www.dest-unreach.org/socat/
|
||||
@@ -0,0 +1,8 @@
|
||||
# From http://www.dest-unreach.org/socat/download.md5sum
|
||||
md5 36cad050ecf4981ab044c3fbd75c643f socat-1.7.4.1.tar.bz2
|
||||
# From http://www.dest-unreach.org/socat/download.sha256sum
|
||||
sha256 3faca25614e89123dff5045680549ecef519d02e331aaf3c4f5a8f6837c675e9 socat-1.7.4.1.tar.bz2
|
||||
# Locally calculated
|
||||
sha256 b1ebebbce145027f4268211f36d121b083aeeabdc1736eb144b8afd8e86ce8da README
|
||||
sha256 8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643 COPYING
|
||||
sha256 fd9e48ca316a5032069b9521f4f4b4d9b1c60365012bae1e62286bcd5bd2e761 COPYING.OpenSSL
|
||||
@@ -0,0 +1,46 @@
|
||||
################################################################################
|
||||
#
|
||||
# socat
|
||||
#
|
||||
################################################################################
|
||||
|
||||
SOCAT_VERSION = 1.7.4.1
|
||||
SOCAT_SOURCE = socat-$(SOCAT_VERSION).tar.bz2
|
||||
SOCAT_SITE = http://www.dest-unreach.org/socat/download
|
||||
SOCAT_LICENSE = GPL-2.0 with OpenSSL exception
|
||||
SOCAT_LICENSE_FILES = README COPYING COPYING.OpenSSL
|
||||
SOCAT_CPE_ID_VENDOR = dest-unreach
|
||||
|
||||
ifeq ($(BR2_powerpc)$(BR2_powerpc64)$(BR2_powerpc64le),y)
|
||||
SOCAT_CONF_ENV += \
|
||||
sc_cv_sys_crdly_shift=12 \
|
||||
sc_cv_sys_tabdly_shift=10 \
|
||||
sc_cv_sys_csize_shift=8
|
||||
else
|
||||
SOCAT_CONF_ENV += \
|
||||
sc_cv_sys_crdly_shift=9 \
|
||||
sc_cv_sys_tabdly_shift=11 \
|
||||
sc_cv_sys_csize_shift=4
|
||||
endif
|
||||
|
||||
# We need to run autoconf to regenerate the configure script, since we patch
|
||||
# configure.in and Makefile.in. However, the package only uses autoconf and not
|
||||
# automake, so we can't use the normal autoreconf logic.
|
||||
|
||||
SOCAT_DEPENDENCIES = host-autoconf
|
||||
# incompatibile license (GPL-3.0+)
|
||||
SOCAT_CONF_OPTS = --disable-readline
|
||||
|
||||
ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
||||
SOCAT_DEPENDENCIES += openssl
|
||||
else
|
||||
SOCAT_CONF_OPTS += --disable-openssl
|
||||
endif
|
||||
|
||||
define SOCAT_RUN_AUTOCONF
|
||||
(cd $(@D); $(AUTOCONF))
|
||||
endef
|
||||
|
||||
SOCAT_PRE_CONFIGURE_HOOKS += SOCAT_RUN_AUTOCONF
|
||||
|
||||
$(eval $(autotools-package))
|
||||
Reference in New Issue
Block a user