diff options
Diffstat (limited to 'dbus')
-rwxr-xr-x | dbus/iwd/build | 30 | ||||
-rw-r--r-- | dbus/iwd/checksums | 4 | ||||
-rw-r--r-- | dbus/iwd/depends | 1 | ||||
-rw-r--r-- | dbus/iwd/files/ead.run | 2 | ||||
-rw-r--r-- | dbus/iwd/files/iwd.run | 2 | ||||
-rw-r--r-- | dbus/iwd/patches/fix-name-request.patch | 65 | ||||
-rw-r--r-- | dbus/iwd/sources | 4 | ||||
-rw-r--r-- | dbus/iwd/version | 1 |
8 files changed, 109 insertions, 0 deletions
diff --git a/dbus/iwd/build b/dbus/iwd/build new file mode 100755 index 00000000..c82e1860 --- /dev/null +++ b/dbus/iwd/build @@ -0,0 +1,30 @@ +#!/bin/sh -e + +for patch in *.patch; do + patch -p1 < "$patch" +done + +./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --libexecdir=/usr/bin \ + --localstatedir=/var \ + --disable-systemd-service \ + --enable-pie \ + --enable-dbus-policy \ + --enable-wired \ + PKG_CONFIG="pkgconf --static" + +# Don't use systemd as the default name resolver. +sed -i 's|method_name = "systemd"|method_name = "resolvconf"' src/resolve.c + +# Update the manual page to reflect upon the change. +sed -i '/If not specified/s/systemd/resolvconf' src/iwd.config.5 + + +make LDFLAGS=-all-static +make DESTDIR="$1" install + +for sv in iwd ead; do + install -Dm755 "$sv.run" "$1/etc/sysmgr/$sv" +done diff --git a/dbus/iwd/checksums b/dbus/iwd/checksums new file mode 100644 index 00000000..4646da17 --- /dev/null +++ b/dbus/iwd/checksums @@ -0,0 +1,4 @@ +db854f569cfa94dc32120d8cf2e7d483a16679f238e1a4794837d0e455ea7aa9 iwd-1.11.tar.xz +757221d6c8567238f03c53cb0254a0ffe24285459058a47c3e5cf992545b172c fix-name-request.patch +9095020f84ef469e0f284a3fa5bb286df34065f8791af3b6996518699ddce94b ead.run +2d34fa383666e43cdc7359909486c7e848bdedd48c58f849cd8a66471c406f50 iwd.run diff --git a/dbus/iwd/depends b/dbus/iwd/depends new file mode 100644 index 00000000..21e6b310 --- /dev/null +++ b/dbus/iwd/depends @@ -0,0 +1 @@ +readline make diff --git a/dbus/iwd/files/ead.run b/dbus/iwd/files/ead.run new file mode 100644 index 00000000..79a118a4 --- /dev/null +++ b/dbus/iwd/files/ead.run @@ -0,0 +1,2 @@ +#!/bin/sh -e +exec ead diff --git a/dbus/iwd/files/iwd.run b/dbus/iwd/files/iwd.run new file mode 100644 index 00000000..d672d5c0 --- /dev/null +++ b/dbus/iwd/files/iwd.run @@ -0,0 +1,2 @@ +#!/bin/sh -e +exec iwd diff --git a/dbus/iwd/patches/fix-name-request.patch b/dbus/iwd/patches/fix-name-request.patch new file mode 100644 index 00000000..3bad1201 --- /dev/null +++ b/dbus/iwd/patches/fix-name-request.patch @@ -0,0 +1,65 @@ +--- Makefile.am 2019-10-30 06:50:34.000000000 -0400 ++++ Makefile.am 2019-10-30 09:10:08.542128891 -0400 +@@ -139,15 +139,15 @@ + if DBUS_POLICY + dbus_datadir = @DBUS_DATADIR@/dbus-1/system.d + dist_dbus_data_DATA = ++ ++dbus_busdir = @DBUS_BUSDIR@ ++dbus_bus_DATA = + endif + + if SYSTEMD_SERVICE + systemd_unitdir = @SYSTEMD_UNITDIR@ + systemd_unit_DATA = + +-dbus_busdir = @DBUS_BUSDIR@ +-dbus_bus_DATA = +- + systemd_networkdir = @SYSTEMD_NETWORKDIR@ + systemd_network_DATA = + +@@ -244,13 +244,13 @@ + + if DBUS_POLICY + dist_dbus_data_DATA += src/iwd-dbus.conf ++dbus_bus_DATA += src/net.connman.iwd.service + endif + + if SYSTEMD_SERVICE + src_iwd_DEPENDENCIES += src/iwd.service + + systemd_unit_DATA += src/iwd.service +-dbus_bus_DATA += src/net.connman.iwd.service + + systemd_network_DATA += src/80-iwd.link + endif +@@ -320,13 +320,13 @@ + + if DBUS_POLICY + dist_dbus_data_DATA += wired/ead-dbus.conf ++dbus_bus_DATA += wired/net.connman.ead.service + endif + + if SYSTEMD_SERVICE + wired_ead_DEPENDENCIES += wired/ead.service + + systemd_unit_DATA += wired/ead.service +-dbus_bus_DATA += wired/net.connman.ead.service + endif + + if MANUAL_PAGES +diff --git configure.ac configure.ac +index ec0619e..13d6de4 100644 +--- configure.ac ++++ configure.ac +@@ -188,7 +188,7 @@ AM_CONDITIONAL(SYSTEMD_SERVICE, test "${enable_systemd_service}" != "no") + AC_ARG_WITH([dbus-busdir], AC_HELP_STRING([--with-dbus-busdir=DIR], + [path to D-Bus bus services directory]), + [path_dbus_busdir=${withval}]) +-if (test "${enable_systemd_service}" != "no" && test -z "${path_dbus_busdir}"); then ++if (test -z "${path_dbus_busdir}"); then + AC_MSG_CHECKING([D-Bus bus services directory]) + path_dbus_busdir="`$PKG_CONFIG --variable=system_bus_services_dir dbus-1`" + if (test -z "${path_dbus_busdir}"); then + diff --git a/dbus/iwd/sources b/dbus/iwd/sources new file mode 100644 index 00000000..5f183d9f --- /dev/null +++ b/dbus/iwd/sources @@ -0,0 +1,4 @@ +https://cdn.kernel.org/pub/linux/network/wireless/iwd-1.11.tar.xz +patches/fix-name-request.patch +files/ead.run +files/iwd.run diff --git a/dbus/iwd/version b/dbus/iwd/version new file mode 100644 index 00000000..1c832f37 --- /dev/null +++ b/dbus/iwd/version @@ -0,0 +1 @@ +1.11 1 |