25447 changed files with 43583 additions and 34939 deletions
-
BINManifest.files.gz
-
BINapp-admin/Manifest.gz
-
3app-admin/consul/Manifest
-
74app-admin/consul/consul-1.6.2.ebuild
-
74app-admin/consul/consul-1.6.3.ebuild
-
75app-admin/consul/consul-1.7.0.ebuild
-
1app-admin/kpcli/Manifest
-
47app-admin/kpcli/kpcli-3.3.ebuild
-
2app-admin/kpcli/kpcli-3.4.ebuild
-
2app-admin/stow/stow-2.3.1.ebuild
-
BINapp-arch/Manifest.gz
-
3app-arch/lbzip2/metadata.xml
-
2app-arch/rpm/rpm-4.14.2.1-r1.ebuild
-
BINapp-crypt/Manifest.gz
-
2app-crypt/glep63-check/glep63-check-9.ebuild
-
2app-crypt/pinentry/pinentry-1.1.0-r3.ebuild
-
BINapp-editors/Manifest.gz
-
2app-editors/kakoune/Manifest
-
15app-editors/kakoune/files/kakoune-2020.01.16-enable-ebuild-syntax-highlight.patch
-
51app-editors/kakoune/kakoune-0_pre20171120.ebuild
-
39app-editors/kakoune/kakoune-2020.01.16.ebuild
-
49app-editors/kakoune/kakoune-9999.ebuild
-
BINapp-emacs/Manifest.gz
-
2app-emacs/pymacs/pymacs-0.26-r1.ebuild
-
BINapp-emulation/Manifest.gz
-
2app-emulation/conmon/Manifest
-
2app-emulation/conmon/conmon-2.0.16.ebuild
-
3app-emulation/cri-tools/Manifest
-
29app-emulation/cri-tools/cri-tools-1.14.0.ebuild
-
29app-emulation/cri-tools/cri-tools-1.15.0.ebuild
-
36app-emulation/cri-tools/cri-tools-1.16.1.ebuild
-
2app-emulation/cri-tools/cri-tools-1.18.0.ebuild
-
1app-emulation/diskimage-builder/Manifest
-
39app-emulation/diskimage-builder/diskimage-builder-2.37.1.ebuild
-
5app-emulation/kompose/metadata.xml
-
1app-emulation/libpod/Manifest
-
142app-emulation/libpod/libpod-1.9.3.ebuild
-
133app-emulation/lxc/lxc-4.0.2.ebuild
-
2app-emulation/simh/simh-3.11.1.ebuild
-
3app-emulation/xen-pvgrub/Manifest
-
150app-emulation/xen-pvgrub/xen-pvgrub-4.12.3.ebuild
-
0app-emulation/xen-pvgrub/xen-pvgrub-4.13.1.ebuild
-
5app-emulation/xen-tools/Manifest
-
23app-emulation/xen-tools/files/gentoo-patches.conf
-
500app-emulation/xen-tools/xen-tools-4.12.3.ebuild
-
10app-emulation/xen-tools/xen-tools-4.13.1.ebuild
-
4app-emulation/xen/Manifest
-
165app-emulation/xen/xen-4.12.3.ebuild
-
2app-emulation/xen/xen-4.13.1.ebuild
-
BINapp-forensics/Manifest.gz
-
47app-forensics/honggfuzz/honggfuzz-2.2-r1.ebuild
-
BINapp-metrics/Manifest.gz
-
1app-metrics/fusioninventory-agent/Manifest
-
23app-metrics/fusioninventory-agent/files/fusioninventory-agent-2.5.2-dirs.patch
-
2app-metrics/fusioninventory-agent/files/fusioninventory-agent.confd
-
21app-metrics/fusioninventory-agent/files/fusioninventory-agent.initd
-
42app-metrics/fusioninventory-agent/fusioninventory-agent-2.5.2.ebuild
-
8app-metrics/fusioninventory-agent/metadata.xml
-
BINapp-misc/Manifest.gz
-
2app-misc/abook/abook-0.6.1-r2.ebuild
-
2app-misc/pax-utils/pax-utils-1.2.6.ebuild
-
BINapp-office/Manifest.gz
-
1app-office/ledger/Manifest
-
113app-office/ledger/ledger-3.2.0.ebuild
-
BINapp-portage/Manifest.gz
-
2app-portage/gpyutils/gpyutils-0.4.1.ebuild
-
2app-portage/gpyutils/gpyutils-9999.ebuild
-
2app-portage/unsymlink-lib/unsymlink-lib-17-r1.ebuild
-
2app-portage/unsymlink-lib/unsymlink-lib-9999.ebuild
-
BINapp-text/Manifest.gz
-
1app-text/calibre/Manifest
-
6app-text/calibre/calibre-4.17.0-r1.ebuild
-
1app-text/highlight/Manifest
-
93app-text/highlight/highlight-3.57.ebuild
-
2app-text/po4a/po4a-0.57.ebuild
-
BINdev-cpp/Manifest.gz
-
10dev-cpp/cpp-taskflow/cpp-taskflow-2.4.0-r1.ebuild
-
82dev-cpp/cpp-taskflow/files/cpp-taskflow-2.4.0-do_not_compile_examples.patch
-
22dev-cpp/cpp-taskflow/files/cpp-taskflow-2.4.0-fix_installation_path.patch
-
187dev-cpp/tbb/files/tbb-2017.20161128-build.patch
-
15dev-cpp/tbb/files/tbb-4.4.20160803-underlinking.patch
-
2dev-cpp/yaml-cpp/yaml-cpp-0.6.3-r2.ebuild
-
BINdev-db/Manifest.gz
-
1dev-db/mariadb-connector-c/Manifest
-
88dev-db/mariadb-connector-c/mariadb-connector-c-3.1.8.ebuild
-
183dev-db/mysql/mysql-8.0.19-r1.ebuild
-
183dev-db/mysql/mysql-8.0.20.ebuild
-
2dev-db/percona-server/Manifest
-
1146dev-db/percona-server/percona-server-8.0.18.9.ebuild
-
183dev-db/percona-server/percona-server-8.0.19.10.ebuild
-
1dev-db/pgmodeler/Manifest
-
61dev-db/pgmodeler/pgmodeler-0.9.2.ebuild
-
1dev-db/redis/Manifest
-
60dev-db/redis/files/redis-6.0.3-sharedlua.patch
-
160dev-db/redis/redis-6.0.3.ebuild
-
BINdev-embedded/Manifest.gz
-
74dev-embedded/u-boot-tools/u-boot-tools-2020.04-r2.ebuild
-
BINdev-go/Manifest.gz
-
14dev-go/go-bindata/Manifest
-
42dev-go/go-bindata/go-bindata-3.1.3.ebuild
@ -1,74 +0,0 @@ |
|||
# Copyright 1999-2019 Gentoo Authors |
|||
# Distributed under the terms of the GNU General Public License v2 |
|||
|
|||
EAPI=7 |
|||
|
|||
inherit golang-vcs-snapshot systemd user |
|||
GIT_COMMIT="1200f25" |
|||
KEYWORDS="~amd64" |
|||
EGO_PN="github.com/hashicorp/consul" |
|||
DESCRIPTION="A tool for service discovery, monitoring and configuration" |
|||
HOMEPAGE="https://www.consul.io" |
|||
SRC_URI="https://github.com/hashicorp/consul/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
|||
|
|||
SLOT="0" |
|||
LICENSE="MPL-2.0 Apache-2.0 BSD BSD-2 CC0-1.0 ISC MIT" |
|||
IUSE="" |
|||
|
|||
RESTRICT="test" |
|||
|
|||
DEPEND="dev-go/gox |
|||
>=dev-lang/go-1.11:= |
|||
>=dev-go/go-tools-0_pre20160121" |
|||
RDEPEND="" |
|||
|
|||
pkg_setup() { |
|||
enewgroup consul |
|||
enewuser consul -1 -1 /var/lib/${PN} consul |
|||
} |
|||
|
|||
src_prepare() { |
|||
default |
|||
|
|||
# avoid network-sandbox violations since go-1.13 |
|||
rm src/${EGO_PN}/go.mod || die |
|||
grep -rlZ '_ "github.com/envoyproxy/protoc-gen-validate/validate"' . | \ |
|||
xargs -0 sed -i '/_ "github.com\/envoyproxy\/protoc-gen-validate\/validate"/d' || die |
|||
|
|||
sed -e 's:go get -u -v $(GOTOOLS)::' \ |
|||
-e 's:vendorfmt dev-build:dev-build:' \ |
|||
-i "src/${EGO_PN}/GNUmakefile" || die |
|||
} |
|||
|
|||
src_compile() { |
|||
# The dev target sets causes build.sh to set appropriate XC_OS |
|||
# and XC_ARCH, and skips generation of an unused zip file, |
|||
# avoiding a dependency on app-arch/zip. |
|||
GOPATH="${S}" \ |
|||
GOBIN="${S}/bin" \ |
|||
GIT_DESCRIBE="v${PV}" \ |
|||
GIT_DIRTY="" \ |
|||
GIT_COMMIT="${GIT_COMMIT}" \ |
|||
emake -C "src/${EGO_PN}" dev-build |
|||
} |
|||
|
|||
src_install() { |
|||
local x |
|||
|
|||
dobin bin/consul |
|||
|
|||
keepdir /etc/consul.d |
|||
insinto /etc/consul.d |
|||
doins "${FILESDIR}/"*.json.example |
|||
|
|||
for x in /var/{lib,log}/${PN}; do |
|||
keepdir "${x}" |
|||
fowners consul:consul "${x}" |
|||
done |
|||
|
|||
newinitd "${FILESDIR}/consul.initd" "${PN}" |
|||
newconfd "${FILESDIR}/consul.confd" "${PN}" |
|||
insinto /etc/logrotate.d |
|||
newins "${FILESDIR}/${PN}.logrotated" "${PN}" |
|||
systemd_dounit "${FILESDIR}/consul.service" |
|||
} |
@ -1,74 +0,0 @@ |
|||
# Copyright 1999-2020 Gentoo Authors |
|||
# Distributed under the terms of the GNU General Public License v2 |
|||
|
|||
EAPI=7 |
|||
|
|||
inherit golang-vcs-snapshot systemd user |
|||
GIT_COMMIT="7f3b5f3" |
|||
KEYWORDS="~amd64" |
|||
EGO_PN="github.com/hashicorp/consul" |
|||
DESCRIPTION="A tool for service discovery, monitoring and configuration" |
|||
HOMEPAGE="https://www.consul.io" |
|||
SRC_URI="https://github.com/hashicorp/consul/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
|||
|
|||
SLOT="0" |
|||
LICENSE="MPL-2.0 Apache-2.0 BSD BSD-2 CC0-1.0 ISC MIT" |
|||
IUSE="" |
|||
|
|||
RESTRICT="test" |
|||
|
|||
DEPEND="dev-go/gox |
|||
>=dev-lang/go-1.11:= |
|||
>=dev-go/go-tools-0_pre20160121" |
|||
RDEPEND="" |
|||
|
|||
pkg_setup() { |
|||
enewgroup consul |
|||
enewuser consul -1 -1 /var/lib/${PN} consul |
|||
} |
|||
|
|||
src_prepare() { |
|||
default |
|||
|
|||
# avoid network-sandbox violations since go-1.13 |
|||
rm src/${EGO_PN}/go.mod || die |
|||
grep -rlZ '_ "github.com/envoyproxy/protoc-gen-validate/validate"' . | \ |
|||
xargs -0 sed -i '/_ "github.com\/envoyproxy\/protoc-gen-validate\/validate"/d' || die |
|||
|
|||
sed -e 's:go get -u -v $(GOTOOLS)::' \ |
|||
-e 's:vendorfmt dev-build:dev-build:' \ |
|||
-i "src/${EGO_PN}/GNUmakefile" || die |
|||
} |
|||
|
|||
src_compile() { |
|||
# The dev target sets causes build.sh to set appropriate XC_OS |
|||
# and XC_ARCH, and skips generation of an unused zip file, |
|||
# avoiding a dependency on app-arch/zip. |
|||
GOPATH="${S}" \ |
|||
GOBIN="${S}/bin" \ |
|||
GIT_DESCRIBE="v${PV}" \ |
|||
GIT_DIRTY="" \ |
|||
GIT_COMMIT="${GIT_COMMIT}" \ |
|||
emake -C "src/${EGO_PN}" dev-build |
|||
} |
|||
|
|||
src_install() { |
|||
local x |
|||
|
|||
dobin bin/consul |
|||
|
|||
keepdir /etc/consul.d |
|||
insinto /etc/consul.d |
|||
doins "${FILESDIR}/"*.json.example |
|||
|
|||
for x in /var/{lib,log}/${PN}; do |
|||
keepdir "${x}" |
|||
fowners consul:consul "${x}" |
|||
done |
|||
|
|||
newinitd "${FILESDIR}/consul.initd" "${PN}" |
|||
newconfd "${FILESDIR}/consul.confd" "${PN}" |
|||
insinto /etc/logrotate.d |
|||
newins "${FILESDIR}/${PN}.logrotated" "${PN}" |
|||
systemd_dounit "${FILESDIR}/consul.service" |
|||
} |
@ -1,75 +0,0 @@ |
|||
# Copyright 1999-2020 Gentoo Authors |
|||
# Distributed under the terms of the GNU General Public License v2 |
|||
|
|||
EAPI=7 |
|||
|
|||
inherit golang-vcs-snapshot systemd user |
|||
GIT_COMMIT="95fb95b" |
|||
KEYWORDS="~amd64" |
|||
EGO_PN="github.com/hashicorp/consul" |
|||
DESCRIPTION="A tool for service discovery, monitoring and configuration" |
|||
HOMEPAGE="https://www.consul.io" |
|||
SRC_URI="https://github.com/hashicorp/consul/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
|||
|
|||
SLOT="0" |
|||
LICENSE="MPL-2.0 Apache-2.0 BSD BSD-2 CC0-1.0 ISC MIT" |
|||
IUSE="" |
|||
|
|||
RESTRICT="test" |
|||
|
|||
DEPEND="dev-go/gox |
|||
>=dev-lang/go-1.11:= |
|||
>=dev-go/go-tools-0_pre20160121" |
|||
RDEPEND="" |
|||
|
|||
pkg_setup() { |
|||
enewgroup consul |
|||
enewuser consul -1 -1 /var/lib/${PN} consul |
|||
} |
|||
|
|||
src_prepare() { |
|||
default |
|||
|
|||
# avoid network-sandbox violations since go-1.13 |
|||
rm src/${EGO_PN}/go.mod || die |
|||
grep -rlZ '_ "github.com/envoyproxy/protoc-gen-validate/validate"' . | \ |
|||
xargs -0 sed -i '/_ "github.com\/envoyproxy\/protoc-gen-validate\/validate"/d' || die |
|||
|
|||
sed -e 's:go get -u -v $(GOTOOLS)::' \ |
|||
-e 's:vendorfmt dev-build:dev-build:' \ |
|||
-e '/^GIT.*?=/d' \ |
|||
-i "src/${EGO_PN}/GNUmakefile" || die |
|||
} |
|||
|
|||
src_compile() { |
|||
# The dev target sets causes build.sh to set appropriate XC_OS |
|||
# and XC_ARCH, and skips generation of an unused zip file, |
|||
# avoiding a dependency on app-arch/zip. |
|||
GOPATH="${S}" \ |
|||
GOBIN="${S}/bin" \ |
|||
GIT_DESCRIBE="v${PV}" \ |
|||
GIT_DIRTY="" \ |
|||
GIT_COMMIT="${GIT_COMMIT}" \ |
|||
emake -C "src/${EGO_PN}" dev-build |
|||
} |
|||
|
|||
src_install() { |
|||
local x |
|||
|
|||
dobin bin/consul |
|||
|
|||
keepdir /etc/consul.d |
|||
insinto /etc/consul.d |
|||
doins "${FILESDIR}/"*.json.example |
|||
|
|||
for x in /var/{lib,log}/${PN}; do |
|||
keepdir "${x}" |
|||
fowners consul:consul "${x}" |
|||
done |
|||
|
|||
newinitd "${FILESDIR}/consul.initd" "${PN}" |
|||
newconfd "${FILESDIR}/consul.confd" "${PN}" |
|||
insinto /etc/logrotate.d |
|||
newins "${FILESDIR}/${PN}.logrotated" "${PN}" |
|||
systemd_dounit "${FILESDIR}/consul.service" |
|||
} |
@ -1,2 +1 @@ |
|||
DIST kpcli-3.3.pl 199249 BLAKE2B 6db8dff530c709600ac90ca77c8171bedb98dc0ff3822963cdd177000a0b23c46387613639205b85dfdcb710b5a9804fc5b2e205c1937952e8439f5bebae4900 SHA512 5a837891a29dc65f0900015124fe3fdd1b7b9878ed2094d7c299c24590feee8e704212bcabf45c63064f97deca1dd2da96aa80c5be4305692f181db45b7e241a |
|||
DIST kpcli-3.4.pl 211243 BLAKE2B 4880d832554de1956e033bba2e2021b9dc0b77202585663b0f4ad2acca520bcb430ac974bbea00c21aa37c2c8e8fa8c5cf2e8131542c20ecc3c6b0ac6dd85d9a SHA512 1ec9ea46f769a6891700565a51c592fd4809a0f3bc1d2088ca694233b276652506b470328b8b840cd0876b945faad27a16a5685d8655868cd20760f24619ffaf |
@ -1,47 +0,0 @@ |
|||
# Copyright 1999-2020 Gentoo Authors |
|||
# Distributed under the terms of the GNU General Public License v2 |
|||
|
|||
EAPI=6 |
|||
|
|||
DESCRIPTION="A command line interface to KeePass database files" |
|||
HOMEPAGE="http://kpcli.sourceforge.net" |
|||
SRC_URI="http://downloads.sourceforge.net/project/kpcli/${P}.pl" |
|||
|
|||
LICENSE="|| ( Artistic GPL-1+ )" |
|||
SLOT="0" |
|||
KEYWORDS="amd64 x86" |
|||
IUSE="X" |
|||
|
|||
DEPEND="" |
|||
RDEPEND=" |
|||
dev-lang/perl |
|||
dev-perl/Clone |
|||
dev-perl/Crypt-Rijndael |
|||
dev-perl/TermReadKey |
|||
dev-perl/Sort-Naturally |
|||
dev-perl/Term-ShellUI |
|||
>=dev-perl/File-KeePass-0.30.0 |
|||
virtual/perl-File-Spec |
|||
virtual/perl-Getopt-Long |
|||
virtual/perl-Digest-MD5 |
|||
virtual/perl-Digest-SHA |
|||
virtual/perl-Data-Dumper |
|||
virtual/perl-Term-ANSIColor |
|||
virtual/perl-Time-Piece |
|||
virtual/perl-Carp |
|||
X? ( |
|||
dev-perl/Capture-Tiny |
|||
dev-perl/Clipboard |
|||
) |
|||
" |
|||
|
|||
src_unpack() { |
|||
mkdir "${S}" || die |
|||
cp "${DISTDIR}/${P}.pl" "${S}/${PN}" || die |
|||
} |
|||
|
|||
src_compile() { :; } |
|||
|
|||
src_install() { |
|||
dobin kpcli |
|||
} |
@ -1 +1 @@ |
|||
DIST kakoune-0_pre20171120.tar.gz 460659 BLAKE2B 443583e5d766b227f678f9adec76f06a0dfe6a29e2d6f38896b20a911e08e933e1e631d1018e1510a49fbb71b4b0258029fd33ece8c478bd228ef67b6fae939a SHA512 0208fd932dcf6cef3fac3338dfc15f0ba36ed4e3fa282cc5ffac5ad823f91b553a8c34747ff33ec4382257a1eb71f21181b63595031f9f237cba3bc8eeda3626 |
|||
DIST kakoune-2020.01.16.tar.gz 579837 BLAKE2B 46abfd7f2bf2db6f9755a5b4f547e63e72ac7eef46ad0903dac08d0f422774632ac5aa3dc1e6c69aa6f0527bdff0ea1792574933ceb35b2495927f747be94aaf SHA512 81a0fb522fd7f289ede36f966e815d03550df389b05d27fa430474dd55a90cc0e1c5231e660328040f3bd79d155d37b7b135b52b93cee536c15d13fc9d06baa0 |
@ -0,0 +1,15 @@ |
|||
diff -Naur a/rc/filetype/sh.kak b/rc/filetype/sh.kak
|
|||
--- a/rc/filetype/sh.kak 2020-01-16 11:52:20.000000000 +0200
|
|||
+++ b/rc/filetype/sh.kak 2020-05-25 15:50:20.417809942 +0300
|
|||
@@ -2,6 +2,11 @@
|
|||
set-option buffer filetype sh |
|||
} |
|||
|
|||
+hook global BufCreate .*\.ebuild %{
|
|||
+ set-option buffer filetype sh
|
|||
+}
|
|||
+
|
|||
+
|
|||
hook global WinSetOption filetype=sh %{ |
|||
require-module sh |
|||
set-option window static_words %opt{sh_static_words} |
@ -1,51 +0,0 @@ |
|||
# Copyright 1999-2017 Gentoo Foundation |
|||
# Distributed under the terms of the GNU General Public License v2 |
|||
|
|||
EAPI=6 |
|||
|
|||
inherit flag-o-matic toolchain-funcs vcs-snapshot versionator |
|||
|
|||
REF="079b006cdab6f0ae594f80fff18ad61b71b0754d" |
|||
|
|||
DESCRIPTION="Selection-oriented code editor inspired by vim" |
|||
HOMEPAGE="https://github.com/mawww/kakoune" |
|||
SRC_URI="https://github.com/mawww/${PN}/tarball/${REF} -> ${P}.tar.gz" |
|||
|
|||
LICENSE="Unlicense" |
|||
SLOT="0" |
|||
KEYWORDS="~amd64 ~x86" |
|||
IUSE="debug static" |
|||
|
|||
RDEPEND=" |
|||
sys-libs/ncurses:0=[unicode] |
|||
" |
|||
DEPEND=" |
|||
app-text/asciidoc |
|||
virtual/pkgconfig |
|||
${RDEPEND} |
|||
" |
|||
|
|||
pkg_setup() { |
|||
if [[ ${MERGE_TYPE} != binary ]]; then |
|||
if tc-is-gcc && ! version_is_at_least 5.0 $(gcc-version); then |
|||
die "Clang or GCC >=5.0 is required to build this version" |
|||
fi |
|||
fi |
|||
} |
|||
|
|||
src_prepare() { |
|||
default |
|||
|
|||
sed -i -e '/CXXFLAGS += -O3/d' src/Makefile || \ |
|||
die "Failed to patch makefile" |
|||
} |
|||
|
|||
src_configure() { |
|||
tc-export CXX |
|||
export debug=$(usex debug) |
|||
export static=$(usex static) |
|||
} |
|||
|
|||
src_install() { |
|||
emake -C src DESTDIR="${D}" PREFIX="${EPREFIX}/usr" docdir="${ED%/}/usr/share/doc/${PF}" install |
|||
} |
@ -0,0 +1,39 @@ |
|||
# Copyright 2020 Gentoo Authors |
|||
# Distributed under the terms of the GNU General Public License v2 |
|||
|
|||
EAPI=7 |
|||
|
|||
DESCRIPTION="Modal editor inspired by vim" |
|||
HOMEPAGE="http://kakoune.org/ https://github.com/mawww/kakoune" |
|||
SRC_URI="https://github.com/mawww/kakoune/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
|||
|
|||
LICENSE="Unlicense" |
|||
SLOT="0" |
|||
KEYWORDS="~amd64 ~x86" |
|||
IUSE="static-libs" |
|||
|
|||
DEPEND="sys-libs/ncurses:0=[unicode]" |
|||
RDEPEND="${DEPEND}" |
|||
BDEPEND="virtual/pkgconfig" |
|||
|
|||
PATCHES=( "${FILESDIR}"/kakoune-2020.01.16-enable-ebuild-syntax-highlight.patch ) |
|||
|
|||
src_configure() { :; } |
|||
|
|||
src_compile() { |
|||
cd src/ || die |
|||
|
|||
emake static=$(usex static-libs yes no) all |
|||
} |
|||
|
|||
src_test() { |
|||
cd src/ || die |
|||
emake test |
|||
} |
|||
|
|||
src_install() { |
|||
emake PREFIX="${D}"/usr docdir="${D}/usr/share/doc/${PF}" install |
|||
|
|||
rm "${D}/usr/share/man/man1/kak.1.gz" || die |
|||
doman doc/kak.1 |
|||
} |
@ -1,49 +0,0 @@ |
|||
# Copyright 1999-2017 Gentoo Foundation |
|||
# Distributed under the terms of the GNU General Public License v2 |
|||
|
|||
EAPI=6 |
|||
|
|||
inherit flag-o-matic toolchain-funcs git-r3 versionator |
|||
|
|||
DESCRIPTION="Selection-oriented code editor inspired by vim" |
|||
HOMEPAGE="https://github.com/mawww/kakoune" |
|||
EGIT_REPO_URI="https://github.com/mawww/kakoune.git" |
|||
|
|||
LICENSE="Unlicense" |
|||
SLOT="0" |
|||
KEYWORDS="" |
|||
IUSE="debug static" |
|||
|
|||
RDEPEND=" |
|||
sys-libs/ncurses:0=[unicode] |
|||
" |
|||
DEPEND=" |
|||
app-text/asciidoc |
|||
virtual/pkgconfig |
|||
${RDEPEND} |
|||
" |
|||
|
|||
pkg_setup() { |
|||
if [[ ${MERGE_TYPE} != binary ]]; then |
|||
if tc-is-gcc && ! version_is_at_least 5.0 $(gcc-version); then |
|||
die "Clang or GCC >=5.0 is required to build this version" |
|||
fi |
|||
fi |
|||
} |
|||
|
|||
src_prepare() { |
|||
default |
|||
|
|||
sed -i -e '/CXXFLAGS += -O3/d' src/Makefile || \ |
|||
die "Failed to patch makefile" |
|||
} |
|||
|
|||
src_configure() { |
|||
tc-export CXX |
|||
export debug=$(usex debug) |
|||
export static=$(usex static) |
|||
} |
|||
|
|||
src_install() { |
|||
emake -C src DESTDIR="${D}" PREFIX="${EPREFIX}/usr" docdir="${ED%/}/usr/share/doc/${PF}" install |
|||
} |
@ -1,2 +1,2 @@ |
|||
DIST conmon-2.0.11.tar.gz 58791 BLAKE2B a2b9e06041e0455d1445974b76d87e96fc6e248053ca52d48625e635ff709e180d1f9cc96cbcae9896261cf9b7401f1f10749b161451c4aa1bff4ec2d89118d0 SHA512 6ec1f14e1d0216305cc5f866566804204233239b6b428d040385e38b7c9f0d1160bb3af4ec31a441171934358f7f4b315b127507d54bc180e765846ed7b2588e |
|||
DIST conmon-2.0.15.tar.gz 61983 BLAKE2B c29de3c9df41b9f27fc2a0f0ac64c1ce27e5dbb21c9a74b060516692a910be4370f7cc4b6225e0243b809fd36848515b28017cb1766cc032a48d7e14b9a72726 SHA512 8310236045d8678bdd07bfd5a56f7ad1e9a01019e27ed8d24dcb83b4489240adce9e118a4fccb6cb0c0f3c31a0272d75bdafba9c50130903d87b7cb68288b470 |
|||
DIST conmon-2.0.16.tar.gz 62372 BLAKE2B 0f02689e6ca25ee2f8cdf649f60ed70ac25648dd35af765a5fd97573dd9c176d115b97cea0ea10521f055a92f0775430113f53724fc772d62630dc7daa05b4a7 SHA512 8f44b2426e3fdbb6ca0279b35262f5584c44898843daf6b64d54c3a87dcdfaf9a7283ad38973e6e0f7333ec37236ef7de1de03a3006f5f2593fdb8aff70e5e6c |
@ -1,4 +1 @@ |
|||
DIST cri-tools-1.14.0.tar.gz 3647742 BLAKE2B 1a308c87e7be05dd71cf11d79c841a837156529d398f1475323ff9585f9080cd0356a007f8b8c505a02943ff479a7c26869f35288d178ac8187ca6766032c488 SHA512 c8978e4380ebb2dd59ce533ade94486ae1e4091fda7acd8cf5cce662034a1d34a1851c43bf766a723c5ba71c15972733a2e80c6e82fb1c27e5a1dfc2e85476bf |
|||
DIST cri-tools-1.15.0.tar.gz 3672568 BLAKE2B d4e9a0b2ca43efdb61c7626de518801a124fb61991f1df6a7eac106f7516ab59effa70038db7c4cbfddaf1c345c648f359c86d298dae08abb34f4b801b82b2a1 SHA512 43115fad485c2c6603e724f3529371133bcea6de069dc58d36e7880f558fa1696244b6129fe3a96fd669b27a3d9bd07bda1219e89afa348e36a85087992adf7f |
|||
DIST cri-tools-1.16.1.tar.gz 6915584 BLAKE2B eb2bc397b3bbeadb64d4d13610189f18bbf49ff93be1b1f3edf504305ed1a2ca8e271d3c041f5af01117f6c7403671a29df30d7aaab270cdb7ab84ac921fa914 SHA512 df15e6f3c4fe697070547d804bfa6755f780b3f0562f06312f39d3ee8756931bbec7c07482e2ef73413d85c1e9ca58064a769a15b04b3832da17044d180e8b4c |
|||
DIST cri-tools-1.18.0.tar.gz 5295512 BLAKE2B 9dda4a401b858e98aa60521d3268d8f6ff6a2c1bd2c219a0e5e9e5360fba58d41e97258c636da26ee57bbfc3286798c74107c7de92d3e3398bdf53b7d9078e94 SHA512 849b496e6d19eec29e0e56f0b37c094649311b80514f319b0c68c6519e3ddd48e1973c3d288144db998826676416644ec705b7ea0916c21898b40928ea800af1 |
@ -1,29 +0,0 @@ |
|||
# Copyright 2018 Sony Interactive Entertainment Inc. |
|||
# Distributed under the terms of the GNU General Public License v2 |
|||
|
|||
EAPI=6 |
|||
inherit golang-build golang-vcs-snapshot |
|||
|
|||
EGO_PN="github.com/kubernetes-sigs/cri-tools" |
|||
MY_PV="v${PV/_beta/-beta.}" |
|||
ARCHIVE_URI="https://${EGO_PN}/archive/${MY_PV}.tar.gz -> ${P}.tar.gz" |
|||
KEYWORDS="amd64" |
|||
|
|||
DESCRIPTION="CLI and validation tools for Kubelet Container Runtime (CRI)" |
|||
HOMEPAGE="https://github.com/kubernetes-sigs/cri-tools" |
|||
SRC_URI="${ARCHIVE_URI}" |
|||
LICENSE="Apache-2.0 BSD BSD-2 CC-BY-SA-4.0 ISC MIT MPL-2.0" |
|||
SLOT="0" |
|||
IUSE="" |
|||
|
|||
RESTRICT="test" |
|||
|
|||
src_compile() { |
|||
GOPATH="${S}" go test -c -v -ldflags="-X ${EGO_PN}/pkg/version.Version=${MY_PV}" -o bin/critest ${EGO_PN}/cmd/critest || die |
|||
GOPATH="${S}" go build -v -ldflags="-X ${EGO_PN}/pkg/version.Version=${MY_PV}" -o bin/crictl ${EGO_PN}/cmd/crictl || die |
|||
} |
|||
|
|||
src_install() { |
|||
dobin bin/* |
|||
dodoc -r src/${EGO_PN}/{docs,{README,RELEASE,CHANGELOG,CONTRIBUTING}.md} |
|||
} |
@ -1,29 +0,0 @@ |
|||
# Copyright 2018 Sony Interactive Entertainment Inc. |
|||
# Distributed under the terms of the GNU General Public License v2 |
|||
|
|||
EAPI=6 |
|||
inherit golang-build golang-vcs-snapshot |
|||
|
|||
EGO_PN="github.com/kubernetes-sigs/cri-tools" |
|||
MY_PV="v${PV/_beta/-beta.}" |
|||
ARCHIVE_URI="https://${EGO_PN}/archive/${MY_PV}.tar.gz -> ${P}.tar.gz" |
|||
KEYWORDS="~amd64" |
|||
|
|||
DESCRIPTION="CLI and validation tools for Kubelet Container Runtime (CRI)" |
|||
HOMEPAGE="https://github.com/kubernetes-sigs/cri-tools" |
|||
SRC_URI="${ARCHIVE_URI}" |
|||
LICENSE="Apache-2.0 BSD BSD-2 CC-BY-SA-4.0 ISC MIT MPL-2.0" |
|||
SLOT="0" |
|||
IUSE="" |
|||
|
|||
RESTRICT="test" |
|||
|
|||
src_compile() { |
|||
GOPATH="${S}" go test -c -v -ldflags="-X ${EGO_PN}/pkg/version.Version=${MY_PV}" -o bin/critest ${EGO_PN}/cmd/critest || die |
|||
GOPATH="${S}" go build -v -ldflags="-X ${EGO_PN}/pkg/version.Version=${MY_PV}" -o bin/crictl ${EGO_PN}/cmd/crictl || die |
|||
} |
|||
|
|||
src_install() { |
|||
dobin bin/* |
|||
dodoc -r src/${EGO_PN}/{docs,{README,RELEASE,CHANGELOG,CONTRIBUTING}.md} |
|||
} |
@ -1,36 +0,0 @@ |
|||
# Copyright 2018 Sony Interactive Entertainment Inc. |
|||
# Distributed under the terms of the GNU General Public License v2 |
|||
|
|||
EAPI=6 |
|||
inherit golang-build golang-vcs-snapshot bash-completion-r1 |
|||
|
|||
EGO_PN="github.com/kubernetes-sigs/cri-tools" |
|||
MY_PV="v${PV/_beta/-beta.}" |
|||
ARCHIVE_URI="https://${EGO_PN}/archive/${MY_PV}.tar.gz -> ${P}.tar.gz" |
|||
KEYWORDS="~amd64" |
|||
|
|||
DESCRIPTION="CLI and validation tools for Kubelet Container Runtime (CRI)" |
|||
HOMEPAGE="https://github.com/kubernetes-sigs/cri-tools" |
|||
SRC_URI="${ARCHIVE_URI}" |
|||
LICENSE="Apache-2.0 BSD BSD-2 CC-BY-SA-4.0 ISC MIT MPL-2.0" |
|||
SLOT="0" |
|||
IUSE="" |
|||
|
|||
RESTRICT="test" |
|||
|
|||
src_compile() { |
|||
GOPATH="${S}" go test -c -v -ldflags="-X ${EGO_PN}/pkg/version.Version=${MY_PV}" -o bin/critest ${EGO_PN}/cmd/critest || die |
|||
GOPATH="${S}" go build -v -ldflags="-X ${EGO_PN}/pkg/version.Version=${MY_PV}" -o bin/crictl ${EGO_PN}/cmd/crictl || die |
|||
bin/crictl completion bash > ${PN}.bash || die |
|||
bin/crictl completion zsh > ${PN}.zsh || die |
|||
} |
|||
|
|||
src_install() { |
|||
dobin bin/* |
|||
|
|||
newbashcomp ${PN}.bash ${PN} |
|||
insinto /usr/share/zsh/site-functions |
|||
newins ${PN}.zsh _${PN} |
|||
|
|||
dodoc -r src/${EGO_PN}/{docs,{README,RELEASE,CHANGELOG,CONTRIBUTING}.md} |
|||
} |
@ -1,2 +1,3 @@ |
|||
DIST diskimage-builder-2.35.0.tar.gz 439947 BLAKE2B 9b148948caef031f44992aaa2b0463b6cc9390b0591fdfe6e82d8258becda61eb5aa0d87ae91ed73523057ae357dcf327d7ca9d8d6a1b66da7f2d535d6c32dc1 SHA512 c5ad15c7a793a6c4b17e09fb119ad1444273f930741ae68491ce3a95f416cf8bb76ed0f6df4e34e03359355426c9189f2f5a8b730cb9ffd027a0bbd676f62310 |
|||
DIST diskimage-builder-2.36.0.tar.gz 441509 BLAKE2B 4f8ec1686df8438c53eb088e52b954d0b84c8f327108599970f987db8de0f5ea7491e123c5f41fa9ff058d8f9d30238a533357b01e1cb671dd1fb3eb96ad28cb SHA512 f3fc13195742b25b8cca72d8b5630900d77f5af69dd9d153c44875e9e8f8f27393a8478a4adcdc05ea9d5b73b742e066edb5ab636bfd8d88c404c8f0fe33f1e7 |
|||
DIST diskimage-builder-2.37.1.tar.gz 442597 BLAKE2B ea70b0ef7573ae7ccce93bf6792e9866e8799f746ab87db5b2fea4b4c5bb41c18bc4fd1b8fdc7b0bc401be6ed940cf0964391ed235507fd80ebb6a39c811da1c SHA512 5901a13db4a94418bfe0b0e6dde855e32d3286ad31ba922839cba390d1adb79eb36ea7b14133d8e71e712ca562f7ebaa65637c2535276c3ef10b72a3047c3eed |
@ -0,0 +1,39 @@ |
|||
# Copyright 1999-2020 Gentoo Authors |
|||
# Distributed under the terms of the GNU General Public License v2 |
|||
|
|||
EAPI=7 |
|||
|
|||
PYTHON_COMPAT=( python3_{6,7,8} ) |
|||
inherit distutils-r1 |
|||
|
|||
DESCRIPTION="Golden Disk Image builder." |
|||
HOMEPAGE="http://docs.openstack.org/developer/diskimage-builder/" |
|||
if [[ ${PV} == 9999* ]]; then |
|||
inherit git-r3 |
|||
EGIT_REPO_URI="https://opendev.org/openstack/diskimage-builder.git" |
|||
else |
|||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
|||
KEYWORDS="~amd64 ~arm64 ~x86 ~amd64-linux ~x86-linux" |
|||
fi |
|||
|
|||
LICENSE="Apache-2.0" |
|||
SLOT="0" |
|||
IUSE="" |
|||
|
|||
CDEPEND=">=dev-python/pbr-2.0.0[${PYTHON_USEDEP}] |
|||
!~dev-python/pbr-2.1.0[${PYTHON_USEDEP}]" |
|||
DEPEND="${CDEPEND} |
|||
dev-python/setuptools[${PYTHON_USEDEP}]" |
|||
RDEPEND="${CDEPEND} |
|||
>=dev-python/Babel-2.3.4[${PYTHON_USEDEP}] |
|||
!~dev-python/Babel-2.4.0[${PYTHON_USEDEP}] |
|||
>=dev-python/networkx-1.10[${PYTHON_USEDEP}] |
|||
>=dev-python/pyyaml-3.12[${PYTHON_USEDEP}] |
|||
>=dev-python/six-1.10.0[${PYTHON_USEDEP}] |
|||
>=dev-python/stevedore-1.20.0[${PYTHON_USEDEP}] |
|||
app-emulation/qemu |
|||
sys-block/parted |
|||
sys-fs/multipath-tools |
|||
sys-fs/dosfstools |
|||
sys-apps/gptfdisk |
|||
!dev-python/dib-utils[${PYTHON_USEDEP}]" |
@ -1,7 +1,10 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
|||
<pkgmetadata> |
|||
<!-- maintainer-needed --> |
|||
<maintainer type="person"> |
|||
<email>williamh@gentoo.org</email> |
|||
<name>William Hubbs</name> |
|||
</maintainer> |
|||
<upstream> |
|||
<remote-id type="github">kubernetes/kompose</remote-id> |
|||
</upstream> |
|||
|
@ -1,2 +1,3 @@ |
|||
DIST libpod-1.8.2.tar.gz 30065262 BLAKE2B 1bf4ca9b9547a710f1882ac40aee0cf295fecdb9d43dc6fa30633331ca9e19d15e6d671075627939167cdf100d30e8299e50bd51425226ff1994778782cf261b SHA512 c6e1426f66299a21be66be033460c44830b422f8a3319f37bbe53030f6a2bf84b140a29f30b83f6b61199f1df373f81a6d73787d16423ad942fc8a9154c68366 |
|||
DIST libpod-1.9.0.tar.gz 8865279 BLAKE2B 70b83f7c0482f0cbf94f235752b241aec61790d2ec01abed6ab3eb98c5de4a338e84e70c7d5fbcb239f33a7a209160c8c4868b3b86797ac8be58f08ddde5d35d SHA512 ba7de72e03dc55896025b698465745873f3030547e19133b835e4f47c1cd1c0261f17845d50cbe7b824db2a9ed77def7883405637333e141f7abecada644b5be |
|||
DIST libpod-1.9.3.tar.gz 8869143 BLAKE2B 52c049c3a9c96729f32c1b7a9fc4b182614d18edd12ee1d5b19730a870b694f5c4489577bbf547cf86baf51b6fadfdf1a1513ff784a4c549f5b737549187f3a3 SHA512 d85cdf49b740f47a341b7717a4bc22ff326d22234e224bd572a3d879b75eaa33139bebdc293c2e7bc41a9902289d89380b9b56975a0826172324e9a54f8f5e03 |
@ -0,0 +1,142 @@ |
|||
# Copyright 1999-2020 Gentoo Authors |
|||
# Distributed under the terms of the GNU General Public License v2 |
|||
|
|||
EAPI=7 |
|||
|
|||
EGIT_COMMIT="5d44534fff6877b1cb15b760242279ae6293154c" |
|||
|
|||
inherit bash-completion-r1 flag-o-matic go-module |
|||
|
|||
DESCRIPTION="Library and podman tool for running OCI-based containers in Pods" |
|||
HOMEPAGE="https://github.com/containers/libpod/" |
|||
SRC_URI="https://github.com/containers/libpod/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
|||
LICENSE="Apache-2.0 BSD BSD-2 CC-BY-SA-4.0 ISC MIT MPL-2.0" |
|||
SLOT="0" |
|||
|
|||
KEYWORDS="~amd64" |
|||
IUSE="apparmor btrfs +fuse +rootless selinux" |
|||
RESTRICT="test" |
|||
|
|||
COMMON_DEPEND=" |
|||
app-crypt/gpgme:= |
|||
>=app-emulation/conmon-2.0.0 |
|||
|| ( >=app-emulation/runc-1.0.0_rc6 app-emulation/crun ) |
|||
dev-libs/libassuan:= |
|||
dev-libs/libgpg-error:= |
|||
net-misc/cni-plugins |
|||
sys-fs/lvm2 |
|||
sys-libs/libseccomp:= |
|||
|
|||
apparmor? ( sys-libs/libapparmor ) |
|||
btrfs? ( sys-fs/btrfs-progs ) |
|||
rootless? ( app-emulation/slirp4netns ) |
|||
selinux? ( sys-libs/libselinux:= ) |
|||
" |
|||
DEPEND=" |
|||
${COMMON_DEPEND} |
|||
dev-go/go-md2man" |
|||
RDEPEND="${COMMON_DEPEND} |
|||
fuse? ( sys-fs/fuse-overlayfs )" |
|||
|
|||
src_prepare() { |
|||
default |
|||
|
|||
# Disable installation of python modules here, since those are |
|||
# installed by separate ebuilds. |
|||
local makefile_sed_args=( |
|||
-e '/^GIT_.*/d' |
|||
-e 's/$(GO) build/$(GO) build -v -work -x/' |
|||
-e 's/^\(install:.*\) install\.python$/\1/' |
|||
) |
|||
|
|||
has_version -b '>=dev-lang/go-1.13.9' || makefile_sed_args+=(-e 's:GO111MODULE=off:GO111MODULE=on:') |
|||
|
|||
sed "${makefile_sed_args[@]}" -i Makefile || die |
|||
|
|||
sed -e 's|OUTPUT="${CIRRUS_TAG:.*|OUTPUT='v${PV}'|' \ |
|||
-i hack/get_release_info.sh || die |
|||
} |
|||
|
|||
src_compile() { |
|||
# Filter unsupported linker flags |
|||
filter-flags '-Wl,*' |
|||
|
|||
[[ -f hack/apparmor_tag.sh ]] || die |
|||
if use apparmor; then |
|||
echo -e "#!/bin/sh\necho apparmor" > hack/apparmor_tag.sh || die |
|||
else |
|||
echo -e "#!/bin/sh\ntrue" > hack/apparmor_tag.sh || die |
|||
fi |
|||
|
|||
[[ -f hack/btrfs_installed_tag.sh ]] || die |
|||
if use btrfs; then |
|||
echo -e "#!/bin/sh\ntrue" > hack/btrfs_installed_tag.sh || die |
|||
else |
|||
echo -e "#!/bin/sh\necho exclude_graphdriver_btrfs" > \ |
|||
hack/btrfs_installed_tag.sh || die |
|||
fi |
|||
|
|||
[[ -f hack/selinux_tag.sh ]] || die |
|||
if use selinux; then |
|||
echo -e "#!/bin/sh\necho selinux" > hack/selinux_tag.sh || die |
|||
else |
|||
echo -e "#!/bin/sh\ntrue" > hack/selinux_tag.sh || die |
|||
fi |
|||
|
|||
export -n GOCACHE GOPATH XDG_CACHE_HOME |
|||
GOBIN="${S}/bin" \ |
|||
emake all \ |
|||
GIT_BRANCH=master \ |
|||
GIT_BRANCH_CLEAN=master \ |
|||
COMMIT_NO="${EGIT_COMMIT}" \ |
|||
GIT_COMMIT="${EGIT_COMMIT}" |
|||
} |
|||
|
|||
src_install() { |
|||
emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install |
|||
|
|||
insinto /etc/containers |
|||
newins test/registries.conf registries.conf.example |
|||
newins test/policy.json policy.json.example |
|||
|
|||
insinto /usr/share/containers |
|||
doins seccomp.json |
|||
|
|||
newinitd "${FILESDIR}"/podman.initd podman |
|||
|
|||
insinto /etc/logrotate.d |
|||
newins "${FILESDIR}/podman.logrotated" podman |
|||
|
|||
dobashcomp completions/bash/* |
|||
|
|||
keepdir /var/lib/containers |
|||
} |
|||
|
|||
pkg_preinst() { |
|||
LIBPOD_ROOTLESS_UPGRADE=false |
|||
if use rootless; then |
|||
has_version 'app-emulation/libpod[rootless]' || LIBPOD_ROOTLESS_UPGRADE=true |
|||
fi |
|||
} |
|||
|
|||
pkg_postinst() { |
|||
local want_newline=false |
|||
if [[ ! ( -e ${EROOT%/*}/etc/containers/policy.json && -e ${EROOT%/*}/etc/containers/registries.conf ) ]]; then |
|||
elog "You need to create the following config files:" |
|||
elog "/etc/containers/registries.conf" |
|||
elog "/etc/containers/policy.json" |
|||
elog "To copy over default examples, use:" |
|||
elog "cp /etc/containers/registries.conf{.example,}" |
|||
elog "cp /etc/containers/policy.json{.example,}" |
|||
want_newline=true |
|||
fi |
|||
if [[ ${LIBPOD_ROOTLESS_UPGRADE} == true ]] ; then |
|||
${want_newline} && elog "" |
|||
elog "For rootless operation, you need to configure subuid/subgid" |
|||
elog "for user running podman. In case subuid/subgid has only been" |
|||
elog "configured for root, run:" |
|||
elog "usermod --add-subuids 1065536-1131071 <user>" |
|||
elog "usermod --add-subgids 1065536-1131071 <user>" |
|||
want_newline=true |
|||
fi |
|||
} |
@ -1,133 +0,0 @@ |
|||
# Copyright 1999-2020 Gentoo Authors |
|||
# Distributed under the terms of the GNU General Public License v2 |
|||
|
|||
EAPI=7 |
|||
|
|||
inherit autotools bash-completion-r1 linux-info flag-o-matic pam readme.gentoo-r1 systemd |
|||
|
|||
DESCRIPTION="LinuX Containers userspace utilities" |
|||
HOMEPAGE="https://linuxcontainers.org/ https://github.com/lxc/lxc" |
|||
SRC_URI="https://linuxcontainers.org/downloads/lxc/${P}.tar.gz" |
|||
|
|||
KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86" |
|||
|
|||
LICENSE="LGPL-3" |
|||
SLOT="0" |
|||
IUSE="apparmor examples pam seccomp selinux +templates" |
|||
|
|||
RDEPEND="app-misc/pax-utils |
|||
net-libs/gnutls |
|||
sys-apps/util-linux |
|||
sys-libs/libcap |
|||
virtual/awk |
|||
pam? ( sys-libs/pam ) |
|||
seccomp? ( sys-libs/libseccomp ) |
|||
selinux? ( sys-libs/libselinux )" |
|||
DEPEND="${RDEPEND} |
|||
>=app-text/docbook-sgml-utils-0.6.14-r2 |
|||
>=sys-kernel/linux-headers-3.2 |
|||
apparmor? ( sys-apps/apparmor )" |
|||
PDEPEND="templates? ( app-emulation/lxc-templates )" |
|||
|
|||
CONFIG_CHECK="~CGROUPS ~CGROUP_DEVICE |
|||
~CPUSETS ~CGROUP_CPUACCT |
|||
~CGROUP_SCHED |
|||
|
|||
~NAMESPACES |
|||
~IPC_NS ~USER_NS ~PID_NS |
|||
|
|||
~CGROUP_FREEZER |
|||
~UTS_NS ~NET_NS |
|||
~VETH ~MACVLAN |
|||
|
|||
~POSIX_MQUEUE |
|||
~!NETPRIO_CGROUP" |
|||
|
|||
ERROR_CGROUP_FREEZER="CONFIG_CGROUP_FREEZER: needed to freeze containers" |
|||
ERROR_UTS_NS="CONFIG_UTS_NS: needed to unshare hostnames and uname info" |
|||
ERROR_NET_NS="CONFIG_NET_NS: needed for unshared network" |
|||
ERROR_VETH="CONFIG_VETH: needed for internal (host-to-container) networking" |
|||
ERROR_MACVLAN="CONFIG_MACVLAN: needed for internal (inter-container) networking" |
|||
ERROR_POSIX_MQUEUE="CONFIG_POSIX_MQUEUE: needed for lxc-execute command" |
|||
ERROR_NETPRIO_CGROUP="CONFIG_NETPRIO_CGROUP: as of kernel 3.3 and lxc 0.8.0_rc1 this causes LXCs to fail booting." |
|||
|
|||
DOCS=( AUTHORS CONTRIBUTING MAINTAINERS NEWS README doc/FAQ.txt ) |
|||
|
|||
pkg_setup() { |
|||
linux-info_pkg_setup |
|||
} |
|||
|
|||
PATCHES=( |
|||
"${FILESDIR}"/${PN}-3.0.0-bash-completion.patch |
|||
"${FILESDIR}"/${PN}-2.0.5-omit-sysconfig.patch # bug 558854 |
|||
) |
|||
|
|||
src_prepare() { |
|||
default |
|||
eautoreconf |
|||
} |
|||
|
|||
src_configure() { |
|||
append-flags -fno-strict-aliasing |
|||
|
|||
# --enable-doc is for manpages which is why we don't link it to a "doc" |
|||
# USE flag. We always want man pages. |
|||
local myeconfargs=( |
|||
--localstatedir=/var |
|||
--bindir=/usr/bin |
|||
--sbindir=/usr/bin |
|||
--with-config-path=/var/lib/lxc |
|||
--with-rootfs-path=/var/lib/lxc/rootfs |
|||
--with-distro=gentoo |
|||
--with-runtime-path=/run |
|||
--disable-werror |
|||
--enable-doc |
|||
--with-systemdsystemunitdir=$(systemd_get_systemunitdir) |
|||
$(use_enable apparmor) |
|||
$(use_enable examples) |
|||
$(use_enable pam) |
|||
$(use_with pam pamdir $(getpam_mod_dir)) |
|||
$(use_enable seccomp) |
|||
$(use_enable selinux) |
|||
) |
|||
econf "${myeconfargs[@]}" |
|||
} |
|||
|
|||
src_install() { |
|||
default |
|||
|
|||
mv "${ED}"/usr/share/bash-completion/completions/${PN} "${ED}"/$(get_bashcompdir)/${PN}-start || die |
|||
bashcomp_alias ${PN}-start \ |
|||
${PN}-{attach,cgroup,copy,console,create,destroy,device,execute,freeze,info,monitor,snapshot,stop,unfreeze,wait} |
|||
|
|||
keepdir /etc/lxc /var/lib/lxc/rootfs /var/log/lxc |
|||
rmdir "${D}"/var/cache/lxc "${D}"/var/cache || die "rmdir failed" |
|||
|
|||
find "${D}" -name '*.la' -delete -o -name '*.a' -delete || die |
|||
|
|||
# Gentoo-specific additions! |
|||
newinitd "${FILESDIR}/${PN}.initd.8" ${PN} |
|||
|
|||
# Remember to compare our systemd unit file with the upstream one |
|||
# config/init/systemd/lxc.service.in |
|||
systemd_newunit "${FILESDIR}"/${PN}_at.service.4.0.0 "lxc@.service" |
|||
|
|||
DOC_CONTENTS=" |
|||
For openrc, there is an init script provided with the package. |
|||
You _should_ only need to symlink /etc/init.d/lxc to |
|||
/etc/init.d/lxc.configname to start the container defined in |
|||
/etc/lxc/configname.conf. |
|||
|
|||
Correspondingly, for systemd a service file lxc@.service is installed. |
|||
Enable and start lxc@configname in order to start the container defined |
|||
in /etc/lxc/configname.conf. |
|||
|
|||
If you want checkpoint/restore functionality, please install criu |
|||
(sys-process/criu)." |
|||
DISABLE_AUTOFORMATTING=true |
|||
readme.gentoo_create_doc |
|||
} |
|||
|
|||
pkg_postinst() { |
|||
readme.gentoo_print_elog |
|||
} |
@ -0,0 +1,150 @@ |
|||
# Copyright 1999-2020 Gentoo Authors |
|||
# Distributed under the terms of the GNU General Public License v2 |
|||
|
|||
EAPI=7 |
|||
|
|||
PYTHON_COMPAT=( python2_7 ) |
|||
PYTHON_REQ_USE='xml,threads' |
|||
|
|||
inherit flag-o-matic multilib python-single-r1 toolchain-funcs |
|||
|
|||
XEN_EXTFILES_URL="http://xenbits.xensource.com/xen-extfiles" |
|||
LIBPCI_URL=ftp://atrey.karlin.mff.cuni.cz/pub/linux/pci |
|||
GRUB_URL=mirror://gnu-alpha/grub |
|||
|
|||
UPSTREAM_VER= |
|||
[[ -n ${UPSTREAM_VER} ]] && \ |
|||
UPSTREAM_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${P/-pvgrub/}-upstream-patches-${UPSTREAM_VER}.tar.xz |
|||
https://github.com/hydrapolic/gentoo-dist/raw/master/xen/${P/-pvgrub/}-upstream-patches-${UPSTREAM_VER}.tar.xz" |
|||
|
|||
SRC_URI=" |
|||
https://downloads.xenproject.org/release/xen/${PV}/xen-${PV}.tar.gz |
|||
$GRUB_URL/grub-0.97.tar.gz |
|||
$XEN_EXTFILES_URL/zlib-1.2.3.tar.gz |
|||
$LIBPCI_URL/pciutils-2.2.9.tar.bz2 |
|||
$XEN_EXTFILES_URL/lwip-1.3.0.tar.gz |
|||
$XEN_EXTFILES_URL/newlib/newlib-1.16.0.tar.gz |
|||
$XEN_EXTFILES_URL/polarssl-1.1.4-gpl.tgz |
|||
${UPSTREAM_PATCHSET_URI}" |
|||
|
|||
S="${WORKDIR}/xen-${PV}" |
|||
|
|||
DESCRIPTION="allows to boot Xen domU kernels from a menu.lst laying inside guest filesystem" |
|||
HOMEPAGE="https://www.xenproject.org" |
|||
LICENSE="GPL-2" |
|||
SLOT="0" |
|||
KEYWORDS="~amd64 ~x86" |
|||
IUSE="" |
|||
|
|||
REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
|||
|
|||
DEPEND="sys-devel/gettext |
|||
sys-devel/bin86 |
|||
sys-apps/texinfo |
|||
x11-libs/pixman" |
|||
|
|||
RDEPEND="${PYTHON_DEPS} |
|||
>=app-emulation/xen-tools-${PV}" |
|||
|
|||
pkg_setup() { |
|||
python-single-r1_pkg_setup |
|||
} |
|||
|
|||
retar-externals() { |
|||
# Purely to unclutter src_prepare |
|||
local set="grub-0.97.tar.gz lwip-1.3.0.tar.gz newlib-1.16.0.tar.gz polarssl-1.1.4-gpl.tgz zlib-1.2.3.tar.gz" |
|||
|
|||
# eapply can't patch in $WORKDIR, requires a sed; Bug #455194. Patchable, but sed informative |
|||
sed -e s':AR=${AR-"ar rc"}:AR=${AR-"ar"}:' \ |
|||
-i "${WORKDIR}"/zlib-1.2.3/configure || die |
|||
sed -e 's:^AR=ar rc:AR=ar:' \ |
|||
-e s':$(AR) $@:$(AR) rc $@:' \ |
|||
-i "${WORKDIR}"/zlib-1.2.3/{Makefile,Makefile.in} || die |
|||
einfo "zlib Makefile edited" |
|||
|
|||
cd "${WORKDIR}" || die |
|||
tar czp zlib-1.2.3 -f zlib-1.2.3.tar.gz || die |
|||
tar czp grub-0.97 -f grub-0.97.tar.gz || die |
|||
tar czp lwip -f lwip-1.3.0.tar.gz || die |
|||
tar czp newlib-1.16.0 -f newlib-1.16.0.tar.gz || die |
|||
tar czp polarssl-1.1.4 -f polarssl-1.1.4-gpl.tgz || die |
|||
mv $set "${S}"/stubdom/ || die |
|||
einfo "tarballs moved to source" |
|||
} |
|||
|
|||
src_prepare() { |
|||
# Upstream's patchset |
|||
if [[ -n ${UPSTREAM_VER} ]]; then |
|||
einfo "Try to apply Xen Upstream patch set" |
|||
EPATCH_SUFFIX="patch" \ |
|||
EPATCH_FORCE="yes" \ |
|||
EPATCH_OPTS="-p1" \ |
|||
eapply "${WORKDIR}"/patches-upstream |
|||
fi |
|||
|
|||
# Patch the unmergeable newlib, fix most of the leftover gcc QA issues |
|||
cp "${FILESDIR}"/newlib-implicits.patch stubdom || die |
|||
|
|||
# Patch stubdom/Makefile to patch insource newlib & prevent internal downloading |
|||
eapply "${FILESDIR}"/${PN/-pvgrub/}-4.10-externals.patch |
|||
|
|||
# fix jobserver in Makefile |
|||
eapply "${FILESDIR}"/${PN}-4.8-jserver.patch |
|||
|
|||
#Substitute for internal downloading. pciutils copied only due to the only .bz2 |
|||
cp "${DISTDIR}"/pciutils-2.2.9.tar.bz2 ./stubdom/ || die "pciutils not copied to stubdom" |
|||
retar-externals || die "re-tar procedure failed" |
|||
|
|||
default |
|||
} |
|||
|
|||
src_configure() { |
|||
local myconf="--prefix=${PREFIX}/usr \ |
|||
--libdir=${PREFIX}/usr/$(get_libdir) \ |
|||
--libexecdir=${PREFIX}/usr/libexec \ |
|||
--disable-werror \ |
|||
--disable-xen" |
|||
|
|||
econf ${myconf} |
|||
} |
|||
|
|||
src_compile() { |
|||
unset CFLAGS |
|||
if test-flag-CC -fno-strict-overflow; then |
|||
append-flags -fno-strict-overflow |
|||
fi |
|||
|
|||
emake CC="$(tc-getCC)" LD="$(tc-getLD)" AR="$(tc-getAR)" -C tools/include |
|||
emake CC="$(tc-getCC)" LD="$(tc-getLD)" AR="$(tc-getAR)" -C tools/libs |
|||
|
|||
if use x86; then |
|||
emake CC="$(tc-getCC)" LD="$(tc-getLD)" AR="$(tc-getAR)" \ |
|||
XEN_TARGET_ARCH="x86_32" -C stubdom pv-grub |
|||
elif use amd64; then |
|||
emake CC="$(tc-getCC)" LD="$(tc-getLD)" AR="$(tc-getAR)" \ |
|||
XEN_TARGET_ARCH="x86_64" -C stubdom pv-grub |
|||
if has_multilib_profile; then |
|||
multilib_toolchain_setup x86 |
|||
emake CC="$(tc-getCC)" AR="$(tc-getAR)" \ |
|||
XEN_TARGET_ARCH="x86_32" -C stubdom pv-grub |
|||
fi |
|||
fi |
|||
} |
|||
|
|||
src_install() { |
|||
if use x86; then |
|||
emake XEN_TARGET_ARCH="x86_32" DESTDIR="${D}" -C stubdom install-grub |
|||
fi |
|||
if use amd64; then |
|||
emake XEN_TARGET_ARCH="x86_64" DESTDIR="${D}" -C stubdom install-grub |
|||
if has_multilib_profile; then |
|||
emake XEN_TARGET_ARCH="x86_32" DESTDIR="${D}" -C stubdom install-grub |
|||
fi |
|||
fi |
|||
} |
|||
|
|||
pkg_postinst() { |
|||
elog "Official Xen Guide and the offical wiki page:" |
|||
elog "https://wiki.gentoo.org/wiki/Xen" |
|||
elog "https://wiki.xen.org/wiki/Main_Page" |
|||
} |
@ -0,0 +1,500 @@ |
|||
# Copyright 1999-2020 Gentoo Authors |
|||
# Distributed under the terms of the GNU General Public License v2 |
|||
|
|||
EAPI=7 |
|||
|
|||
PYTHON_COMPAT=( python2_7 ) |
|||
PYTHON_REQ_USE='ncurses,xml,threads' |
|||
|
|||
inherit bash-completion-r1 flag-o-matic multilib python-single-r1 toolchain-funcs |
|||
|
|||
MY_PV=${PV/_/-} |
|||
|
|||
if [[ $PV == *9999 ]]; then |
|||
inherit git-r3 |
|||
REPO="xen.git" |
|||
EGIT_REPO_URI="git://xenbits.xen.org/${REPO}" |
|||
S="${WORKDIR}/${REPO}" |
|||
else |
|||
KEYWORDS="~amd64 ~arm ~arm64 ~x86" |
|||
UPSTREAM_VER= |
|||
SECURITY_VER= |
|||
# xen-tools's gentoo patches tarball |
|||
GENTOO_VER=21 |
|||
# xen-tools's gentoo patches version which apply to this specific ebuild |
|||
GENTOO_GPV=0 |
|||
# xen-tools ovmf's patches |
|||
OVMF_VER= |
|||
|
|||
SEABIOS_VER=1.12.0 |
|||
EDK2_COMMIT=ef529e6ab7c31290a33045bb1f1837447cc0eb56 |
|||
IPXE_COMMIT=d2063b7693e0e35db97b2264aa987eb6341ae779 |
|||
|
|||
[[ -n ${UPSTREAM_VER} ]] && \ |
|||
UPSTREAM_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${P/-tools/}-upstream-patches-${UPSTREAM_VER}.tar.xz |
|||
https://github.com/hydrapolic/gentoo-dist/raw/master/xen/${P/-tools/}-upstream-patches-${UPSTREAM_VER}.tar.xz" |
|||
[[ -n ${SECURITY_VER} ]] && \ |
|||
SECURITY_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${PN/-tools}-security-patches-${SECURITY_VER}.tar.xz" |
|||
[[ -n ${GENTOO_VER} ]] && \ |
|||
GENTOO_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${PN/-tools}-gentoo-patches-${GENTOO_VER}.tar.xz |
|||
https://github.com/hydrapolic/gentoo-dist/raw/master/xen/${PN/-tools/}-gentoo-patches-${GENTOO_VER}.tar.xz" |
|||
[[ -n ${OVMF_VER} ]] && \ |
|||
OVMF_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${PN/-tools}-ovmf-patches-${OVMF_VER}.tar.xz" |
|||
|
|||
SRC_URI="https://downloads.xenproject.org/release/xen/${MY_PV}/xen-${MY_PV}.tar.gz |
|||
https://www.seabios.org/downloads/seabios-${SEABIOS_VER}.tar.gz |
|||
ipxe? ( http://xenbits.xen.org/xen-extfiles/ipxe-git-${IPXE_COMMIT}.tar.gz ) |
|||
ovmf? ( https://github.com/tianocore/edk2/archive/${EDK2_COMMIT}.tar.gz -> edk2-${EDK2_COMMIT}.tar.gz |
|||
${OVMF_PATCHSET_URI} ) |
|||
${UPSTREAM_PATCHSET_URI} |
|||
${SECURITY_PATCHSET_URI} |
|||
${GENTOO_PATCHSET_URI}" |
|||
|
|||
S="${WORKDIR}/xen-${MY_PV}" |
|||
fi |
|||
|
|||
DESCRIPTION="Xen tools including QEMU and xl" |
|||
HOMEPAGE="https://www.xenproject.org" |
|||
DOCS=( README ) |
|||
|
|||
LICENSE="GPL-2" |
|||
SLOT="0/$(ver_cut 1-2)" |
|||
# Inclusion of IUSE ocaml on stabalizing requires maintainer of ocaml to (get off his hands and) make |
|||
# >=dev-lang/ocaml-4 stable |
|||
# Masked in profiles/eapi-5-files instead |
|||
IUSE="api debug doc flask +hvm +ipxe ocaml ovmf +pam pygrub python +qemu +qemu-traditional +rombios screen sdl static-libs system-ipxe system-qemu system-seabios" |
|||
|
|||
REQUIRED_USE=" |
|||
${PYTHON_REQUIRED_USE} |
|||
ipxe? ( rombios ) |
|||
ovmf? ( hvm ) |
|||
pygrub? ( python ) |
|||
rombios? ( hvm ) |
|||
system-ipxe? ( rombios ) |
|||
?? ( ipxe system-ipxe ) |
|||
?? ( qemu system-qemu )" |
|||
|
|||
COMMON_DEPEND=" |
|||
sys-apps/pciutils |
|||
dev-libs/lzo:2 |
|||
dev-libs/glib:2 |
|||
dev-libs/yajl |
|||
dev-libs/libaio |
|||
dev-libs/libgcrypt:0 |
|||
sys-libs/zlib |
|||
${PYTHON_DEPS} |
|||
" |
|||
|
|||
DEPEND="${COMMON_DEPEND} |
|||
>=sys-kernel/linux-headers-4.11 |
|||
$(python_gen_cond_dep ' |
|||
dev-python/lxml[${PYTHON_MULTI_USEDEP}] |
|||
pam? ( dev-python/pypam[${PYTHON_MULTI_USEDEP}] ) |
|||
') |
|||
x86? ( sys-devel/dev86 |
|||
system-ipxe? ( sys-firmware/ipxe[qemu] ) |
|||
sys-power/iasl ) |
|||
api? ( dev-libs/libxml2 |
|||
net-misc/curl ) |
|||
ovmf? ( |
|||
!arm? ( !arm64? ( dev-lang/nasm ) ) |
|||
$(python_gen_impl_dep sqlite) |
|||
) |
|||
!amd64? ( >=sys-apps/dtc-1.4.0 ) |
|||
amd64? ( sys-power/iasl |
|||
system-seabios? ( sys-firmware/seabios ) |
|||
system-ipxe? ( sys-firmware/ipxe[qemu] ) |
|||
rombios? ( sys-devel/bin86 sys-devel/dev86 ) ) |
|||
dev-lang/perl |
|||
app-misc/pax-utils |
|||
doc? ( |
|||
app-text/ghostscript-gpl |
|||
app-text/pandoc |
|||
$(python_gen_cond_dep ' |
|||
dev-python/markdown[${PYTHON_MULTI_USEDEP}] |
|||
') |
|||
dev-texlive/texlive-latexextra |
|||
media-gfx/transfig |
|||
) |
|||
hvm? ( x11-base/xorg-proto ) |
|||
qemu? ( |
|||
app-arch/snappy:= |
|||
x11-libs/pixman |
|||
sdl? ( |
|||
media-libs/libsdl[X] |
|||
media-libs/libsdl2[X] |
|||
) |
|||
) |
|||
system-qemu? ( app-emulation/qemu[xen] ) |
|||
ocaml? ( dev-ml/findlib |
|||
>=dev-lang/ocaml-4 ) |
|||
python? ( dev-lang/swig )" |
|||
|
|||
RDEPEND="${COMMON_DEPEND} |
|||
sys-apps/iproute2[-minimal] |
|||
net-misc/bridge-utils |
|||
screen? ( |
|||
app-misc/screen |
|||
app-admin/logrotate |
|||
)" |
|||
|
|||
# hvmloader is used to bootstrap a fully virtualized kernel |
|||
# Approved by QA team in bug #144032 |
|||
QA_WX_LOAD=" |
|||
usr/libexec/xen/boot/hvmloader |
|||
usr/share/qemu-xen/qemu/hppa-firmware.img |
|||
usr/share/qemu-xen/qemu/s390-ccw.img |
|||
usr/share/qemu-xen/qemu/u-boot.e500 |
|||
" |
|||
|
|||
QA_PREBUILT=" |
|||
usr/libexec/xen/bin/ivshmem-client |
|||
usr/libexec/xen/bin/ivshmem-server |
|||
usr/libexec/xen/bin/qemu-img |
|||
usr/libexec/xen/bin/qemu-io |
|||
usr/libexec/xen/bin/qemu-keymap |
|||
usr/libexec/xen/bin/qemu-nbd |
|||
usr/libexec/xen/bin/qemu-pr-helper |
|||
usr/libexec/xen/bin/qemu-system-i386 |
|||
usr/libexec/xen/bin/virtfs-proxy-helper |
|||
usr/libexec/xen/libexec/xen-bridge-helper |
|||
usr/share/qemu-xen/qemu/s390-ccw.img |
|||
usr/share/qemu-xen/qemu/s390-netboot.img |
|||
usr/share/qemu-xen/qemu/u-boot.e500 |
|||
" |
|||
|
|||
RESTRICT="test" |
|||
|
|||
pkg_setup() { |
|||
python_setup |
|||
export "CONFIG_LOMOUNT=y" |
|||
|
|||
#bug 522642, disable compile tools/tests |
|||
export "CONFIG_TESTS=n" |
|||
|
|||
if [[ -z ${XEN_TARGET_ARCH} ]] ; then |
|||
if use x86 && use amd64; then |
|||
die "Confusion! Both x86 and amd64 are set in your use flags!" |
|||
elif use x86; then |
|||
export XEN_TARGET_ARCH="x86_32" |
|||
elif use amd64 ; then |
|||
export XEN_TARGET_ARCH="x86_64" |
|||
elif use arm; then |
|||
export XEN_TARGET_ARCH="arm32" |
|||
elif use arm64; then |
|||
export XEN_TARGET_ARCH="arm64" |
|||
else |
|||
die "Unsupported architecture!" |
|||
fi |
|||
fi |
|||
} |
|||
|
|||
src_prepare() { |
|||
local i |
|||
|
|||
# Upstream's patchset |
|||
if [[ -n ${UPSTREAM_VER} ]]; then |
|||
einfo "Try to apply Xen Upstream patch set" |
|||
eapply "${WORKDIR}"/patches-upstream |
|||
fi |
|||
|
|||
# Security patchset |
|||
if [[ -n ${SECURITY_VER} ]]; then |
|||
einfo "Try to apply Xen Security patch set" |
|||
# apply main xen patches |
|||
# Two parallel systems, both work side by side |
|||
# Over time they may concdense into one. This will suffice for now |
|||
EPATCH_SUFFIX="patch" |
|||
EPATCH_FORCE="yes" |
|||
|
|||
source "${WORKDIR}"/patches-security/${PV}.conf || die |
|||
|
|||
for i in ${XEN_SECURITY_MAIN}; do |
|||
eapply "${WORKDIR}"/patches-security/xen/$i |
|||
done |
|||
|
|||
# apply qemu-xen/upstream patches |
|||
pushd "${S}"/tools/qemu-xen/ > /dev/null |
|||
for i in ${XEN_SECURITY_QEMUU}; do |
|||
eapply "${WORKDIR}"/patches-security/qemuu/$i |
|||
done |
|||
popd > /dev/null |
|||
|
|||
# apply qemu-traditional patches |
|||
pushd "${S}"/tools/qemu-xen-traditional/ > /dev/null |
|||
for i in ${XEN_SECURITY_QEMUT}; do |
|||
eapply "${WORKDIR}"/patches-security/qemut/$i |
|||
done |
|||
popd > /dev/null |
|||
fi |
|||
|
|||
# move before Gentoo patch, one patch should apply to seabios, to fix gcc-4.5.x build err |
|||
mv ../seabios-${SEABIOS_VER} tools/firmware/seabios-dir-remote || die |
|||
pushd tools/firmware/ > /dev/null |
|||
ln -s seabios-dir-remote seabios-dir || die |
|||
popd > /dev/null |
|||
|
|||
# Gentoo's patchset |
|||
if [[ -n ${GENTOO_VER} && -n ${GENTOO_GPV} ]]; then |
|||
einfo "Try to apply Gentoo specific patch set" |
|||
source "${FILESDIR}"/gentoo-patches.conf || die |
|||
_gpv=_gpv_${PN/-/_}_${PV//./}_${GENTOO_GPV} |
|||
for i in ${!_gpv}; do |
|||
eapply "${WORKDIR}"/patches-gentoo/$i |
|||
done |
|||
fi |
|||
|
|||
# Ovmf's patchset |
|||
if use ovmf; then |
|||
if [[ -n ${OVMF_VER} ]];then |
|||
einfo "Try to apply Ovmf patch set" |
|||
pushd "${WORKDIR}"/edk2-*/ > /dev/null |
|||
eapply "${WORKDIR}"/patches-ovmf |
|||
popd > /dev/null |
|||
fi |
|||
mv ../edk2-${EDK2_COMMIT} tools/firmware/ovmf-dir-remote || die |
|||
cp tools/firmware/ovmf-makefile tools/firmware/ovmf-dir-remote/Makefile || die |
|||
fi |
|||
|
|||
# ipxe |
|||
if use ipxe; then |
|||
cp "${DISTDIR}/ipxe-git-${IPXE_COMMIT}.tar.gz" tools/firmware/etherboot/_ipxe.tar.gz || die |
|||
|
|||
# gcc 9 |
|||
cp "${WORKDIR}/patches-gentoo/${PN}-4.12.0-ipxe-gcc9.patch" \ |
|||
tools/firmware/etherboot/patches/ipxe-gcc9.patch || die |
|||
echo "ipxe-gcc9.patch" >> tools/firmware/etherboot/patches/series || die |
|||
|
|||
# gcc 10 |
|||
cp "${WORKDIR}/patches-gentoo/xen-tools-4.13.0-ipxe-gcc10.patch" \ |
|||
tools/firmware/etherboot/patches/ipxe-gcc10.patch || die |
|||
echo ipxe-gcc10.patch >> tools/firmware/etherboot/patches/series || die |
|||
fi |
|||
|
|||
mv tools/qemu-xen/qemu-bridge-helper.c tools/qemu-xen/xen-bridge-helper.c || die |
|||
|
|||
# Fix texi2html build error with new texi2html, qemu.doc.html |
|||
sed -i -e "/texi2html -monolithic/s/-number//" tools/qemu-xen-traditional/Makefile || die |
|||
|
|||
use api || sed -e "/SUBDIRS-\$(LIBXENAPI_BINDINGS) += libxen/d" -i tools/Makefile || die |
|||
sed -e 's:$(MAKE) PYTHON=$(PYTHON) subdirs-$@:LC_ALL=C "$(MAKE)" PYTHON=$(PYTHON) subdirs-$@:' \ |
|||
-i tools/firmware/Makefile || die |
|||
|
|||
# Drop .config, fixes to gcc-4.6 |
|||
sed -e '/-include $(XEN_ROOT)\/.config/d' -i Config.mk || die "Couldn't drop" |
|||
|
|||
# drop flags |
|||
unset CFLAGS |
|||
unset LDFLAGS |
|||
unset ASFLAGS |
|||
unset CPPFLAGS |
|||
|
|||
if ! use pygrub; then |
|||
sed -e '/^SUBDIRS-y += pygrub/d' -i tools/Makefile || die |
|||
fi |
|||
|
|||
if ! use python; then |
|||
sed -e '/^SUBDIRS-y += python$/d' -i tools/Makefile || die |
|||
fi |
|||
|
|||
if ! use hvm; then |
|||
sed -e '/SUBDIRS-$(CONFIG_X86) += firmware/d' -i tools/Makefile || die |
|||
# Bug 351648 |
|||
elif ! use x86 && ! has x86 $(get_all_abis); then |
|||
mkdir -p "${WORKDIR}"/extra-headers/gnu || die |
|||
touch "${WORKDIR}"/extra-headers/gnu/stubs-32.h || die |
|||
export CPATH="${WORKDIR}"/extra-headers |
|||
fi |
|||
|
|||
if use qemu; then |
|||
if use sdl; then |
|||
sed -i -e "s:\$\$source/configure:\0 --enable-sdl:" \ |
|||
tools/Makefile || die |
|||
else |
|||
sed -i -e "s:\${QEMU_ROOT\:\-\.}/configure:\0 --disable-sdl:" \ |
|||
tools/qemu-xen-traditional/xen-setup || die |
|||
sed -i -e "s:\$\$source/configure:\0 --disable-sdl:" \ |
|||
tools/Makefile || die |
|||
fi |
|||
else |
|||
# Don't bother with qemu, only needed for fully virtualised guests |
|||
sed -i '/SUBDIRS-$(CONFIG_QEMU_XEN)/s/^/#/g' tools/Makefile || die |
|||
fi |
|||
|
|||
# Reset bash completion dir; Bug 472438 |
|||
sed -e "s:^BASH_COMPLETION_DIR ?= \$(CONFIG_DIR)/bash_completion.d:BASH_COMPLETION_DIR ?= $(get_bashcompdir):" \ |
|||
-i Config.mk || die |
|||
sed -i -e "/bash-completion/s/xl\.sh/xl/g" tools/libxl/Makefile || die |
|||
|
|||
# xencommons, Bug #492332, sed lighter weight than patching |
|||
sed -e 's:\$QEMU_XEN -xen-domid:test -e "\$QEMU_XEN" \&\& &:' \ |
|||
-i tools/hotplug/Linux/init.d/xencommons.in || die |