Initial Commit

- initial default booting image
This commit is contained in:
2026-11-06 20:45:42 +01:00
commit b8783708ae
15201 changed files with 602532 additions and 0 deletions

View File

@@ -0,0 +1,55 @@
From 01463f5dbe19501948dec26160e0cc3b4e9167b4 Mon Sep 17 00:00:00 2001
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Date: Mon, 27 Nov 2023 18:09:57 +0200
Subject: [PATCH] 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.
Upstream: N/A
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
[baruch: update for 1.8.0.0 and 1.8.0.3; git patch format]
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
[Bernd: rebase on 1.8.1.1]
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
---
Makefile.in | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/Makefile.in b/Makefile.in
index c01b1a4a2306..fd89acb06f3c 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -82,7 +82,7 @@ SHFILES = socat-chain.sh socat-mux.sh socat-broker.sh \
TESTFILES = test.sh socks4echo.sh proxyecho.sh readline-test.sh \
proxy.sh socks4a-echo.sh socks5server-echo.sh socks5server-auth.sh
-all: progs doc
+all: progs
scmclean: gitclean
@@ -128,7 +128,7 @@ libxio.a: $(XIOOBJS) $(UTLOBJS)
strip: progs
strip $(PROGS)
-install: progs $(srcdir)/doc/socat.1
+install: progs
mkdir -p $(DESTDIR)$(BINDEST)
$(INSTALL) -m 755 socat $(DESTDIR)$(BINDEST)/socat1
ln -sf socat1 $(DESTDIR)$(BINDEST)/socat
@@ -137,9 +137,6 @@ install: progs $(srcdir)/doc/socat.1
$(INSTALL) -m 755 socat-broker.sh $(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/socat1.1
- ln -sf socat1.1 $(DESTDIR)$(MANDEST)/man1/socat.1
uninstall:
rm -f $(DESTDIR)$(BINDEST)/socat
--
2.42.0

7
package/socat/Config.in Normal file
View File

@@ -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/

8
package/socat/socat.hash Normal file
View File

@@ -0,0 +1,8 @@
# From http://www.dest-unreach.org/socat/download.md5sum
md5 1a5b8ddff793847d80aa100d54b7cf76 socat-1.8.1.3.tar.bz2
# From http://www.dest-unreach.org/socat/download.sha256sum
sha256 25bc6476292b2e614220989c77b0b6fca87bb2525d9747b31a6639b1fb602418 socat-1.8.1.3.tar.bz2
# Locally calculated
sha256 86e46422f9381b386bd2eb6606f9d6c3ff479f905660d0f318c571292ab304b8 README
sha256 8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643 COPYING
sha256 fd9e48ca316a5032069b9521f4f4b4d9b1c60365012bae1e62286bcd5bd2e761 COPYING.OpenSSL

54
package/socat/socat.mk Normal file
View File

@@ -0,0 +1,54 @@
################################################################################
#
# socat
#
################################################################################
SOCAT_VERSION = 1.8.1.3
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
SOCAT_CONF_ENV = ac_cv_have_c99_snprintf=yes
ifeq ($(BR2_TOOLCHAIN_USES_GLIBC)$(BR2_TOOLCHAIN_USES_UCLIBC),y)
SOCAT_CONF_ENV += ac_cv_have_z_modifier=yes
else
SOCAT_CONF_ENV += ac_cv_have_z_modifier=no
endif
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
# Makefile.in. However, the package only uses autoconf and not
# automake, so we can't use the normal autoreconf logic.
SOCAT_DEPENDENCIES = host-autoconf
# incompatible license (GPL-3.0+)
SOCAT_CONF_OPTS = --disable-readline
ifeq ($(BR2_PACKAGE_LIBOPENSSL):$(BR2_STATIC_LIBS),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))