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 @@
DIST eiwd-1.6-1.tar.xz 940492 BLAKE2B ba5256396510f6d092516ec210b7d274d7e984a1c7bf9f7ed5a8e1b7f0939c233d8a7e0d934f068c5bda5c7f54425134dca972ff1845396e7ed35298139e2923 SHA512 7f0e8522b01c455f16f43682b1f8b76ef15587f53cf4f6976870d9797e1d8f40f5c8146d23b277a3d555594ab534b832a837190734840429f58acce27e16edef

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
}

View File

@@ -0,0 +1,48 @@
# Copyright 2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit autotools flag-o-matic 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="+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_prepare() {
default
eautoreconf
}
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
}

View File

@@ -0,0 +1,13 @@
#!/sbin/openrc-run
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
command="/usr/libexec/iwd"
pidfile="/run/iwd.pid"
command_background="yes"
depend() {
after bootmisc modules
before dns dhcpcd net
keyword -shutdown
}

View File

@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<!-- maintainer-needed -->
<upstream>
<remote-id type="github">dylanaraps/eiwd</remote-id>
</upstream>
<use>
<flag name="system-ell">
Use the system-wide <pkg>dev-libs/ell</pkg>instead of bundled.
</flag>
</use>
</pkgmetadata>