net-wireless/eiwd: new package

Package-Manager: Portage-2.3.89, Repoman-2.3.20
Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net>
This commit is contained in:
Volkmar W. Pogatzki
2020-04-07 13:50:23 +02:00
parent c0ce8a6b54
commit 96e6d8e02d
5 changed files with 118 additions and 0 deletions

View File

@@ -0,0 +1,43 @@
# Copyright 2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit flag-o-matic
MY_PV="$(ver_rs 2 '-')"
MY_P="${PN}-${MY_PV}"
DESCRIPTION="iwd without dbus"
HOMEPAGE="https://github.com/dylanaraps/eiwd"
SRC_URI="https://github.com/dylanaraps/eiwd/releases/download/${MY_PV}/${MY_P}.tar.xz"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="+system-ell"
COMMON_DEPEND="system-ell? ( ~dev-libs/ell-0.30 )"
BDEPEND="virtual/pkgconfig"
RDEPEND="${COMMON_DEPEND}
!net-wireless/iwd
net-wireless/wireless-regdb"
DEPEND="${COMMON_DEPEND}"
S="${WORKDIR}/${MY_P}"
src_configure() {
append-cflags "-fsigned-char"
local myeconfargs=(
--sysconfdir="${EPREFIX}"/etc/iwd --localstatedir="${EPREFIX}"/var
--disable-dbus
$(use_enable system-ell external-ell)
)
econf "${myeconfargs[@]}"
}
src_install() {
default
keepdir /var/lib/iwd
newinitd "${FILESDIR}/iwd.initd" iwd
}