mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-19 12:03:02 -04:00
See https://github.com/kisslinux/repo/blob/master/extra/eiwd/post-install Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net>
48 lines
1.0 KiB
Bash
48 lines
1.0 KiB
Bash
# 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="+resolvconf +system-ell"
|
|
|
|
DEPEND="system-ell? ( >=dev-libs/ell-0.31 )"
|
|
RDEPEND="${DEPEND}
|
|
resolvconf? ( || ( net-dns/openresolv net-misc/dhcpcd ) )
|
|
!net-wireless/iwd
|
|
net-wireless/wireless-regdb"
|
|
BDEPEND="virtual/pkgconfig"
|
|
|
|
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
|
|
if use resolvconf ; then
|
|
insinto /etc/iwd/
|
|
doins "${FILESDIR}"/main.conf
|
|
fi
|
|
}
|