Mail archive
alpine-aports

Re: [alpine-aports] [PATCH] testing/wpa_actiond: new aport

From: Leonardo Arena <rnalrd_at_gmail.com>
Date: Fri, 23 Jun 2017 10:20:10 +0200

Hi,

the patch was committed with the following amendment:


On 06/20/2017 09:54 AM, Marian Buschsieweke wrote:
> Daemon that connects to wpa_supplicant and handles connect and disconnect events
> https://git.archlinux.org/wpa_actiond.git
>
> Use case: A plain and simple way to automatically configure wireless networks
> depending on SSID by invoking user supplied scripts.
>
> I provided a patch to convert the nested function into a regular one, so that
> GCC won't generate a trampoline. In addition, OpenRC integration was added.
> ---
> testing/wpa_actiond/APKBUILD | 46 ++++++++++++++++
> testing/wpa_actiond/no_trampoline.patch | 95 +++++++++++++++++++++++++++++++++
> testing/wpa_actiond/wpa_actiond.confd | 16 ++++++
> testing/wpa_actiond/wpa_actiond.initd | 22 ++++++++
> 4 files changed, 179 insertions(+)
> create mode 100644 testing/wpa_actiond/APKBUILD
> create mode 100644 testing/wpa_actiond/no_trampoline.patch
> create mode 100644 testing/wpa_actiond/wpa_actiond.confd
> create mode 100644 testing/wpa_actiond/wpa_actiond.initd
>
> diff --git a/testing/wpa_actiond/APKBUILD b/testing/wpa_actiond/APKBUILD
> new file mode 100644
> index 0000000000..e0b14f5232
> --- /dev/null
> +++ b/testing/wpa_actiond/APKBUILD
> _at_@ -0,0 +1,46 @@
> +# Contributor: Marian <marian.buschsieweke_at_ovgu.de>
> +# Maintainer: Marian <marian.buschsieweke_at_ovgu.de>
> +pkgname=wpa_actiond
> +pkgver=1.4
> +pkgrel=1
> +pkgdesc="Daemon that connects to wpa_supplicant and handles connect and disconnect events"
> +url="https://git.archlinux.org/wpa_actiond.git/"
> +arch="all"
> +license="GPL2"
> +depends=""
> +makedepends=""
> +subpackages=""
> +source="https://git.archlinux.org/${pkgname}.git/snapshot/${pkgname}-${pkgver}.tar.xz
> + no_trampoline.patch
> + wpa_actiond.confd
> + wpa_actiond.initd"
> +options="!check"
> +
> +_builddir="$srcdir/$pkgname-$pkgver"
> +

_buildir is now an "official" APKBUILD variable, hence underscore prefix
has been removed and APKBUILD update accordingly

> +prepare() {
> + local i
> + cd "$_builddir"
> + for i in $source; do
> + case $i in
> + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
> + esac
> + done
> +}
> +

prepare() function removed since applying patch is by default in abuild
unless overridden by declaring a custom prepare() function.

Everything else looked good to me.

Thanks!

/eo


---
Unsubscribe:  alpine-aports+unsubscribe_at_lists.alpinelinux.org
Help:         alpine-aports+help_at_lists.alpinelinux.org
---
Received on Fri Jun 23 2017 - 10:20:10 GMT