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

19
package/tor/Config.in Normal file
View File

@@ -0,0 +1,19 @@
config BR2_PACKAGE_TOR
bool "tor"
depends on BR2_USE_MMU # fork()
depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL
select BR2_PACKAGE_LIBEVENT
select BR2_PACKAGE_OPENSSL
select BR2_PACKAGE_ZLIB
help
Tor is free software and an open network that helps you
defend against traffic analysis, a form of network
surveillance that threatens personal freedom and privacy,
confidential business activities and relationships, and
state security.
https://www.torproject.org
comment "tor needs a toolchain w/ NPTL"
depends on BR2_USE_MMU
depends on !BR2_TOOLCHAIN_HAS_THREADS_NPTL

4
package/tor/tor.hash Normal file
View File

@@ -0,0 +1,4 @@
# From https://dist.torproject.org/tor-0.4.9.11.tar.gz.sha256sum
sha256 2e6c1720118c812acf0079fd47cf91b6bfaba5d766c321c4d3d2a28d6a11a8ed tor-0.4.9.11.tar.gz
# Locally computed
sha256 5dc29ea302cc75db6db4a7c88d7b5d4638b4e0f5f1d2e6d21ce71f707470b766 LICENSE

80
package/tor/tor.mk Normal file
View File

@@ -0,0 +1,80 @@
################################################################################
#
# tor
#
################################################################################
TOR_VERSION = 0.4.9.11
TOR_SITE = https://dist.torproject.org
TOR_LICENSE = BSD-3-Clause
TOR_LICENSE_FILES = LICENSE
TOR_CPE_ID_VENDOR = torproject
TOR_SELINUX_MODULES = tor
TOR_DEPENDENCIES = libevent openssl zlib
TOR_CONF_OPTS = \
--disable-gcc-hardening \
--disable-unittests \
--with-libevent-dir=$(STAGING_DIR)/usr \
--with-openssl-dir=$(STAGING_DIR)/usr \
--with-zlib-dir=$(STAGING_DIR)/usr
ifeq ($(BR2_STATIC_LIBS),y)
TOR_CONF_OPTS += \
--enable-static-libevent \
--enable-static-openssl \
--enable-static-tor \
--enable-static-zlib
endif
ifeq ($(BR2_PACKAGE_LIBCAP),y)
TOR_DEPENDENCIES += libcap
endif
ifeq ($(BR2_PACKAGE_SYSTEMD),y)
TOR_CONF_OPTS += --enable-systemd
TOR_DEPENDENCIES += host-pkgconf systemd
else
TOR_CONF_OPTS += --disable-systemd
endif
ifeq ($(BR2_PACKAGE_XZ),y)
TOR_CONF_OPTS += --enable-lzma
TOR_DEPENDENCIES += host-pkgconf xz
else
TOR_CONF_OPTS += --disable-lzma
endif
ifeq ($(BR2_PACKAGE_ZSTD),y)
TOR_CONF_OPTS += --enable-zstd
TOR_DEPENDENCIES += host-pkgconf zstd
else
TOR_CONF_OPTS += --disable-zstd
endif
ifeq ($(BR2_arm)$(BR2_armeb)$(BR2_i386)$(BR2_x86_64)$(BR2_PACKAGE_LIBSECCOMP),yy)
TOR_CONF_OPTS += --enable-seccomp
TOR_DEPENDENCIES += libseccomp
else
TOR_CONF_OPTS += --disable-seccomp
endif
# uses gnu extensions
TOR_CONF_ENV = ac_cv_prog_cc_c99='-std=gnu99'
ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
TOR_LIBS += -latomic
endif
ifeq ($(BR2_STATIC_LIBS),y)
TOR_LIBS += -lz
endif
TOR_CONF_ENV += LIBS="$(TOR_LIBS)"
define TOR_INSTALL_CONF
$(INSTALL) -D -m 644 $(@D)/src/config/torrc.minimal \
$(TARGET_DIR)/etc/tor/torrc
endef
TOR_POST_INSTALL_TARGET_HOOKS += TOR_INSTALL_CONF
$(eval $(autotools-package))