diff --git a/net-misc/netplan/Manifest b/net-misc/netplan/Manifest new file mode 100644 index 0000000..1b6bc60 --- /dev/null +++ b/net-misc/netplan/Manifest @@ -0,0 +1 @@ +DIST netplan-0.100.tar.gz 178084 SHA256 d3fe4b70cf4b2e66a121258f4f3c44f1a93c1efd361b067cd9a8be623f64e443 SHA512 ed0f6f62267e03c7c23e5ad3c544c16c4a73974767ba2e5f47d016e880bc8858a33bbf912f8aac8046f9c50d84b1a308238c4958b1c8926586e197ba7acc15fc WHIRLPOOL 17f69559cb4e0941c821efd9c54ce913cdfc8fd038d325a1ad7e86360a721d0406e2cbc7a47a29288dcf9cdd5c382ad480df93dfcd1a8905e3bc872f63d48837 diff --git a/net-misc/netplan/netplan-0.100.ebuild b/net-misc/netplan/netplan-0.100.ebuild new file mode 100644 index 0000000..8dd7a28 --- /dev/null +++ b/net-misc/netplan/netplan-0.100.ebuild @@ -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 +}