From 72637b172d766ca24fcbf8d29793e35568138390 Mon Sep 17 00:00:00 2001 From: Alexander Miroshnichenko Date: Sat, 7 Aug 2021 13:55:04 +0300 Subject: [PATCH] net-misc/netplan: bump new ebuild --- net-misc/netplan/Manifest | 2 ++ net-misc/netplan/netplan-0.103.ebuild | 51 +++++++++++++++++++++++++++ 2 files changed, 53 insertions(+) create mode 100644 net-misc/netplan/Manifest create mode 100644 net-misc/netplan/netplan-0.103.ebuild diff --git a/net-misc/netplan/Manifest b/net-misc/netplan/Manifest new file mode 100644 index 0000000..f598e44 --- /dev/null +++ b/net-misc/netplan/Manifest @@ -0,0 +1,2 @@ +DIST netplan-0.103.tar.gz 235165 BLAKE2B 4fff823e9abbe666a7d152ddf944b5be20184c14ca6b193130c783558759e32c44d5afab4dd7d368fde559150e53bd632256ce526b6ec4500d75578924c92462 SHA512 306557c033d6aedf900b0f8d278434d94878196e6b8b25e99255c03496fb6d3241c5b18a8bbc81ac7d06ef6f8c0700dcb3d4a70840c8af090bcae1130255c82b +EBUILD netplan-0.103.ebuild 1302 BLAKE2B 35fffa12d27d85baf885cb3ccf9ad602ec37c23d59b878f0cf8dcefe14741fa90c3080ef555c414ae5dc6cbebe3364a554cf019a116997ddf4767d2368fa6c09 SHA512 84ca1c60960d1793aa23bdaeb50237d7849f7ada704fab79cd475c89e1346d44a92fd0b095467351d16c0a5a57b7ba9b95a8389bb910418c23b30128a43a7920 diff --git a/net-misc/netplan/netplan-0.103.ebuild b/net-misc/netplan/netplan-0.103.ebuild new file mode 100644 index 0000000..8dd7a28 --- /dev/null +++ b/net-misc/netplan/netplan-0.103.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 +}