Github messages for voidlinux
 help / color / mirror / Atom feed
From: svenper <svenper@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [PR PATCH] New package: eiwd-1.6r1
Date: Sun, 26 Apr 2020 20:57:04 +0200	[thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-21355@inbox.vuxu.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 312 bytes --]

There is a new pull request by svenper against master on the void-packages repository

https://github.com/svenper/void-packages eiwd
https://github.com/void-linux/void-packages/pull/21355

New package: eiwd-1.6r1
#18581 

A patch file from https://github.com/void-linux/void-packages/pull/21355.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-eiwd-21355.patch --]
[-- Type: text/x-diff, Size: 3974 bytes --]

From 73fc2dd318046d4a03a9915c85991b55790b7c1f Mon Sep 17 00:00:00 2001
From: svenper <svenper@tuta.io>
Date: Sun, 26 Apr 2020 20:53:37 +0200
Subject: [PATCH] New package: eiwd-1.6r1

---
 srcpkgs/eiwd/files/iwd/run                  |  4 ++
 srcpkgs/eiwd/patches/fix-name-request.patch | 51 +++++++++++++++++++++
 srcpkgs/eiwd/patches/musl-rawmemchr.patch   | 14 ++++++
 srcpkgs/eiwd/template                       | 30 ++++++++++++
 4 files changed, 99 insertions(+)
 create mode 100755 srcpkgs/eiwd/files/iwd/run
 create mode 100644 srcpkgs/eiwd/patches/fix-name-request.patch
 create mode 100644 srcpkgs/eiwd/patches/musl-rawmemchr.patch
 create mode 100644 srcpkgs/eiwd/template

diff --git a/srcpkgs/eiwd/files/iwd/run b/srcpkgs/eiwd/files/iwd/run
new file mode 100755
index 00000000000..b7d22b7f9e4
--- /dev/null
+++ b/srcpkgs/eiwd/files/iwd/run
@@ -0,0 +1,4 @@
+#!/bin/sh
+[ -r ./conf ] && . ./conf
+exec 2>&1
+exec /usr/libexec/iwd ${OPTS}
diff --git a/srcpkgs/eiwd/patches/fix-name-request.patch b/srcpkgs/eiwd/patches/fix-name-request.patch
new file mode 100644
index 00000000000..cb584494d63
--- /dev/null
+++ b/srcpkgs/eiwd/patches/fix-name-request.patch
@@ -0,0 +1,51 @@
+--- Makefile.am
++++ Makefile.am
+@@ -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 a/srcpkgs/eiwd/patches/musl-rawmemchr.patch b/srcpkgs/eiwd/patches/musl-rawmemchr.patch
new file mode 100644
index 00000000000..f26ee53387a
--- /dev/null
+++ b/srcpkgs/eiwd/patches/musl-rawmemchr.patch
@@ -0,0 +1,14 @@
+--- src/wiphy.c
++++ src/wiphy.c
+@@ -500,7 +500,11 @@
+ 
+ 	if (out_num)
+ 		*out_num =
++#if defined(__GLIBC__) 
+ 			(uint8_t *) rawmemchr(wiphy->supported_rates[band], 0) -
++#else
++			(uint8_t *) memchr(wiphy->supported_rates[band], 0, SIZE_MAX) -
++#endif
+ 			wiphy->supported_rates[band];
+ 
+ 	return wiphy->supported_rates[band];
diff --git a/srcpkgs/eiwd/template b/srcpkgs/eiwd/template
new file mode 100644
index 00000000000..c9d41ca5dd3
--- /dev/null
+++ b/srcpkgs/eiwd/template
@@ -0,0 +1,30 @@
+# Template file for 'eiwd'
+pkgname=eiwd
+version=1.6r1
+revision=1
+wrksrc="${pkgname}-${version/r/-}"
+build_style=gnu-configure
+configure_args="--disable-systemd-service --enable-pie
+ --disable-external-ell --disable-dbus --enable-wired"
+hostmakedepends="python3-docutils pkg-config automake libtool"
+makedepends="readline-devel ell-devel>=0.31"
+depends="ell>=0.31"
+checkdepends="python3"
+short_desc="""iwd without dbus"
+maintainer="svenper <svenper@tuta.io>"
+license="LGPL-2.1-or-later"
+homepage="https://github.com/dylanaraps/eiwd"
+changelog="https://github.com/dylanaraps/eiwd/releases"
+distfiles="https://github.com/dylanaraps/eiwd/releases/download/${version/r/-}/eiwd-${version/r/-}.tar.xz"
+checksum=35e9938ccecad1a1336ee94d92ec5cfc2f059bd6d3b154034a450ac3385dbc19
+make_dirs="/var/lib/iwd 0600 root root
+ /etc/iwd 755 root root"
+conflicts="iwd>=0"
+
+pre_configure() {
+	autoreconf -fi
+}
+
+post_install() {
+	vsv iwd
+}

             reply	other threads:[~2020-04-26 18:57 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-26 18:57 svenper [this message]
2020-04-26 22:25 ` [PR PATCH] [Updated] " svenper
2020-04-27 13:39 ` svenper
2020-04-27 17:23 ` svenper
2020-04-27 19:02 ` svenper
2021-01-21 14:36 ` ericonr
2021-01-21 14:36 ` [PR PATCH] [Closed]: " ericonr

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-21355@inbox.vuxu.org \
    --to=svenper@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).