Github messages for voidlinux
 help / color / mirror / Atom feed
From: svenper <svenper@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] New package: eiwd-1.6r1
Date: Mon, 27 Apr 2020 19:23:52 +0200	[thread overview]
Message-ID: <20200427172352.EHR2RsrcJ6Ce8NOksOzbqsfh13uv8ZA8Jxmheuk6wmo@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-21355@inbox.vuxu.org>

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

There is an updated 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: 2827 bytes --]

From 96757998f9e94d624bf8dd102dce84212933b35e Mon Sep 17 00:00:00 2001
From: svenper <svenper@tuta.io>
Date: Mon, 27 Apr 2020 19:22:51 +0200
Subject: [PATCH] New package: eiwd-1.6r1

---
 srcpkgs/eiwd/files/iwd/run                |  4 +++
 srcpkgs/eiwd/patches/musl-rawmemchr.patch | 14 +++++++++++
 srcpkgs/eiwd/template                     | 30 +++++++++++++++++++++++
 srcpkgs/eiwd/update                       |  2 ++
 4 files changed, 50 insertions(+)
 create mode 100755 srcpkgs/eiwd/files/iwd/run
 create mode 100644 srcpkgs/eiwd/patches/musl-rawmemchr.patch
 create mode 100644 srcpkgs/eiwd/template
 create mode 100644 srcpkgs/eiwd/update

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/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..d50f57fd5de
--- /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="Fork of 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
+}
diff --git a/srcpkgs/eiwd/update b/srcpkgs/eiwd/update
new file mode 100644
index 00000000000..27398689748
--- /dev/null
+++ b/srcpkgs/eiwd/update
@@ -0,0 +1,2 @@
+version="${version/r/-}"
+pattern='/tag/\K[\d.]+-\d+'

  parent reply	other threads:[~2020-04-27 17:23 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-26 18:57 [PR PATCH] " svenper
2020-04-26 22:25 ` [PR PATCH] [Updated] " svenper
2020-04-27 13:39 ` svenper
2020-04-27 17:23 ` svenper [this message]
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=20200427172352.EHR2RsrcJ6Ce8NOksOzbqsfh13uv8ZA8Jxmheuk6wmo@z \
    --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).