net-wireless/eiwd: Add resolvconf to RDEPEND

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>
This commit is contained in:
Volkmar W. Pogatzki
2020-06-06 11:25:38 +02:00
parent 209698e583
commit 1fd01c26b6
5 changed files with 23 additions and 7 deletions

View File

@@ -15,10 +15,11 @@ SRC_URI="https://github.com/dylanaraps/eiwd/releases/download/${MY_PV}/${MY_P}.t
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="+system-ell"
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"
@@ -38,5 +39,9 @@ src_configure() {
src_install() {
default
keepdir /var/lib/iwd
newinitd "${FILESDIR}/iwd.initd" iwd
newinitd "${FILESDIR}"/iwd.initd iwd
if use resolvconf ; then
insinto /etc/iwd/
doins "${FILESDIR}"/main.conf
fi
}

View File

@@ -15,11 +15,11 @@ EGIT_REPO_URI="https://github.com/dylanaraps/eiwd.git"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS=""
IUSE="+system-ell"
IUSE="+resolvconf +system-ell"
DEPEND="system-ell? ( >=dev-libs/ell-0.31 )
dev-python/docutils"
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"
@@ -44,5 +44,9 @@ src_configure() {
src_install() {
default
keepdir /var/lib/iwd
newinitd "${FILESDIR}/iwd.initd" iwd
newinitd "${FILESDIR}"/iwd.initd iwd
if use resolvconf ; then
insinto /etc/iwd/
doins "${FILESDIR}"/main.conf
fi
}

View File

@@ -9,6 +9,6 @@ command_background="yes"
depend() {
provide net
after bootmisc modules
before dns dhcpcd net
before dns dhcpcd
keyword -shutdown
}

View File

@@ -0,0 +1,4 @@
[General]
EnableNetworkConfiguration=true
[Network]
NameResolvingService=resolvconf

View File

@@ -9,5 +9,8 @@
<flag name="system-ell">
Use the system-wide <pkg>dev-libs/ell</pkg>instead of bundled.
</flag>
<flag name="resolvconf">
Use resolvconf to handle /etc/resolv.conf updates
</flag>
</use>
</pkgmetadata>