mirror of
https://github.com/valitydev/gentoo-overlay.git
synced 2024-11-06 01:45:19 +00:00
net-misc/netplan: new package
This commit is contained in:
parent
21be5720c2
commit
b4432639e8
1
net-misc/netplan/Manifest
Normal file
1
net-misc/netplan/Manifest
Normal file
@ -0,0 +1 @@
|
||||
DIST netplan-0.100.tar.gz 178084 SHA256 d3fe4b70cf4b2e66a121258f4f3c44f1a93c1efd361b067cd9a8be623f64e443 SHA512 ed0f6f62267e03c7c23e5ad3c544c16c4a73974767ba2e5f47d016e880bc8858a33bbf912f8aac8046f9c50d84b1a308238c4958b1c8926586e197ba7acc15fc WHIRLPOOL 17f69559cb4e0941c821efd9c54ce913cdfc8fd038d325a1ad7e86360a721d0406e2cbc7a47a29288dcf9cdd5c382ad480df93dfcd1a8905e3bc872f63d48837
|
51
net-misc/netplan/netplan-0.100.ebuild
Normal file
51
net-misc/netplan/netplan-0.100.ebuild
Normal file
@ -0,0 +1,51 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
DESCRIPTION="Backend-agnostic network configuration in YAML"
|
||||
|
||||
HOMEPAGE="https://netplan.io/"
|
||||
|
||||
SRC_URI="https://github.com/CanonicalLtd/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
|
||||
SLOT="0"
|
||||
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
IUSE="doc systemd"
|
||||
REQUIRED_USE="systemd"
|
||||
|
||||
DEPEND="
|
||||
>=dev-libs/glib-2.64.3
|
||||
>=dev-libs/libyaml-0.2.5
|
||||
doc? ( >=app-text/pandoc-1.19.2.1-r1 )"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-python/netifaces-0.10.9
|
||||
>=dev-libs/libyaml-0.2.5
|
||||
>=dev-python/pyyaml-5.3.1[libyaml(+)]"
|
||||
|
||||
src_prepare() {
|
||||
sed -i -e "s:\$(DOCDIR)/netplan:\$(DOCDIR)/${PF}:" Makefile || die
|
||||
if ! use doc; then
|
||||
sed -i -e 's@doc/netplan.html.*@@g' Makefile || die
|
||||
sed -i -e '/m 644 doc\/*./Id' Makefile || die
|
||||
fi
|
||||
|
||||
# baselayout-1 compat
|
||||
if has_version ">=sys-apps/baselayout-2.0.0"; then
|
||||
sed -i -e 's:sbin/wpa_supplicant:usr/sbin/wpa_supplicant:' src/networkd.c || die
|
||||
fi
|
||||
|
||||
eapply_user
|
||||
}
|
||||
|
||||
src_install() {
|
||||
if [[ -f Makefile ]] || [[ -f GNUmakefile ]] || [[ -f makefile ]] ; then
|
||||
emake DESTDIR="${D}" LIBDIR="\${PREFIX}/$(get_libdir)" install
|
||||
fi
|
||||
einstalldocs
|
||||
}
|
Loading…
Reference in New Issue
Block a user