From deba8115d2c2af26df42966b91ef04ff4dd79cde Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Thu, 14 May 2020 11:09:11 +0100 Subject: gentoo resync : 14.05.2020 --- app-emulation/simplevirt/Manifest | 4 +- app-emulation/simplevirt/metadata.xml | 3 - .../simplevirt/simplevirt-0.0_p20181012-r1.ebuild | 76 ++++++++++++++++++++ .../simplevirt/simplevirt-0.0_p20181012.ebuild | 81 ---------------------- 4 files changed, 78 insertions(+), 86 deletions(-) create mode 100644 app-emulation/simplevirt/simplevirt-0.0_p20181012-r1.ebuild delete mode 100644 app-emulation/simplevirt/simplevirt-0.0_p20181012.ebuild (limited to 'app-emulation/simplevirt') diff --git a/app-emulation/simplevirt/Manifest b/app-emulation/simplevirt/Manifest index ce133a509b8a..682952f3a068 100644 --- a/app-emulation/simplevirt/Manifest +++ b/app-emulation/simplevirt/Manifest @@ -6,5 +6,5 @@ DIST github.com-inconshreveable-mousetrap-v1.0.0.tar.gz 2290 BLAKE2B bd46103e50d DIST github.com-spf13-cobra-v0.0.3.tar.gz 101526 BLAKE2B 8613eccdd5bbd31429b7aa8260ee9367e34a5cc78075b394b09db91a97445ed1dadfb53a86105b55cb6ea3b4c2f9d50553e9198d64dfb6033dd1db2805984a2c SHA512 c38db9432a168f913b41a1e1b11d84bedfade82ff70791be9d343a6cc86b8a05b18bae344d67ebd8bae4c98662db7ac664a9dc86fa9b9ad4aa5c96cbf0178efb DIST github.com-spf13-pflag-v1.0.2.tar.gz 44042 BLAKE2B 157fa6c2b1efa594abebd76ff03121050187974d62475b1aa66af325a2198ea64105655597703c37f25e22c4a07864d9fc31a6a29ba9233fdeefcceef400d5e5 SHA512 fd3cefd683329316eda4ec660193a970e38435515c16805190235e2c969c8d65a6f602fdc7c2f7cf3d9740c5a321ee5be5e8034bd6cd7c05c12722cf64d1e8ae DIST simplevirt-0.0_p20181012.tar.gz 14652 BLAKE2B a6a648ed159d0648f27174c6598c9ae85e41530b218ef0360962884d1f61cfd16d2534ef4d2a01eb87138d0390fc7fe25e070c602f296344b8285c9dd2804287 SHA512 64c0edfc22ed0347c7335b942b06b6b9fd8c3f2ea7d374bf14b96b98b23248d15b6f38d7d1d809c8cd60b605f1809dfca8ff5c249e2df183c8b1636c26440ca8 -EBUILD simplevirt-0.0_p20181012.ebuild 2132 BLAKE2B f6ae27c4dd6b7f60a3008b04e30fba04659478c4874768bf5b1116d52890141838a0bfccf424eeb7b9126f23736f5040c28f6af81c7d7a50a5cb586c1dfe8afb SHA512 e34ec31a73639d8f622b290dc58ac5beb44f1338f99b2a4809473f293138f3f341e7f1dd6e54db06b7907f261310d3e07654e3a56b380f580a91038fd2b6710e -MISC metadata.xml 576 BLAKE2B d62570b65053dc9cb9c264b5fdc90aec72d429b6a166e0c4298e4d27105b127094b1a5ad2f96fe8ba6d23118d82faa3aada90643a5165e3874f2f425dc7d37f1 SHA512 91031a71f21466b4782efe38f645169a585dcc29346c4a6e98b129549b8ccb197cb00f03ce3d9d51306284bc24494afcf117efb003c33855f262177daf077987 +EBUILD simplevirt-0.0_p20181012-r1.ebuild 2088 BLAKE2B 7ee65bf2f0ae236e901d2abd66d6ff46963023dfb20017ca78f67c91843d298da83b0540136259f10db2d8a3b05f5238ebccbc2ef837f583fabab0ab0d53be72 SHA512 e10663b3b9c9574cb7d847d17c45d02d1111ff379f1fa812c934e40b64b48276abe631171b47b0881c4c3d936c24b7433d1e48c288663270f8d806f92e82897f +MISC metadata.xml 473 BLAKE2B 742768d0f49f8d15b12a4c4d14d5cad41899adf34beedaff9c51ab785bc09b5278de0325a3ab0803de7ec17d9df4e1ed03f3135895d6def353ab2957aef5571c SHA512 5f02732aba8e98b5b94d91d54d96d15bcbdee31c531ea6d9d9fb9377edd8a8577a5691582562735d55fa562f09391f0625344d2377dadf9bf048c4e0a8aca14b diff --git a/app-emulation/simplevirt/metadata.xml b/app-emulation/simplevirt/metadata.xml index 25e89f9e5959..e45e3daf442e 100644 --- a/app-emulation/simplevirt/metadata.xml +++ b/app-emulation/simplevirt/metadata.xml @@ -5,9 +5,6 @@ rafaelmartins@gentoo.org Rafael G. Martins - - Simple virtual machine manager for Linux (QEMU/KVM) - rafael@rafaelmartins.eng.br diff --git a/app-emulation/simplevirt/simplevirt-0.0_p20181012-r1.ebuild b/app-emulation/simplevirt/simplevirt-0.0_p20181012-r1.ebuild new file mode 100644 index 000000000000..45f5a524d281 --- /dev/null +++ b/app-emulation/simplevirt/simplevirt-0.0_p20181012-r1.ebuild @@ -0,0 +1,76 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +EGO_VENDOR=( + "github.com/inconshreveable/mousetrap v1.0.0" + "github.com/spf13/cobra v0.0.3" + "github.com/spf13/pflag v1.0.2" + "gopkg.in/check.v1 20d25e2804050c1cd24a7eea1e7a6447dd0e74ec github.com/go-check/check" + "gopkg.in/yaml.v2 v2.2.1 github.com/go-yaml/yaml" +) + +inherit linux-info golang-vcs-snapshot + +EGO_PN="github.com/rafaelmartins/simplevirt" +GIT_COMMIT="78d29d8fa11ce72af5f897430af7bb7d2947a32f" +GIT_VERSION="0.0.26-78d2" +ARCHIVE_URI="https://${EGO_PN}/archive/${GIT_COMMIT}.tar.gz -> ${P}.tar.gz" + +DESCRIPTION="Simple virtual machine manager for Linux (QEMU/KVM)" +HOMEPAGE="https://github.com/rafaelmartins/simplevirt" +SRC_URI=" + ${ARCHIVE_URI} + ${EGO_VENDOR_URI}" + +LICENSE="Apache-2.0 BSD-2 BSD MIT" +SLOT="0" +KEYWORDS="" +IUSE="" + +RDEPEND=" + acct-group/simplevirt + virtual/logger + app-emulation/qemu" + +CONFIG_CHECK="~TUN ~BRIDGE" +ERROR_TUN="CONFIG_TUN: Universal TUN/TAP driver required to setup bridge networking" +ERROR_BRIDGE="CONFIG_BRIDGE: 802.1d Ethernet Bridging required to setup bridge networking" + +src_compile() { + pushd src/${EGO_PN} > /dev/null || die + GOPATH="${S}" go install -v -ldflags "-X ${EGO_PN}.Version=${GIT_VERSION}" ./cmd/... || die + popd > /dev/null || die +} + +src_install() { + dobin bin/simplevirtctl + dosbin bin/simplevirtd + + newinitd "${FILESDIR}/simplevirtd.initd" simplevirtd + newconfd "${FILESDIR}/simplevirtd.confd" simplevirtd + + dodoc "src/${EGO_PN}/README.md" + + keepdir /etc/simplevirt +} + +src_test() { + pushd src/${EGO_PN} > /dev/null || die + GOPATH="${S}" go test -v ./pkg/... || die + popd > /dev/null || die +} + +pkg_postinst() { + elog + elog "To use simplevirt, the simplevirtd daemon must be running as root." + elog "To automatically start the daemon at boot, add it to the default runlevel:" + elog " rc-update add simplevirtd default" + elog + elog "systemd is not supported for now." + elog + elog "To use simplevirtctl as a non-root user, add yourself to the 'simplevirt' group:" + elog " usermod -aG simplevirt youruser" + elog +} diff --git a/app-emulation/simplevirt/simplevirt-0.0_p20181012.ebuild b/app-emulation/simplevirt/simplevirt-0.0_p20181012.ebuild deleted file mode 100644 index 8f7c69b4bddc..000000000000 --- a/app-emulation/simplevirt/simplevirt-0.0_p20181012.ebuild +++ /dev/null @@ -1,81 +0,0 @@ -# Copyright 1999-2019 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -EGO_VENDOR=( - "github.com/inconshreveable/mousetrap v1.0.0" - "github.com/spf13/cobra v0.0.3" - "github.com/spf13/pflag v1.0.2" - "gopkg.in/check.v1 20d25e2804050c1cd24a7eea1e7a6447dd0e74ec github.com/go-check/check" - "gopkg.in/yaml.v2 v2.2.1 github.com/go-yaml/yaml" -) - -inherit linux-info golang-vcs-snapshot user - -EGO_PN="github.com/rafaelmartins/simplevirt" -GIT_COMMIT="78d29d8fa11ce72af5f897430af7bb7d2947a32f" -GIT_VERSION="0.0.26-78d2" -ARCHIVE_URI="https://${EGO_PN}/archive/${GIT_COMMIT}.tar.gz -> ${P}.tar.gz" - -DESCRIPTION="Simple virtual machine manager for Linux (QEMU/KVM)" -HOMEPAGE="https://github.com/rafaelmartins/simplevirt" -SRC_URI=" - ${ARCHIVE_URI} - ${EGO_VENDOR_URI}" - -LICENSE="Apache-2.0 BSD-2 BSD MIT" -SLOT="0" -KEYWORDS="" -IUSE="" - -RDEPEND=" - virtual/logger - app-emulation/qemu" - -CONFIG_CHECK="~TUN ~BRIDGE" -ERROR_TUN="CONFIG_TUN: Universal TUN/TAP driver required to setup bridge networking" -ERROR_BRIDGE="CONFIG_BRIDGE: 802.1d Ethernet Bridging required to setup bridge networking" - -pkg_setup() { - enewgroup simplevirt - - linux-info_pkg_setup -} - -src_compile() { - pushd src/${EGO_PN} > /dev/null || die - GOPATH="${S}" go install -v -ldflags "-X ${EGO_PN}.Version=${GIT_VERSION}" ./cmd/... || die - popd > /dev/null || die -} - -src_install() { - dobin bin/simplevirtctl - dosbin bin/simplevirtd - - newinitd "${FILESDIR}/simplevirtd.initd" simplevirtd - newconfd "${FILESDIR}/simplevirtd.confd" simplevirtd - - dodoc "src/${EGO_PN}/README.md" - - keepdir /etc/simplevirt -} - -src_test() { - pushd src/${EGO_PN} > /dev/null || die - GOPATH="${S}" go test -v ./pkg/... || die - popd > /dev/null || die -} - -pkg_postinst() { - elog - elog "To use simplevirt, the simplevirtd daemon must be running as root." - elog "To automatically start the daemon at boot, add it to the default runlevel:" - elog " rc-update add simplevirtd default" - elog - elog "systemd is not supported for now." - elog - elog "To use simplevirtctl as a non-root user, add yourself to the 'simplevirt' group:" - elog " usermod -aG simplevirt youruser" - elog -} -- cgit v1.2.3