commit c31a5f4
hovercats
·
2024-03-26 21:34:30 +0000 UTC
parent 7527e30
eiwd: drop
10 files changed,
+0,
-242
+0,
-2
1@@ -1,2 +0,0 @@
2-/iwd-2.14.tar.xz
3-/src
+0,
-34
1@@ -1,34 +0,0 @@
2-#define DAEMON_CONFIGDIR "/etc/iwd"
3-#define DAEMON_STORAGEDIR "/var/lib/iwd"
4-/* #undef HAVE_BACKTRACE */
5-#define HAVE_DLFCN_H 1
6-#define HAVE_EXPLICIT_BZERO 1
7-#define HAVE_INTTYPES_H 1
8-/* #undef HAVE_LIBASAN */
9-/* #undef HAVE_LIBLSAN */
10-/* #undef HAVE_LIBUBSAN */
11-#define HAVE_LINUX_IF_ALG_H 1
12-#define HAVE_LINUX_TYPES_H 1
13-/* #undef HAVE_RAWMEMCHR */
14-#define HAVE_REALLOCARRAY 1
15-#define HAVE_STDINT_H 1
16-#define HAVE_STDIO_H 1
17-#define HAVE_STDLIB_H 1
18-#define HAVE_STRINGS_H 1
19-#define HAVE_STRING_H 1
20-#define HAVE_SYS_STAT_H 1
21-#define HAVE_SYS_TYPES_H 1
22-#define HAVE_UNISTD_H 1
23-#define LT_OBJDIR ".libs/"
24-#define PACKAGE "iwd"
25-#define PACKAGE_BUGREPORT ""
26-#define PACKAGE_NAME "iwd"
27-#define PACKAGE_STRING "iwd 2.14"
28-#define PACKAGE_TARNAME "iwd"
29-#define PACKAGE_URL ""
30-#define PACKAGE_VERSION "2.14"
31-#define STDC_HEADERS 1
32-#define VERSION "2.14"
33-#define WIRED_STORAGEDIR "/var/lib/ead"
34-/* #undef _FILE_OFFSET_BITS */
35-/* #undef _LARGE_FILES */
+0,
-46
1@@ -1,46 +0,0 @@
2-#include <ell/util.h>
3-#include <ell/test.h>
4-#include <ell/strv.h>
5-#include <ell/utf8.h>
6-#include <ell/queue.h>
7-#include <ell/hashmap.h>
8-#include <ell/string.h>
9-#include <ell/settings.h>
10-#include <ell/main.h>
11-#include <ell/idle.h>
12-#include <ell/signal.h>
13-#include <ell/timeout.h>
14-#include <ell/io.h>
15-#include <ell/ringbuf.h>
16-#include <ell/log.h>
17-#include <ell/checksum.h>
18-#include <ell/netlink.h>
19-#include <ell/genl.h>
20-#include <ell/dbus.h>
21-#include <ell/rtnl.h>
22-#include <ell/dbus-service.h>
23-#include <ell/dbus-client.h>
24-#include <ell/hwdb.h>
25-#include <ell/cipher.h>
26-#include <ell/random.h>
27-#include <ell/uintset.h>
28-#include <ell/base64.h>
29-#include <ell/pem.h>
30-#include <ell/tls.h>
31-#include <ell/uuid.h>
32-#include <ell/key.h>
33-#include <ell/file.h>
34-#include <ell/dir.h>
35-#include <ell/net.h>
36-#include <ell/dhcp.h>
37-#include <ell/cert.h>
38-#include <ell/ecc.h>
39-#include <ell/ecdh.h>
40-#include <ell/time.h>
41-#include <ell/path.h>
42-#include <ell/icmp6.h>
43-#include <ell/dhcp6.h>
44-#include <ell/acd.h>
45-#include <ell/cleanup.h>
46-#include <ell/netconfig.h>
47-#include <ell/sysctl.h>
+0,
-81
1@@ -1,81 +0,0 @@
2-cflags{
3- '-D HAVE_CONFIG_H',
4- '-I $outdir',
5- '-I $srcdir',
6- '-isystem $builddir/pkg/linux-headers/include',
7-}
8-
9-build('copy', '$outdir/ell/ell.h', '$dir/ell.h')
10-build('copy', '$outdir/config.h', '$dir/config.h')
11-
12-pkg.deps = {
13- '$outdir/ell/ell.h',
14- '$outdir/config.h',
15- 'pkg/linux-headers/headers',
16-}
17-
18-lib('libell-internal.a', [[
19- ell/(
20- util.c test.c strv.c
21- utf8.c queue.c hashmap.c
22- string.c settings.c main.c
23- idle.c signal.c timeout.c
24- io.c ringbuf.c log.c
25- checksum.c netlink.c genl.c
26- rtnl.c dbus.c dbus-message.c
27- dbus-util.c dbus-service.c
28- dbus-client.c dbus-name-cache.c
29- dbus-filter.c gvariant-util.c
30- siphash.c hwdb.c cipher.c random.c
31- uintset.c base64.c pem.c tls.c
32- tls-record.c tls-suites.c
33- tls-extensions.c uuid.c
34- key.c file.c dir.c net.c
35- dhcp.c dhcp-transport.c
36- dhcp-lease.c dhcp-util.c
37- dhcp-server.c cert.c cert-crypto.c
38- ecc-external.c ecc.c ecdh.c time.c
39- path.c dhcp6.c icmp6.c dhcp6-lease.c
40- dhcp6-transport.c acd.c netconfig.c
41- sysctl.c
42- )
43-]])
44-
45-exe('iwd', [[
46- src/(
47- main.c netdev.c wiphy.c
48- device.c station.c ie.c
49- dbus.c mpdu.c eapol.c
50- eapolutil.c handshake.c scan.c
51- common.c agent.c storage.c
52- network.c wsc.c backtrace.c
53- knownnetworks.c rfkill.c
54- ft.c ap.c adhoc.c sae.c
55- nl80211util.c nl80211cmd.c
56- owe.c blacklist.c manager.c
57- erp.c fils.c anqp.c anqputil.c
58- netconfig.c netconfig-commit.c
59- resolve.c hotspot.c p2p.c
60- p2putil.c module.c rrm.c
61- frame-xchg.c eap-wsc.c
62- wscutil.c diagnostic.c
63- ip-pool.c band.c
64- sysfs.c offchannel.c
65- dpp-util.c json.c dpp.c
66-
67- eap.c eap-md5.c eap-tls.c
68- eap-ttls.c eap-mschapv2.c
69- eap-sim.c eap-aka.c eap-peap.c
70- eap-gtc.c eap-pwd.c util.c
71- crypto.c simutil.c simauth.c
72- watchlist.c eap-tls-common.c
73- mschaputil.c
74- )
75- libell-internal.a
76-]])
77-
78-file('bin/iwd', '755', '$outdir/iwd')
79-file('bin/iwd_passphrase', '755', '$dir/iwd_passphrase')
80-man{'src/iwd.8'}
81-
82-fetch 'curl'
+0,
-34
1@@ -1,34 +0,0 @@
2-#!/bin/sh
3-#
4-# Simple script to generate iwd network files.
5-
6-[ "$1" ] || {
7- printf '%s\n' "usage: printf pass | ${0##*/} ssid" >&2
8- exit 1
9-}
10-
11-# Read the password from 'stdin'.
12-read -r pass; [ "$pass" ] || exit 1
13-
14-# Consider all characters as single-byte.
15-export LC_CTYPE=C
16-
17-# The SSID appears verbatim in the name if it contains
18-# only alphanumeric characters, spaces, underscores or
19-# minus signs. Otherwise it is encoded as an equal sign
20-# followed by the lower-case hex encoding of the name.
21-case $1 in
22- *[!A-Za-z0-9_' '-]*)
23- ssid="=$(printf %s "$1" | od -vA n -t x1 | tr -d '\n ')"
24- ;;
25-
26- *)
27- ssid=$1
28- ;;
29-esac
30-
31-printf '%s\n\n' "Save this output to /var/lib/iwd/$ssid.psk" >&2
32-printf '[Security]\n'
33-printf 'Passphrase=%s\n' "$pass"
34-printf '\nTIP: You can use this output directly as the\n' >&2
35-printf ' help messages are printed to stderr.\n' >&2
1@@ -1,41 +0,0 @@
2-From ba5a6df2d170fce96354f0c9ba281fe049d2f0a3 Mon Sep 17 00:00:00 2001
3-From: Denis Kenzior <denkenz@gmail.com>
4-Date: Wed, 14 Feb 2024 14:50:06 -0600
5-Subject: [PATCH] wiphy: Remove basename() use
6-
7-basename use is considered harmful. There are two versions of
8-basename (see man 3 basename for details). The more intuitive version,
9-which is currently being used inside wiphy.c, is not supported by musl
10-libc implementation. Use of the libgen version is not preferred, so
11-drop use of basename entirely. Since wiphy.c is the only call site of
12-basename() inside iwd, open code the required logic.
13----
14- src/wiphy.c | 5 ++++-
15- 1 file changed, 4 insertions(+), 1 deletion(-)
16-
17-diff --git a/src/wiphy.c b/src/wiphy.c
18-index 3258b761..0d64b1b3 100644
19---- a/src/wiphy.c
20-+++ b/src/wiphy.c
21-@@ -1896,6 +1896,7 @@ static bool wiphy_get_driver_name(struct wiphy *wiphy)
22- unsigned int j;
23- const struct l_settings *config = iwd_get_config();
24- char **flag_list;
25-+ char *driver;
26-
27- driver_link = l_strdup_printf("/sys/class/ieee80211/%s/device/driver",
28- wiphy->name);
29-@@ -1907,7 +1908,9 @@ static bool wiphy_get_driver_name(struct wiphy *wiphy)
30- }
31-
32- driver_path[len] = '\0';
33-- wiphy->driver_str = l_strdup(basename(driver_path));
34-+
35-+ driver = memrchr(driver_path, '/', len);
36-+ wiphy->driver_str = l_strdup(driver ? driver + 1 : driver_path);
37-
38- for (i = 0; i < L_ARRAY_SIZE(driver_infos); i++)
39- if (!fnmatch(driver_infos[i].prefix, wiphy->driver_str, 0))
40---
41-2.44.0
42-
+0,
-1
1@@ -1 +0,0 @@
2-95e5cb1da2fc84efe8b6b7f63e1d4b0b83900538f9fe8079b50cff98f49b3421 iwd-2.14.tar.xz
+0,
-1
1@@ -1 +0,0 @@
2-url = "https://github.com/illiliti/eiwd/releases/download/2.14-1/iwd-2.14.tar.xz"
+0,
-1
1@@ -1 +0,0 @@
2-2.14 r2
+0,
-1
1@@ -11,7 +11,6 @@ subgen 'curl'
2 subgen 'cproc'
3 subgen 'dosfstools'
4 subgen 'e2fsprogs'
5-subgen 'eiwd'
6 subgen 'elftoolchain'
7 subgen 'file'
8 subgen 'flex'