parent
3c56c61cae
commit
d26225f9bb
Binary file not shown.
Binary file not shown.
@ -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
|
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
|
|
||||||
}
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -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
|
|
||||||
}
|
|
Binary file not shown.
Binary file not shown.
@ -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.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
|
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.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.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,2 +1,3 @@
|
|||||||
DIST libpod-1.8.2.tar.gz 30065262 BLAKE2B 1bf4ca9b9547a710f1882ac40aee0cf295fecdb9d43dc6fa30633331ca9e19d15e6d671075627939167cdf100d30e8299e50bd51425226ff1994778782cf261b SHA512 c6e1426f66299a21be66be033460c44830b422f8a3319f37bbe53030f6a2bf84b140a29f30b83f6b61199f1df373f81a6d73787d16423ad942fc8a9154c68366
|
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.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
|
||||||
|
|
||||||
|
# fix bashishm
|
||||||
|
sed -e '/Usage/s/\$//g' \
|
||||||
|
-i tools/hotplug/Linux/init.d/xendriverdomain.in || die
|
||||||
|
|
||||||
|
# respect multilib, usr/lib/libcacard.so.0.0.0
|
||||||
|
sed -e "/^libdir=/s/\/lib/\/$(get_libdir)/" \
|
||||||
|
-i tools/qemu-xen/configure || die
|
||||||
|
|
||||||
|
#bug 518136, don't build 32bit exactuable for nomultilib profile
|
||||||
|
if [[ "${ARCH}" == 'amd64' ]] && ! has_multilib_profile; then
|
||||||
|
sed -i -e "/x86_emulator/d" tools/tests/Makefile || die
|
||||||
|
fi
|
||||||
|
|
||||||
|
# uncomment lines in xl.conf
|
||||||
|
sed -e 's:^#autoballoon=:autoballoon=:' \
|
||||||
|
-e 's:^#lockfile=:lockfile=:' \
|
||||||
|
-e 's:^#vif.default.script=:vif.default.script=:' \
|
||||||
|
-i tools/examples/xl.conf || die
|
||||||
|
|
||||||
|
# disable capstone (Bug #673474)
|
||||||
|
sed -e "s:\$\$source/configure:\0 --disable-capstone:" \
|
||||||
|
-i tools/Makefile || die
|
||||||
|
|
||||||
|
# disable glusterfs
|
||||||
|
sed -e "s:\$\$source/configure:\0 --disable-glusterfs:" \
|
||||||
|
-i tools/Makefile || die
|
||||||
|
|
||||||
|
default
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
local myconf="--prefix=${PREFIX}/usr \
|
||||||
|
--libdir=${PREFIX}/usr/$(get_libdir) \
|
||||||
|
--libexecdir=${PREFIX}/usr/libexec \
|
||||||
|
--localstatedir=${EPREFIX}/var \
|
||||||
|
--disable-werror \
|
||||||
|
--disable-xen \
|
||||||
|
--enable-tools \
|
||||||
|
--enable-docs \
|
||||||
|
$(use_enable api xenapi) \
|
||||||
|
$(use_enable ipxe) \
|
||||||
|
$(usex system-ipxe '--with-system-ipxe=/usr/share/ipxe' '') \
|
||||||
|
$(use_enable ocaml ocamltools) \
|
||||||
|
$(use_enable ovmf) \
|
||||||
|
$(use_enable pam) \
|
||||||
|
$(use_enable rombios) \
|
||||||
|
--with-xenstored=$(usex ocaml 'oxenstored' 'xenstored') \
|
||||||
|
"
|
||||||
|
|
||||||
|
use system-seabios && myconf+=" --with-system-seabios=/usr/share/seabios/bios.bin"
|
||||||
|
use system-qemu && myconf+=" --with-system-qemu=/usr/bin/qemu-system-x86_64"
|
||||||
|
use amd64 && myconf+=" $(use_enable qemu-traditional)"
|
||||||
|
tc-ld-disable-gold # Bug 669570
|
||||||
|
econf ${myconf}
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
local myopt
|
||||||
|
use debug && myopt="${myopt} debug=y"
|
||||||
|
use python && myopt="${myopt} XENSTAT_PYTHON_BINDINGS=y"
|
||||||
|
|
||||||
|
if test-flag-CC -fno-strict-overflow; then
|
||||||
|
append-flags -fno-strict-overflow
|
||||||
|
fi
|
||||||
|
|
||||||
|
emake CC="$(tc-getCC)" LD="$(tc-getLD)" AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)" build-tools ${myopt}
|
||||||
|
|
||||||
|
if use doc; then
|
||||||
|
emake -C docs build
|
||||||
|
else
|
||||||
|
emake -C docs man-pages
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
# Override auto-detection in the build system, bug #382573
|
||||||
|
export INITD_DIR=/tmp/init.d
|
||||||
|
export CONFIG_LEAF_DIR=../tmp/default
|
||||||
|
|
||||||
|
# Let the build system compile installed Python modules.
|
||||||
|
local PYTHONDONTWRITEBYTECODE
|
||||||
|
export PYTHONDONTWRITEBYTECODE
|
||||||
|
|
||||||
|
emake DESTDIR="${ED}" DOCDIR="/usr/share/doc/${PF}" \
|
||||||
|
XEN_PYTHON_NATIVE_INSTALL=y install-tools
|
||||||
|
|
||||||
|
# Created at runtime
|
||||||
|
rm -rv "${ED}/var/run" || die
|
||||||
|
|
||||||
|
# Fix the remaining Python shebangs.
|
||||||
|
python_fix_shebang "${D}"
|
||||||
|
|
||||||
|
# Remove RedHat-specific stuff
|
||||||
|
rm -rf "${D}"/tmp || die
|
||||||
|
|
||||||
|
if use doc; then
|
||||||
|
emake DESTDIR="${D}" DOCDIR="/usr/share/doc/${PF}" install-docs
|
||||||
|
dodoc -r docs/{pdf,txt}
|
||||||
|
else
|
||||||
|
emake -C docs DESTDIR="${D}" DOCDIR="/usr/share/doc/${PF}" install-man-pages # Bug 668032
|
||||||
|
fi
|
||||||
|
dodoc ${DOCS[@]}
|
||||||
|
|
||||||
|
newconfd "${FILESDIR}"/xendomains.confd xendomains
|
||||||
|
newconfd "${FILESDIR}"/xenstored.confd xenstored
|
||||||
|
newconfd "${FILESDIR}"/xenconsoled.confd xenconsoled
|
||||||
|
newinitd "${FILESDIR}"/xendomains.initd-r2 xendomains
|
||||||
|
newinitd "${FILESDIR}"/xenstored.initd-r1 xenstored
|
||||||
|
newinitd "${FILESDIR}"/xenconsoled.initd xenconsoled
|
||||||
|
newinitd "${FILESDIR}"/xencommons.initd xencommons
|
||||||
|
newconfd "${FILESDIR}"/xencommons.confd xencommons
|
||||||
|
newinitd "${FILESDIR}"/xenqemudev.initd xenqemudev
|
||||||
|
newconfd "${FILESDIR}"/xenqemudev.confd xenqemudev
|
||||||
|
newinitd "${FILESDIR}"/xen-watchdog.initd xen-watchdog
|
||||||
|
|
||||||
|
if use screen; then
|
||||||
|
cat "${FILESDIR}"/xendomains-screen.confd >> "${D}"/etc/conf.d/xendomains || die
|
||||||
|
cp "${FILESDIR}"/xen-consoles.logrotate "${D}"/etc/xen/ || die
|
||||||
|
keepdir /var/log/xen-consoles
|
||||||
|
fi
|
||||||
|
|
||||||
|
# For -static-libs wrt Bug 384355
|
||||||
|
if ! use static-libs; then
|
||||||
|
rm -f "${D}"/usr/$(get_libdir)/*.a "${D}"/usr/$(get_libdir)/ocaml/*/*.a
|
||||||
|
fi
|
||||||
|
|
||||||
|
# for xendomains
|
||||||
|
keepdir /etc/xen/auto
|
||||||
|
|
||||||
|
# Remove files failing QA AFTER emake installs them, avoiding seeking absent files
|
||||||
|
find "${D}" \( -name openbios-sparc32 -o -name openbios-sparc64 \
|
||||||
|
-o -name openbios-ppc -o -name palcode-clipper \) -delete || die
|
||||||
|
|
||||||
|
keepdir /var/lib/xen/dump
|
||||||
|
keepdir /var/lib/xen/xenpaging
|
||||||
|
keepdir /var/lib/xenstored
|
||||||
|
keepdir /var/log/xen
|
||||||
|
|
||||||
|
if use python; then
|
||||||
|
python_domodule "${S}/tools/xenstat/libxenstat/bindings/swig/python/xenstat.py"
|
||||||
|
python_domodule "${S}/tools/xenstat/libxenstat/bindings/swig/python/_xenstat.so"
|
||||||
|
fi
|
||||||
|
|
||||||
|
python_optimize
|
||||||
|
}
|
||||||
|
|
||||||
|
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"
|
||||||
|
elog ""
|
||||||
|
elog "Recommended to utilise the xencommons script to config system at boot"
|
||||||
|
elog "Add by use of rc-update on completion of the install"
|
||||||
|
|
||||||
|
if ! use hvm; then
|
||||||
|
echo
|
||||||
|
elog "HVM (VT-x and AMD-V) support has been disabled. If you need hvm"
|
||||||
|
elog "support enable the hvm use flag."
|
||||||
|
elog "An x86 or amd64 system is required to build HVM support."
|
||||||
|
fi
|
||||||
|
|
||||||
|
if use qemu; then
|
||||||
|
elog "The qemu-bridge-helper is renamed to the xen-bridge-helper in the in source"
|
||||||
|
elog "build of qemu. This allows for app-emulation/qemu to be emerged concurrently"
|
||||||
|
elog "with the qemu capable xen. It is up to the user to distinguish between and utilise"
|
||||||
|
elog "the qemu-bridge-helper and the xen-bridge-helper. File bugs of any issues that arise"
|
||||||
|
fi
|
||||||
|
}
|
@ -1,4 +1,4 @@
|
|||||||
DIST xen-4.12.2-upstream-patches-2.tar.xz 34484 BLAKE2B 79799a2fa9e638adf80ff1b5a1609b28747dad254da2e8ebd94afd75d5b7c061d25d507e7d388af17905347e180537dec8d0e27bd18cf6c53f51f7272d4adafe SHA512 abf9d82fe20fc9411384283876cf020a31e6c22ab2e54a7fae0d95ade02f434e4afb08d47c3ed5e4bc7ea5f518df7dc57baef2b8e76e3439bd937e2ee3c2b658
|
DIST xen-4.12.2-upstream-patches-2.tar.xz 34484 BLAKE2B 79799a2fa9e638adf80ff1b5a1609b28747dad254da2e8ebd94afd75d5b7c061d25d507e7d388af17905347e180537dec8d0e27bd18cf6c53f51f7272d4adafe SHA512 abf9d82fe20fc9411384283876cf020a31e6c22ab2e54a7fae0d95ade02f434e4afb08d47c3ed5e4bc7ea5f518df7dc57baef2b8e76e3439bd937e2ee3c2b658
|
||||||
DIST xen-4.12.2.tar.gz 26985135 BLAKE2B 530821011a6dd0ac0a99fb135ff5311eb8e975c3791818093b5e250eed7854d153de6d4340197f9b949c0ad2c3d7b2b7180deb42bc71748ff70ff6fad195269d SHA512 7d9e7921271830c9eadf1bb8eca1aec20d343ad7475b0dc3165ef6d681759e7cb70739f8d9f85622a23aef960988820e822267fb198b12ee3dd657ad6164069f
|
DIST xen-4.12.2.tar.gz 26985135 BLAKE2B 530821011a6dd0ac0a99fb135ff5311eb8e975c3791818093b5e250eed7854d153de6d4340197f9b949c0ad2c3d7b2b7180deb42bc71748ff70ff6fad195269d SHA512 7d9e7921271830c9eadf1bb8eca1aec20d343ad7475b0dc3165ef6d681759e7cb70739f8d9f85622a23aef960988820e822267fb198b12ee3dd657ad6164069f
|
||||||
DIST xen-4.13.0-upstream-patches-2.tar.xz 55980 BLAKE2B b85512456cac253d7f4dd0dca120d694cde0b0f4d0270023bca337f9bc693eb768c1a43d74d412c38dc665ee50a70d2985e5bfc6edde3eacc4376d2f6d7877c8 SHA512 fb852be98209e135a11241dd15e9bd174a5a3724bfaea1fc3b12ba964b8fc275946b1c443c70a78212dff0bc9b25015a00d9f902183c135053e27957b55b6bb6
|
DIST xen-4.12.3.tar.gz 26985230 BLAKE2B 403de519a552f1cd49e5a85b63f48df1b7a47ff8381385860b67df32af0b33be1c13c92ca2234e4479b7f415e711e0f46c396c3f62dfb5b2465d2991723cf6ef SHA512 7bbf4e752477f18143ac9a62fb633b1fbe115a1a9b03d0132f33dfca025bc9b76d9c2e9b66a3e407d14aff161b940b1a82e3e3ca43213798e9dd38b6970194e0
|
||||||
DIST xen-4.13.0.tar.gz 39005191 BLAKE2B cd85bfe549e20447afb8ec6b2ab33ea1893f45392c08737730d7898706748ebb96b2e842b2ff3e4af8c5d8a705e6d25a2bfb8acf0d7cc771805d0cc97757a949 SHA512 5b2ded9a2fe3f7ddf40eed1fa9858baead06233a01eb6099cc45b3c78b6c3823acfe7b731910733e87125dfa49d08c53f74c215fb1b320a92b44b87a0a105225
|
DIST xen-4.13.1.tar.gz 39024612 BLAKE2B efff138699fac2c14fad2e0dfd4535ebd744577df3dddccc2a589b81a76f24fc81c75e295f4cd33ca2e820929417b22d714504b576cb0737a563037bd56b6a95 SHA512 b56d20704155d98d803496cba83eb928e0f986a750831cd5600fc88d0ae772fe1456571654375054043d2da8daca255cc98385ebf08b1b1a75ecf7f4b7a0ee90
|
||||||
|
@ -0,0 +1,165 @@
|
|||||||
|
# Copyright 1999-2020 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
|
||||||
|
PYTHON_COMPAT=( python2_7 )
|
||||||
|
|
||||||
|
inherit flag-o-matic mount-boot multilib python-any-r1 toolchain-funcs
|
||||||
|
|
||||||
|
MY_PV=${PV/_/-}
|
||||||
|
MY_P=${PN}-${MY_PV}
|
||||||
|
|
||||||
|
if [[ $PV == *9999 ]]; then
|
||||||
|
inherit git-r3
|
||||||
|
EGIT_REPO_URI="git://xenbits.xen.org/xen.git"
|
||||||
|
SRC_URI=""
|
||||||
|
else
|
||||||
|
KEYWORDS="~amd64 ~arm -x86"
|
||||||
|
UPSTREAM_VER=
|
||||||
|
SECURITY_VER=
|
||||||
|
GENTOO_VER=
|
||||||
|
|
||||||
|
[[ -n ${UPSTREAM_VER} ]] && \
|
||||||
|
UPSTREAM_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${P}-upstream-patches-${UPSTREAM_VER}.tar.xz
|
||||||
|
https://github.com/hydrapolic/gentoo-dist/raw/master/xen/${P}-upstream-patches-${UPSTREAM_VER}.tar.xz"
|
||||||
|
[[ -n ${SECURITY_VER} ]] && \
|
||||||
|
SECURITY_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${PN}-security-patches-${SECURITY_VER}.tar.xz"
|
||||||
|
[[ -n ${GENTOO_VER} ]] && \
|
||||||
|
GENTOO_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${PN}-gentoo-patches-${GENTOO_VER}.tar.xz"
|
||||||
|
SRC_URI="https://downloads.xenproject.org/release/xen/${MY_PV}/${MY_P}.tar.gz
|
||||||
|
${UPSTREAM_PATCHSET_URI}
|
||||||
|
${SECURITY_PATCHSET_URI}
|
||||||
|
${GENTOO_PATCHSET_URI}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
DESCRIPTION="The Xen virtual machine monitor"
|
||||||
|
HOMEPAGE="https://www.xenproject.org"
|
||||||
|
LICENSE="GPL-2"
|
||||||
|
SLOT="0"
|
||||||
|
IUSE="debug efi flask"
|
||||||
|
|
||||||
|
DEPEND="${PYTHON_DEPS}
|
||||||
|
efi? ( >=sys-devel/binutils-2.22[multitarget] )
|
||||||
|
!efi? ( >=sys-devel/binutils-2.22 )"
|
||||||
|
RDEPEND=""
|
||||||
|
PDEPEND="~app-emulation/xen-tools-${PV}"
|
||||||
|
|
||||||
|
# no tests are available for the hypervisor
|
||||||
|
# prevent the silliness of /usr/lib/debug/usr/lib/debug files
|
||||||
|
# prevent stripping of the debug info from the /usr/lib/debug/xen-syms
|
||||||
|
RESTRICT="test splitdebug strip"
|
||||||
|
|
||||||
|
# Approved by QA team in bug #144032
|
||||||
|
QA_WX_LOAD="boot/xen-syms-${PV}"
|
||||||
|
|
||||||
|
REQUIRED_USE="arm? ( debug )"
|
||||||
|
|
||||||
|
S="${WORKDIR}/${MY_P}"
|
||||||
|
|
||||||
|
pkg_setup() {
|
||||||
|
python-any-r1_pkg_setup
|
||||||
|
if [[ -z ${XEN_TARGET_ARCH} ]]; then
|
||||||
|
if 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
|
||||||
|
|
||||||
|
if use flask ; then
|
||||||
|
export "XSM_ENABLE=y"
|
||||||
|
export "FLASK_ENABLE=y"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
# Upstream's patchset
|
||||||
|
[[ -n ${UPSTREAM_VER} ]] && eapply "${WORKDIR}"/patches-upstream
|
||||||
|
|
||||||
|
# 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
|
||||||
|
source "${WORKDIR}"/patches-security/${PV}.conf
|
||||||
|
|
||||||
|
local i
|
||||||
|
for i in ${XEN_SECURITY_MAIN}; do
|
||||||
|
eapply "${WORKDIR}"/patches-security/xen/$i
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Gentoo's patchset
|
||||||
|
[[ -n ${GENTOO_VER} ]] && eapply "${WORKDIR}"/patches-gentoo
|
||||||
|
|
||||||
|
eapply "${FILESDIR}"/${PN}-4.11-efi.patch
|
||||||
|
|
||||||
|
# Drop .config
|
||||||
|
sed -e '/-include $(XEN_ROOT)\/.config/d' -i Config.mk || die "Couldn't drop"
|
||||||
|
|
||||||
|
if use efi; then
|
||||||
|
export EFI_VENDOR="gentoo"
|
||||||
|
export EFI_MOUNTPOINT="/boot"
|
||||||
|
fi
|
||||||
|
|
||||||
|
default
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
use arm && myopt="${myopt} CONFIG_EARLY_PRINTK=sun7i"
|
||||||
|
|
||||||
|
use debug && myopt="${myopt} debug=y"
|
||||||
|
|
||||||
|
# remove flags
|
||||||
|
unset CFLAGS
|
||||||
|
unset LDFLAGS
|
||||||
|
unset ASFLAGS
|
||||||
|
|
||||||
|
tc-ld-disable-gold # Bug 700374
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
# Send raw LDFLAGS so that --as-needed works
|
||||||
|
emake V=1 CC="$(tc-getCC)" LDFLAGS="$(raw-ldflags)" LD="$(tc-getLD)" -C xen ${myopt}
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
local myopt
|
||||||
|
use debug && myopt="${myopt} debug=y"
|
||||||
|
|
||||||
|
# The 'make install' doesn't 'mkdir -p' the subdirs
|
||||||
|
if use efi; then
|
||||||
|
mkdir -p "${D}"${EFI_MOUNTPOINT}/efi/${EFI_VENDOR} || die
|
||||||
|
fi
|
||||||
|
|
||||||
|
emake LDFLAGS="$(raw-ldflags)" DESTDIR="${D}" -C xen ${myopt} install
|
||||||
|
|
||||||
|
# make install likes to throw in some extra EFI bits if it built
|
||||||
|
use efi || rm -rf "${D}/usr/$(get_libdir)/efi"
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
elog "Official Xen Guide:"
|
||||||
|
elog " https://wiki.gentoo.org/wiki/Xen"
|
||||||
|
|
||||||
|
use efi && einfo "The efi executable is installed in /boot/efi/gentoo"
|
||||||
|
|
||||||
|
elog "You can optionally block the installation of /boot/xen-syms by an entry"
|
||||||
|
elog "in folder /etc/portage/env using the portage's feature INSTALL_MASK"
|
||||||
|
elog "e.g. echo ${msg} > /etc/portage/env/xen.conf"
|
||||||
|
|
||||||
|
ewarn
|
||||||
|
ewarn "Xen 4.12+ changed the default scheduler to credit2 which can cause"
|
||||||
|
ewarn "domU lockups on multi-cpu systems. The legacy credit scheduler seems"
|
||||||
|
ewarn "to work fine."
|
||||||
|
ewarn
|
||||||
|
ewarn "Add sched=credit to xen command line options to use the legacy scheduler."
|
||||||
|
ewarn
|
||||||
|
ewarn "https://wiki.gentoo.org/wiki/Xen#Xen_domU_hanging_with_Xen_4.12.2B"
|
||||||
|
}
|
Binary file not shown.
@ -0,0 +1,47 @@
|
|||||||
|
# Copyright 1999-2020 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
|
||||||
|
inherit toolchain-funcs
|
||||||
|
|
||||||
|
DESCRIPTION="A general purpose fuzzer with feedback support"
|
||||||
|
HOMEPAGE="https://google.github.io/honggfuzz/"
|
||||||
|
SRC_URI="https://github.com/google/honggfuzz/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="Apache-2.0"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64"
|
||||||
|
IUSE=""
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
>=sys-libs/binutils-libs-2.29:=
|
||||||
|
sys-libs/libunwind:=
|
||||||
|
app-arch/xz-utils
|
||||||
|
"
|
||||||
|
|
||||||
|
DEPEND="${RDEPEND}"
|
||||||
|
|
||||||
|
DOCS=(
|
||||||
|
CHANGELOG
|
||||||
|
COPYING
|
||||||
|
CONTRIBUTING
|
||||||
|
README.md
|
||||||
|
)
|
||||||
|
|
||||||
|
PATCHES=(
|
||||||
|
"${FILESDIR}"/${PN}-2.0-no-werror.patch
|
||||||
|
)
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
default
|
||||||
|
tc-export AR CC
|
||||||
|
export CFLAGS
|
||||||
|
export LDFLAGS
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
dobin ${PN}
|
||||||
|
|
||||||
|
einstalldocs
|
||||||
|
}
|
Binary file not shown.
@ -0,0 +1 @@
|
|||||||
|
DIST fusioninventory-agent-2.5.2.tar.gz 2728830 BLAKE2B c6a26c4adb6b8e6bdaf829e46dffa47cc629731411f8b6e55a17eb83bd69536ca0e07899c5e3536ee3962326e643157c60ab8825971b2f44995e42f04e689321 SHA512 5bd39652fd3b857a4364fa300b07b8a2580bdafc6b84f95ab852b60b887ce8278bd99f85b74991b6da5cc21e1636f33c7125dbc27a02df915df4ea6f0ceffaed
|
@ -0,0 +1,23 @@
|
|||||||
|
--- a/Makefile.PL 2020-05-27 02:16:42.106531746 +0300
|
||||||
|
+++ b/Makefile.PL 2020-05-27 02:17:30.568531767 +0300
|
||||||
|
@@ -170,18 +170,15 @@
|
||||||
|
INSTALLSCRIPT => '$(PREFIX)/bin',
|
||||||
|
INSTALLSITESCRIPT => '$(PREFIX)/bin',
|
||||||
|
INSTALLVENDORSCRIPT => '$(PREFIX)/bin',
|
||||||
|
- INSTALLLIB => '$(DATADIR)/lib',
|
||||||
|
- INSTALLSITELIB => '$(DATADIR)/lib',
|
||||||
|
- INSTALLVENDORLIB => '$(DATADIR)/lib',
|
||||||
|
INSTALLMAN1DIR => '$(PREFIX)/share/man/man1',
|
||||||
|
INSTALLSITEMAN1DIR => '$(PREFIX)/share/man/man1',
|
||||||
|
INSTALLVENDORMAN1DIR => '$(PREFIX)/share/man/man1',
|
||||||
|
INSTALLMAN3DIR => '$(PREFIX)/share/man/man3',
|
||||||
|
INSTALLSITEMAN3DIR => '$(PREFIX)/share/man/man3',
|
||||||
|
INSTALLVENDORMAN3DIR => '$(PREFIX)/share/man/man3',
|
||||||
|
- SYSCONFDIR => '$(PREFIX)/etc/fusioninventory',
|
||||||
|
+ SYSCONFDIR => '/etc/fusioninventory',
|
||||||
|
DATADIR => '$(PREFIX)/share/fusioninventory',
|
||||||
|
- LOCALSTATEDIR => '$(PREFIX)/var/fusioninventory',
|
||||||
|
+ LOCALSTATEDIR => '/var/lib/fusioninventory',
|
||||||
|
);
|
||||||
|
|
||||||
|
# allow variables defined on command line to override defaults
|
@ -0,0 +1,2 @@
|
|||||||
|
# additional args for fusioninventory-agent
|
||||||
|
FUSIONINVENTORY_OPTIONS=""
|
@ -0,0 +1,21 @@
|
|||||||
|
#!/sbin/openrc-run
|
||||||
|
# Copyright 2020 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
pidfile=${RC_PREFIX%/}/run/${SVCNAME}.pid
|
||||||
|
|
||||||
|
name="fusioninventory-agent daemon"
|
||||||
|
description="FusionInventroy agent"
|
||||||
|
command=/usr/bin/fusioninventory-agent
|
||||||
|
command_args="--daemon --pidfile ${pidfile} ${FUSIONINVENTORY_OPTIONS}"
|
||||||
|
extra_started_commands="reload"
|
||||||
|
|
||||||
|
depend() {
|
||||||
|
need net
|
||||||
|
}
|
||||||
|
|
||||||
|
reload() {
|
||||||
|
ebegin "Reloading ${SVCNAME}"
|
||||||
|
start-stop-daemon --signal HUP --pidfile "${pidfile}"
|
||||||
|
eend $?
|
||||||
|
}
|
@ -0,0 +1,42 @@
|
|||||||
|
# Copyright 2020 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
|
||||||
|
inherit perl-module systemd
|
||||||
|
|
||||||
|
DESCRIPTION="The FusionInventory agent is a generic management agent"
|
||||||
|
HOMEPAGE="http://fusioninventory.org/"
|
||||||
|
SRC_URI="https://github.com/fusioninventory/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="GPL-2"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
IUSE=""
|
||||||
|
|
||||||
|
DEPEND="
|
||||||
|
dev-perl/libwww-perl
|
||||||
|
dev-perl/File-Which
|
||||||
|
dev-perl/Net-IP
|
||||||
|
dev-perl/Text-Template
|
||||||
|
dev-perl/UNIVERSAL-require
|
||||||
|
dev-perl/XML-TreePP
|
||||||
|
virtual/perl-IO-Compress
|
||||||
|
dev-perl/HTTP-Daemon
|
||||||
|
dev-perl/IO-Socket-SSL
|
||||||
|
dev-perl/LWP-Protocol-https
|
||||||
|
dev-perl/Proc-Daemon
|
||||||
|
"
|
||||||
|
RDEPEND="${DEPEND}"
|
||||||
|
BDEPEND="
|
||||||
|
dev-perl/Module-Install
|
||||||
|
"
|
||||||
|
PATCHES=( "${FILESDIR}/${P}-dirs.patch" )
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
default
|
||||||
|
systemd_dounit contrib/unix/fusioninventory-agent.service
|
||||||
|
doinitd "${FILESDIR}/${PN}.initd"
|
||||||
|
doconfd "${FILESDIR}/${PN}.confd"
|
||||||
|
keepdir /var/lib/fusioninventory
|
||||||
|
}
|
@ -0,0 +1,8 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||||
|
<pkgmetadata>
|
||||||
|
<maintainer type="person">
|
||||||
|
<email>alexxy@gentoo.org</email>
|
||||||
|
<name>Alexey Shvetsov</name>
|
||||||
|
</maintainer>
|
||||||
|
</pkgmetadata>
|
Binary file not shown.
Binary file not shown.
@ -1 +1,2 @@
|
|||||||
DIST ledger-3.1.2.tar.gz 801112 BLAKE2B 71b907a83fe10857d17de746c0d124572859c9eca237130ebbfa5b730406470a5d31025736e80516feaac7daf14a4edb8b644ed72a0827f9714ac9cb2b79c0fb SHA512 445d9a9c70aa3e59718f8fb75e4110c73f2f476436149fdd456b5fe7b9cee9333c09647080049989599dfac491e5bdd0d143717e58e15989db0fcaad4e5a958d
|
DIST ledger-3.1.2.tar.gz 801112 BLAKE2B 71b907a83fe10857d17de746c0d124572859c9eca237130ebbfa5b730406470a5d31025736e80516feaac7daf14a4edb8b644ed72a0827f9714ac9cb2b79c0fb SHA512 445d9a9c70aa3e59718f8fb75e4110c73f2f476436149fdd456b5fe7b9cee9333c09647080049989599dfac491e5bdd0d143717e58e15989db0fcaad4e5a958d
|
||||||
|
DIST ledger-3.2.0.tar.gz 790404 BLAKE2B 081ca5d857238aecbeae5a0ba3267864442a8c1772a71b1894f5a9fb33173f9a0bd488ad4db3844fce8172268e516ebb92ba0556ced6e67b2a089fbb5adfde36 SHA512 580f4f39d7c3cd2bd1d05bcc36b127cfb311219f39fe50dbf23f582f73dd986729d4b5fa76bfd89cd5db9bfdfcdd5dca5b9d6b24766650040e45b881726e65ea
|
||||||
|
@ -0,0 +1,113 @@
|
|||||||
|
# Copyright 1999-2020 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
|
||||||
|
PYTHON_COMPAT=( python3_{6,7,8} )
|
||||||
|
CMAKE_REMOVE_MODULES_LIST=( FindPython Support )
|
||||||
|
inherit bash-completion-r1 check-reqs cmake python-single-r1
|
||||||
|
|
||||||
|
DESCRIPTION="Double-entry accounting system with a command-line reporting interface"
|
||||||
|
HOMEPAGE="https://www.ledger-cli.org/"
|
||||||
|
SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="BSD"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
IUSE="debug doc python"
|
||||||
|
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
|
||||||
|
|
||||||
|
RESTRICT="test"
|
||||||
|
|
||||||
|
CHECKREQS_MEMORY=8G
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
dev-libs/boost:=[python?]
|
||||||
|
dev-libs/gmp:0=
|
||||||
|
dev-libs/mpfr:0=
|
||||||
|
python? (
|
||||||
|
$(python_gen_cond_dep '
|
||||||
|
dev-libs/boost:=[${PYTHON_USEDEP}]
|
||||||
|
dev-python/cheetah3:=[${PYTHON_USEDEP}]
|
||||||
|
')
|
||||||
|
${PYTHON_DEPS}
|
||||||
|
)
|
||||||
|
"
|
||||||
|
DEPEND="${RDEPEND}
|
||||||
|
dev-libs/utfcpp
|
||||||
|
doc? (
|
||||||
|
dev-texlive/texlive-fontsrecommended
|
||||||
|
sys-apps/texinfo
|
||||||
|
virtual/texi2dvi
|
||||||
|
)
|
||||||
|
"
|
||||||
|
|
||||||
|
pkg_pretend() {
|
||||||
|
if use python; then
|
||||||
|
check-reqs_pkg_pretend
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_setup() {
|
||||||
|
if use python; then
|
||||||
|
check-reqs_pkg_setup
|
||||||
|
python-single-r1_pkg_setup
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
cmake_src_prepare
|
||||||
|
|
||||||
|
# Want to type "info ledger" not "info ledger3"
|
||||||
|
sed -i -e 's/ledger3/ledger/g' \
|
||||||
|
doc/{CMakeLists.txt,ledger3.texi} test/CheckTexinfo.py \
|
||||||
|
tools/{cleanup.sh,gendocs.sh,prepare-commit-msg,spellcheck.sh} \
|
||||||
|
|| die "Failed to update info file name in file contents"
|
||||||
|
|
||||||
|
mv doc/ledger{3,}.texi || die "Failed to rename info file name"
|
||||||
|
|
||||||
|
rm -r lib/utfcpp || die
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
local mycmakeargs=(
|
||||||
|
-DBUILD_DOCS="$(usex doc)"
|
||||||
|
-DBUILD_WEB_DOCS="$(usex doc)"
|
||||||
|
-DUSE_PYTHON="$(usex python)"
|
||||||
|
-DCMAKE_INSTALL_DOCDIR="/usr/share/doc/${PF}"
|
||||||
|
-DCMAKE_BUILD_WITH_INSTALL_RPATH:BOOL=ON
|
||||||
|
-DBUILD_DEBUG="$(usex debug)"
|
||||||
|
-DUTFCPP_PATH="${ESYSROOT}/usr/include/utf8cpp"
|
||||||
|
)
|
||||||
|
if use python; then
|
||||||
|
mycmakeargs+=(
|
||||||
|
-DPython_EXECUTABLE="${PYTHON}"
|
||||||
|
-DPython_INCLUDE_DIR="$(python_get_includedir)"
|
||||||
|
)
|
||||||
|
fi
|
||||||
|
|
||||||
|
cmake_src_configure
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
cmake_src_compile
|
||||||
|
|
||||||
|
use doc && cmake_src_compile doc
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
cmake_src_install
|
||||||
|
|
||||||
|
newbashcomp contrib/${PN}-completion.bash ${PN}
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
elog
|
||||||
|
elog "Since version 3, vim support is released separately."
|
||||||
|
elog "See https://github.com/ledger/vim-ledger"
|
||||||
|
elog
|
||||||
|
elog "For Emacs mode, emerge app-emacs/ledger-mode"
|
||||||
|
}
|
||||||
|
|
||||||
|
# rainy day TODO:
|
||||||
|
# - IUSE test
|
Binary file not shown.
Binary file not shown.
@ -1 +1,2 @@
|
|||||||
DIST highlight-3.42.tar.bz2 1294770 BLAKE2B 22c79258be6a665eda8ee17d1de6a97811f97dc4b4491c24b466dc5375d98d865e07ac4e462288d066613bef8bb5a469fa0bdb3065ecf098fc6c4f6090ecb63e SHA512 362150ee396d2b203f11ecc3d011e23b6f8c7d93ff9f8cb0e9e980be6da21e7b3b1ea1e347e3f09129ab0fb1a0aab19ff19f021e643b93a163a99d3882f9bf80
|
DIST highlight-3.42.tar.bz2 1294770 BLAKE2B 22c79258be6a665eda8ee17d1de6a97811f97dc4b4491c24b466dc5375d98d865e07ac4e462288d066613bef8bb5a469fa0bdb3065ecf098fc6c4f6090ecb63e SHA512 362150ee396d2b203f11ecc3d011e23b6f8c7d93ff9f8cb0e9e980be6da21e7b3b1ea1e347e3f09129ab0fb1a0aab19ff19f021e643b93a163a99d3882f9bf80
|
||||||
|
DIST highlight-3.57.tar.bz2 1412857 BLAKE2B c0ee8189294feac3b5e8c6d356634d8074a8960f2010918de52f23515ad4a13626971e9106ecc6d2adbdb45e0ebb66ff60eb3cbe86d2449666e3424f1c0dc3a6 SHA512 a086f6b8c4a4fc0b6651d456b178350a6c59a32cd613451d81b53fe3294eb0f80d673cb64fb615ef91d6c4d4bbc8a57413aec2490d2a5ad67e695ec6e92b3d99
|
||||||
|
@ -0,0 +1,93 @@
|
|||||||
|
# Copyright 1999-2020 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
|
||||||
|
inherit qmake-utils toolchain-funcs
|
||||||
|
|
||||||
|
DESCRIPTION="Converts source code to formatted text (HTML, LaTeX, etc.) with syntax highlight"
|
||||||
|
HOMEPAGE="http://www.andre-simon.de/"
|
||||||
|
SRC_URI="http://www.andre-simon.de/zip/${P}.tar.bz2"
|
||||||
|
|
||||||
|
LICENSE="GPL-3"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
|
||||||
|
IUSE="examples qt5"
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
dev-lang/lua:0=
|
||||||
|
qt5? (
|
||||||
|
dev-qt/qtcore:5
|
||||||
|
dev-qt/qtgui:5
|
||||||
|
dev-qt/qtwidgets:5
|
||||||
|
)
|
||||||
|
"
|
||||||
|
DEPEND="${RDEPEND}
|
||||||
|
dev-libs/boost
|
||||||
|
"
|
||||||
|
BDEPEND="
|
||||||
|
virtual/pkgconfig
|
||||||
|
qt5? ( dev-qt/linguist-tools:5 )
|
||||||
|
"
|
||||||
|
|
||||||
|
myhlopts=(
|
||||||
|
"CXX=$(tc-getCXX)"
|
||||||
|
"AR=$(tc-getAR)"
|
||||||
|
"LDFLAGS=${LDFLAGS}"
|
||||||
|
"CFLAGS=${CXXFLAGS} -DNDEBUG -std=c++11"
|
||||||
|
"DESTDIR=${D}"
|
||||||
|
"PREFIX=${EPREFIX}/usr"
|
||||||
|
"HL_CONFIG_DIR=${EPREFIX}/etc/highlight/"
|
||||||
|
"HL_DATA_DIR=${EPREFIX}/usr/share/highlight/"
|
||||||
|
"doc_dir=${EPREFIX}/usr/share/doc/${PF}/"
|
||||||
|
"conf_dir=${EPREFIX}/etc/highlight/"
|
||||||
|
)
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
default
|
||||||
|
|
||||||
|
# disable man page compression
|
||||||
|
sed -e "/GZIP/d" -i makefile || die
|
||||||
|
|
||||||
|
sed -e "/LSB_DOC_DIR/s:doc/${PN}:doc/${PF}:" \
|
||||||
|
-i src/core/datadir.cpp || die
|
||||||
|
|
||||||
|
if has_version "<dev-lang/lua-5.2"; then
|
||||||
|
sed -e "s/-DUSE_LUA52//" -i src/makefile || die
|
||||||
|
fi
|
||||||
|
|
||||||
|
# We set it via eqmake5, otherwise it forces clang...
|
||||||
|
sed -e "s/QMAKE_CC/#QMAKE_CC/g" \
|
||||||
|
-e "s/QMAKE_CXX /#QMAKE_CXX /g" \
|
||||||
|
-i src/gui-qt/highlight.pro || die
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
if use qt5 ; then
|
||||||
|
pushd src/gui-qt > /dev/null || die
|
||||||
|
eqmake5 \
|
||||||
|
'DEFINES+=DATA_DIR=\\\"'"${EPREFIX}"'/usr/share/${PN}/\\\" CONFIG_DIR=\\\"'"${EPREFIX}"'/etc/${PN}/\\\" DOC_DIR=\\\"'"${EPREFIX}"'/usr/share/doc/${PF}/\\\"'
|
||||||
|
popd > /dev/null || die
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
emake -f makefile "${myhlopts[@]}"
|
||||||
|
if use qt5 ; then
|
||||||
|
pushd src/gui-qt > /dev/null || die
|
||||||
|
emake
|
||||||
|
popd > /dev/null || die
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
emake -f makefile "${myhlopts[@]}" install
|
||||||
|
if use qt5; then
|
||||||
|
emake -f makefile "${myhlopts[@]}" install-gui
|
||||||
|
docompress -x /usr/share/doc/${PF}/{ChangeLog,COPYING,README,README_PLUGINS}
|
||||||
|
fi
|
||||||
|
|
||||||
|
if ! use examples ; then
|
||||||
|
rm -r "${ED}"/usr/share/doc/${PF}/extras || die
|
||||||
|
fi
|
||||||
|
}
|
Binary file not shown.
@ -0,0 +1,82 @@
|
|||||||
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||||
|
index 1bf8ed3..190dabe 100644
|
||||||
|
--- a/CMakeLists.txt
|
||||||
|
+++ b/CMakeLists.txt
|
||||||
|
@@ -223,76 +223,10 @@ target_include_directories(${PROJECT_NAME} INTERFACE
|
||||||
|
$<INSTALL_INTERFACE:include/>
|
||||||
|
)
|
||||||
|
|
||||||
|
-# -----------------------------------------------------------------------------
|
||||||
|
-# Example program
|
||||||
|
-# -----------------------------------------------------------------------------
|
||||||
|
-
|
||||||
|
-message(STATUS "Building examples ...")
|
||||||
|
-set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${TF_EXAMPLE_DIR})
|
||||||
|
-
|
||||||
|
-add_executable(simple ${TF_EXAMPLE_DIR}/simple.cpp)
|
||||||
|
-target_link_libraries(
|
||||||
|
- simple ${PROJECT_NAME} Threads::Threads tf::default_settings
|
||||||
|
-)
|
||||||
|
-
|
||||||
|
-add_executable(observer ${TF_EXAMPLE_DIR}/observer.cpp)
|
||||||
|
-target_link_libraries(
|
||||||
|
- observer ${PROJECT_NAME} Threads::Threads tf::default_settings
|
||||||
|
-)
|
||||||
|
-
|
||||||
|
-add_executable(subflow ${TF_EXAMPLE_DIR}/subflow.cpp)
|
||||||
|
-target_link_libraries(
|
||||||
|
- subflow ${PROJECT_NAME} Threads::Threads tf::default_settings
|
||||||
|
-)
|
||||||
|
-
|
||||||
|
-add_executable(condition ${TF_EXAMPLE_DIR}/condition.cpp)
|
||||||
|
-target_link_libraries(
|
||||||
|
- condition ${PROJECT_NAME} Threads::Threads tf::default_settings
|
||||||
|
-)
|
||||||
|
-
|
||||||
|
-add_executable(visualization ${TF_EXAMPLE_DIR}/visualization.cpp)
|
||||||
|
-target_link_libraries(
|
||||||
|
- visualization ${PROJECT_NAME} Threads::Threads tf::default_settings
|
||||||
|
-)
|
||||||
|
-
|
||||||
|
-add_executable(reduce ${TF_EXAMPLE_DIR}/reduce.cpp)
|
||||||
|
-target_link_libraries(
|
||||||
|
- reduce ${PROJECT_NAME} Threads::Threads tf::default_settings
|
||||||
|
-)
|
||||||
|
-
|
||||||
|
-add_executable(parallel_for ${TF_EXAMPLE_DIR}/parallel_for.cpp)
|
||||||
|
-target_link_libraries(
|
||||||
|
- parallel_for ${PROJECT_NAME} Threads::Threads tf::default_settings
|
||||||
|
-)
|
||||||
|
-
|
||||||
|
-add_executable(run ${TF_EXAMPLE_DIR}/run.cpp)
|
||||||
|
-target_link_libraries(
|
||||||
|
- run ${PROJECT_NAME} Threads::Threads tf::default_settings
|
||||||
|
-)
|
||||||
|
-
|
||||||
|
-add_executable(composition ${TF_EXAMPLE_DIR}/composition.cpp)
|
||||||
|
-target_link_libraries(
|
||||||
|
- composition ${PROJECT_NAME} Threads::Threads tf::default_settings
|
||||||
|
-)
|
||||||
|
-
|
||||||
|
-#### CUDA examples
|
||||||
|
-if(${TF_ENABLE_CUDA})
|
||||||
|
-set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${TF_EXAMPLE_DIR}/cuda)
|
||||||
|
-
|
||||||
|
-add_executable(saxpy ${TF_EXAMPLE_DIR}/cuda/saxpy.cu)
|
||||||
|
-target_link_libraries(
|
||||||
|
- saxpy ${PROJECT_NAME} Threads::Threads tf::default_settings
|
||||||
|
-)
|
||||||
|
-
|
||||||
|
-add_executable(device_property ${TF_EXAMPLE_DIR}/cuda/device_property.cu)
|
||||||
|
-target_link_libraries(
|
||||||
|
- device_property ${PROJECT_NAME} Threads::Threads tf::default_settings
|
||||||
|
-)
|
||||||
|
-endif(${TF_ENABLE_CUDA})
|
||||||
|
-
|
||||||
|
# -----------------------------------------------------------------------------
|
||||||
|
# Unittest
|
||||||
|
# -----------------------------------------------------------------------------
|
||||||
|
+
|
||||||
|
enable_testing()
|
||||||
|
message(STATUS "Building unit tests ...")
|
||||||
|
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${TF_UTEST_DIR})
|
@ -0,0 +1,22 @@
|
|||||||
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||||
|
index 190dabe..6d613d6 100644
|
||||||
|
--- a/CMakeLists.txt
|
||||||
|
+++ b/CMakeLists.txt
|
||||||
|
@@ -6,7 +6,7 @@ MESSAGE(STATUS "CMAKE_ROOT: " ${CMAKE_ROOT})
|
||||||
|
#_cmake_modify_IGNORE set(CMAKE_VERBOSE_MAKEFILE ON)
|
||||||
|
|
||||||
|
# Project name
|
||||||
|
-project(Cpp-Taskflow VERSION 2.3.1 LANGUAGES CXX)
|
||||||
|
+project(Cpp-Taskflow VERSION 2.4.0 LANGUAGES CXX)
|
||||||
|
|
||||||
|
# build options
|
||||||
|
option(TF_ENABLE_CUDA "Enables build of cuda code" OFF)
|
||||||
|
@@ -748,7 +748,7 @@ write_basic_package_version_file(
|
||||||
|
install(
|
||||||
|
FILES ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}Config.cmake
|
||||||
|
${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}ConfigVersion.cmake
|
||||||
|
- DESTINATION ${TF_LIB_INSTALL_DIR}/cmake
|
||||||
|
+ DESTINATION ${TF_LIB_INSTALL_DIR}/cmake/${PROJECT_NAME}
|
||||||
|
)
|
||||||
|
|
||||||
|
|
@ -1,187 +0,0 @@
|
|||||||
--- a/build/FreeBSD.gcc.inc
|
|
||||||
+++ b/build/FreeBSD.gcc.inc
|
|
||||||
@@ -28,8 +28,8 @@ WARNING_KEY = -Wall
|
|
||||||
DYLIB_KEY = -shared
|
|
||||||
WARNING_SUPPRESS = -Wno-parentheses
|
|
||||||
|
|
||||||
-CPLUS = g++
|
|
||||||
-CONLY = gcc
|
|
||||||
+CPLUS = $(CXX)
|
|
||||||
+CONLY = $(CC)
|
|
||||||
LIB_LINK_FLAGS = -shared
|
|
||||||
LIBS = -lpthread
|
|
||||||
C_FLAGS = $(CPLUS_FLAGS)
|
|
||||||
@@ -42,7 +42,7 @@ ifneq (,$(shell gcc -dumpversion | egrep "^([6-9])"))
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifeq ($(cfg), release)
|
|
||||||
- CPLUS_FLAGS = -g -O2 -DUSE_PTHREAD
|
|
||||||
+ CPLUS_FLAGS = -g -DUSE_PTHREAD
|
|
||||||
endif
|
|
||||||
ifeq ($(cfg), debug)
|
|
||||||
CPLUS_FLAGS = -DTBB_USE_DEBUG -g -O0 -DUSE_PTHREAD
|
|
||||||
@@ -59,22 +59,12 @@ ifeq (ia64,$(arch))
|
|
||||||
CPLUS_FLAGS += $(PIC_KEY)
|
|
||||||
endif
|
|
||||||
|
|
||||||
-ifeq (intel64,$(arch))
|
|
||||||
- CPLUS_FLAGS += -m64
|
|
||||||
- LIB_LINK_FLAGS += -m64
|
|
||||||
-endif
|
|
||||||
-
|
|
||||||
-ifeq (ia32,$(arch))
|
|
||||||
- CPLUS_FLAGS += -m32
|
|
||||||
- LIB_LINK_FLAGS += -m32
|
|
||||||
-endif
|
|
||||||
-
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
# Setting assembler data.
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
ASSEMBLY_SOURCE=$(arch)-gas
|
|
||||||
ifeq (ia64,$(arch))
|
|
||||||
- ASM=as
|
|
||||||
+ ASM=$(AS)
|
|
||||||
TBB_ASM.OBJ = atomic_support.o lock_byte.o log2.o pause.o
|
|
||||||
MALLOC_ASM.OBJ = atomic_support.o lock_byte.o pause.o
|
|
||||||
endif
|
|
||||||
--- a/build/linux.clang.inc
|
|
||||||
+++ b/build/linux.clang.inc
|
|
||||||
@@ -31,15 +31,15 @@ DYLIB_KEY = -shared
|
|
||||||
EXPORT_KEY = -Wl,--version-script,
|
|
||||||
LIBDL = -ldl
|
|
||||||
|
|
||||||
-CPLUS = clang++
|
|
||||||
-CONLY = clang
|
|
||||||
+CPLUS := $(CXX)
|
|
||||||
+CONLY := $(CC)
|
|
||||||
LIB_LINK_FLAGS = $(DYLIB_KEY) -Wl,-soname=$(BUILDING_LIBRARY)
|
|
||||||
LIBS += -lpthread -lrt
|
|
||||||
LINK_FLAGS = -Wl,-rpath-link=. -rdynamic
|
|
||||||
C_FLAGS = $(CPLUS_FLAGS)
|
|
||||||
|
|
||||||
ifeq ($(cfg), release)
|
|
||||||
- CPLUS_FLAGS = $(ITT_NOTIFY) -g -O2 -DUSE_PTHREAD
|
|
||||||
+ CPLUS_FLAGS = $(ITT_NOTIFY) -g -DUSE_PTHREAD
|
|
||||||
endif
|
|
||||||
ifeq ($(cfg), debug)
|
|
||||||
CPLUS_FLAGS = -DTBB_USE_DEBUG $(ITT_NOTIFY) -g -O0 -DUSE_PTHREAD
|
|
||||||
@@ -60,24 +60,10 @@ MALLOC_ASM.OBJ=
|
|
||||||
|
|
||||||
ifeq (intel64,$(arch))
|
|
||||||
ITT_NOTIFY = -DDO_ITT_NOTIFY
|
|
||||||
- CPLUS_FLAGS += -m64
|
|
||||||
- LIB_LINK_FLAGS += -m64
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifeq (ia32,$(arch))
|
|
||||||
ITT_NOTIFY = -DDO_ITT_NOTIFY
|
|
||||||
- CPLUS_FLAGS += -m32 -march=pentium4
|
|
||||||
- LIB_LINK_FLAGS += -m32
|
|
||||||
-endif
|
|
||||||
-
|
|
||||||
-ifeq (ppc64,$(arch))
|
|
||||||
- CPLUS_FLAGS += -m64
|
|
||||||
- LIB_LINK_FLAGS += -m64
|
|
||||||
-endif
|
|
||||||
-
|
|
||||||
-ifeq (ppc32,$(arch))
|
|
||||||
- CPLUS_FLAGS += -m32
|
|
||||||
- LIB_LINK_FLAGS += -m32
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifeq (bg,$(arch))
|
|
||||||
@@ -89,12 +75,6 @@ endif
|
|
||||||
# Setting assembler data.
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
ASM = as
|
|
||||||
-ifeq (intel64,$(arch))
|
|
||||||
- ASM_FLAGS += --64
|
|
||||||
-endif
|
|
||||||
-ifeq (ia32,$(arch))
|
|
||||||
- ASM_FLAGS += --32
|
|
||||||
-endif
|
|
||||||
ifeq ($(cfg),debug)
|
|
||||||
ASM_FLAGS += -g
|
|
||||||
endif
|
|
||||||
--- a/build/linux.gcc.inc
|
|
||||||
+++ b/build/linux.gcc.inc
|
|
||||||
@@ -32,12 +32,12 @@ DYLIB_KEY = -shared
|
|
||||||
EXPORT_KEY = -Wl,--version-script,
|
|
||||||
LIBDL = -ldl
|
|
||||||
|
|
||||||
-CPLUS = g++
|
|
||||||
-CONLY = gcc
|
|
||||||
+CPLUS := $(CXX)
|
|
||||||
+CONLY := $(CC)
|
|
||||||
LIB_LINK_FLAGS = $(DYLIB_KEY) -Wl,-soname=$(BUILDING_LIBRARY)
|
|
||||||
LIBS += -lpthread -lrt
|
|
||||||
LINK_FLAGS = -Wl,-rpath-link=. -rdynamic
|
|
||||||
-C_FLAGS = $(CPLUS_FLAGS)
|
|
||||||
+C_FLAGS := $(CPLUS_FLAGS)
|
|
||||||
|
|
||||||
# gcc 4.2 and higher support OpenMP
|
|
||||||
ifneq (,$(shell gcc -dumpversion | egrep "^(4\.[2-9]|[5-9])"))
|
|
||||||
@@ -68,7 +68,7 @@ ifneq (,$(shell gcc -dumpversion | egrep "^([6-9])"))
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifeq ($(cfg), release)
|
|
||||||
- CPLUS_FLAGS = $(ITT_NOTIFY) -g -O2 -DUSE_PTHREAD
|
|
||||||
+ CPLUS_FLAGS = $(ITT_NOTIFY) -g -DUSE_PTHREAD
|
|
||||||
endif
|
|
||||||
ifeq ($(cfg), debug)
|
|
||||||
CPLUS_FLAGS = -DTBB_USE_DEBUG $(ITT_NOTIFY) -g -O0 -DUSE_PTHREAD
|
|
||||||
@@ -84,24 +84,12 @@ endif
|
|
||||||
|
|
||||||
ifeq (intel64,$(arch))
|
|
||||||
ITT_NOTIFY = -DDO_ITT_NOTIFY
|
|
||||||
- CPLUS_FLAGS += -m64 $(RTM_KEY)
|
|
||||||
- LIB_LINK_FLAGS += -m64
|
|
||||||
+ CPLUS_FLAGS += $(RTM_KEY)
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifeq (ia32,$(arch))
|
|
||||||
ITT_NOTIFY = -DDO_ITT_NOTIFY
|
|
||||||
- CPLUS_FLAGS += -m32 -march=pentium4 $(RTM_KEY)
|
|
||||||
- LIB_LINK_FLAGS += -m32
|
|
||||||
-endif
|
|
||||||
-
|
|
||||||
-ifeq (ppc64,$(arch))
|
|
||||||
- CPLUS_FLAGS += -m64
|
|
||||||
- LIB_LINK_FLAGS += -m64
|
|
||||||
-endif
|
|
||||||
-
|
|
||||||
-ifeq (ppc32,$(arch))
|
|
||||||
- CPLUS_FLAGS += -m32
|
|
||||||
- LIB_LINK_FLAGS += -m32
|
|
||||||
+ CPLUS_FLAGS += $(RTM_KEY)
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifeq (bg,$(arch))
|
|
||||||
@@ -109,12 +97,6 @@ ifeq (bg,$(arch))
|
|
||||||
CONLY = $(firstword $(notdir $(shell which powerpc{64,32,}-bg{z..a}-linux-gcc 2>/dev/null)))
|
|
||||||
endif
|
|
||||||
|
|
||||||
-# for some gcc versions on Solaris, -m64 may imply V9, but perhaps not everywhere (TODO: verify)
|
|
||||||
-ifeq (sparc,$(arch))
|
|
||||||
- CPLUS_FLAGS += -mcpu=v9 -m64
|
|
||||||
- LIB_LINK_FLAGS += -mcpu=v9 -m64
|
|
||||||
-endif
|
|
||||||
-
|
|
||||||
# automatically generate "IT" instructions when compiling for Thumb ISA
|
|
||||||
ifeq (armv7,$(arch))
|
|
||||||
CPLUS_FLAGS += -Wa,-mimplicit-it=thumb
|
|
||||||
@@ -123,13 +105,7 @@ endif
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
# Setting assembler data.
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
-ASM = as
|
|
||||||
-ifeq (intel64,$(arch))
|
|
||||||
- ASM_FLAGS += --64
|
|
||||||
-endif
|
|
||||||
-ifeq (ia32,$(arch))
|
|
||||||
- ASM_FLAGS += --32
|
|
||||||
-endif
|
|
||||||
+ASM := $(AS)
|
|
||||||
ifeq ($(cfg),debug)
|
|
||||||
ASM_FLAGS += -g
|
|
||||||
endif
|
|
@ -1,15 +0,0 @@
|
|||||||
https://bugs.gentoo.org/show_bug.cgi?id=418447
|
|
||||||
|
|
||||||
--- a/build/Makefile.test
|
|
||||||
+++ b/build/Makefile.test
|
|
||||||
@@ -44,8 +44,8 @@
|
|
||||||
USE_PROXY_FLAG = $(DEFINE_KEY)HARNESS_USE_PROXY
|
|
||||||
CPLUS_FLAGS += $(USE_PROXY_FLAG)
|
|
||||||
LINK_TBB.LIB = $(PROXY.LIB)
|
|
||||||
- LIBS += $(LIBDL)
|
|
||||||
-endif
|
|
||||||
+endif
|
|
||||||
+LIBS += $(LIBDL)
|
|
||||||
|
|
||||||
TEST_SUFFIXES=secondary compiler_builtins pic
|
|
||||||
include $(tbb_root)/build/common_rules.inc
|
|
Binary file not shown.
@ -1,2 +1,3 @@
|
|||||||
DIST mariadb-connector-c-3.1.6-src.tar.gz 742858 BLAKE2B 416cc33cf7a01fee9649f6c35e0a7e16b889a1fad10f2b204e259a2672535d1ad7f9ade9723989a4ce00cf8a2c4660f40357516bfdc4547118a54637911f9b60 SHA512 44309e706cb49451a0d1a91f907ab7cfa1fb1bf95d26cf3bbce1caa367c2fa8ad377a691361e297dd2fcbc444c10115f18aec66dd6d69c458f282ace3025a3e8
|
DIST mariadb-connector-c-3.1.6-src.tar.gz 742858 BLAKE2B 416cc33cf7a01fee9649f6c35e0a7e16b889a1fad10f2b204e259a2672535d1ad7f9ade9723989a4ce00cf8a2c4660f40357516bfdc4547118a54637911f9b60 SHA512 44309e706cb49451a0d1a91f907ab7cfa1fb1bf95d26cf3bbce1caa367c2fa8ad377a691361e297dd2fcbc444c10115f18aec66dd6d69c458f282ace3025a3e8
|
||||||
DIST mariadb-connector-c-3.1.7-src.tar.gz 742923 BLAKE2B 641c3c49cf83af918e5dab06f9b8afecd59bd7b6486cc55b33749cd0ef317ab6cff86da9b85829b0309305a190e16f4ecc369210c54070e265387a5818c48ca1 SHA512 0b7f6497b6b88b2bbcb870b7c3a8f3fe0bf547c6b5d9b95cc99423aa8ea02ac510c5fb71079e7cd79a49741c7f26f3e68c39e245b18fab46754e8640f79ff670
|
DIST mariadb-connector-c-3.1.7-src.tar.gz 742923 BLAKE2B 641c3c49cf83af918e5dab06f9b8afecd59bd7b6486cc55b33749cd0ef317ab6cff86da9b85829b0309305a190e16f4ecc369210c54070e265387a5818c48ca1 SHA512 0b7f6497b6b88b2bbcb870b7c3a8f3fe0bf547c6b5d9b95cc99423aa8ea02ac510c5fb71079e7cd79a49741c7f26f3e68c39e245b18fab46754e8640f79ff670
|
||||||
|
DIST mariadb-connector-c-3.1.8-src.tar.gz 744745 BLAKE2B 24f4f6a8bb3a1fcbdf2c5a7434303e6a2295cb4aed0c59ee4cb776399516a9895eb51d6ef18dde429d7246750cad797f4f89c3838dfd54e835683021d712041b SHA512 005fdacd7e7b353b97b5c1305f973a90744e495d7bf5d407fc6c75d49323e13a743e6c3877c00ada2b3fc49a0f33e5c2dcd70b1f8fe8eb8f579af1bce3b3e6b9
|
||||||
|
@ -0,0 +1,88 @@
|
|||||||
|
# Copyright 1999-2020 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
|
||||||
|
VCS_INHERIT=""
|
||||||
|
if [[ "${PV}" == 9999 ]] ; then
|
||||||
|
VCS_INHERIT="git-r3"
|
||||||
|
EGIT_REPO_URI="https://github.com/MariaDB/mariadb-connector-c.git"
|
||||||
|
else
|
||||||
|
MY_PN=${PN#mariadb-}
|
||||||
|
MY_PV=${PV/_b/-b}
|
||||||
|
SRC_URI="https://downloads.mariadb.org/f/${MY_PN}-${PV%_beta}/${PN}-${MY_PV}-src.tar.gz?serve -> ${P}-src.tar.gz"
|
||||||
|
S="${WORKDIR%/}/${PN}-${MY_PV}-src"
|
||||||
|
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86"
|
||||||
|
fi
|
||||||
|
|
||||||
|
inherit cmake-utils multilib-minimal toolchain-funcs ${VCS_INHERIT}
|
||||||
|
|
||||||
|
MULTILIB_CHOST_TOOLS=( /usr/bin/mariadb_config )
|
||||||
|
|
||||||
|
MULTILIB_WRAPPED_HEADERS+=(
|
||||||
|
/usr/include/mariadb/mariadb_version.h
|
||||||
|
)
|
||||||
|
|
||||||
|
DESCRIPTION="C client library for MariaDB/MySQL"
|
||||||
|
HOMEPAGE="https://mariadb.org/"
|
||||||
|
LICENSE="LGPL-2.1"
|
||||||
|
|
||||||
|
SLOT="0/3"
|
||||||
|
IUSE="+curl gnutls kerberos libressl +ssl static-libs test"
|
||||||
|
|
||||||
|
RESTRICT="!test? ( test )"
|
||||||
|
|
||||||
|
DEPEND="sys-libs/zlib:=[${MULTILIB_USEDEP}]
|
||||||
|
virtual/libiconv:=[${MULTILIB_USEDEP}]
|
||||||
|
curl? ( net-misc/curl:0=[${MULTILIB_USEDEP}] )
|
||||||
|
kerberos? ( || ( app-crypt/mit-krb5[${MULTILIB_USEDEP}]
|
||||||
|
app-crypt/heimdal[${MULTILIB_USEDEP}] ) )
|
||||||
|
ssl? (
|
||||||
|
gnutls? ( >=net-libs/gnutls-3.3.24:0=[${MULTILIB_USEDEP}] )
|
||||||
|
!gnutls? (
|
||||||
|
libressl? ( dev-libs/libressl:0=[${MULTILIB_USEDEP}] )
|
||||||
|
!libressl? ( dev-libs/openssl:0=[${MULTILIB_USEDEP}] )
|
||||||
|
)
|
||||||
|
)
|
||||||
|
"
|
||||||
|
RDEPEND="${DEPEND}"
|
||||||
|
PATCHES=(
|
||||||
|
"${FILESDIR}"/gentoo-layout-3.0.patch
|
||||||
|
"${FILESDIR}"/${PN}-3.1.3-fix-pkconfig-file.patch
|
||||||
|
)
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
# bug 508724 mariadb cannot use ld.gold
|
||||||
|
tc-ld-disable-gold
|
||||||
|
multilib-minimal_src_configure
|
||||||
|
}
|
||||||
|
|
||||||
|
multilib_src_configure() {
|
||||||
|
local mycmakeargs=(
|
||||||
|
-DWITH_EXTERNAL_ZLIB=ON
|
||||||
|
-DWITH_SSL:STRING=$(usex ssl $(usex gnutls GNUTLS OPENSSL) OFF)
|
||||||
|
-DWITH_CURL=$(usex curl ON OFF)
|
||||||
|
-DCLIENT_PLUGIN_AUTH_GSSAPI_CLIENT:STRING=$(usex kerberos DYNAMIC OFF)
|
||||||
|
-DMARIADB_UNIX_ADDR="${EPREFIX}/var/run/mysqld/mysqld.sock"
|
||||||
|
-DINSTALL_LIBDIR="$(get_libdir)"
|
||||||
|
-DINSTALL_PCDIR="$(get_libdir)/pkgconfig"
|
||||||
|
-DINSTALL_PLUGINDIR="$(get_libdir)/mariadb/plugin"
|
||||||
|
-DINSTALL_BINDIR=bin
|
||||||
|
-DWITH_UNIT_TESTS=$(usex test ON OFF)
|
||||||
|
)
|
||||||
|
cmake-utils_src_configure
|
||||||
|
}
|
||||||
|
|
||||||
|
multilib_src_compile() {
|
||||||
|
cmake-utils_src_compile
|
||||||
|
}
|
||||||
|
|
||||||
|
multilib_src_install() {
|
||||||
|
cmake-utils_src_install
|
||||||
|
}
|
||||||
|
|
||||||
|
multilib_src_install_all() {
|
||||||
|
if ! use static-libs ; then
|
||||||
|
find "${D}" -name "*.a" -delete || die
|
||||||
|
fi
|
||||||
|
}
|
@ -1,8 +1,6 @@
|
|||||||
DIST boost_1_59_0.tar.gz 83709983 BLAKE2B 8c6676fa05fa401a6ecb3b890d95aceb4421ec48dd0eab38ce8d170c618e177c82dc67a165938f6be1a01daab24ce41888f5442dbc19ad3dd41368a01a6f89e4 SHA512 05fdbe5637543defdbc630b921515425885593d16db14534ed7b9aa60925ade8fb598d50cb894aed6dae688e789047216daa1bf03fa1aeb6b531060d9dae52ae
|
DIST boost_1_59_0.tar.gz 83709983 BLAKE2B 8c6676fa05fa401a6ecb3b890d95aceb4421ec48dd0eab38ce8d170c618e177c82dc67a165938f6be1a01daab24ce41888f5442dbc19ad3dd41368a01a6f89e4 SHA512 05fdbe5637543defdbc630b921515425885593d16db14534ed7b9aa60925ade8fb598d50cb894aed6dae688e789047216daa1bf03fa1aeb6b531060d9dae52ae
|
||||||
DIST boost_1_70_0.tar.bz2 97887058 BLAKE2B dc7a974c6dc2662b767dbd87cb832cd1749c24fb745779d1059b73f19f7e52b33b645adfe72b0296c5e098e5cdb3b9f5eddd382374f33fbcd2ad5739287b2206 SHA512 7f2ea9636baf0210e8ed1d21ee798efb6ce23c0710ff8228b285e2214f82193bcd2d912fd435929c554289a59101c7be2e27ce798f93833f307976f0dd070b49
|
DIST boost_1_70_0.tar.bz2 97887058 BLAKE2B dc7a974c6dc2662b767dbd87cb832cd1749c24fb745779d1059b73f19f7e52b33b645adfe72b0296c5e098e5cdb3b9f5eddd382374f33fbcd2ad5739287b2206 SHA512 7f2ea9636baf0210e8ed1d21ee798efb6ce23c0710ff8228b285e2214f82193bcd2d912fd435929c554289a59101c7be2e27ce798f93833f307976f0dd070b49
|
||||||
DIST mysql-extras-20190822-1908Z.tar.bz2 338830 BLAKE2B bc197f8e541206548d8982814e82e028d699ba9c41aec8d5191bcc46581f7880ed2741dbe2206fde44a5e8d8d54bbcf40efbd0709b357636c4c8fdb2ccc3a7bb SHA512 be469e55f7e9966638600d6836a44258c74e5600240fafe2d79eaeebe7d1695b043678184b5d18ee9946f28154bc2529586a7f860b510180a30c82454ed575c8
|
DIST mysql-extras-20190822-1908Z.tar.bz2 338830 BLAKE2B bc197f8e541206548d8982814e82e028d699ba9c41aec8d5191bcc46581f7880ed2741dbe2206fde44a5e8d8d54bbcf40efbd0709b357636c4c8fdb2ccc3a7bb SHA512 be469e55f7e9966638600d6836a44258c74e5600240fafe2d79eaeebe7d1695b043678184b5d18ee9946f28154bc2529586a7f860b510180a30c82454ed575c8
|
||||||
DIST mysql-extras-20200317-0103Z.tar.bz2 344905 BLAKE2B c4c8bb2acea16663ab32cf291d0a2d52af04448a507ad3a6dc22dfdef4d6ba427582d66e5923d05cd51565286f85c8df5ccabef9a67a4a500574d21e1f708f27 SHA512 d1d34817faf0a1271f906213eea9081c204d745b14f96166f17d5c60a29ec58c05926e7216f135b6e9d5df2ceab373f10fc4e6a652514d99ba34a336571dce1f
|
|
||||||
DIST percona-server-5.7.27-30.tar.gz 84672298 BLAKE2B 8431d231f602b704195868110e8eb73adb3db7c761906c15eff182e54634ef091a3ffa0d4f3498a93dbfbf65cd5cdd12102871abaaaa0f32378ba3068d083b2b SHA512 d62c66de3128df87dce52292ad1671e01fe2c923e668ef0faf9cb663c11c9cd0b976345aea1de6ea2bc458d0e1066b42c022849e422121d96cea082ed12c8f4b
|
DIST percona-server-5.7.27-30.tar.gz 84672298 BLAKE2B 8431d231f602b704195868110e8eb73adb3db7c761906c15eff182e54634ef091a3ffa0d4f3498a93dbfbf65cd5cdd12102871abaaaa0f32378ba3068d083b2b SHA512 d62c66de3128df87dce52292ad1671e01fe2c923e668ef0faf9cb663c11c9cd0b976345aea1de6ea2bc458d0e1066b42c022849e422121d96cea082ed12c8f4b
|
||||||
DIST percona-server-8.0.18-9.tar.gz 256867152 BLAKE2B 34c7b7b320f973313ecd95e658999a17748fc70ff46b1dc58144df02c17b7870cf33d68a555ee8aaaecb66c5b1003e6023154f7100a6f413514e89d495330dd2 SHA512 ce537a160b48e7c3dc35b15a293c39142a5b633111b5c9c5f9c1150476f0faa5e9cf81b34c9ca85286463455e3ae3fce7a200d253d880e3b67b3c71eefdbdcd4
|
|
||||||
DIST percona-server-8.0.19-10.tar.gz 490703179 BLAKE2B 731e9498c4934eb53451c202e8b1de93618190d9b6334b761428ab223756d515d958db77515517e6b5db3ba6cd908c8b238c18b63f4c73b256ec251f8b161ff3 SHA512 39aa805474c6655980e70c97e0d2c0f21ae16e2c1e2e9c7e1d615f46320f1615620368fbdfc24f5d1784aae856090856c3ccda3d6f09ed86c6c9ffe3197be90e
|
DIST percona-server-8.0.19-10.tar.gz 490703179 BLAKE2B 731e9498c4934eb53451c202e8b1de93618190d9b6334b761428ab223756d515d958db77515517e6b5db3ba6cd908c8b238c18b63f4c73b256ec251f8b161ff3 SHA512 39aa805474c6655980e70c97e0d2c0f21ae16e2c1e2e9c7e1d615f46320f1615620368fbdfc24f5d1784aae856090856c3ccda3d6f09ed86c6c9ffe3197be90e
|
||||||
DIST percona-server-8.0.19.10-patches-01.tar.xz 8288 BLAKE2B 2f79c538ac1512b052210439a27b71491917cb9eab08ac3a3b21c188458c2989f0c998d973b8dd654a7d7606acd70ccf374f1e2f5e0088d0c6b96a794dc4c4a5 SHA512 43313797ec405be82f15745185bfab25fda093045f981a8caa8a019522e432415e4b3cca4ca5ffb735d102f98b3c2fccafccbd4695bd2d1f011707f709fcc2b3
|
DIST percona-server-8.0.19.10-patches-01.tar.xz 8288 BLAKE2B 2f79c538ac1512b052210439a27b71491917cb9eab08ac3a3b21c188458c2989f0c998d973b8dd654a7d7606acd70ccf374f1e2f5e0088d0c6b96a794dc4c4a5 SHA512 43313797ec405be82f15745185bfab25fda093045f981a8caa8a019522e432415e4b3cca4ca5ffb735d102f98b3c2fccafccbd4695bd2d1f011707f709fcc2b3
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -1 +1,2 @@
|
|||||||
DIST pgmodeler-0.9.1.tar.gz 3569027 BLAKE2B 4d91d430554f739b585ed155aa2d87dc648ea5d2d6a1c22ddd9ae829afb63654fe052091de5dea51b0fee20ef2ccaf5b77587f036c4072bbc623bffba9a67b27 SHA512 bb6f093e00f0e41a9dd2a9b7e3723459af759e79835b73ab67b01c23ae6b29f1453b5cf61e987c6f1a2a3908e700d048f0a7dcbed3ac1636493d6b6e657917ba
|
DIST pgmodeler-0.9.1.tar.gz 3569027 BLAKE2B 4d91d430554f739b585ed155aa2d87dc648ea5d2d6a1c22ddd9ae829afb63654fe052091de5dea51b0fee20ef2ccaf5b77587f036c4072bbc623bffba9a67b27 SHA512 bb6f093e00f0e41a9dd2a9b7e3723459af759e79835b73ab67b01c23ae6b29f1453b5cf61e987c6f1a2a3908e700d048f0a7dcbed3ac1636493d6b6e657917ba
|
||||||
|
DIST pgmodeler-0.9.2.tar.gz 3930988 BLAKE2B 36d89c3bb400cd82199492208acf40fb872cb832a4911f818581672478d80e43bf56246a4485dd9b3a65a378bc261ad1c4b40243f1007aa2e67e75b62233ded4 SHA512 1bc48998623e39139e930c028095aace808084bb05d837273386a96aaeccd292890bbee58059b27710331f87d6e89a79005f2b0cdf901d229be6f777958fe051
|
||||||
|
@ -0,0 +1,61 @@
|
|||||||
|
# Copyright 1999-2020 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
|
||||||
|
POSTGRES_COMPAT=( 9.{5..6} 10 11 12 )
|
||||||
|
|
||||||
|
inherit desktop postgres qmake-utils
|
||||||
|
|
||||||
|
MY_PV=${PV/_/-}
|
||||||
|
|
||||||
|
DESCRIPTION="PostgreSQL Database Modeler"
|
||||||
|
HOMEPAGE="https://pgmodeler.io"
|
||||||
|
SRC_URI="https://github.com/${PN}/${PN}/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="GPL-3"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64"
|
||||||
|
|
||||||
|
DEPEND="${POSTGRES_DEP}
|
||||||
|
dev-libs/icu:=
|
||||||
|
dev-libs/libxml2:=
|
||||||
|
dev-qt/qtcore:5
|
||||||
|
dev-qt/qtnetwork:5
|
||||||
|
dev-qt/qtprintsupport:5
|
||||||
|
dev-qt/qtsvg:5
|
||||||
|
dev-qt/qtwidgets:5
|
||||||
|
"
|
||||||
|
RDEPEND="${DEPEND}"
|
||||||
|
|
||||||
|
DOCS=( CHANGELOG.md README.md RELEASENOTES.md )
|
||||||
|
|
||||||
|
S="${WORKDIR}/${PN}-${MY_PV}"
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
eqmake5 \
|
||||||
|
PREFIX="${EPREFIX}/usr" \
|
||||||
|
PLUGINSDIR="${EPREFIX}/usr/$(get_libdir)/${PN}/plugins" \
|
||||||
|
PRIVATEBINDIR="${EPREFIX}/usr/$(get_libdir)/${PN}/bin" \
|
||||||
|
PRIVATELIBDIR="${EPREFIX}/usr/$(get_libdir)/${PN}" \
|
||||||
|
NO_UPDATE_CHECK=1 \
|
||||||
|
-r ${PN}.pro
|
||||||
|
}
|
||||||
|
|
||||||
|
src_test() {
|
||||||
|
cd "${S}/tests" || die
|
||||||
|
eqmake5 tests.pro
|
||||||
|
emake
|
||||||
|
emake check
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
emake INSTALL_ROOT="${D}" install
|
||||||
|
|
||||||
|
rm "${D}"/usr/share/${PN}/{CHANGELOG.md,LICENSE,README.md,RELEASENOTES.md}
|
||||||
|
|
||||||
|
einstalldocs
|
||||||
|
|
||||||
|
doicon conf/${PN}_logo.png
|
||||||
|
make_desktop_entry ${PN} ${PN} ${PN}_logo Development
|
||||||
|
}
|
@ -0,0 +1,60 @@
|
|||||||
|
diff --git a/deps/lua/src/lua_cjson.c b/deps/lua/src/lua_cjson.c
|
||||||
|
index c26c0d7..fa50c41 100644
|
||||||
|
--- a/deps/lua/src/lua_cjson.c
|
||||||
|
+++ b/deps/lua/src/lua_cjson.c
|
||||||
|
@@ -46,7 +46,7 @@
|
||||||
|
#include "strbuf.h"
|
||||||
|
#include "fpconv.h"
|
||||||
|
|
||||||
|
-#include "../../../src/solarisfixes.h"
|
||||||
|
+#include "solarisfixes.h"
|
||||||
|
|
||||||
|
#ifndef CJSON_MODNAME
|
||||||
|
#define CJSON_MODNAME "cjson"
|
||||||
|
diff --git a/src/Makefile b/src/Makefile
|
||||||
|
index b8c05c3..e5a7cc2 100644
|
||||||
|
--- a/src/Makefile
|
||||||
|
+++ b/src/Makefile
|
||||||
|
@@ -16,7 +16,7 @@ release_hdr := $(shell sh -c './mkreleasehdr.sh')
|
||||||
|
uname_S := $(shell sh -c 'uname -s 2>/dev/null || echo not')
|
||||||
|
uname_M := $(shell sh -c 'uname -m 2>/dev/null || echo not')
|
||||||
|
OPTIMIZATION?=-O2
|
||||||
|
-DEPENDENCY_TARGETS=hiredis linenoise lua
|
||||||
|
+DEPENDENCY_TARGETS=hiredis linenoise
|
||||||
|
NODEPS:=clean distclean
|
||||||
|
|
||||||
|
# Default settings
|
||||||
|
@@ -76,6 +76,7 @@ endif
|
||||||
|
FINAL_CFLAGS=$(STD) $(WARN) $(OPT) $(DEBUG) $(CFLAGS) $(REDIS_CFLAGS)
|
||||||
|
FINAL_LDFLAGS=$(LDFLAGS) $(REDIS_LDFLAGS) $(DEBUG)
|
||||||
|
FINAL_LIBS=-lm
|
||||||
|
+FINAL_LIBS+=@LUA_LIBS@
|
||||||
|
DEBUG=-g -ggdb
|
||||||
|
|
||||||
|
# Linux ARM needs -latomic at linking time
|
||||||
|
@@ -149,7 +150,7 @@ endif
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
# Include paths to dependencies
|
||||||
|
-FINAL_CFLAGS+= -I../deps/hiredis -I../deps/linenoise -I../deps/lua/src
|
||||||
|
+FINAL_CFLAGS+= -I../deps/hiredis -I../deps/linenoise @LUA_CFLAGS@
|
||||||
|
|
||||||
|
# Determine systemd support and/or build preference (defaulting to auto-detection)
|
||||||
|
BUILD_WITH_SYSTEMD=no
|
||||||
|
@@ -217,6 +218,7 @@ endif
|
||||||
|
REDIS_SERVER_NAME=redis-server
|
||||||
|
REDIS_SENTINEL_NAME=redis-sentinel
|
||||||
|
REDIS_SERVER_OBJ=adlist.o quicklist.o ae.o anet.o dict.o server.o sds.o zmalloc.o lzf_c.o lzf_d.o pqsort.o zipmap.o sha1.o ziplist.o release.o networking.o util.o object.o db.o replication.o rdb.o t_string.o t_list.o t_set.o t_zset.o t_hash.o config.o aof.o pubsub.o multi.o debug.o sort.o intset.o syncio.o cluster.o crc16.o endianconv.o slowlog.o scripting.o bio.o rio.o rand.o memtest.o crcspeed.o crc64.o bitops.o sentinel.o notify.o setproctitle.o blocked.o hyperloglog.o latency.o sparkline.o redis-check-rdb.o redis-check-aof.o geo.o lazyfree.o module.o evict.o expire.o geohash.o geohash_helper.o childinfo.o defrag.o siphash.o rax.o t_stream.o listpack.o localtime.o lolwut.o lolwut5.o lolwut6.o acl.o gopher.o tracking.o connection.o tls.o sha256.o timeout.o setcpuaffinity.o
|
||||||
|
+REDIS_SERVER_OBJ+=fpconv.o strbuf.o lua_bit.o lua_cjson.o lua_cmsgpack.o lua_struct.o
|
||||||
|
REDIS_CLI_NAME=redis-cli
|
||||||
|
REDIS_CLI_OBJ=anet.o adlist.o dict.o redis-cli.o zmalloc.o release.o ae.o crcspeed.o crc64.o siphash.o crc16.o
|
||||||
|
REDIS_BENCHMARK_NAME=redis-benchmark
|
||||||
|
@@ -268,7 +270,7 @@ endif
|
||||||
|
|
||||||
|
# redis-server
|
||||||
|
$(REDIS_SERVER_NAME): $(REDIS_SERVER_OBJ)
|
||||||
|
- $(REDIS_LD) -o $@ $^ ../deps/hiredis/libhiredis.a ../deps/lua/src/liblua.a $(FINAL_LIBS)
|
||||||
|
+ $(REDIS_LD) -o $@ $^ ../deps/hiredis/libhiredis.a $(FINAL_LIBS)
|
||||||
|
|
||||||
|
# redis-sentinel
|
||||||
|
$(REDIS_SENTINEL_NAME): $(REDIS_SERVER_NAME)
|
@ -0,0 +1,160 @@
|
|||||||
|
# Copyright 1999-2020 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
|
||||||
|
inherit autotools flag-o-matic systemd toolchain-funcs
|
||||||
|
|
||||||
|
DESCRIPTION="A persistent caching system, key-value and data structures database"
|
||||||
|
HOMEPAGE="https://redis.io"
|
||||||
|
SRC_URI="http://download.redis.io/releases/${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="BSD"
|
||||||
|
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~x86-macos ~x86-solaris"
|
||||||
|
IUSE="+jemalloc luajit tcmalloc test"
|
||||||
|
RESTRICT="!test? ( test )"
|
||||||
|
SLOT="0"
|
||||||
|
|
||||||
|
# Redis does NOT build with Lua 5.2 or newer at this time.
|
||||||
|
# This should link correctly with both unslotted & slotted Lua, without
|
||||||
|
# changes.
|
||||||
|
COMMON_DEPEND="
|
||||||
|
jemalloc? ( >=dev-libs/jemalloc-5.1:= )
|
||||||
|
luajit? ( dev-lang/luajit:2 )
|
||||||
|
!luajit? ( || ( dev-lang/lua:5.1 =dev-lang/lua-5.1*:0 ) )
|
||||||
|
tcmalloc? ( dev-util/google-perftools )
|
||||||
|
"
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
${COMMON_DEPEND}
|
||||||
|
acct-group/redis
|
||||||
|
acct-user/redis
|
||||||
|
"
|
||||||
|
|
||||||
|
BDEPEND="
|
||||||
|
${COMMON_DEPEND}
|
||||||
|
virtual/pkgconfig
|
||||||
|
"
|
||||||
|
|
||||||
|
# Tcl is only needed in the CHOST test env
|
||||||
|
DEPEND="
|
||||||
|
${COMMON_DEPEND}
|
||||||
|
test? ( dev-lang/tcl:0= )"
|
||||||
|
|
||||||
|
REQUIRED_USE="?? ( jemalloc tcmalloc )"
|
||||||
|
|
||||||
|
PATCHES=(
|
||||||
|
"${FILESDIR}"/${PN}-3.2.3-config.patch
|
||||||
|
"${FILESDIR}"/${PN}-5.0-shared.patch
|
||||||
|
"${FILESDIR}"/${PN}-6.0.3-sharedlua.patch
|
||||||
|
"${FILESDIR}"/${PN}-5.0.8-ppc-atomic.patch
|
||||||
|
"${FILESDIR}"/${PN}-sentinel-5.0-config.patch
|
||||||
|
)
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
default
|
||||||
|
|
||||||
|
# unstable on jemalloc
|
||||||
|
> tests/unit/memefficiency.tcl || die
|
||||||
|
|
||||||
|
# Copy lua modules into build dir
|
||||||
|
cp "${S}"/deps/lua/src/{fpconv,lua_bit,lua_cjson,lua_cmsgpack,lua_struct,strbuf}.c "${S}"/src || die
|
||||||
|
cp "${S}"/deps/lua/src/{fpconv,strbuf}.h "${S}"/src || die
|
||||||
|
# Append cflag for lua_cjson
|
||||||
|
# https://github.com/antirez/redis/commit/4fdcd213#diff-3ba529ae517f6b57803af0502f52a40bL61
|
||||||
|
append-cflags "-DENABLE_CJSON_GLOBAL"
|
||||||
|
|
||||||
|
# now we will rewrite present Makefiles
|
||||||
|
local makefiles="" MKF
|
||||||
|
for MKF in $(find -name 'Makefile' | cut -b 3-); do
|
||||||
|
mv "${MKF}" "${MKF}.in"
|
||||||
|
sed -i -e 's:$(CC):@CC@:g' \
|
||||||
|
-e 's:$(CFLAGS):@AM_CFLAGS@:g' \
|
||||||
|
-e 's: $(DEBUG)::g' \
|
||||||
|
-e 's:$(OBJARCH)::g' \
|
||||||
|
-e 's:ARCH:TARCH:g' \
|
||||||
|
-e '/^CCOPT=/s:$: $(LDFLAGS):g' \
|
||||||
|
"${MKF}.in" \
|
||||||
|
|| die "Sed failed for ${MKF}"
|
||||||
|
makefiles+=" ${MKF}"
|
||||||
|
done
|
||||||
|
# autodetection of compiler and settings; generates the modified Makefiles
|
||||||
|
cp "${FILESDIR}"/configure.ac-3.2 configure.ac || die
|
||||||
|
|
||||||
|
# Use the correct pkgconfig name for Lua
|
||||||
|
if false && has_version 'dev-lang/lua:5.3'; then
|
||||||
|
# Lua5.3 gives:
|
||||||
|
#lua_bit.c:83:2: error: #error "Unknown number type, check LUA_NUMBER_* in luaconf.h"
|
||||||
|
LUAPKGCONFIG=lua5.3
|
||||||
|
elif false && has_version 'dev-lang/lua:5.2'; then
|
||||||
|
# Lua5.2 fails with:
|
||||||
|
# scripting.c:(.text+0x1f9b): undefined reference to `lua_open'
|
||||||
|
# Because lua_open because lua_newstate in 5.2
|
||||||
|
LUAPKGCONFIG=lua5.2
|
||||||
|
elif has_version 'dev-lang/lua:5.1'; then
|
||||||
|
LUAPKGCONFIG=lua5.1
|
||||||
|
else
|
||||||
|
LUAPKGCONFIG=lua
|
||||||
|
fi
|
||||||
|
# The upstream configure script handles luajit specially, and is not
|
||||||
|
# effected by these changes.
|
||||||
|
einfo "Selected LUAPKGCONFIG=${LUAPKGCONFIG}"
|
||||||
|
sed -i \
|
||||||
|
-e "/^AC_INIT/s|, [0-9].+, |, $PV, |" \
|
||||||
|
-e "s:AC_CONFIG_FILES(\[Makefile\]):AC_CONFIG_FILES([${makefiles}]):g" \
|
||||||
|
-e "/PKG_CHECK_MODULES.*\<LUA\>/s,lua5.1,${LUAPKGCONFIG},g" \
|
||||||
|
configure.ac || die "Sed failed for configure.ac"
|
||||||
|
eautoreconf
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
econf $(use_with luajit)
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
local myconf=""
|
||||||
|
|
||||||
|
if use jemalloc; then
|
||||||
|
myconf+="MALLOC=jemalloc"
|
||||||
|
elif use tcmalloc; then
|
||||||
|
myconf+="MALLOC=tcmalloc"
|
||||||
|
else
|
||||||
|
myconf+="MALLOC=libc"
|
||||||
|
fi
|
||||||
|
|
||||||
|
tc-export CC
|
||||||
|
emake V=1 ${myconf} CC="${CC}"
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
insinto /etc/
|
||||||
|
doins redis.conf sentinel.conf
|
||||||
|
use prefix || fowners redis:redis /etc/{redis,sentinel}.conf
|
||||||
|
fperms 0644 /etc/{redis,sentinel}.conf
|
||||||
|
|
||||||
|
newconfd "${FILESDIR}/redis.confd-r1" redis
|
||||||
|
newinitd "${FILESDIR}/redis.initd-5" redis
|
||||||
|
|
||||||
|
systemd_newunit "${FILESDIR}/redis.service-3" redis.service
|
||||||
|
systemd_newtmpfilesd "${FILESDIR}/redis.tmpfiles-2" redis.conf
|
||||||
|
|
||||||
|
newconfd "${FILESDIR}/redis-sentinel.confd" redis-sentinel
|
||||||
|
newinitd "${FILESDIR}/redis-sentinel.initd" redis-sentinel
|
||||||
|
|
||||||
|
insinto /etc/logrotate.d/
|
||||||
|
newins "${FILESDIR}/${PN}.logrotate" ${PN}
|
||||||
|
|
||||||
|
dodoc 00-RELEASENOTES BUGS CONTRIBUTING MANIFESTO README.md
|
||||||
|
|
||||||
|
dobin src/redis-cli
|
||||||
|
dosbin src/redis-benchmark src/redis-server src/redis-check-aof src/redis-check-rdb
|
||||||
|
fperms 0750 /usr/sbin/redis-benchmark
|
||||||
|
dosym redis-server /usr/sbin/redis-sentinel
|
||||||
|
|
||||||
|
if use prefix; then
|
||||||
|
diropts -m0750
|
||||||
|
else
|
||||||
|
diropts -m0750 -o redis -g redis
|
||||||
|
fi
|
||||||
|
keepdir /var/{log,lib}/redis
|
||||||
|
}
|
Binary file not shown.
@ -0,0 +1,74 @@
|
|||||||
|
# Copyright 1999-2020 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI="7"
|
||||||
|
|
||||||
|
inherit toolchain-funcs
|
||||||
|
|
||||||
|
MY_P="u-boot-${PV/_/-}"
|
||||||
|
DESCRIPTION="utilities for working with Das U-Boot"
|
||||||
|
HOMEPAGE="https://www.denx.de/wiki/U-Boot/WebHome"
|
||||||
|
SRC_URI="ftp://ftp.denx.de/pub/u-boot/${MY_P}.tar.bz2"
|
||||||
|
|
||||||
|
LICENSE="GPL-2"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
|
||||||
|
IUSE=""
|
||||||
|
|
||||||
|
BDEPEND="
|
||||||
|
sys-devel/bison
|
||||||
|
sys-devel/flex
|
||||||
|
"
|
||||||
|
|
||||||
|
S=${WORKDIR}/${MY_P}
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
default
|
||||||
|
sed -i 's:\bpkg-config\b:${PKG_CONFIG}:g' \
|
||||||
|
scripts/kconfig/lxdialog/check-lxdialog.sh \
|
||||||
|
scripts/kconfig/Makefile \
|
||||||
|
tools/Makefile || die
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
tc-export AR CC PKG_CONFIG
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
# Unset a few KBUILD variables. Bug #540476
|
||||||
|
unset KBUILD_OUTPUT KBUILD_SRC
|
||||||
|
|
||||||
|
emake \
|
||||||
|
V=1 \
|
||||||
|
AR="${AR}" \
|
||||||
|
CC="${CC}" \
|
||||||
|
HOSTCC="${CC}" \
|
||||||
|
HOSTCFLAGS="${CFLAGS} ${CPPFLAGS}"' $(HOSTCPPFLAGS)' \
|
||||||
|
HOSTLDFLAGS="${LDFLAGS}" \
|
||||||
|
tools-only_defconfig
|
||||||
|
|
||||||
|
emake \
|
||||||
|
V=1 \
|
||||||
|
NO_SDL=1 \
|
||||||
|
HOSTSTRIP=: \
|
||||||
|
STRIP=: \
|
||||||
|
AR="${AR}" \
|
||||||
|
CC="${CC}" \
|
||||||
|
HOSTCC="${CC}" \
|
||||||
|
HOSTCFLAGS="${CFLAGS} ${CPPFLAGS}"' $(HOSTCPPFLAGS)' \
|
||||||
|
HOSTLDFLAGS="${LDFLAGS}" \
|
||||||
|
CONFIG_ENV_OVERWRITE=y \
|
||||||
|
tools-all
|
||||||
|
}
|
||||||
|
|
||||||
|
src_test() { :; }
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
cd tools || die
|
||||||
|
dobin bmp_logo dumpimage fdtgrep gen_eth_addr img2srec mkenvimage mkimage
|
||||||
|
dobin env/fw_printenv
|
||||||
|
dosym fw_printenv /usr/bin/fw_setenv
|
||||||
|
insinto /etc
|
||||||
|
doins env/fw_env.config
|
||||||
|
doman "${S}"/doc/mkimage.1
|
||||||
|
}
|
Binary file not shown.
@ -1 +1,15 @@
|
|||||||
|
DIST github.com%2Fkisielk%2Ferrcheck%2F@v%2Fv1.2.0.mod 98 BLAKE2B b9d3c55999054ed927f666a43066ccc6758a6c5f550651f43ad5d85b5403c882ee76ac2b2553803d71789da33c60ea41857ed545003072ab6c666dbb77118e00 SHA512 3529b37d770af511a716a612b7fd7fb6a4805d13166e3a6f9378950443f6eceb2f3d95db5a46027437ce55b36e571c75bba72a03769d21ecdc97888019d80a68
|
||||||
|
DIST github.com%2Fkisielk%2Ferrcheck%2F@v%2Fv1.2.0.zip 21331 BLAKE2B 9e5e52229bde22035a34b7d3883106b3a663daf914560887db12c6c1112b8a94f13c4d0067d1a0958df57f0a4b0c3747ad61005501505c5eb63faa547ae63c96 SHA512 65d0271eede1389084e66c6d1bb547b240aa97747d6b7e74b5edc99cf0453eee10f24d64865b34c29a6a536c138942bb6d070b639d23bc3e78af3a7eca6949a1
|
||||||
DIST go-bindata-1.0.0.tar.gz 17871 BLAKE2B d461d863f099c705dbee5d32b188f1fde369c6e7497dfb8a1434d54f1c7bbf462357956960671f85813ce63fe1a3744578fa7a474362149aa115ac7c36a22fc8 SHA512 e6b46f80e39ad5463d67289fcae102eb7c18e8390daee99e495a94c97ed35df390dbfa6a36e11f43663ce38f05cafafdb5b3dd2896885fab7fd1f33e865d82a4
|
DIST go-bindata-1.0.0.tar.gz 17871 BLAKE2B d461d863f099c705dbee5d32b188f1fde369c6e7497dfb8a1434d54f1c7bbf462357956960671f85813ce63fe1a3744578fa7a474362149aa115ac7c36a22fc8 SHA512 e6b46f80e39ad5463d67289fcae102eb7c18e8390daee99e495a94c97ed35df390dbfa6a36e11f43663ce38f05cafafdb5b3dd2896885fab7fd1f33e865d82a4
|
||||||
|
DIST go-bindata-3.1.3.tar.gz 21280 BLAKE2B cf54b50113006f02eeab47312fcf1eaa1e4b820847ee9c579318a5aac0b720648f73cbf3d2d41e120ea79b65dc3dcfa32accaff16ed4610bcf9a9dd317e9d819 SHA512 870f939cfb07b43c54000d39fa37e8151ca5c20d13eac9bde59e7ec3e2693d8386a1ea4b5372171dac42f8a4f69a754445cb9a4fa51a7a7ba9ec54f3e8a2a2f6
|
||||||
|
DIST golang.org%2Fx%2Fcrypto%2F@v%2Fv0.0.0-20190308221718-c2843e01d9a2.mod 88 BLAKE2B aec7d0eea1278eb3d1568d5bfb4041267501ad14457ebfcbdbc5fe21473170b8616ca4028f52af2edbfd85922cbe04540b4b0df7f69f63197698143cc5557a7a SHA512 2df49895053b36fed7ea905aa73f86568fbafd79ff0a7976679d8c77cf15025129435d9dbfd89367b611b1aadbea4f4bd1835eb4efa9ea702466e443638d379e
|
||||||
|
DIST golang.org%2Fx%2Flint%2F@v%2Fv0.0.0-20191125180803-fdd1cda4f05f.mod 97 BLAKE2B ec2dbdd2dad833a979dc53c8d170b4d0f5d336f4c52f36e3116cba2f3549e42fc3191fa56b81d3b9378a52322b86cf5eb0e947e6002dc1d1bee12f7a6bc2eb36 SHA512 23082eb3c6f3e4330e88178c7511b83a06288b678e517cf8ad5062943d0a0fdcea16973425a8dc01cfeacc32ec05b2dba8edb1adfba2e0bcb2d81cb5060c6085
|
||||||
|
DIST golang.org%2Fx%2Flint%2F@v%2Fv0.0.0-20191125180803-fdd1cda4f05f.zip 45839 BLAKE2B 7fa2da9301cd760ce923164ca73b1e5c528f41421aeab0c9b90915b72ebf70f350766db083800d7f552c9253452dbac8c5dd48f8701dafb206513d46389b5638 SHA512 979b197fbfc92f81d4d376c4fcb0845a9e86a7a9350841d88ae2f3059c5192e2309df2e19edb76ef96e1e33bd957a83f95fe5c439d72731bd05fa29dda589e23
|
||||||
|
DIST golang.org%2Fx%2Fnet%2F@v%2Fv0.0.0-20190620200207-3b0461eec859.mod 181 BLAKE2B 95ef87cbad118eb6bfc963893e37a555067b7fcf70e52cf4261de029eb46b739b12f50530a46fb91ec9119febcf5033176324a55064f589c17b240a23a15bb4a SHA512 2794c616072f01ca3324107aad2ed97e05f6e6c1e9811a1749073376a89c9ce57a910cfdc8dd6bdc2583d133bb53605c7a68917eaa221ec5c1c8319e5dfbb236
|
||||||
|
DIST golang.org%2Fx%2Fsync%2F@v%2Fv0.0.0-20190423024810-112230192c58.mod 25 BLAKE2B 01f7f78a0324ca728efd4d662ea130d7e200ab25805125e472720ca01feaaf2625b15bf53f51837a6913e35e060a19018928a38851d7445f39e6e42e237dfda2 SHA512 a9dd073f69c5be1153aaab6e84dd3bb1610a0df8b9882ca4c486c6625d4b5201e5032f86e5014421358dff564d93c4e67f20e5fd1d21ed5e259ddfbc90af43c0
|
||||||
|
DIST golang.org%2Fx%2Fsys%2F@v%2Fv0.0.0-20190215142949-d0b11bdaac8a.mod 24 BLAKE2B 64a70c4594f5d3c37d962c1ed07630fba8abeaf534242f8f1509af271684499252af9a2320d5bac8e44064dba344b807535e4e9dd085fc0fb47bd9304120601a SHA512 ffe50fccf7f1d200f2ebc805b190e3f10c5a3184458a38f4590e520d7ce115e1520fbabe56651bbdc2e08da4a8db5ac86d0e88728efde3ab26c64ab4e0cd604c
|
||||||
|
DIST golang.org%2Fx%2Ftext%2F@v%2Fv0.3.0.mod 25 BLAKE2B 31009af0fdcd0f8730c9985287e6e364ec4e5183e57e92560dbc80a2010eced51b8a90f01a82b49384268c8a0adbf69d179c205d3f68e0eb459169d2ea9528f0 SHA512 ca081ef7cccd7bbedc6843fbe0c452352661a07e1298cd02ff338ed79d807c6401d613a3cf20011189d2f98a794ffa410547b3e352eb58a6f0a84822285d391d
|
||||||
|
DIST golang.org%2Fx%2Ftools%2F@v%2Fv0.0.0-20181030221726-6c7e314b6563.mod 26 BLAKE2B 2a44c2cc034af3473d9a1d4e1c23b0f4542333853bfc0ecbfcf9eacacbb3593b449fcfc94d23f49ccc16e5a844bc72a3462a3e08a5c26194106a64d1f2732e0a SHA512 3c166b18c0ce47a47e95da9eeede63879a92b0205bd4589d554f7bae89699be0efa83e1f5bba8e50f47714ea23e759b07f4543fe06301995d39373da2db16fc0
|
||||||
|
DIST golang.org%2Fx%2Ftools%2F@v%2Fv0.0.0-20191125144606-a911d9008d1f.mod 212 BLAKE2B ab1d99a25eed3af5426d8a58d249b827e4d30a046302df72c7e0b59955e65b636f4645c5c436bb21ec54ec3745b9996bce92d29826ad93cbc9120a06dc19b49a SHA512 6a0316ac3b01aba3f186b5db540a368ab780a821252f7f0975f9e44afea9170c4b3e7027dc5f79a54ebc6af290cbb59b876d3b53bbf26fd05fc3a80a06fae109
|
||||||
|
DIST golang.org%2Fx%2Ftools%2F@v%2Fv0.0.0-20191125144606-a911d9008d1f.zip 2908295 BLAKE2B 2dd707c5fcea8b16c24aa85c6ed98c0cdd26440a04a3f4c61d55e315f1959e133af3644dd7b0480c007367806e56b64e2a80f0680551d77c57b84f8a810725e8 SHA512 4f1931e839f7ccbdefde629b5ace77a463104179b58818963eebe42548185b5c8597c0632735ec25a6d0eccf85d8294eabcededcfda12b29bd21c4fc7e84aad5
|
||||||
|
DIST golang.org%2Fx%2Fxerrors%2F@v%2Fv0.0.0-20190717185122-a985d3407aa7.mod 37 BLAKE2B 7449be81e1998a6439070de1a0ddf5bfd1e4971c90c2e358590a9c1c41128bfc1daa42a9bbc3709506df2442ec8420e6354343a095c837be46335c180083f28a SHA512 659d18a7a3a1be45ff6dc9e7475276b82ee7f11c47d39b0c237d7f872836a1dbdfff0902f21d6cd8093663997865da92e3e5a4acf1ad6129f972dc5e667b4f05
|
||||||
|
@ -0,0 +1,42 @@
|
|||||||
|
# Copyright 1999-2019 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
inherit go-module
|
||||||
|
|
||||||
|
|
||||||
|
DESCRIPTION="A small utility which generates Go code from any file"
|
||||||
|
HOMEPAGE="https://github.com/go-bindata/go-bindata"
|
||||||
|
|
||||||
|
EGO_SUM=(
|
||||||
|
"github.com/kisielk/errcheck v1.2.0"
|
||||||
|
"github.com/kisielk/errcheck v1.2.0/go.mod"
|
||||||
|
"golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod"
|
||||||
|
"golang.org/x/lint v0.0.0-20191125180803-fdd1cda4f05f"
|
||||||
|
"golang.org/x/lint v0.0.0-20191125180803-fdd1cda4f05f/go.mod"
|
||||||
|
"golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod"
|
||||||
|
"golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod"
|
||||||
|
"golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod"
|
||||||
|
"golang.org/x/text v0.3.0/go.mod"
|
||||||
|
"golang.org/x/tools v0.0.0-20181030221726-6c7e314b6563/go.mod"
|
||||||
|
"golang.org/x/tools v0.0.0-20191125144606-a911d9008d1f"
|
||||||
|
"golang.org/x/tools v0.0.0-20191125144606-a911d9008d1f/go.mod"
|
||||||
|
"golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod"
|
||||||
|
)
|
||||||
|
go-module_set_globals
|
||||||
|
SRC_URI="https://github.com/go-bindata/go-bindata/archive/v${PV}.tar.gz -> ${P}.tar.gz
|
||||||
|
${EGO_SUM_SRC_URI}"
|
||||||
|
|
||||||
|
LICENSE="CC-PD"
|
||||||
|
SLOT="0/${PVR}"
|
||||||
|
KEYWORDS="~amd64 ~arm ~arm64"
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
GOBIN=${S}/bin \
|
||||||
|
go install ./go-bindata/ || die
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
dobin bin/*
|
||||||
|
dodoc CONTRIBUTING.md README.md
|
||||||
|
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue