net-misc/netplan: bump new ebuild

master
Alexander Miroshnichenko 2021-08-07 13:55:04 +03:00
parent db95d3d6e7
commit 72637b172d
Signed by: alex
GPG Key ID: E93720C6C73A77F4
2 changed files with 53 additions and 0 deletions

View File

@ -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

View 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
}