Initial Commit
- initial default booting image
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
From a5d71d076168f8ad1e7dd30b35f1569f180f429c Mon Sep 17 00:00:00 2001
|
||||
From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
Date: Thu, 2 Nov 2023 23:03:15 +0100
|
||||
Subject: [PATCH] src/osflags: fully fix cross-compilation
|
||||
|
||||
Cross-compilation was only partially fixed by
|
||||
https://github.com/yarrick/iodine/commit/024481c94b97ef37981621cdc38f8b20f8919418
|
||||
as selinux was still enabled depending on host file existence
|
||||
|
||||
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
Upstream: https://github.com/yarrick/iodine/pull/93
|
||||
---
|
||||
src/osflags | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/src/osflags b/src/osflags
|
||||
index 9a437bd..39ca5fa 100755
|
||||
--- a/src/osflags
|
||||
+++ b/src/osflags
|
||||
@@ -20,7 +20,7 @@ link)
|
||||
;;
|
||||
Linux)
|
||||
FLAGS="";
|
||||
- [ -e /usr/include/selinux/selinux.h ] && FLAGS="$FLAGS -lselinux";
|
||||
+ "$PKG_CONFIG" --exists libselinux && FLAGS="$FLAGS $($PKG_CONFIG --libs libselinux)";
|
||||
"$PKG_CONFIG" --exists libsystemd-daemon && FLAGS="$FLAGS $($PKG_CONFIG --libs libsystemd-daemon)";
|
||||
"$PKG_CONFIG" --exists libsystemd && FLAGS="$FLAGS $($PKG_CONFIG --libs libsystemd)";
|
||||
echo $FLAGS;
|
||||
@@ -40,7 +40,7 @@ cflags)
|
||||
;;
|
||||
Linux)
|
||||
FLAGS="-D_GNU_SOURCE"
|
||||
- [ -e /usr/include/selinux/selinux.h ] && FLAGS="$FLAGS -DHAVE_SETCON";
|
||||
+ "$PKG_CONFIG" --exists libselinux && FLAGS="$FLAGS -DHAVE_SETCON";
|
||||
"$PKG_CONFIG" --exists libsystemd-daemon && FLAGS="$FLAGS -DHAVE_SYSTEMD";
|
||||
"$PKG_CONFIG" --exists libsystemd && FLAGS="$FLAGS -DHAVE_SYSTEMD";
|
||||
echo $FLAGS;
|
||||
--
|
||||
2.42.0
|
||||
|
||||
9
package/iodine/Config.in
Normal file
9
package/iodine/Config.in
Normal file
@@ -0,0 +1,9 @@
|
||||
config BR2_PACKAGE_IODINE
|
||||
bool "iodine"
|
||||
select BR2_PACKAGE_ZLIB
|
||||
help
|
||||
iodine lets you tunnel IPv4 data through a DNS server.
|
||||
This can be usable in different situations where
|
||||
internet access is firewalled, but DNS queries are allowed.
|
||||
|
||||
http://code.kryo.se/iodine/
|
||||
5
package/iodine/iodine.hash
Normal file
5
package/iodine/iodine.hash
Normal file
@@ -0,0 +1,5 @@
|
||||
# From http://code.kryo.se/iodine/
|
||||
md5 6f2a53476cbc09bbffe7e07d6e9dd19d iodine-0.8.0.tar.gz
|
||||
# Locally computed
|
||||
sha256 546e92cf8617f7970ea81c850b1063eb189c68c406d0c6a67e02c55e72e714c6 iodine-0.8.0.tar.gz
|
||||
sha256 9541123931e4df4ec84612e056a92ecaab905fe201deaf932b895406565fbb85 LICENSE
|
||||
38
package/iodine/iodine.mk
Normal file
38
package/iodine/iodine.mk
Normal file
@@ -0,0 +1,38 @@
|
||||
################################################################################
|
||||
#
|
||||
# iodine
|
||||
#
|
||||
################################################################################
|
||||
|
||||
IODINE_VERSION = 0.8.0
|
||||
IODINE_SITE = http://code.kryo.se/iodine
|
||||
IODINE_LICENSE = MIT
|
||||
IODINE_LICENSE_FILES = LICENSE
|
||||
IODINE_CPE_ID_VENDOR = kryo
|
||||
IODINE_SELINUX_MODULES = iodine
|
||||
IODINE_DEPENDENCIES = \
|
||||
host-pkgconf \
|
||||
$(if $(BR2_PACKAGE_LIBSELINUX),libselinux) \
|
||||
$(if $(BR2_PACKAGE_SYSTEMD),systemd) \
|
||||
zlib
|
||||
|
||||
IODINE_CFLAGS = $(TARGET_CFLAGS)
|
||||
|
||||
# iodine contains a local implementation of daemon(3) for older
|
||||
# systems, unless __GLIBC__ is defined. Musl does provide it, but
|
||||
# unlike uClibc it doesn't define __GLIBC__. Work around it by
|
||||
# pretending to be glibc as we otherwise end up with symbol conflicts.
|
||||
ifeq ($(BR2_TOOLCHAIN_USES_MUSL),y)
|
||||
IODINE_CFLAGS += -D__GLIBC__
|
||||
endif
|
||||
|
||||
define IODINE_BUILD_CMDS
|
||||
$(TARGET_CONFIGURE_OPTS) CFLAGS="$(IODINE_CFLAGS)" \
|
||||
$(MAKE) ARCH=$(BR2_ARCH) -C $(@D)
|
||||
endef
|
||||
|
||||
define IODINE_INSTALL_TARGET_CMDS
|
||||
$(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) install DESTDIR="$(TARGET_DIR)" prefix=/usr
|
||||
endef
|
||||
|
||||
$(eval $(generic-package))
|
||||
Reference in New Issue
Block a user