Files
guru/net-wireless/eiwd/eiwd-9999.ebuild
Volkmar W. Pogatzki 675da9634b net-wireless/eiwd: Version 1.7_pre20200606
Patch accepted upstream
PR https://github.com/dylanaraps/eiwd/pull/6 pulled

Package-Manager: Portage-2.3.99, Repoman-2.3.23
Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net>
2020-06-26 20:18:03 +02:00

58 lines
1.1 KiB
Bash

# Copyright 2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit autotools git-r3
MY_PV="$(ver_rs 2 '-')"
MY_P="${PN}-${MY_PV}"
DESCRIPTION="iwd without dbus"
HOMEPAGE="https://github.com/dylanaraps/eiwd"
EGIT_REPO_URI="https://github.com/dylanaraps/eiwd.git"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS=""
IUSE="+client +monitor ofono +system-ell wired"
DEPEND="system-ell? ( >=dev-libs/ell-0.31 )"
RDEPEND="${DEPEND}
!net-wireless/iwd
net-wireless/wireless-regdb"
BDEPEND="virtual/pkgconfig"
S="${WORKDIR}/${MY_P}"
src_prepare() {
default
eautoreconf
}
src_configure() {
local myeconfargs=(
--sysconfdir="${EPREFIX}"/etc/iwd --localstatedir="${EPREFIX}"/var
--disable-dbus
$(use_enable client)
$(use_enable monitor)
$(use_enable ofono)
$(use_enable system-ell external-ell)
$(use_enable wired)
)
econf "${myeconfargs[@]}"
}
src_install() {
default
keepdir /var/lib/iwd
newinitd "${FILESDIR}"/iwd.initd iwd
insinto /etc/iwd/
doins "${FILESDIR}"/main.conf
}
pkg_postinst() {
elog "To use eiwd's built-in DNS features you also need net-dns/openresolv"
elog "or net-misc/dhcpcd."
}