Waldemar Brodkorb пре 4 дана
родитељ
комит
49b0179435
2 измењених фајлова са 88 додато и 0 уклоњено
  1. 43 0
      package/iwd/Makefile
  2. 45 0
      package/iwd/files/main.conf

+ 43 - 0
package/iwd/Makefile

@@ -0,0 +1,43 @@
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include $(ADK_TOPDIR)/rules.mk
+
+PKG_NAME:=		iwd
+PKG_VERSION:=		3.9
+PKG_RELEASE:=		1
+PKG_HASH:=		988469a702ecf6edd85c6593d0aeb2c99f1d021b1956d2055c4ece6300edcebf
+PKG_DESCR:=		daemon for wpa/wpa2/wpa3 client access
+PKG_SECTION:=		net/wifi
+PKG_KDEPENDS:=		crypto-aes crypto-des crypto-md5 crypto-sha1
+PKG_KDEPENDS+=		crypto-sha256 crypto-hmac crypto-user-api-hash
+PKG_KDEPENDS+=		crypto-user-api-skcipher crypto-user-api-aead
+PKG_KDEPENDS+=		crypto-cmac
+PKG_DEPENDS:=		readline dbus ncurses
+PKG_BUILDDEP:=		readline dbus ncurses
+PKG_SITES:=		https://mirrors.edge.kernel.org/pub/linux/network/wireless/
+
+DISTFILES:=             $(PKG_NAME)-$(PKG_VERSION).tar.gz
+
+include $(ADK_TOPDIR)/mk/package.mk
+
+$(eval $(call PKG_template,IWD,iwd,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKG_DESCR),$(PKG_SECTION)))
+
+TARGET_LDFLAGS+=	-lncursesw -ltinfow
+CONFIGURE_ARGS+=	--disable-manual-pages \
+		  	--disable-monitor \
+		  	--disable-systemd-service \
+		  	--with-dbus-datadir=/usr/share
+
+iwd-install:
+	$(INSTALL_DIR) $(IDIR_IWD)/etc/iwd
+	$(INSTALL_DIR) $(IDIR_IWD)/usr/bin
+	$(INSTALL_DIR) $(IDIR_IWD)/usr/sbin
+	$(INSTALL_DIR) $(IDIR_IWD)/usr/share/dbus-1/system.d
+	$(CP) $(WRKINST)/usr/bin/iwctl $(IDIR_IWD)/usr/bin/
+	$(CP) $(WRKINST)/usr/libexec/iwd $(IDIR_IWD)/usr/sbin/
+	$(CP) $(WRKINST)/usr/share/dbus-1/system.d/iwd-dbus.conf \
+		$(IDIR_IWD)/usr/share/dbus-1/system.d
+	$(CP) ./files/main.conf $(IDIR_IWD)/etc/iwd
+
+include $(ADK_TOPDIR)/mk/pkg-bottom.mk

+ 45 - 0
package/iwd/files/main.conf

@@ -0,0 +1,45 @@
+# For complete description of supported configuration options, refer to
+# 'man 5 iwd.config'.
+
+[General]
+EnableRfkill=false
+# iwd is capable of performing network configuration on its own, including
+# DHCPv4 based address configuration.  By default this behavior is
+# disabled, and an external service such as NetworkManager, systemd-network
+# or dhcpclient is required.  Uncomment the following line if you want iwd
+# to manage network interface configuration.
+#
+#EnableNetworkConfiguration=true
+#
+# iwd can randomize your WiFi card's MAC address for additional privacy.  By
+# default, this behavior is disabled and the MAC address assigned by the
+# kernel driver is used.  The address will be stable when connecting
+# to a saved network profile, so as to not interfere with any MAC filtering
+# rules that exist on the network.
+# If a randomized MAC address is desired, uncomment the setting line below:
+#
+#AddressRandomization=network
+#
+# Options below control the roaming thresholds on 2.4 & 5G bands.
+# Normally the default values are a good compromise that avoids excessive
+# scanning while maintaining good link quality.
+#
+#RoamThreshold=-70
+#RoamThreshold5G=-76
+#
+[Network]
+# If EnableNetworkConfiguration=true is set, iwd forwards DNS information to
+# the system resolving service.  The currently supported services are:
+# - systemd-resolved ["systemd"]
+# - openresolv / resolvconf ["resolvconf"]
+# - none
+#
+# If not set, the value "systemd" is used by default.  Uncomment the value
+# below if you are using openresolv:
+#
+NameResolvingService=none
+#
+# iwd's support for IPv6 should be stable enough and is now enabled by default.
+# If you experience any problems and want to force IPv6 to be disabled,
+# uncomment the setting below:
+#EnableIPv6=false