commit b4c072d
hovercats
·
2024-02-09 22:44:20 +0000 UTC
parent e8a20f3
eiwd: port to oasis buildsystem
9 files changed,
+199,
-0
+2,
-0
1@@ -0,0 +1,2 @@
2+/iwd-2.10.tar.xz
3+/src
+34,
-0
1@@ -0,0 +1,34 @@
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.10"
28+#define PACKAGE_TARNAME "iwd"
29+#define PACKAGE_URL ""
30+#define PACKAGE_VERSION "2.10"
31+#define STDC_HEADERS 1
32+#define VERSION "2.10"
33+#define WIRED_STORAGEDIR "/var/lib/ead"
34+/* #undef _FILE_OFFSET_BITS */
35+/* #undef _LARGE_FILES */
+46,
-0
1@@ -0,0 +1,46 @@
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>
+79,
-0
1@@ -0,0 +1,79 @@
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+exe('iwd', [[
19+ src/(
20+ main.c netdev.c wiphy.c
21+ device.c station.c ie.c
22+ dbus.c mpdu.c eapol.c
23+ eapolutil.c handshake.c scan.c
24+ common.c agent.c storage.c
25+ network.c wsc.c backtrace.c
26+ knownnetworks.c rfkill.c
27+ ft.c ap.c adhoc.c sae.c
28+ nl80211util.c nl80211cmd.c
29+ owe.c blacklist.c manager.c
30+ erp.c fils.c anqp.c anqputil.c
31+ netconfig.c netconfig-commit.c
32+ resolve.c hotspot.c p2p.c
33+ p2putil.c module.c rrm.c
34+ frame-xchg.c eap-wsc.c
35+ wscutil.c diagnostic.c
36+ ip-pool.c band.c
37+ sysfs.c offchannel.c
38+ dpp-util.c json.c dpp.c
39+
40+ eap.c eap-md5.c eap-tls.c
41+ eap-ttls.c eap-mschapv2.c
42+ eap-sim.c eap-aka.c eap-peap.c
43+ eap-gtc.c eap-pwd.c util.c
44+ crypto.c simutil.c simauth.c
45+ watchlist.c eap-tls-common.c
46+ mschaputil.c
47+
48+ ofono.c
49+ )
50+ ell/(
51+ util.c test.c strv.c
52+ utf8.c queue.c hashmap.c
53+ string.c settings.c main.c
54+ idle.c signal.c timeout.c
55+ io.c ringbuf.c log.c
56+ checksum.c netlink.c genl.c
57+ rtnl.c dbus.c dbus-message.c
58+ dbus-util.c dbus-service.c
59+ dbus-client.c dbus-name-cache.c
60+ dbus-filter.c gvariant-util.c
61+ siphash.c hwdb.c cipher.c random.c
62+ uintset.c base64.c pem.c tls.c
63+ tls-record.c tls-suites.c
64+ tls-extensions.c uuid.c
65+ key.c file.c dir.c net.c
66+ dhcp.c dhcp-transport.c
67+ dhcp-lease.c dhcp-util.c
68+ dhcp-server.c cert.c cert-crypto.c
69+ ecc-external.c ecc.c ecdh.c time.c
70+ path.c dhcp6.c icmp6.c dhcp6-lease.c
71+ dhcp6-transport.c acd.c netconfig.c
72+ sysctl.c
73+ )
74+]])
75+
76+file('bin/iwd', '755', '$outdir/iwd')
77+file('bin/iwd_passphrase', '755', '$dir/iwd_passphrase')
78+man{'src/iwd.8'}
79+
80+fetch 'curl'
+34,
-0
1@@ -0,0 +1,34 @@
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,
-0
1@@ -0,0 +1 @@
2+8683e7543c8a16b1f57f940fa778b8921881bd4d240321e132da38da3f29f3d8 iwd-2.10.tar.xz
+1,
-0
1@@ -0,0 +1 @@
2+url = "https://github.com/illiliti/eiwd/releases/download/2.10-1/iwd-2.10.tar.xz"
+1,
-0
1@@ -0,0 +1 @@
2+2.10 r0
+1,
-0
1@@ -11,6 +11,7 @@ subgen 'curl'
2 subgen 'cproc'
3 subgen 'dosfstools'
4 subgen 'e2fsprogs'
5+subgen 'eiwd'
6 subgen 'elftoolchain'
7 subgen 'file'
8 subgen 'flex'