parent
c30f8c6c93
commit
de303c7823
Binary file not shown.
Binary file not shown.
@ -1,8 +1,5 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||||
<pkgmetadata>
|
<pkgmetadata>
|
||||||
<maintainer type="person">
|
<!-- maintainer-needed -->
|
||||||
<email>marecki@gentoo.org</email>
|
|
||||||
<name>Marek Szuba</name>
|
|
||||||
</maintainer>
|
|
||||||
</pkgmetadata>
|
</pkgmetadata>
|
||||||
|
Binary file not shown.
@ -1,8 +1,5 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||||
<pkgmetadata>
|
<pkgmetadata>
|
||||||
<maintainer type="person">
|
<!-- maintainer-needed -->
|
||||||
<email>marecki@gentoo.org</email>
|
|
||||||
<name>Marek Szuba</name>
|
|
||||||
</maintainer>
|
|
||||||
</pkgmetadata>
|
</pkgmetadata>
|
||||||
|
Binary file not shown.
@ -1,2 +1,2 @@
|
|||||||
DIST Rex-1.12.1.tar.gz 339065 BLAKE2B fd026e66a4e1cf6d4c8b15f7fcba0525a3e98346464170f27d5ef7bb54f1decd7450d87d9f23bee8378df4647eacf512c06a8d051bb76021cbcae472e2c2012d SHA512 774452511d97106bb6586324ff4e8642b05be628c80f3adbba7fd82558c82236878e969512bab398e26a1a7a271a7614108761bd0fb888a2122167806796bad1
|
DIST Rex-1.13.0.tar.gz 344412 BLAKE2B 220e3dff378bdf5c607f2be94952a68f4c3e72ab362518566e16be55a837cef64f12af8f487e1f26bec04e3b5b4781d1d8eecc6aa347a666c2eb616595371919 SHA512 9e717decbe27a630e83c8194418783cb38c63fedb7f8c4a437395ebc3db21a45cc2057bcb6b2bc689255ab8f579908ad7158031e3a019886634fae3f6e6fb511
|
||||||
DIST Rex-1.12.2.tar.gz 343716 BLAKE2B bb546298305e2e210ea67a21c948f364d3c0ee5947c8d716606fc81cfd07c4b1eea9e6ce8fd3fd49a0cffd33a964e0d328f60d570fa18fa3452b334a7882b279 SHA512 867942eec63ba71b591b93d6c0af794605f86571ef6d1be473989314cb7fc7d4e8d906ef25e30ea56beeaefe953c884661d9b769452587a3d4892de10163b6c7
|
DIST Rex-1.13.1.tar.gz 347483 BLAKE2B bab66dffa3e0c0ae6b54bb8a76adfff0858797370389d5329169e5a7a2e6091a5d866feae14c5764b9d87bf920ff9ee5951cc69be4311c9c362e49f58f24659f SHA512 d68bf98e83a04a28d904db683e3cc0984f019ffc6be589f261b4bc44300b753c03e751b87936d9d831bf6456bdcff916cc2a84c0a1a6c11e20c47bf2533575fc
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
DIST syslog-ng-3.22.1.tar.gz 4981746 BLAKE2B e4f7e47f1939fb07d204c4721ff558a606cf6c6ee072278ff7c9bc1db7406e6abf058ac8a96bd4df0b867272bdbc5401528d47c94e60d90ff5ebb1aaec49e223 SHA512 4f68c0b58c6b3df9a870fa0b627525b9599149374e805a665c5143be54f814a564a80cbe76c7d5aab093b58825a96411b13cd2ce0f1439298723bd008096807f
|
|
||||||
DIST syslog-ng-3.24.1.tar.gz 4909513 BLAKE2B 4b8d05899f9767784b6d24008d55808bee0af4a29883b2cb67031d23f4937632ba00f2ed7a9e969984ebec2785243a9e60811c4c2ccb3c6188c66a71af004f36 SHA512 b5326193e20db16763d3e187292bf683ebb77032b800a6e54a4ce2dd3864dda48b3d0ffc4d442eff0261117ac7a76d7927f4c8d0d96fc59ce29b46da6bd052d5
|
|
||||||
DIST syslog-ng-3.25.1.tar.gz 4938596 BLAKE2B bfcbd19b5a06c7ea15899bb919564661043bc7ab87bed147f77ab1aed153d70522aba9a42ab7dfa66d3b52a5f8432954b8a00594f428ddeb202979c5b9260da3 SHA512 79e09f1ba11080179c572016ce27328a28d479e68e663d39fb16624c03dc37d8439020ede922f78680e31e21629a6c13a4671464a31213c1dcf6acd2c5cd4b13
|
|
||||||
DIST syslog-ng-3.26.1.tar.gz 5040993 BLAKE2B 235971547c8febe61191014d971b9e5d71560f51ebc3a74fbae1c95b86653f1de8d0b99788f5b00cc75926dc67e7a80f650e9d2d12f191a4400c5b8edbbd01b7 SHA512 2cf6a8bd70addec3bef0888539f4a4686c30655698835d0c211ea929a0cae91a6f3dc9903f29fe717fd9d48b5cdc9918796f196ca84af6f5733bedff09ffab5a
|
DIST syslog-ng-3.26.1.tar.gz 5040993 BLAKE2B 235971547c8febe61191014d971b9e5d71560f51ebc3a74fbae1c95b86653f1de8d0b99788f5b00cc75926dc67e7a80f650e9d2d12f191a4400c5b8edbbd01b7 SHA512 2cf6a8bd70addec3bef0888539f4a4686c30655698835d0c211ea929a0cae91a6f3dc9903f29fe717fd9d48b5cdc9918796f196ca84af6f5733bedff09ffab5a
|
||||||
DIST syslog-ng-3.28.1.tar.gz 5149671 BLAKE2B bfc33f2a595cb4fbcc5a69b60d283673922873434b21ca8ce9685a0f54b355f162b11242704419349a561f412573c84df30a49a4dc0cc95699e98720e3e65247 SHA512 d70b435a6c9d1d0d22ecebc051dc294b6e7f841159edabf229c772c40342a28014ea1599b2277f0514236f545bac63c9879988fd85d634e9ab4fe4f079c984cb
|
DIST syslog-ng-3.28.1.tar.gz 5149671 BLAKE2B bfc33f2a595cb4fbcc5a69b60d283673922873434b21ca8ce9685a0f54b355f162b11242704419349a561f412573c84df30a49a4dc0cc95699e98720e3e65247 SHA512 d70b435a6c9d1d0d22ecebc051dc294b6e7f841159edabf229c772c40342a28014ea1599b2277f0514236f545bac63c9879988fd85d634e9ab4fe4f079c984cb
|
||||||
|
DIST syslog-ng-3.29.1.tar.gz 5111614 BLAKE2B 1dba62290d6354d0cda7d43783327a19f69e05963c6d2e75f42c61c30984d49d28f1c6474e68ccdd806f38022bf6799e69e12f2444da391b2bccb736ca597c72 SHA512 c8ec6527cab9e46effe23aaa1306b5bde1e13c3e62a092a62af630a744cc41e81d861e6e2ebfbaad8a9199d3b75ba4ac5fb4b4215d03f80a41f57a2e7a074a49
|
||||||
|
@ -1,171 +0,0 @@
|
|||||||
# Copyright 1999-2020 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=7
|
|
||||||
|
|
||||||
PYTHON_COMPAT=( python3_{6,7} )
|
|
||||||
inherit autotools python-single-r1 systemd
|
|
||||||
|
|
||||||
MY_PV_MM=$(ver_cut 1-2)
|
|
||||||
DESCRIPTION="syslog replacement with advanced filtering features"
|
|
||||||
HOMEPAGE="https://syslog-ng.com/open-source-log-management"
|
|
||||||
SRC_URI="https://github.com/balabit/syslog-ng/releases/download/${P}/${P}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="GPL-2+ LGPL-2.1+"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 ~riscv ~s390 sparc x86"
|
|
||||||
IUSE="amqp caps dbi geoip geoip2 http ipv6 json kafka libressl mongodb pacct python redis smtp snmp spoof-source systemd tcpd"
|
|
||||||
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
|
|
||||||
# unit tests require https://github.com/Snaipe/Criterion with additional deps
|
|
||||||
RESTRICT="test"
|
|
||||||
|
|
||||||
RDEPEND="
|
|
||||||
>=dev-libs/glib-2.10.1:2
|
|
||||||
>=dev-libs/ivykis-0.42.4
|
|
||||||
>=dev-libs/libpcre-6.1:=
|
|
||||||
!dev-libs/eventlog
|
|
||||||
amqp? ( >=net-libs/rabbitmq-c-0.8.0:=[ssl] )
|
|
||||||
caps? ( sys-libs/libcap )
|
|
||||||
dbi? ( >=dev-db/libdbi-0.9.0 )
|
|
||||||
geoip? ( >=dev-libs/geoip-1.5.0 )
|
|
||||||
geoip2? ( dev-libs/libmaxminddb:= )
|
|
||||||
http? ( net-misc/curl )
|
|
||||||
json? ( >=dev-libs/json-c-0.9:= )
|
|
||||||
kafka? ( >=dev-libs/librdkafka-1.0.0:= )
|
|
||||||
mongodb? ( >=dev-libs/mongo-c-driver-1.2.0 )
|
|
||||||
python? ( ${PYTHON_DEPS} )
|
|
||||||
redis? ( >=dev-libs/hiredis-0.11.0:= )
|
|
||||||
smtp? ( net-libs/libesmtp )
|
|
||||||
snmp? ( net-analyzer/net-snmp )
|
|
||||||
spoof-source? ( net-libs/libnet:1.1= )
|
|
||||||
systemd? ( sys-apps/systemd:= )
|
|
||||||
tcpd? ( >=sys-apps/tcp-wrappers-7.6 )
|
|
||||||
!libressl? ( dev-libs/openssl:0= )
|
|
||||||
libressl? ( dev-libs/libressl:0= )"
|
|
||||||
DEPEND="${RDEPEND}"
|
|
||||||
BDEPEND="
|
|
||||||
sys-devel/flex
|
|
||||||
virtual/pkgconfig"
|
|
||||||
|
|
||||||
DOCS=( AUTHORS NEWS.md CONTRIBUTING.md contrib/syslog-ng.conf.{HP-UX,RedHat,SunOS,doc}
|
|
||||||
contrib/syslog2ng "${T}/syslog-ng.conf.gentoo.hardened"
|
|
||||||
"${T}/syslog-ng.logrotate.hardened" "${FILESDIR}/README.hardened" )
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
use python && python-single-r1_pkg_setup
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
local f
|
|
||||||
|
|
||||||
use python && python_fix_shebang .
|
|
||||||
|
|
||||||
# remove bundled libs
|
|
||||||
rm -r lib/ivykis || die
|
|
||||||
|
|
||||||
# drop scl modules requiring json
|
|
||||||
if use !json; then
|
|
||||||
sed -i -r '/cim|elasticsearch|ewmm|graylog2|loggly|logmatic|netskope|nodejs|osquery|slack/d' scl/Makefile.am || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
# drop scl modules requiring http
|
|
||||||
if use !http; then
|
|
||||||
sed -i -r '/slack|telegram/d' scl/Makefile.am || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
# use gentoo default path
|
|
||||||
if use systemd; then
|
|
||||||
sed -e 's@/etc/syslog-ng.conf@/etc/syslog-ng/syslog-ng.conf@g;s@/var/run@/run@g' \
|
|
||||||
-i contrib/systemd/syslog-ng@default || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
for f in syslog-ng.logrotate.hardened.in syslog-ng.logrotate.in; do
|
|
||||||
sed \
|
|
||||||
-e "s#@GENTOO_RESTART@#$(usex systemd "systemctl kill -s HUP syslog-ng@default" \
|
|
||||||
"/etc/init.d/syslog-ng reload")#g" \
|
|
||||||
"${FILESDIR}/${f}" > "${T}/${f/.in/}" || die
|
|
||||||
done
|
|
||||||
|
|
||||||
for f in syslog-ng.conf.gentoo.hardened.in \
|
|
||||||
syslog-ng.conf.gentoo.in; do
|
|
||||||
sed -e "s/@SYSLOGNG_VERSION@/${MY_PV_MM}/g" "${FILESDIR}/${f}" > "${T}/${f/.in/}" || die
|
|
||||||
done
|
|
||||||
|
|
||||||
default
|
|
||||||
eautoreconf
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
local myconf=(
|
|
||||||
--disable-docs
|
|
||||||
--disable-java
|
|
||||||
--disable-java-modules
|
|
||||||
--disable-riemann
|
|
||||||
--enable-manpages
|
|
||||||
--localstatedir=/var/lib/syslog-ng
|
|
||||||
--sysconfdir=/etc/syslog-ng
|
|
||||||
--with-embedded-crypto
|
|
||||||
--with-ivykis=system
|
|
||||||
--with-module-dir=/usr/$(get_libdir)/syslog-ng
|
|
||||||
--with-pidfile-dir=/var/run
|
|
||||||
--with-systemdsystemunitdir="$(systemd_get_systemunitdir)"
|
|
||||||
$(use_enable amqp)
|
|
||||||
$(usex amqp --with-librabbitmq-client=system --without-librabbitmq-client)
|
|
||||||
$(use_enable caps linux-caps)
|
|
||||||
$(use_enable dbi sql)
|
|
||||||
$(use_enable geoip)
|
|
||||||
$(use_enable geoip2)
|
|
||||||
$(use_enable http)
|
|
||||||
$(use_enable ipv6)
|
|
||||||
$(use_enable json)
|
|
||||||
$(use_enable kafka)
|
|
||||||
$(use_enable mongodb)
|
|
||||||
$(usex mongodb --with-mongoc=system "--without-mongoc --disable-legacy-mongodb-options")
|
|
||||||
$(use_enable pacct)
|
|
||||||
$(use_enable python)
|
|
||||||
$(use_enable redis)
|
|
||||||
$(use_enable smtp)
|
|
||||||
$(use_enable snmp snmp-dest)
|
|
||||||
$(use_enable spoof-source)
|
|
||||||
$(use_enable systemd)
|
|
||||||
$(use_enable tcpd tcp-wrapper)
|
|
||||||
)
|
|
||||||
|
|
||||||
econf "${myconf[@]}"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
default
|
|
||||||
|
|
||||||
# Install default configuration
|
|
||||||
insinto /etc/default
|
|
||||||
doins contrib/systemd/syslog-ng@default
|
|
||||||
|
|
||||||
insinto /etc/syslog-ng
|
|
||||||
newins "${T}/syslog-ng.conf.gentoo" syslog-ng.conf
|
|
||||||
|
|
||||||
insinto /etc/logrotate.d
|
|
||||||
newins "${T}/syslog-ng.logrotate" syslog-ng
|
|
||||||
|
|
||||||
newinitd "${FILESDIR}/syslog-ng.rc" syslog-ng
|
|
||||||
newconfd "${FILESDIR}/syslog-ng.confd" syslog-ng
|
|
||||||
keepdir /etc/syslog-ng/patterndb.d /var/lib/syslog-ng
|
|
||||||
find "${D}" -name '*.la' -delete || die
|
|
||||||
|
|
||||||
use python && python_optimize
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
# bug #355257
|
|
||||||
if ! has_version app-admin/logrotate ; then
|
|
||||||
elog "It is highly recommended that app-admin/logrotate be emerged to"
|
|
||||||
elog "manage the log files. ${PN} installs a file in /etc/logrotate.d"
|
|
||||||
elog "for logrotate to use."
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use systemd; then
|
|
||||||
ewarn "The service file for systemd has changed to support multiple instances."
|
|
||||||
ewarn "To start the default instance issue:"
|
|
||||||
ewarn "# systemctl start syslog-ng@default"
|
|
||||||
fi
|
|
||||||
}
|
|
@ -1,169 +0,0 @@
|
|||||||
# 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 autotools python-single-r1 systemd
|
|
||||||
|
|
||||||
MY_PV_MM=$(ver_cut 1-2)
|
|
||||||
DESCRIPTION="syslog replacement with advanced filtering features"
|
|
||||||
HOMEPAGE="https://syslog-ng.com/open-source-log-management"
|
|
||||||
SRC_URI="https://github.com/balabit/syslog-ng/releases/download/${P}/${P}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="GPL-2+ LGPL-2.1+"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
|
|
||||||
IUSE="amqp caps dbi geoip2 http ipv6 json kafka libressl mongodb pacct python redis smtp snmp spoof-source systemd tcpd"
|
|
||||||
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
|
|
||||||
# unit tests require https://github.com/Snaipe/Criterion with additional deps
|
|
||||||
RESTRICT="test"
|
|
||||||
|
|
||||||
RDEPEND="
|
|
||||||
>=dev-libs/glib-2.10.1:2
|
|
||||||
>=dev-libs/ivykis-0.42.4
|
|
||||||
>=dev-libs/libpcre-6.1:=
|
|
||||||
!dev-libs/eventlog
|
|
||||||
amqp? ( >=net-libs/rabbitmq-c-0.8.0:=[ssl] )
|
|
||||||
caps? ( sys-libs/libcap )
|
|
||||||
dbi? ( >=dev-db/libdbi-0.9.0 )
|
|
||||||
geoip2? ( dev-libs/libmaxminddb:= )
|
|
||||||
http? ( net-misc/curl )
|
|
||||||
json? ( >=dev-libs/json-c-0.9:= )
|
|
||||||
kafka? ( >=dev-libs/librdkafka-1.0.0:= )
|
|
||||||
mongodb? ( >=dev-libs/mongo-c-driver-1.2.0 )
|
|
||||||
python? ( ${PYTHON_DEPS} )
|
|
||||||
redis? ( >=dev-libs/hiredis-0.11.0:= )
|
|
||||||
smtp? ( net-libs/libesmtp )
|
|
||||||
snmp? ( net-analyzer/net-snmp )
|
|
||||||
spoof-source? ( net-libs/libnet:1.1= )
|
|
||||||
systemd? ( sys-apps/systemd:= )
|
|
||||||
tcpd? ( >=sys-apps/tcp-wrappers-7.6 )
|
|
||||||
!libressl? ( dev-libs/openssl:0= )
|
|
||||||
libressl? ( dev-libs/libressl:0= )"
|
|
||||||
DEPEND="${RDEPEND}"
|
|
||||||
BDEPEND="
|
|
||||||
sys-devel/flex
|
|
||||||
virtual/pkgconfig"
|
|
||||||
|
|
||||||
DOCS=( AUTHORS NEWS.md CONTRIBUTING.md contrib/syslog-ng.conf.{HP-UX,RedHat,SunOS,doc}
|
|
||||||
contrib/syslog2ng "${T}/syslog-ng.conf.gentoo.hardened"
|
|
||||||
"${T}/syslog-ng.logrotate.hardened" "${FILESDIR}/README.hardened" )
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
use python && python-single-r1_pkg_setup
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
local f
|
|
||||||
|
|
||||||
use python && python_fix_shebang .
|
|
||||||
|
|
||||||
# remove bundled libs
|
|
||||||
rm -r lib/ivykis || die
|
|
||||||
|
|
||||||
# drop scl modules requiring json
|
|
||||||
if use !json; then
|
|
||||||
sed -i -r '/cim|elasticsearch|ewmm|graylog2|loggly|logmatic|netskope|nodejs|osquery|slack/d' scl/Makefile.am || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
# drop scl modules requiring http
|
|
||||||
if use !http; then
|
|
||||||
sed -i -r '/slack|telegram/d' scl/Makefile.am || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
# use gentoo default path
|
|
||||||
if use systemd; then
|
|
||||||
sed -e 's@/etc/syslog-ng.conf@/etc/syslog-ng/syslog-ng.conf@g;s@/var/run@/run@g' \
|
|
||||||
-i contrib/systemd/syslog-ng@default || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
for f in syslog-ng.logrotate.hardened.in syslog-ng.logrotate.in; do
|
|
||||||
sed \
|
|
||||||
-e "s#@GENTOO_RESTART@#$(usex systemd "systemctl kill -s HUP syslog-ng@default" \
|
|
||||||
"/etc/init.d/syslog-ng reload")#g" \
|
|
||||||
"${FILESDIR}/${f}" > "${T}/${f/.in/}" || die
|
|
||||||
done
|
|
||||||
|
|
||||||
for f in syslog-ng.conf.gentoo.hardened.in \
|
|
||||||
syslog-ng.conf.gentoo.in; do
|
|
||||||
sed -e "s/@SYSLOGNG_VERSION@/${MY_PV_MM}/g" "${FILESDIR}/${f}" > "${T}/${f/.in/}" || die
|
|
||||||
done
|
|
||||||
|
|
||||||
default
|
|
||||||
eautoreconf
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
local myconf=(
|
|
||||||
--disable-docs
|
|
||||||
--disable-java
|
|
||||||
--disable-java-modules
|
|
||||||
--disable-riemann
|
|
||||||
--enable-manpages
|
|
||||||
--localstatedir=/var/lib/syslog-ng
|
|
||||||
--sysconfdir=/etc/syslog-ng
|
|
||||||
--with-embedded-crypto
|
|
||||||
--with-ivykis=system
|
|
||||||
--with-module-dir=/usr/$(get_libdir)/syslog-ng
|
|
||||||
--with-pidfile-dir=/var/run
|
|
||||||
--with-systemdsystemunitdir="$(systemd_get_systemunitdir)"
|
|
||||||
$(use_enable amqp)
|
|
||||||
$(usex amqp --with-librabbitmq-client=system --without-librabbitmq-client)
|
|
||||||
$(use_enable caps linux-caps)
|
|
||||||
$(use_enable dbi sql)
|
|
||||||
$(use_enable geoip2)
|
|
||||||
$(use_enable http)
|
|
||||||
$(use_enable ipv6)
|
|
||||||
$(use_enable json)
|
|
||||||
$(use_enable kafka)
|
|
||||||
$(use_enable mongodb)
|
|
||||||
$(usex mongodb --with-mongoc=system "--without-mongoc --disable-legacy-mongodb-options")
|
|
||||||
$(use_enable pacct)
|
|
||||||
$(use_enable python)
|
|
||||||
$(use_enable redis)
|
|
||||||
$(use_enable smtp)
|
|
||||||
$(use_enable snmp snmp-dest)
|
|
||||||
$(use_enable spoof-source)
|
|
||||||
$(use_enable systemd)
|
|
||||||
$(use_enable tcpd tcp-wrapper)
|
|
||||||
)
|
|
||||||
|
|
||||||
econf "${myconf[@]}"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
default
|
|
||||||
|
|
||||||
# Install default configuration
|
|
||||||
insinto /etc/default
|
|
||||||
doins contrib/systemd/syslog-ng@default
|
|
||||||
|
|
||||||
insinto /etc/syslog-ng
|
|
||||||
newins "${T}/syslog-ng.conf.gentoo" syslog-ng.conf
|
|
||||||
|
|
||||||
insinto /etc/logrotate.d
|
|
||||||
newins "${T}/syslog-ng.logrotate" syslog-ng
|
|
||||||
|
|
||||||
newinitd "${FILESDIR}/syslog-ng.rc" syslog-ng
|
|
||||||
newconfd "${FILESDIR}/syslog-ng.confd" syslog-ng
|
|
||||||
keepdir /etc/syslog-ng/patterndb.d /var/lib/syslog-ng
|
|
||||||
find "${D}" -name '*.la' -delete || die
|
|
||||||
|
|
||||||
use python && python_optimize
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
# bug #355257
|
|
||||||
if ! has_version app-admin/logrotate ; then
|
|
||||||
elog "It is highly recommended that app-admin/logrotate be emerged to"
|
|
||||||
elog "manage the log files. ${PN} installs a file in /etc/logrotate.d"
|
|
||||||
elog "for logrotate to use."
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use systemd; then
|
|
||||||
ewarn "The service file for systemd has changed to support multiple instances."
|
|
||||||
ewarn "To start the default instance issue:"
|
|
||||||
ewarn "# systemctl start syslog-ng@default"
|
|
||||||
fi
|
|
||||||
}
|
|
@ -0,0 +1,87 @@
|
|||||||
|
# Copyright 1999-2020 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
inherit eutils flag-o-matic systemd toolchain-funcs
|
||||||
|
|
||||||
|
DESCRIPTION="System performance tools for Linux"
|
||||||
|
HOMEPAGE="http://pagesperso-orange.fr/sebastien.godard/"
|
||||||
|
SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="GPL-2"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS=""
|
||||||
|
IUSE="dcron debug nls lm-sensors selinux static systemd"
|
||||||
|
|
||||||
|
CDEPEND="
|
||||||
|
nls? ( virtual/libintl )
|
||||||
|
lm-sensors? ( sys-apps/lm-sensors:= )
|
||||||
|
"
|
||||||
|
DEPEND="
|
||||||
|
${CDEPEND}
|
||||||
|
nls? ( sys-devel/gettext )
|
||||||
|
"
|
||||||
|
RDEPEND="
|
||||||
|
${CDEPEND}
|
||||||
|
!dcron? ( !sys-process/dcron )
|
||||||
|
selinux? ( sec-policy/selinux-sysstat )
|
||||||
|
"
|
||||||
|
PATCHES=(
|
||||||
|
"${FILESDIR}"/${PN}-11.7.3-flags.patch
|
||||||
|
)
|
||||||
|
|
||||||
|
REQUIRED_USE="dcron? ( !systemd )"
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
if use nls; then
|
||||||
|
strip-linguas -i nls/
|
||||||
|
local lingua pofile
|
||||||
|
for pofile in nls/*.po; do
|
||||||
|
lingua=${pofile/nls\/}
|
||||||
|
lingua=${lingua/.po}
|
||||||
|
if ! has ${lingua} ${LINGUAS}; then
|
||||||
|
rm "nls/${lingua}.po" || die
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
|
||||||
|
use dcron && { sed -i 's/@CRON_OWNER@ //g' cron/sysstat.crond.in || die ; }
|
||||||
|
default
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
tc-export AR
|
||||||
|
use static && append-ldflags -static
|
||||||
|
|
||||||
|
# --enable-compress-manpg <= Yes, that is inverted.
|
||||||
|
sa_lib_dir=/usr/lib/sa \
|
||||||
|
conf_dir=/etc \
|
||||||
|
econf \
|
||||||
|
$(use_enable !systemd use-crond) \
|
||||||
|
$(use_enable lm-sensors sensors) \
|
||||||
|
$(use_enable nls) \
|
||||||
|
$(usex debug --enable-debuginfo '') \
|
||||||
|
--enable-compress-manpg \
|
||||||
|
--enable-copy-only \
|
||||||
|
--enable-documentation \
|
||||||
|
--enable-install-cron \
|
||||||
|
--with-systemdsystemunitdir=$(systemd_get_systemunitdir)
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
keepdir /var/log/sa
|
||||||
|
|
||||||
|
emake \
|
||||||
|
CHOWN=true \
|
||||||
|
DESTDIR="${D}" \
|
||||||
|
DOC_DIR=/usr/share/doc/${PF} \
|
||||||
|
MANGRPARG='' \
|
||||||
|
install
|
||||||
|
|
||||||
|
dodoc -r contrib/
|
||||||
|
|
||||||
|
newinitd "${FILESDIR}"/${PN}.init.d ${PN}
|
||||||
|
systemd_dounit ${PN}.service
|
||||||
|
|
||||||
|
rm "${D}"/usr/share/doc/${PF}/COPYING || die
|
||||||
|
}
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,35 +0,0 @@
|
|||||||
--- usr/sbin/xe-linux-distribution.orig 2011-04-18 10:56:30.000000000 -0500
|
|
||||||
+++ usr/sbin/xe-linux-distribution 2013-12-31 01:35:51.995831278 -0600
|
|
||||||
@@ -249,6 +249,24 @@
|
|
||||||
write_to_output "${distro}" "${major}" "${minor}" "${description}"
|
|
||||||
}
|
|
||||||
|
|
||||||
+identify_gentoo()
|
|
||||||
+{
|
|
||||||
+ gentoo_release="$1"
|
|
||||||
+ if [ ! -e "${gentoo_release}" ] ; then
|
|
||||||
+ return 1
|
|
||||||
+ fi
|
|
||||||
+ distro="gentoo"
|
|
||||||
+ eval $(cat ${gentoo_release} | awk '{ print "release=" $5 }' )
|
|
||||||
+ if [ -z "${release}" ] ; then
|
|
||||||
+ return 1
|
|
||||||
+ fi
|
|
||||||
+ eval $(echo $release | awk -F. -- '{ print "major=" $1 ; print "minor=" $2 }' )
|
|
||||||
+ if [ -z "${major}" -o -z "$minor" ] ; then
|
|
||||||
+ return 1
|
|
||||||
+ fi
|
|
||||||
+ write_to_output "${distro}" "${major}" "${minor}" "${distro}"
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
if [ $# -eq 1 ] ; then
|
|
||||||
exec 1>"$1"
|
|
||||||
fi
|
|
||||||
@@ -258,6 +276,7 @@
|
|
||||||
identify_sles /etc/SuSE-release && exit 0
|
|
||||||
identify_lsb lsb_release && exit 0
|
|
||||||
identify_debian /etc/debian_version && exit 0
|
|
||||||
+ identify_gentoo /etc/gentoo-release && exit 0
|
|
||||||
|
|
||||||
if [ $# -eq 1 ] ; then
|
|
||||||
rm -f "$1"
|
|
@ -1,11 +0,0 @@
|
|||||||
--- usr/sbin/xe-update-guest-attrs.orig 2011-04-18 10:56:30.000000000 -0500
|
|
||||||
+++ usr/sbin/xe-update-guest-attrs 2013-12-31 04:34:57.750083257 -0600
|
|
||||||
@@ -172,7 +172,7 @@
|
|
||||||
# collisions:0 txqueuelen:0
|
|
||||||
# RX bytes:3604609 (3.4 MiB) TX bytes:3604609 (3.4 MiB)
|
|
||||||
|
|
||||||
-eval $(/sbin/ifconfig | \
|
|
||||||
+eval $(/bin/ifconfig | \
|
|
||||||
sed -n -e '/^[0-9a-z][0-9a-z]*\:/,/^$/d' \
|
|
||||||
-e 's/^\([0-9a-z][0-9a-z]*\) .*/ifs="\$ifs \1"; current="\1"; /gp;' \
|
|
||||||
-e 's/ *inet addr:\('$IPADDR_RE'\) .*/eval inet_\${current}="\1"; /gp;')
|
|
@ -0,0 +1,512 @@
|
|||||||
|
# Copyright 1999-2020 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
|
||||||
|
PYTHON_COMPAT=( python3_{6..9} )
|
||||||
|
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=0
|
||||||
|
SECURITY_VER=29
|
||||||
|
# xen-tools's gentoo patches tarball
|
||||||
|
GENTOO_VER=21
|
||||||
|
# xen-tools's gentoo patches version which apply to this specific ebuild
|
||||||
|
GENTOO_GPV=1
|
||||||
|
# xen-tools ovmf's patches
|
||||||
|
OVMF_VER=
|
||||||
|
|
||||||
|
SEABIOS_VER="1.12.1"
|
||||||
|
EDK2_COMMIT="06dc822d045c2bb42e497487935485302486e151"
|
||||||
|
EDK2_OPENSSL_VERSION="1_1_1g"
|
||||||
|
EDK2_SOFTFLOAT_COMMIT="b64af41c3276f97f0e181920400ee056b9c88037"
|
||||||
|
EDK2_BROTLI_COMMIT="666c3280cc11dc433c303d79a83d4ffbdd12cc8d"
|
||||||
|
IPXE_COMMIT="1dd56dbd11082fb622c2ed21cfaced4f47d798a6"
|
||||||
|
|
||||||
|
[[ -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
|
||||||
|
https://github.com/hydrapolic/gentoo-dist/raw/master/xen/${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://github.com/qemu/seabios/archive/rel-${SEABIOS_VER}.tar.gz -> 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
|
||||||
|
https://github.com/openssl/openssl/archive/OpenSSL_${EDK2_OPENSSL_VERSION}.tar.gz
|
||||||
|
https://github.com/ucb-bar/berkeley-softfloat-3/archive/${EDK2_SOFTFLOAT_COMMIT}.tar.gz -> berkeley-softfloat-${EDK2_SOFTFLOAT_COMMIT}.tar.gz
|
||||||
|
https://github.com/google/brotli/archive/${EDK2_BROTLI_COMMIT}.tar.gz -> brotli-${EDK2_BROTLI_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-4.0.0 )"
|
||||||
|
|
||||||
|
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/elf2dmp
|
||||||
|
usr/libexec/xen/bin/ivshmem-client
|
||||||
|
usr/libexec/xen/bin/ivshmem-server
|
||||||
|
usr/libexec/xen/bin/qemu-edid
|
||||||
|
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-rel-${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
|
||||||
|
rm -r tools/firmware/ovmf-dir-remote/CryptoPkg/Library/OpensslLib/openssl || die
|
||||||
|
rm -r tools/firmware/ovmf-dir-remote/ArmPkg/Library/ArmSoftFloatLib/berkeley-softfloat-3 || die
|
||||||
|
rm -r tools/firmware/ovmf-dir-remote/BaseTools/Source/C/BrotliCompress/brotli || die
|
||||||
|
rm -r tools/firmware/ovmf-dir-remote/MdeModulePkg/Library/BrotliCustomDecompressLib/brotli || die
|
||||||
|
mv ../openssl-OpenSSL_${EDK2_OPENSSL_VERSION} tools/firmware/ovmf-dir-remote/CryptoPkg/Library/OpensslLib/openssl || die
|
||||||
|
mv ../berkeley-softfloat-3-${EDK2_SOFTFLOAT_COMMIT} tools/firmware/ovmf-dir-remote/ArmPkg/Library/ArmSoftFloatLib/berkeley-softfloat-3 || die
|
||||||
|
cp -r ../brotli-${EDK2_BROTLI_COMMIT} tools/firmware/ovmf-dir-remote/BaseTools/Source/C/BrotliCompress/brotli || die
|
||||||
|
cp -r ../brotli-${EDK2_BROTLI_COMMIT} tools/firmware/ovmf-dir-remote/MdeModulePkg/Library/BrotliCustomDecompressLib/brotli || 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 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,5 +1,6 @@
|
|||||||
DIST xen-4.13.1-upstream-patches-4.tar.xz 100580 BLAKE2B 1ac4ac5fe7aa7da2b486f2ac5ae60b96cf3c012acac50e8472b88ae273d99e9545f48a896f21eebd5e58427a817e11aa9806d9b45750784fc5382cbadf8162d4 SHA512 54230ea6aa2add038a438d46caae3bba83f2cc8b92021e2c34761015ec08a807331767d432bfa2c7bab864f5b8d0d667c68fc04a089fd35eda9a4f0afd4f6df6
|
DIST xen-4.13.1-upstream-patches-4.tar.xz 100580 BLAKE2B 1ac4ac5fe7aa7da2b486f2ac5ae60b96cf3c012acac50e8472b88ae273d99e9545f48a896f21eebd5e58427a817e11aa9806d9b45750784fc5382cbadf8162d4 SHA512 54230ea6aa2add038a438d46caae3bba83f2cc8b92021e2c34761015ec08a807331767d432bfa2c7bab864f5b8d0d667c68fc04a089fd35eda9a4f0afd4f6df6
|
||||||
DIST xen-4.13.1.tar.gz 39024612 BLAKE2B efff138699fac2c14fad2e0dfd4535ebd744577df3dddccc2a589b81a76f24fc81c75e295f4cd33ca2e820929417b22d714504b576cb0737a563037bd56b6a95 SHA512 b56d20704155d98d803496cba83eb928e0f986a750831cd5600fc88d0ae772fe1456571654375054043d2da8daca255cc98385ebf08b1b1a75ecf7f4b7a0ee90
|
DIST xen-4.13.1.tar.gz 39024612 BLAKE2B efff138699fac2c14fad2e0dfd4535ebd744577df3dddccc2a589b81a76f24fc81c75e295f4cd33ca2e820929417b22d714504b576cb0737a563037bd56b6a95 SHA512 b56d20704155d98d803496cba83eb928e0f986a750831cd5600fc88d0ae772fe1456571654375054043d2da8daca255cc98385ebf08b1b1a75ecf7f4b7a0ee90
|
||||||
|
DIST xen-4.13.2-upstream-patches-0.tar.xz 15404 BLAKE2B e4f679e4281e4edfe4f1e7722c19a973461b9a6423828f17719dfd766a73ef61a74b1cd87f375e2b0c2ec9cbed7b6a0f12c4a9982bbc325cdbba4c70a7145248 SHA512 122fe404f9c19567016e43208ddd08bdac56e7f264853d6cbe0929650fc4ada7175cc24c0e4fbf088acab77127eb76454948b98cbc731e35a12e1b068a5fd793
|
||||||
DIST xen-4.13.2.tar.gz 39037826 BLAKE2B ad2b7c3003ca29e5e60a85c581f706ef87d99eadf939ed36ebe8f6698582f7a29dbdaf502039b60a0afe7ad4ae6ce89713e69dc8b8a7d5abe65063da7f1baa5b SHA512 cd3092281c97e9421e303aa288aac04dcccd5536ba7c0ff4d51fbf3d07b5ffacfe3456ba06f5cf63577dafbf8cf3a5d9825ceb5e9ef8ca1427900cc3e57b50a3
|
DIST xen-4.13.2.tar.gz 39037826 BLAKE2B ad2b7c3003ca29e5e60a85c581f706ef87d99eadf939ed36ebe8f6698582f7a29dbdaf502039b60a0afe7ad4ae6ce89713e69dc8b8a7d5abe65063da7f1baa5b SHA512 cd3092281c97e9421e303aa288aac04dcccd5536ba7c0ff4d51fbf3d07b5ffacfe3456ba06f5cf63577dafbf8cf3a5d9825ceb5e9ef8ca1427900cc3e57b50a3
|
||||||
DIST xen-4.14.0-upstream-patches-3.tar.xz 70976 BLAKE2B 805af580783d7fb3e5e1f6c156bdb153bed4e5627a22252c10d77595fa5cc2e655611e5e578e391127589b8ce641bfab8ec51eccb76ae4b7a0be19079d9f4663 SHA512 93fc3decc7786e25ee93ff7483a0130b31fe50c571a08eb8956d0e06b98a71af585d7b896cdba3fe995ad59c45f58c4686f5c24b0c21eec3f683fb43a7cdf5e4
|
DIST xen-4.14.0-upstream-patches-4.tar.xz 79204 BLAKE2B 54d3ba5eac263d78c052cdf2b7958662dc29f689f03d03692c20c881a6b520bf08c86cf830a2727c2a2249c256aa0d06dea75496c8ee6699361c86c3f91bbd83 SHA512 c18b43a16e225cd1c50fe975fa1daf414e8e5fd47e4d3c9e2c655001ae59ab6fed5d332e5f34acc4f01b3c9d42bd425a86e084a4eb22c360257689aab3fe6825
|
||||||
DIST xen-4.14.0.tar.gz 39950576 BLAKE2B db4c3e79cfdfb10260d0d14d9d28e8c8bd9bf23f42aee743acf8f560bf4cdb96a425c0df887c70f9755f62680be24bfbe0149e52a4cb843ae83090cd9d6afc71 SHA512 ebce47a2f754955d8517123d69f62006634d97620fbbe3784869a0667466e586a249f57ffaf7846d5bcb45d69377cde43354c82c233fbb5407e55653b9a33ac0
|
DIST xen-4.14.0.tar.gz 39950576 BLAKE2B db4c3e79cfdfb10260d0d14d9d28e8c8bd9bf23f42aee743acf8f560bf4cdb96a425c0df887c70f9755f62680be24bfbe0149e52a4cb843ae83090cd9d6afc71 SHA512 ebce47a2f754955d8517123d69f62006634d97620fbbe3784869a0667466e586a249f57ffaf7846d5bcb45d69377cde43354c82c233fbb5407e55653b9a33ac0
|
||||||
|
@ -0,0 +1,165 @@
|
|||||||
|
# Copyright 1999-2020 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
|
||||||
|
PYTHON_COMPAT=( python3_{6..9} )
|
||||||
|
|
||||||
|
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=0
|
||||||
|
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,143 @@
|
|||||||
|
# Copyright 2003-2020 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI="7"
|
||||||
|
|
||||||
|
inherit cmake gnome2-utils xdg-utils
|
||||||
|
|
||||||
|
if [[ "${PV}" =~ (^|\.)9999$ ]]; then
|
||||||
|
inherit git-r3
|
||||||
|
|
||||||
|
EGIT_REPO_URI="https://github.com/fcitx/fcitx"
|
||||||
|
fi
|
||||||
|
|
||||||
|
DESCRIPTION="Fcitx (Flexible Context-aware Input Tool with eXtension) input method framework"
|
||||||
|
HOMEPAGE="https://fcitx-im.org/ https://github.com/fcitx/fcitx"
|
||||||
|
if [[ "${PV}" =~ (^|\.)9999$ ]]; then
|
||||||
|
SRC_URI="https://download.fcitx-im.org/data/pinyin.tar.gz -> fcitx-data-pinyin.tar.gz
|
||||||
|
https://download.fcitx-im.org/data/table.tar.gz -> fcitx-data-table.tar.gz
|
||||||
|
https://download.fcitx-im.org/data/py_stroke-20121124.tar.gz -> fcitx-data-py_stroke-20121124.tar.gz
|
||||||
|
https://download.fcitx-im.org/data/py_table-20121124.tar.gz -> fcitx-data-py_table-20121124.tar.gz
|
||||||
|
https://download.fcitx-im.org/data/en_dict-20121020.tar.gz -> fcitx-data-en_dict-20121020.tar.gz"
|
||||||
|
else
|
||||||
|
SRC_URI="https://download.fcitx-im.org/${PN}/${P}_dict.tar.xz"
|
||||||
|
fi
|
||||||
|
|
||||||
|
LICENSE="BSD-1 GPL-2+ LGPL-2+ MIT"
|
||||||
|
SLOT="4"
|
||||||
|
KEYWORDS="~amd64 ~arm64 ~hppa ~ppc ~ppc64 ~x86"
|
||||||
|
IUSE="+X +autostart +cairo debug +enchant gtk2 +gtk3 +introspection lua nls opencc +pango +table test +xkb"
|
||||||
|
REQUIRED_USE="cairo? ( X ) pango? ( cairo )"
|
||||||
|
RESTRICT="!test? ( test )"
|
||||||
|
|
||||||
|
BDEPEND="dev-util/glib-utils
|
||||||
|
kde-frameworks/extra-cmake-modules:5
|
||||||
|
virtual/pkgconfig
|
||||||
|
introspection? ( dev-libs/gobject-introspection )
|
||||||
|
nls? ( sys-devel/gettext )"
|
||||||
|
DEPEND="dev-libs/glib:2
|
||||||
|
sys-apps/dbus
|
||||||
|
sys-apps/util-linux
|
||||||
|
virtual/libiconv
|
||||||
|
virtual/libintl
|
||||||
|
x11-libs/libxkbcommon
|
||||||
|
X? (
|
||||||
|
x11-libs/libX11
|
||||||
|
x11-libs/libXfixes
|
||||||
|
x11-libs/libXinerama
|
||||||
|
x11-libs/libXrender
|
||||||
|
xkb? (
|
||||||
|
dev-libs/libxml2
|
||||||
|
x11-libs/libxkbfile
|
||||||
|
x11-misc/xkeyboard-config
|
||||||
|
)
|
||||||
|
)
|
||||||
|
cairo? (
|
||||||
|
x11-libs/cairo[X]
|
||||||
|
x11-libs/libXext
|
||||||
|
pango? ( x11-libs/pango )
|
||||||
|
!pango? ( media-libs/fontconfig )
|
||||||
|
)
|
||||||
|
enchant? ( app-text/enchant:0= )
|
||||||
|
gtk2? ( x11-libs/gtk+:2 )
|
||||||
|
gtk3? ( x11-libs/gtk+:3 )
|
||||||
|
lua? ( dev-lang/lua:= )
|
||||||
|
nls? ( sys-devel/gettext )
|
||||||
|
opencc? ( app-i18n/opencc:0= )
|
||||||
|
xkb? (
|
||||||
|
app-text/iso-codes
|
||||||
|
dev-libs/json-c:0=
|
||||||
|
)"
|
||||||
|
RDEPEND="${DEPEND}"
|
||||||
|
|
||||||
|
PATCHES=(
|
||||||
|
"${FILESDIR}/${PN}-4.2.9.8-xkb.patch"
|
||||||
|
)
|
||||||
|
|
||||||
|
DOCS=(AUTHORS ChangeLog THANKS)
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
if [[ "${PV}" =~ (^|\.)9999$ ]]; then
|
||||||
|
ln -s "${DISTDIR}/fcitx-data-pinyin.tar.gz" src/im/pinyin/data/pinyin.tar.gz || die
|
||||||
|
ln -s "${DISTDIR}/fcitx-data-table.tar.gz" src/im/table/data/table.tar.gz || die
|
||||||
|
ln -s "${DISTDIR}/fcitx-data-py_stroke-20121124.tar.gz" src/module/pinyin-enhance/data/py_stroke-20121124.tar.gz || die
|
||||||
|
ln -s "${DISTDIR}/fcitx-data-py_table-20121124.tar.gz" src/module/pinyin-enhance/data/py_table-20121124.tar.gz || die
|
||||||
|
ln -s "${DISTDIR}/fcitx-data-en_dict-20121020.tar.gz" src/module/spell/dict/en_dict-20121020.tar.gz || die
|
||||||
|
fi
|
||||||
|
|
||||||
|
cmake_src_prepare
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
local mycmakeargs=(
|
||||||
|
-DLIB_INSTALL_DIR="${EPREFIX}/usr/$(get_libdir)"
|
||||||
|
-DSYSCONFDIR="${EPREFIX}/etc"
|
||||||
|
-DENABLE_CAIRO=$(usex cairo ON OFF)
|
||||||
|
-DENABLE_DEBUG=$(usex debug ON OFF)
|
||||||
|
-DENABLE_ENCHANT=$(usex enchant ON OFF)
|
||||||
|
-DENABLE_GETTEXT=$(usex nls ON OFF)
|
||||||
|
-DENABLE_GIR=$(usex introspection ON OFF)
|
||||||
|
-DENABLE_GTK2_IM_MODULE=$(usex gtk2 ON OFF)
|
||||||
|
-DENABLE_GTK3_IM_MODULE=$(usex gtk3 ON OFF)
|
||||||
|
-DENABLE_LUA=$(usex lua ON OFF)
|
||||||
|
-DENABLE_OPENCC=$(usex opencc ON OFF)
|
||||||
|
-DENABLE_PANGO=$(usex pango ON OFF)
|
||||||
|
-DENABLE_QT=OFF
|
||||||
|
-DENABLE_QT_GUI=OFF
|
||||||
|
-DENABLE_QT_IM_MODULE=OFF
|
||||||
|
-DENABLE_SNOOPER=$(if use gtk2 || use gtk3; then echo ON; else echo OFF; fi)
|
||||||
|
-DENABLE_TABLE=$(usex table ON OFF)
|
||||||
|
-DENABLE_TEST=$(usex test ON OFF)
|
||||||
|
-DENABLE_X11=$(usex X ON OFF)
|
||||||
|
-DENABLE_XDGAUTOSTART=$(usex autostart ON OFF)
|
||||||
|
-DENABLE_XKB=$(usex xkb ON OFF)
|
||||||
|
)
|
||||||
|
|
||||||
|
cmake_src_configure
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
cmake_src_install
|
||||||
|
rm -r "${ED}/usr/share/doc/${PN}"
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
xdg_desktop_database_update
|
||||||
|
xdg_icon_cache_update
|
||||||
|
xdg_mimeinfo_database_update
|
||||||
|
use gtk2 && gnome2_query_immodules_gtk2
|
||||||
|
use gtk3 && gnome2_query_immodules_gtk3
|
||||||
|
|
||||||
|
elog
|
||||||
|
elog "Quick Phrase Editor is provided by:"
|
||||||
|
elog " app-i18n/fcitx-qt5:4"
|
||||||
|
elog
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postrm() {
|
||||||
|
xdg_desktop_database_update
|
||||||
|
xdg_icon_cache_update
|
||||||
|
xdg_mimeinfo_database_update
|
||||||
|
use gtk2 && gnome2_query_immodules_gtk2
|
||||||
|
use gtk3 && gnome2_query_immodules_gtk3
|
||||||
|
}
|
@ -0,0 +1,145 @@
|
|||||||
|
# Copyright 2003-2020 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI="7"
|
||||||
|
|
||||||
|
inherit cmake gnome2-utils xdg-utils
|
||||||
|
|
||||||
|
if [[ "${PV}" =~ (^|\.)9999$ ]]; then
|
||||||
|
inherit git-r3
|
||||||
|
|
||||||
|
EGIT_REPO_URI="https://github.com/fcitx/fcitx"
|
||||||
|
fi
|
||||||
|
|
||||||
|
DESCRIPTION="Fcitx (Flexible Context-aware Input Tool with eXtension) input method framework"
|
||||||
|
HOMEPAGE="https://fcitx-im.org/ https://github.com/fcitx/fcitx"
|
||||||
|
if [[ "${PV}" =~ (^|\.)9999$ ]]; then
|
||||||
|
SRC_URI="https://download.fcitx-im.org/data/pinyin.tar.gz -> fcitx-data-pinyin.tar.gz
|
||||||
|
https://download.fcitx-im.org/data/table.tar.gz -> fcitx-data-table.tar.gz
|
||||||
|
https://download.fcitx-im.org/data/py_stroke-20121124.tar.gz -> fcitx-data-py_stroke-20121124.tar.gz
|
||||||
|
https://download.fcitx-im.org/data/py_table-20121124.tar.gz -> fcitx-data-py_table-20121124.tar.gz
|
||||||
|
https://download.fcitx-im.org/data/en_dict-20121020.tar.gz -> fcitx-data-en_dict-20121020.tar.gz"
|
||||||
|
else
|
||||||
|
SRC_URI="https://download.fcitx-im.org/${PN}/${P}_dict.tar.xz"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# LICENSE="BSD-1 GPL-2+ LGPL-2+ MIT qt4? ( BSD )"
|
||||||
|
LICENSE="BSD-1 GPL-2+ LGPL-2+ MIT"
|
||||||
|
SLOT="4"
|
||||||
|
KEYWORDS="~amd64 ~arm64 ~hppa ~ppc ~ppc64 ~x86"
|
||||||
|
IUSE="+X +autostart +cairo debug +enchant gtk2 +gtk3 +introspection lua nls opencc +pango +table test +xkb"
|
||||||
|
REQUIRED_USE="cairo? ( X ) pango? ( cairo )"
|
||||||
|
RESTRICT="!test? ( test )"
|
||||||
|
|
||||||
|
BDEPEND="dev-util/glib-utils
|
||||||
|
kde-frameworks/extra-cmake-modules:5
|
||||||
|
virtual/pkgconfig
|
||||||
|
introspection? ( dev-libs/gobject-introspection )
|
||||||
|
nls? ( sys-devel/gettext )"
|
||||||
|
DEPEND="dev-libs/glib:2
|
||||||
|
sys-apps/dbus
|
||||||
|
sys-apps/util-linux
|
||||||
|
virtual/libiconv
|
||||||
|
virtual/libintl
|
||||||
|
x11-libs/libxkbcommon
|
||||||
|
X? (
|
||||||
|
x11-libs/libX11
|
||||||
|
x11-libs/libXfixes
|
||||||
|
x11-libs/libXinerama
|
||||||
|
x11-libs/libXrender
|
||||||
|
xkb? (
|
||||||
|
dev-libs/libxml2
|
||||||
|
x11-libs/libxkbfile
|
||||||
|
x11-misc/xkeyboard-config
|
||||||
|
)
|
||||||
|
)
|
||||||
|
cairo? (
|
||||||
|
x11-libs/cairo[X]
|
||||||
|
x11-libs/libXext
|
||||||
|
pango? ( x11-libs/pango )
|
||||||
|
!pango? ( media-libs/fontconfig )
|
||||||
|
)
|
||||||
|
enchant? ( app-text/enchant:0= )
|
||||||
|
gtk2? ( x11-libs/gtk+:2 )
|
||||||
|
gtk3? ( x11-libs/gtk+:3 )
|
||||||
|
lua? ( dev-lang/lua:= )
|
||||||
|
nls? ( sys-devel/gettext )
|
||||||
|
opencc? ( app-i18n/opencc:0= )
|
||||||
|
xkb? (
|
||||||
|
app-text/iso-codes
|
||||||
|
dev-libs/json-c:0=
|
||||||
|
)"
|
||||||
|
RDEPEND="${DEPEND}"
|
||||||
|
|
||||||
|
PATCHES=(
|
||||||
|
"${FILESDIR}/${PN}-4.2.9.8-enchant.patch"
|
||||||
|
"${FILESDIR}/${PN}-4.2.9.8-xkb.patch"
|
||||||
|
)
|
||||||
|
|
||||||
|
DOCS=(AUTHORS ChangeLog THANKS)
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
if [[ "${PV}" =~ (^|\.)9999$ ]]; then
|
||||||
|
ln -s "${DISTDIR}/fcitx-data-pinyin.tar.gz" src/im/pinyin/data/pinyin.tar.gz || die
|
||||||
|
ln -s "${DISTDIR}/fcitx-data-table.tar.gz" src/im/table/data/table.tar.gz || die
|
||||||
|
ln -s "${DISTDIR}/fcitx-data-py_stroke-20121124.tar.gz" src/module/pinyin-enhance/data/py_stroke-20121124.tar.gz || die
|
||||||
|
ln -s "${DISTDIR}/fcitx-data-py_table-20121124.tar.gz" src/module/pinyin-enhance/data/py_table-20121124.tar.gz || die
|
||||||
|
ln -s "${DISTDIR}/fcitx-data-en_dict-20121020.tar.gz" src/module/spell/dict/en_dict-20121020.tar.gz || die
|
||||||
|
fi
|
||||||
|
|
||||||
|
cmake_src_prepare
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
local mycmakeargs=(
|
||||||
|
-DLIB_INSTALL_DIR="${EPREFIX}/usr/$(get_libdir)"
|
||||||
|
-DSYSCONFDIR="${EPREFIX}/etc"
|
||||||
|
-DENABLE_CAIRO=$(usex cairo ON OFF)
|
||||||
|
-DENABLE_DEBUG=$(usex debug ON OFF)
|
||||||
|
-DENABLE_ENCHANT=$(usex enchant ON OFF)
|
||||||
|
-DENABLE_GETTEXT=$(usex nls ON OFF)
|
||||||
|
-DENABLE_GIR=$(usex introspection ON OFF)
|
||||||
|
-DENABLE_GTK2_IM_MODULE=$(usex gtk2 ON OFF)
|
||||||
|
-DENABLE_GTK3_IM_MODULE=$(usex gtk3 ON OFF)
|
||||||
|
-DENABLE_LUA=$(usex lua ON OFF)
|
||||||
|
-DENABLE_OPENCC=$(usex opencc ON OFF)
|
||||||
|
-DENABLE_PANGO=$(usex pango ON OFF)
|
||||||
|
-DENABLE_QT=OFF
|
||||||
|
-DENABLE_QT_GUI=OFF
|
||||||
|
-DENABLE_QT_IM_MODULE=OFF
|
||||||
|
-DENABLE_SNOOPER=$(if use gtk2 || use gtk3; then echo ON; else echo OFF; fi)
|
||||||
|
-DENABLE_TABLE=$(usex table ON OFF)
|
||||||
|
-DENABLE_TEST=$(usex test ON OFF)
|
||||||
|
-DENABLE_X11=$(usex X ON OFF)
|
||||||
|
-DENABLE_XDGAUTOSTART=$(usex autostart ON OFF)
|
||||||
|
-DENABLE_XKB=$(usex xkb ON OFF)
|
||||||
|
)
|
||||||
|
|
||||||
|
cmake_src_configure
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
cmake_src_install
|
||||||
|
rm -r "${ED}/usr/share/doc/${PN}"
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
xdg_desktop_database_update
|
||||||
|
xdg_icon_cache_update
|
||||||
|
xdg_mimeinfo_database_update
|
||||||
|
use gtk2 && gnome2_query_immodules_gtk2
|
||||||
|
use gtk3 && gnome2_query_immodules_gtk3
|
||||||
|
|
||||||
|
elog
|
||||||
|
elog "Quick Phrase Editor is provided by:"
|
||||||
|
elog " app-i18n/fcitx-qt5:4"
|
||||||
|
elog
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postrm() {
|
||||||
|
xdg_desktop_database_update
|
||||||
|
xdg_icon_cache_update
|
||||||
|
xdg_mimeinfo_database_update
|
||||||
|
use gtk2 && gnome2_query_immodules_gtk2
|
||||||
|
use gtk3 && gnome2_query_immodules_gtk3
|
||||||
|
}
|
@ -0,0 +1,32 @@
|
|||||||
|
https://github.com/fcitx/fcitx/issues/475
|
||||||
|
|
||||||
|
--- /cmake/FindEnchant.cmake
|
||||||
|
+++ /cmake/FindEnchant.cmake
|
||||||
|
@@ -16,15 +16,15 @@
|
||||||
|
endif(ENCHANT_INCLUDE_DIR AND ENCHANT_LIBRARIES)
|
||||||
|
|
||||||
|
find_package(PkgConfig)
|
||||||
|
-pkg_check_modules(PC_ENCHANT enchant)
|
||||||
|
+pkg_check_modules(PC_ENCHANT enchant-2 enchant)
|
||||||
|
|
||||||
|
find_path(ENCHANT_INCLUDE_DIR
|
||||||
|
NAMES enchant.h
|
||||||
|
HINTS ${PC_ENCHANT_INCLUDE_DIRS}
|
||||||
|
- PATH_SUFFIXES "enchant")
|
||||||
|
+ PATH_SUFFIXES enchant-2 enchant)
|
||||||
|
|
||||||
|
find_library(ENCHANT_LIBRARIES
|
||||||
|
- NAMES enchant
|
||||||
|
+ NAMES enchant-2 enchant
|
||||||
|
HINTS ${PC_ENCHANT_LIBRARY_DIRS})
|
||||||
|
|
||||||
|
if(ENCHANT_INCLUDE_DIR AND ENCHANT_LIBRARIES)
|
||||||
|
@@ -39,7 +39,7 @@
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include <stddef.h>
|
||||||
|
#include <string.h>
|
||||||
|
- #include <enchant/enchant.h>
|
||||||
|
+ #include <enchant.h>
|
||||||
|
|
||||||
|
EnchantBroker *enchant_broker_init();
|
||||||
|
char **enchant_dict_suggest(EnchantDict *dict, const char *str,
|
@ -0,0 +1,32 @@
|
|||||||
|
https://github.com/fcitx/fcitx/issues/250
|
||||||
|
|
||||||
|
--- /CMakeLists.txt
|
||||||
|
+++ /CMakeLists.txt
|
||||||
|
@@ -96,12 +96,15 @@
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
if (ENABLE_XKB)
|
||||||
|
- # Parse xkb xml file
|
||||||
|
- find_package(LibXml2 REQUIRED)
|
||||||
|
find_package(IsoCodes REQUIRED)
|
||||||
|
- find_package(XkbFile REQUIRED)
|
||||||
|
# Parse isocodes json
|
||||||
|
pkg_check_modules(JsonC "json-c" IMPORTED_TARGET REQUIRED)
|
||||||
|
+ if(ENABLE_X11)
|
||||||
|
+ # Parse xkb xml file
|
||||||
|
+ find_package(LibXml2 REQUIRED)
|
||||||
|
+ find_package(XkbFile REQUIRED)
|
||||||
|
+ find_package(XKeyboardConfig REQUIRED)
|
||||||
|
+ endif(ENABLE_X11)
|
||||||
|
endif (ENABLE_XKB)
|
||||||
|
if(ENABLE_PRESAGE)
|
||||||
|
find_package(Presage)
|
||||||
|
@@ -121,8 +124,6 @@
|
||||||
|
message(FATAL_ERROR "Xkb is needed")
|
||||||
|
endif (NOT X11_Xkb_FOUND)
|
||||||
|
|
||||||
|
-find_package(XKeyboardConfig REQUIRED)
|
||||||
|
-
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if (ENABLE_TEST)
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,17 +0,0 @@
|
|||||||
--- Makefile.original 2009-04-11 22:46:08.000000000 -0600
|
|
||||||
+++ Makefile 2009-04-12 14:30:55.000000000 -0600
|
|
||||||
@@ -92,14 +92,10 @@
|
|
||||||
OBJS = emsg.o \
|
|
||||||
init.o \
|
|
||||||
tofrodos.o \
|
|
||||||
utility.o
|
|
||||||
|
|
||||||
-# implicit rules
|
|
||||||
-.c.o:
|
|
||||||
- $(CC) $(CFLAGS) $<
|
|
||||||
-
|
|
||||||
# user visible rules
|
|
||||||
all: $(FROMDOS) $(TODOS)
|
|
||||||
|
|
||||||
clean:
|
|
||||||
$(RM) $(OBJS)
|
|
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Binary file not shown.
@ -1,2 +1,4 @@
|
|||||||
DIST go1.14.10.src.tar.gz 22542956 BLAKE2B 9f056e5cf69ca7e0a73372b9b373c534fb638868e32ae37258c4d7d927f880879b337274111d1d1bb8ad253c3a629c5d618ad00a2a973a55d784c8989013ab3a SHA512 f33fd3a06088f9b3594632e0429d3543987f0f93bf52a7383a05e0d845f981fd437d5545cebed6c146a500570f3fbdc35765d842c4c08cfc695a2c3b64223626
|
DIST go1.14.10.src.tar.gz 22542956 BLAKE2B 9f056e5cf69ca7e0a73372b9b373c534fb638868e32ae37258c4d7d927f880879b337274111d1d1bb8ad253c3a629c5d618ad00a2a973a55d784c8989013ab3a SHA512 f33fd3a06088f9b3594632e0429d3543987f0f93bf52a7383a05e0d845f981fd437d5545cebed6c146a500570f3fbdc35765d842c4c08cfc695a2c3b64223626
|
||||||
|
DIST go1.14.11.src.tar.gz 22552087 BLAKE2B d75ecaa1fd385c2efc578db30bd9f2146c9f06bc5a9293937a83bae95e74cb026d2d0dd601442ebc3fcae6f2a364a524f076c3fc0369136b46d8e1874f5cf4f1 SHA512 93cac0ee9f499417dfdc196eb12a91f335ec5693be59d08f9fa3fa5202f717789408077b8180ce9122079768cb94a7293875c0fab2ebef2ecf2c83a86ca0a4ec
|
||||||
DIST go1.15.3.src.tar.gz 23015071 BLAKE2B a2f4f944cdd7347c2b01abe1e4da66559e07571c3f822a8502164a791e3c5d5e7b36907910392ec940361b644a08609f0a7635bfea9f990ec1ae8fd499cb2b87 SHA512 883fb327ce8aec77381aaa01e95acd0826c74d56a769d2077449b964411e30a5844117fdd941737015983c451a3e8d419bd40954842b199a09c26704577b5bca
|
DIST go1.15.3.src.tar.gz 23015071 BLAKE2B a2f4f944cdd7347c2b01abe1e4da66559e07571c3f822a8502164a791e3c5d5e7b36907910392ec940361b644a08609f0a7635bfea9f990ec1ae8fd499cb2b87 SHA512 883fb327ce8aec77381aaa01e95acd0826c74d56a769d2077449b964411e30a5844117fdd941737015983c451a3e8d419bd40954842b199a09c26704577b5bca
|
||||||
|
DIST go1.15.4.src.tar.gz 23017785 BLAKE2B f398ea81f925d342ddc24bd24d4081278b7329757436bf5f3835bc8ac830b61965d96d2b4f72c5a491c13a83102abce2344c826da52066faf7e7670cda35de63 SHA512 84fc687806d7904be0afcdfb4f45a74b4b45820c5c79b21b0c82cd51d07f3f8ae37e7f80730a411b96bdcf7f635b473ab0233c1bce977d2cf307d9a63aeb3df5
|
||||||
|
@ -0,0 +1,188 @@
|
|||||||
|
# Copyright 1999-2020 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
|
||||||
|
export CBUILD=${CBUILD:-${CHOST}}
|
||||||
|
export CTARGET=${CTARGET:-${CHOST}}
|
||||||
|
|
||||||
|
MY_PV=${PV/_/}
|
||||||
|
|
||||||
|
inherit toolchain-funcs
|
||||||
|
|
||||||
|
case ${PV} in
|
||||||
|
*9999*)
|
||||||
|
EGIT_REPO_URI="https://github.com/golang/go.git"
|
||||||
|
inherit git-r3
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
SRC_URI="https://storage.googleapis.com/golang/go${MY_PV}.src.tar.gz "
|
||||||
|
S="${WORKDIR}"/go
|
||||||
|
case ${PV} in
|
||||||
|
*_beta*|*_rc*) ;;
|
||||||
|
*)
|
||||||
|
KEYWORDS="-* ~amd64 ~arm ~arm64 ~ppc64 ~s390 ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x64-solaris"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
esac
|
||||||
|
|
||||||
|
DESCRIPTION="A concurrent garbage collected and typesafe programming language"
|
||||||
|
HOMEPAGE="https://golang.org"
|
||||||
|
|
||||||
|
LICENSE="BSD"
|
||||||
|
SLOT="0/${PV}"
|
||||||
|
|
||||||
|
BDEPEND="|| (
|
||||||
|
dev-lang/go
|
||||||
|
dev-lang/go-bootstrap )"
|
||||||
|
RDEPEND="!<dev-go/go-tools-0_pre20150902"
|
||||||
|
|
||||||
|
# Do not complain about CFLAGS, etc, since Go doesn't use them.
|
||||||
|
QA_FLAGS_IGNORED='.*'
|
||||||
|
|
||||||
|
# The tools in /usr/lib/go should not cause the multilib-strict check to fail.
|
||||||
|
QA_MULTILIB_PATHS="usr/lib/go/pkg/tool/.*/.*"
|
||||||
|
|
||||||
|
# Do not strip this package. Stripping is unsupported upstream and may
|
||||||
|
# fail.
|
||||||
|
RESTRICT+=" strip"
|
||||||
|
|
||||||
|
DOCS=(
|
||||||
|
AUTHORS
|
||||||
|
CONTRIBUTING.md
|
||||||
|
CONTRIBUTORS
|
||||||
|
PATENTS
|
||||||
|
README.md
|
||||||
|
)
|
||||||
|
|
||||||
|
go_arch()
|
||||||
|
{
|
||||||
|
# By chance most portage arch names match Go
|
||||||
|
local portage_arch=$(tc-arch $@)
|
||||||
|
case "${portage_arch}" in
|
||||||
|
x86) echo 386;;
|
||||||
|
x64-*) echo amd64;;
|
||||||
|
ppc64) [[ $(tc-endian $@) = big ]] && echo ppc64 || echo ppc64le ;;
|
||||||
|
s390) echo s390x ;;
|
||||||
|
*) echo "${portage_arch}";;
|
||||||
|
esac
|
||||||
|
}
|
||||||
|
|
||||||
|
go_arm()
|
||||||
|
{
|
||||||
|
case "${1:-${CHOST}}" in
|
||||||
|
armv5*) echo 5;;
|
||||||
|
armv6*) echo 6;;
|
||||||
|
armv7*) echo 7;;
|
||||||
|
*)
|
||||||
|
die "unknown GOARM for ${1:-${CHOST}}"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
}
|
||||||
|
|
||||||
|
go_os()
|
||||||
|
{
|
||||||
|
case "${1:-${CHOST}}" in
|
||||||
|
*-linux*) echo linux;;
|
||||||
|
*-darwin*) echo darwin;;
|
||||||
|
*-freebsd*) echo freebsd;;
|
||||||
|
*-netbsd*) echo netbsd;;
|
||||||
|
*-openbsd*) echo openbsd;;
|
||||||
|
*-solaris*) echo solaris;;
|
||||||
|
*-cygwin*|*-interix*|*-winnt*)
|
||||||
|
echo windows
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
die "unknown GOOS for ${1:-${CHOST}}"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
}
|
||||||
|
|
||||||
|
go_tuple()
|
||||||
|
{
|
||||||
|
echo "$(go_os $@)_$(go_arch $@)"
|
||||||
|
}
|
||||||
|
|
||||||
|
go_cross_compile()
|
||||||
|
{
|
||||||
|
[[ $(go_tuple ${CBUILD}) != $(go_tuple) ]]
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile()
|
||||||
|
{
|
||||||
|
if has_version -b dev-lang/go; then
|
||||||
|
export GOROOT_BOOTSTRAP="${BROOT}/usr/lib/go"
|
||||||
|
elif has_version -b dev-lang/go-bootstrap; then
|
||||||
|
export GOROOT_BOOTSTRAP="${BROOT}/usr/lib/go-bootstrap"
|
||||||
|
else
|
||||||
|
eerror "Go cannot be built without go or go-bootstrap installed"
|
||||||
|
die "Should not be here, please report a bug"
|
||||||
|
fi
|
||||||
|
|
||||||
|
export GOROOT_FINAL="${EPREFIX}"/usr/lib/go
|
||||||
|
export GOROOT="$(pwd)"
|
||||||
|
export GOBIN="${GOROOT}/bin"
|
||||||
|
|
||||||
|
# Go's build script does not use BUILD/HOST/TARGET consistently. :(
|
||||||
|
export GOHOSTARCH=$(go_arch ${CBUILD})
|
||||||
|
export GOHOSTOS=$(go_os ${CBUILD})
|
||||||
|
export CC=$(tc-getBUILD_CC)
|
||||||
|
|
||||||
|
export GOARCH=$(go_arch)
|
||||||
|
export GOOS=$(go_os)
|
||||||
|
export CC_FOR_TARGET=$(tc-getCC)
|
||||||
|
export CXX_FOR_TARGET=$(tc-getCXX)
|
||||||
|
if [[ ${ARCH} == arm ]]; then
|
||||||
|
export GOARM=$(go_arm)
|
||||||
|
fi
|
||||||
|
|
||||||
|
cd src
|
||||||
|
bash -x ./make.bash || die "build failed"
|
||||||
|
}
|
||||||
|
|
||||||
|
src_test()
|
||||||
|
{
|
||||||
|
go_cross_compile && return 0
|
||||||
|
|
||||||
|
cd src
|
||||||
|
PATH="${GOBIN}:${PATH}" \
|
||||||
|
./run.bash -no-rebuild || die "tests failed"
|
||||||
|
cd ..
|
||||||
|
rm -fr pkg/*_race || die
|
||||||
|
rm -fr pkg/obj/go-build || die
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install()
|
||||||
|
{
|
||||||
|
local bin_path f x
|
||||||
|
|
||||||
|
dodir /usr/lib/go
|
||||||
|
|
||||||
|
# There is a known issue which requires the source tree to be installed [1].
|
||||||
|
# Once this is fixed, we can consider using the doc use flag to control
|
||||||
|
# installing the doc and src directories.
|
||||||
|
# [1] https://golang.org/issue/2775
|
||||||
|
#
|
||||||
|
# deliberately use cp to retain permissions
|
||||||
|
cp -R api bin doc lib pkg misc src test "${ED}"/usr/lib/go
|
||||||
|
# testdata directories are not needed on the installed system
|
||||||
|
rm -fr $(find "${ED}"/usr/lib/go -iname testdata -type d -print)
|
||||||
|
if go_cross_compile; then
|
||||||
|
bin_path="bin/$(go_tuple)"
|
||||||
|
else
|
||||||
|
bin_path=bin
|
||||||
|
fi
|
||||||
|
for x in ${bin_path}/*; do
|
||||||
|
f=${x##*/}
|
||||||
|
dosym ../lib/go/${bin_path}/${f} /usr/bin/${f}
|
||||||
|
done
|
||||||
|
einstalldocs
|
||||||
|
|
||||||
|
if [[ ${CHOST} == *-darwin* ]] ; then
|
||||||
|
# fix install_name for test object (binutils_test) on Darwin, it
|
||||||
|
# is never used in real circumstances
|
||||||
|
local libmac64="${EPREFIX}"/usr/lib/go/src/cmd/vendor/github.com/
|
||||||
|
libmac64+=google/pprof/internal/binutils/testdata/lib_mac_64
|
||||||
|
install_name_tool -id "${libmac64}" "${D}${libmac64}"
|
||||||
|
fi
|
||||||
|
}
|
@ -0,0 +1,188 @@
|
|||||||
|
# Copyright 1999-2020 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
|
||||||
|
export CBUILD=${CBUILD:-${CHOST}}
|
||||||
|
export CTARGET=${CTARGET:-${CHOST}}
|
||||||
|
|
||||||
|
MY_PV=${PV/_/}
|
||||||
|
|
||||||
|
inherit toolchain-funcs
|
||||||
|
|
||||||
|
case ${PV} in
|
||||||
|
*9999*)
|
||||||
|
EGIT_REPO_URI="https://github.com/golang/go.git"
|
||||||
|
inherit git-r3
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
SRC_URI="https://storage.googleapis.com/golang/go${MY_PV}.src.tar.gz "
|
||||||
|
S="${WORKDIR}"/go
|
||||||
|
case ${PV} in
|
||||||
|
*_beta*|*_rc*) ;;
|
||||||
|
*)
|
||||||
|
KEYWORDS="-* ~amd64 ~arm ~arm64 ~ppc64 ~s390 ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x64-solaris"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
esac
|
||||||
|
|
||||||
|
DESCRIPTION="A concurrent garbage collected and typesafe programming language"
|
||||||
|
HOMEPAGE="https://golang.org"
|
||||||
|
|
||||||
|
LICENSE="BSD"
|
||||||
|
SLOT="0/${PV}"
|
||||||
|
|
||||||
|
BDEPEND="|| (
|
||||||
|
dev-lang/go
|
||||||
|
dev-lang/go-bootstrap )"
|
||||||
|
RDEPEND="!<dev-go/go-tools-0_pre20150902"
|
||||||
|
|
||||||
|
# Do not complain about CFLAGS, etc, since Go doesn't use them.
|
||||||
|
QA_FLAGS_IGNORED='.*'
|
||||||
|
|
||||||
|
# The tools in /usr/lib/go should not cause the multilib-strict check to fail.
|
||||||
|
QA_MULTILIB_PATHS="usr/lib/go/pkg/tool/.*/.*"
|
||||||
|
|
||||||
|
# Do not strip this package. Stripping is unsupported upstream and may
|
||||||
|
# fail.
|
||||||
|
RESTRICT+=" strip"
|
||||||
|
|
||||||
|
DOCS=(
|
||||||
|
AUTHORS
|
||||||
|
CONTRIBUTING.md
|
||||||
|
CONTRIBUTORS
|
||||||
|
PATENTS
|
||||||
|
README.md
|
||||||
|
)
|
||||||
|
|
||||||
|
go_arch()
|
||||||
|
{
|
||||||
|
# By chance most portage arch names match Go
|
||||||
|
local portage_arch=$(tc-arch $@)
|
||||||
|
case "${portage_arch}" in
|
||||||
|
x86) echo 386;;
|
||||||
|
x64-*) echo amd64;;
|
||||||
|
ppc64) [[ $(tc-endian $@) = big ]] && echo ppc64 || echo ppc64le ;;
|
||||||
|
s390) echo s390x ;;
|
||||||
|
*) echo "${portage_arch}";;
|
||||||
|
esac
|
||||||
|
}
|
||||||
|
|
||||||
|
go_arm()
|
||||||
|
{
|
||||||
|
case "${1:-${CHOST}}" in
|
||||||
|
armv5*) echo 5;;
|
||||||
|
armv6*) echo 6;;
|
||||||
|
armv7*) echo 7;;
|
||||||
|
*)
|
||||||
|
die "unknown GOARM for ${1:-${CHOST}}"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
}
|
||||||
|
|
||||||
|
go_os()
|
||||||
|
{
|
||||||
|
case "${1:-${CHOST}}" in
|
||||||
|
*-linux*) echo linux;;
|
||||||
|
*-darwin*) echo darwin;;
|
||||||
|
*-freebsd*) echo freebsd;;
|
||||||
|
*-netbsd*) echo netbsd;;
|
||||||
|
*-openbsd*) echo openbsd;;
|
||||||
|
*-solaris*) echo solaris;;
|
||||||
|
*-cygwin*|*-interix*|*-winnt*)
|
||||||
|
echo windows
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
die "unknown GOOS for ${1:-${CHOST}}"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
}
|
||||||
|
|
||||||
|
go_tuple()
|
||||||
|
{
|
||||||
|
echo "$(go_os $@)_$(go_arch $@)"
|
||||||
|
}
|
||||||
|
|
||||||
|
go_cross_compile()
|
||||||
|
{
|
||||||
|
[[ $(go_tuple ${CBUILD}) != $(go_tuple) ]]
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile()
|
||||||
|
{
|
||||||
|
if has_version -b dev-lang/go; then
|
||||||
|
export GOROOT_BOOTSTRAP="${BROOT}/usr/lib/go"
|
||||||
|
elif has_version -b dev-lang/go-bootstrap; then
|
||||||
|
export GOROOT_BOOTSTRAP="${BROOT}/usr/lib/go-bootstrap"
|
||||||
|
else
|
||||||
|
eerror "Go cannot be built without go or go-bootstrap installed"
|
||||||
|
die "Should not be here, please report a bug"
|
||||||
|
fi
|
||||||
|
|
||||||
|
export GOROOT_FINAL="${EPREFIX}"/usr/lib/go
|
||||||
|
export GOROOT="$(pwd)"
|
||||||
|
export GOBIN="${GOROOT}/bin"
|
||||||
|
|
||||||
|
# Go's build script does not use BUILD/HOST/TARGET consistently. :(
|
||||||
|
export GOHOSTARCH=$(go_arch ${CBUILD})
|
||||||
|
export GOHOSTOS=$(go_os ${CBUILD})
|
||||||
|
export CC=$(tc-getBUILD_CC)
|
||||||
|
|
||||||
|
export GOARCH=$(go_arch)
|
||||||
|
export GOOS=$(go_os)
|
||||||
|
export CC_FOR_TARGET=$(tc-getCC)
|
||||||
|
export CXX_FOR_TARGET=$(tc-getCXX)
|
||||||
|
if [[ ${ARCH} == arm ]]; then
|
||||||
|
export GOARM=$(go_arm)
|
||||||
|
fi
|
||||||
|
|
||||||
|
cd src
|
||||||
|
bash -x ./make.bash || die "build failed"
|
||||||
|
}
|
||||||
|
|
||||||
|
src_test()
|
||||||
|
{
|
||||||
|
go_cross_compile && return 0
|
||||||
|
|
||||||
|
cd src
|
||||||
|
PATH="${GOBIN}:${PATH}" \
|
||||||
|
./run.bash -no-rebuild || die "tests failed"
|
||||||
|
cd ..
|
||||||
|
rm -fr pkg/*_race || die
|
||||||
|
rm -fr pkg/obj/go-build || die
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install()
|
||||||
|
{
|
||||||
|
local bin_path f x
|
||||||
|
|
||||||
|
dodir /usr/lib/go
|
||||||
|
|
||||||
|
# There is a known issue which requires the source tree to be installed [1].
|
||||||
|
# Once this is fixed, we can consider using the doc use flag to control
|
||||||
|
# installing the doc and src directories.
|
||||||
|
# [1] https://golang.org/issue/2775
|
||||||
|
#
|
||||||
|
# deliberately use cp to retain permissions
|
||||||
|
cp -R api bin doc lib pkg misc src test "${ED}"/usr/lib/go
|
||||||
|
# testdata directories are not needed on the installed system
|
||||||
|
rm -fr $(find "${ED}"/usr/lib/go -iname testdata -type d -print)
|
||||||
|
if go_cross_compile; then
|
||||||
|
bin_path="bin/$(go_tuple)"
|
||||||
|
else
|
||||||
|
bin_path=bin
|
||||||
|
fi
|
||||||
|
for x in ${bin_path}/*; do
|
||||||
|
f=${x##*/}
|
||||||
|
dosym ../lib/go/${bin_path}/${f} /usr/bin/${f}
|
||||||
|
done
|
||||||
|
einstalldocs
|
||||||
|
|
||||||
|
if [[ ${CHOST} == *-darwin* ]] ; then
|
||||||
|
# fix install_name for test object (binutils_test) on Darwin, it
|
||||||
|
# is never used in real circumstances
|
||||||
|
local libmac64="${EPREFIX}"/usr/lib/go/src/cmd/vendor/github.com/
|
||||||
|
libmac64+=google/pprof/internal/binutils/testdata/lib_mac_64
|
||||||
|
install_name_tool -id "${libmac64}" "${D}${libmac64}"
|
||||||
|
fi
|
||||||
|
}
|
@ -0,0 +1,146 @@
|
|||||||
|
# Copyright 1999-2020 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=5
|
||||||
|
|
||||||
|
inherit eutils multilib multilib-minimal portability toolchain-funcs versionator
|
||||||
|
|
||||||
|
DESCRIPTION="A powerful light-weight programming language designed for extending applications"
|
||||||
|
HOMEPAGE="http://www.lua.org/"
|
||||||
|
SRC_URI="http://www.lua.org/ftp/${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="MIT"
|
||||||
|
SLOT="5.1"
|
||||||
|
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~ppc-aix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||||
|
IUSE="+deprecated emacs readline static"
|
||||||
|
|
||||||
|
RDEPEND="readline? ( >=sys-libs/readline-6.2_p5-r1:0=[${MULTILIB_USEDEP}] )
|
||||||
|
app-eselect/eselect-lua
|
||||||
|
!dev-lang/lua:0"
|
||||||
|
DEPEND="${RDEPEND}
|
||||||
|
sys-devel/libtool"
|
||||||
|
PDEPEND="emacs? ( app-emacs/lua-mode )"
|
||||||
|
|
||||||
|
SAN_SLOT="${SLOT//.}"
|
||||||
|
|
||||||
|
MULTILIB_WRAPPED_HEADERS=(
|
||||||
|
/usr/include/lua${SLOT}/luaconf.h
|
||||||
|
)
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
local PATCH_PV=$(get_version_component_range 1-2)
|
||||||
|
|
||||||
|
epatch "${FILESDIR}"/${PN}-${PATCH_PV}-make-r2.patch
|
||||||
|
epatch "${FILESDIR}"/${PN}-${PATCH_PV}-module_paths.patch
|
||||||
|
|
||||||
|
# use glibtool on Darwin (versus Apple libtool)
|
||||||
|
if [[ ${CHOST} == *-darwin* ]] ; then
|
||||||
|
sed -i -e '/LIBTOOL = /s:libtool:glibtool:' \
|
||||||
|
Makefile src/Makefile || die
|
||||||
|
fi
|
||||||
|
|
||||||
|
#EPATCH_SOURCE="${FILESDIR}/${PV}" EPATCH_SUFFIX="upstream.patch" epatch
|
||||||
|
|
||||||
|
# correct lua versioning
|
||||||
|
sed -i -e 's/\(LIB_VERSION = \)6:1:1/\16:5:1/' src/Makefile
|
||||||
|
|
||||||
|
sed -i -e 's:\(/README\)\("\):\1.gz\2:g' doc/readme.html
|
||||||
|
|
||||||
|
if ! use deprecated ; then
|
||||||
|
# patches from 5.1.4 still apply
|
||||||
|
epatch "${FILESDIR}"/${PN}-5.1.4-deprecated.patch
|
||||||
|
epatch "${FILESDIR}"/${PN}-5.1.4-test.patch
|
||||||
|
fi
|
||||||
|
|
||||||
|
if ! use readline ; then
|
||||||
|
epatch "${FILESDIR}"/${PN}-${PATCH_PV}-readline.patch
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Using dynamic linked lua is not recommended for performance
|
||||||
|
# reasons. http://article.gmane.org/gmane.comp.lang.lua.general/18519
|
||||||
|
# Mainly, this is of concern if your arch is poor with GPRs, like x86
|
||||||
|
# Note that this only affects the interpreter binary (named lua), not the lua
|
||||||
|
# compiler (built statically) nor the lua libraries (both shared and static
|
||||||
|
# are installed)
|
||||||
|
if use static ; then
|
||||||
|
epatch "${FILESDIR}"/${PN}-${PATCH_PV}-make_static-r1.patch
|
||||||
|
fi
|
||||||
|
|
||||||
|
# A slotted Lua uses different directories for headers & names for
|
||||||
|
# libraries, and pkgconfig should reflect that.
|
||||||
|
sed -r -i \
|
||||||
|
-e "/^INSTALL_INC=/s,(/include)$,\1/lua${SLOT}," \
|
||||||
|
-e "/^includedir=/s,(/include)$,\1/lua${SLOT}," \
|
||||||
|
-e "/^Libs:/s,((-llua)($| )),\2${SLOT}\3," \
|
||||||
|
-e "/^Cflags:/s,((-I..includedir.)($| )),\2/lua${SLOT}\3," \
|
||||||
|
"${S}"/etc/lua.pc
|
||||||
|
|
||||||
|
# custom Makefiles
|
||||||
|
multilib_copy_sources
|
||||||
|
}
|
||||||
|
|
||||||
|
multilib_src_configure() {
|
||||||
|
# We want packages to find our things...
|
||||||
|
sed -i \
|
||||||
|
-e 's:/usr/local:'${EPREFIX}'/usr:' \
|
||||||
|
-e "s:\([/\"]\)\<lib\>:\1$(get_libdir):g" \
|
||||||
|
etc/lua.pc src/luaconf.h || die
|
||||||
|
}
|
||||||
|
|
||||||
|
multilib_src_compile() {
|
||||||
|
tc-export CC
|
||||||
|
myflags=
|
||||||
|
# what to link to liblua
|
||||||
|
liblibs="-lm"
|
||||||
|
liblibs="${liblibs} $(dlopen_lib)"
|
||||||
|
|
||||||
|
# what to link to the executables
|
||||||
|
mylibs=
|
||||||
|
if use readline; then
|
||||||
|
mylibs="-lreadline"
|
||||||
|
fi
|
||||||
|
|
||||||
|
cd src
|
||||||
|
emake CC="${CC}" CFLAGS="-DLUA_USE_LINUX ${CFLAGS}" \
|
||||||
|
RPATH="${EPREFIX}/usr/$(get_libdir)/" \
|
||||||
|
LUA_LIBS="${mylibs}" \
|
||||||
|
LIB_LIBS="${liblibs}" \
|
||||||
|
V=$(get_version_component_range 1-2) \
|
||||||
|
gentoo_all
|
||||||
|
|
||||||
|
mv lua_test ../test/lua.static
|
||||||
|
}
|
||||||
|
|
||||||
|
multilib_src_install() {
|
||||||
|
emake INSTALL_TOP="${ED}/usr" INSTALL_LIB="${ED}/usr/$(get_libdir)" \
|
||||||
|
V=${SLOT} gentoo_install
|
||||||
|
|
||||||
|
insinto /usr/$(get_libdir)/pkgconfig
|
||||||
|
newins etc/lua.pc lua${SLOT}.pc
|
||||||
|
}
|
||||||
|
|
||||||
|
multilib_src_install_all() {
|
||||||
|
dodoc HISTORY README
|
||||||
|
dohtml doc/*.html doc/*.png doc/*.css doc/*.gif
|
||||||
|
|
||||||
|
doicon etc/lua.ico
|
||||||
|
|
||||||
|
newman doc/lua.1 lua${SLOT}.1
|
||||||
|
newman doc/luac.1 luac${SLOT}.1
|
||||||
|
}
|
||||||
|
|
||||||
|
multilib_src_test() {
|
||||||
|
local positive="bisect cf echo env factorial fib fibfor hello printf sieve
|
||||||
|
sort trace-calls trace-globals"
|
||||||
|
local negative="readonly"
|
||||||
|
local test
|
||||||
|
|
||||||
|
cd "${BUILD_DIR}" || die
|
||||||
|
for test in ${positive}; do
|
||||||
|
test/lua.static test/${test}.lua || die "test $test failed"
|
||||||
|
done
|
||||||
|
|
||||||
|
for test in ${negative}; do
|
||||||
|
test/lua.static test/${test}.lua && die "test $test failed"
|
||||||
|
done
|
||||||
|
}
|
Binary file not shown.
@ -1,2 +1,3 @@
|
|||||||
DIST amdgpu-pro-18.20-684755-ubuntu-16.04.tar.xz 229474380 BLAKE2B f589aad71f093b74e37de40ac7c45ebbbeff93609b2fff1baaba711347a4641ef17acdcbe69d371372510a48bd48262cf6269c1f4d05e264023d52a425a423f2 SHA512 240e701acfde4ebe665cf69c8bd3710d036f450822aeb7ee2a21caab289af44167afda1d3b8d0dbe2c46c4e63d9b6fb5e96778311f342c26f334dc7beb4a2d5b
|
DIST amdgpu-pro-18.20-684755-ubuntu-16.04.tar.xz 229474380 BLAKE2B f589aad71f093b74e37de40ac7c45ebbbeff93609b2fff1baaba711347a4641ef17acdcbe69d371372510a48bd48262cf6269c1f4d05e264023d52a425a423f2 SHA512 240e701acfde4ebe665cf69c8bd3710d036f450822aeb7ee2a21caab289af44167afda1d3b8d0dbe2c46c4e63d9b6fb5e96778311f342c26f334dc7beb4a2d5b
|
||||||
DIST amdgpu-pro-19.30-838629-ubuntu-18.04.tar.xz 301833044 BLAKE2B ffdd49be431906c5ba20e9b285b44e368b40a70678177412d2329489c987567612f5262b64a9a1aef137cef603f77f768127d674c13488e13dddbc8732cf729c SHA512 7e8091dd37ae176d1ff131e5e2b13961f5a33fc7243052dce074dffb1468476f267d50a920182358188e44f4a93d0cbf39c5d430d56a9a2e09a67409e3478904
|
DIST amdgpu-pro-19.30-838629-ubuntu-18.04.tar.xz 301833044 BLAKE2B ffdd49be431906c5ba20e9b285b44e368b40a70678177412d2329489c987567612f5262b64a9a1aef137cef603f77f768127d674c13488e13dddbc8732cf729c SHA512 7e8091dd37ae176d1ff131e5e2b13961f5a33fc7243052dce074dffb1468476f267d50a920182358188e44f4a93d0cbf39c5d430d56a9a2e09a67409e3478904
|
||||||
|
DIST amdgpu-pro-20.40-1147286-ubuntu-20.04.tar.xz 333011308 BLAKE2B 82d0b728ee06bbc1a3dde579215a23397abb223caf7e2922b71dda9f31bebf13eaf5b1c5c7f25146dc2cfb31b57d16e848b0f902e599ed361e9285998cdb99fd SHA512 9b064a3b02d2a1ec18fdd6c098b70f4a8c6f93e4bfdc4e9a032ca387bdf7223278622c19d5bd55e493555c5f734168c3f2768cb743f9e00dcf5f96cbc399c7b3
|
||||||
|
@ -0,0 +1,99 @@
|
|||||||
|
# Copyright 1999-2020 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
|
||||||
|
MULTILIB_COMPAT=( abi_x86_{32,64} )
|
||||||
|
|
||||||
|
inherit unpacker multilib-minimal
|
||||||
|
|
||||||
|
SUPER_PN='amdgpu-pro'
|
||||||
|
MY_PV=$(ver_rs 2 '-')
|
||||||
|
|
||||||
|
DESCRIPTION="Proprietary OpenCL implementation for AMD GPUs"
|
||||||
|
HOMEPAGE="https://www.amd.com/en/support/kb/release-notes/rn-amdgpu-unified-linux-20-40"
|
||||||
|
SRC_URI="${SUPER_PN}-${MY_PV}-ubuntu-20.04.tar.xz"
|
||||||
|
|
||||||
|
LICENSE="AMD-GPU-PRO-EULA"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
|
||||||
|
RESTRICT="bindist mirror fetch strip"
|
||||||
|
|
||||||
|
BDEPEND="dev-util/patchelf"
|
||||||
|
COMMON=">=virtual/opencl-3"
|
||||||
|
DEPEND="${COMMON}"
|
||||||
|
RDEPEND="${COMMON}
|
||||||
|
!media-libs/mesa[opencl]" # Bug #686790
|
||||||
|
|
||||||
|
QA_PREBUILT="/opt/amdgpu/lib*/*"
|
||||||
|
|
||||||
|
S="${WORKDIR}/${SUPER_PN}-${MY_PV}-ubuntu-20.04"
|
||||||
|
|
||||||
|
pkg_nofetch() {
|
||||||
|
local pkgver=$(ver_cut 1-2)
|
||||||
|
einfo "Please download Radeon Software for Linux version ${pkgver} for Ubuntu 20.04.1 from"
|
||||||
|
einfo " ${HOMEPAGE}"
|
||||||
|
einfo "The archive should then be placed into your distfiles directory."
|
||||||
|
}
|
||||||
|
|
||||||
|
src_unpack() {
|
||||||
|
default
|
||||||
|
|
||||||
|
local ids_ver="1.0.0"
|
||||||
|
local patchlevel=$(ver_cut 3)
|
||||||
|
cd "${S}" || die
|
||||||
|
unpack_deb "${S}/libdrm-amdgpu-common_${ids_ver}-${patchlevel}_all.deb"
|
||||||
|
multilib_parallel_foreach_abi multilib_src_unpack
|
||||||
|
}
|
||||||
|
|
||||||
|
multilib_src_unpack() {
|
||||||
|
local libdrm_ver="2.4.100"
|
||||||
|
local patchlevel=$(ver_cut 3)
|
||||||
|
local deb_abi
|
||||||
|
[[ ${ABI} == x86 ]] && deb_abi=i386
|
||||||
|
|
||||||
|
mkdir -p "${BUILD_DIR}" || die
|
||||||
|
pushd "${BUILD_DIR}" >/dev/null || die
|
||||||
|
unpack_deb "${S}/opencl-orca-amdgpu-pro-icd_${MY_PV}_${deb_abi:-${ABI}}.deb"
|
||||||
|
unpack_deb "${S}/libdrm-amdgpu-amdgpu1_${libdrm_ver}-${patchlevel}_${deb_abi:-${ABI}}.deb"
|
||||||
|
popd >/dev/null || die
|
||||||
|
}
|
||||||
|
|
||||||
|
multilib_src_install() {
|
||||||
|
local dir_abi short_abi
|
||||||
|
[[ ${ABI} == x86 ]] && dir_abi=i386-linux-gnu && short_abi=32
|
||||||
|
[[ ${ABI} == amd64 ]] && dir_abi=x86_64-linux-gnu && short_abi=64
|
||||||
|
|
||||||
|
into "/opt/amdgpu"
|
||||||
|
patchelf --set-rpath '$ORIGIN' "opt/${SUPER_PN}/lib/${dir_abi}"/libamdocl-orca${short_abi}.so || die "Failed to fix library rpath"
|
||||||
|
dolib.so "opt/${SUPER_PN}/lib/${dir_abi}"/*
|
||||||
|
dolib.so "opt/amdgpu/lib/${dir_abi}"/*
|
||||||
|
|
||||||
|
insinto /etc/OpenCL/vendors
|
||||||
|
echo "/opt/amdgpu/$(get_libdir)/libamdocl-orca${short_abi}.so" \
|
||||||
|
> "${T}/${SUPER_PN}-${ABI}.icd" || die "Failed to generate ICD file for ABI ${ABI}"
|
||||||
|
doins "${T}/${SUPER_PN}-${ABI}.icd"
|
||||||
|
}
|
||||||
|
|
||||||
|
multilib_src_install_all() {
|
||||||
|
insinto "/opt/amdgpu"
|
||||||
|
doins -r opt/amdgpu/share
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
if [[ -z "${REPLACING_VERSIONS}" ]]; then
|
||||||
|
ewarn "Please note that using proprietary OpenCL libraries together with the"
|
||||||
|
ewarn "Open Source amdgpu stack is not officially supported by AMD. Do not ask them"
|
||||||
|
ewarn "for support in case of problems with this package."
|
||||||
|
ewarn ""
|
||||||
|
ewarn "Furthermore, if you have the whole AMDGPU-Pro stack installed this package"
|
||||||
|
ewarn "will almost certainly conflict with it. This might change once AMDGPU-Pro"
|
||||||
|
ewarn "has become officially supported by Gentoo."
|
||||||
|
fi
|
||||||
|
|
||||||
|
elog ""
|
||||||
|
elog "This package is now DEPRECATED on amd64 in favour of dev-libs/rocm-opencl-runtime."
|
||||||
|
elog "Moreover, it only provides legacy AMDGPU-Pro OpenCL libraries which are not compatible with Vega 10 and newer GPUs."
|
||||||
|
elog ""
|
||||||
|
}
|
@ -0,0 +1,33 @@
|
|||||||
|
https://bugs.gentoo.org/753299
|
||||||
|
--- a/testsuite/lib/libffi.exp
|
||||||
|
+++ b/testsuite/lib/libffi.exp
|
||||||
|
@@ -287,9 +287,6 @@ proc libffi-init { args } {
|
||||||
|
verbose "libffi $blddirffi"
|
||||||
|
|
||||||
|
# Which compiler are we building with?
|
||||||
|
- set tmp [grep "$blddirffi/config.log" "^ax_cv_c_compiler_vendor.*$"]
|
||||||
|
- regexp -- {^[^=]*=(.*)$} $tmp nil compiler_vendor
|
||||||
|
-
|
||||||
|
if { [string match $compiler_vendor "gnu"] } {
|
||||||
|
set gccdir [lookfor_file $tool_root_dir gcc/libgcc.a]
|
||||||
|
if {$gccdir != ""} {
|
||||||
|
--- a/configure.ac
|
||||||
|
+++ b/configure.ac
|
||||||
|
@@ -59,6 +59,7 @@ fi
|
||||||
|
cat > local.exp <<EOF
|
||||||
|
set CC_FOR_TARGET "$CC"
|
||||||
|
set CXX_FOR_TARGET "$CXX"
|
||||||
|
+set compiler_vendor "$ax_cv_c_compiler_vendor"
|
||||||
|
EOF
|
||||||
|
|
||||||
|
AM_MAINTAINER_MODE
|
||||||
|
--- a/configure
|
||||||
|
+++ b/configure
|
||||||
|
@@ -17402,6 +17402,7 @@ fi
|
||||||
|
cat > local.exp <<EOF
|
||||||
|
set CC_FOR_TARGET "$CC"
|
||||||
|
set CXX_FOR_TARGET "$CXX"
|
||||||
|
+set compiler_vendor "$ax_cv_c_compiler_vendor"
|
||||||
|
EOF
|
||||||
|
|
||||||
|
|
@ -0,0 +1,35 @@
|
|||||||
|
# Copyright 1999-2020 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
|
||||||
|
PYTHON_COMPAT=( pypy3 python3_{6..9} )
|
||||||
|
PYTHON_REQ_USE="threads(+)"
|
||||||
|
DISTUTILS_USE_SETUPTOOLS=rdepend
|
||||||
|
|
||||||
|
inherit distutils-r1
|
||||||
|
|
||||||
|
DESCRIPTION="Collection of tools for internationalizing Python applications"
|
||||||
|
HOMEPAGE="https://babel.pocoo.org/ https://pypi.org/project/Babel/"
|
||||||
|
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="BSD"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris"
|
||||||
|
|
||||||
|
RDEPEND="dev-python/pytz[${PYTHON_USEDEP}]
|
||||||
|
dev-python/setuptools[${PYTHON_USEDEP}]"
|
||||||
|
DEPEND="${DEPEND}
|
||||||
|
test? ( dev-python/freezegun[${PYTHON_USEDEP}] )"
|
||||||
|
|
||||||
|
distutils_enable_sphinx docs
|
||||||
|
distutils_enable_tests pytest
|
||||||
|
|
||||||
|
PATCHES=(
|
||||||
|
"${FILESDIR}"/Babel-2.8.0-py39.patch
|
||||||
|
)
|
||||||
|
|
||||||
|
src_test() {
|
||||||
|
local -x TZ=UTC
|
||||||
|
distutils-r1_src_test
|
||||||
|
}
|
@ -1 +1,2 @@
|
|||||||
DIST Babel-2.8.0.tar.gz 8444381 BLAKE2B ea3757182464770f47d3253e77bece7b64c84558e7a19fc55759198bfa55c6d8156d27e9de7b796b62eefd93e458c7e00b2014dd23e4ed7383f5bc9785d1a332 SHA512 f9687b36176c146a8ace073197111463d24fca343bb1dbee8b0e37a7f37b68b4cd77ffbe3bf14a20f8f64c701aa860e0b5e6076658a95dbee2556f0688d68d91
|
DIST Babel-2.8.0.tar.gz 8444381 BLAKE2B ea3757182464770f47d3253e77bece7b64c84558e7a19fc55759198bfa55c6d8156d27e9de7b796b62eefd93e458c7e00b2014dd23e4ed7383f5bc9785d1a332 SHA512 f9687b36176c146a8ace073197111463d24fca343bb1dbee8b0e37a7f37b68b4cd77ffbe3bf14a20f8f64c701aa860e0b5e6076658a95dbee2556f0688d68d91
|
||||||
|
DIST Babel-2.8.1.tar.gz 8471453 BLAKE2B bc2e66a3c1c77e5b190cdb3f53d149268b6f49adde3040cbe6a3dd8eb98f6caffb3988232e76083e606186a87b9ee6b2b5352de89b7bc43d4f72905f1f594127 SHA512 ed39ad01b873d40d0bc611739761d412ff442b2df3d4c2363ec24501547da678cb752f640a02470c8513073a76c468c27fc16248820c779ef7adbe14d0f07199
|
||||||
|
Binary file not shown.
@ -0,0 +1,56 @@
|
|||||||
|
# Copyright 1999-2020 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
PYTHON_COMPAT=( python3_{6..9} )
|
||||||
|
DISTUTILS_USE_SETUPTOOLS=bdepend
|
||||||
|
inherit distutils-r1
|
||||||
|
|
||||||
|
DESCRIPTION="The AWS SDK for Python"
|
||||||
|
HOMEPAGE="https://github.com/boto/boto3"
|
||||||
|
LICENSE="Apache-2.0"
|
||||||
|
SLOT="0"
|
||||||
|
|
||||||
|
if [[ "${PV}" == "9999" ]]; then
|
||||||
|
EGIT_REPO_URI="https://github.com/boto/boto3"
|
||||||
|
inherit git-r3
|
||||||
|
BOTOCORE_PV=${PV}
|
||||||
|
else
|
||||||
|
SRC_URI="https://github.com/boto/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||||
|
KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux"
|
||||||
|
|
||||||
|
# botocore is x.(y+3).z
|
||||||
|
BOTOCORE_PV="$(ver_cut 1).$(( $(ver_cut 2) + 3)).$(ver_cut 3-)"
|
||||||
|
fi
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
>=dev-python/botocore-${BOTOCORE_PV}[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/jmespath-0.7.1[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/s3transfer-0.3.0[${PYTHON_USEDEP}]
|
||||||
|
"
|
||||||
|
BDEPEND="
|
||||||
|
test? (
|
||||||
|
dev-python/mock[${PYTHON_USEDEP}]
|
||||||
|
)
|
||||||
|
"
|
||||||
|
|
||||||
|
distutils_enable_sphinx docs/source \
|
||||||
|
'dev-python/guzzle_sphinx_theme'
|
||||||
|
distutils_enable_tests nose
|
||||||
|
|
||||||
|
python_prepare_all() {
|
||||||
|
# don't lock versions to narrow ranges
|
||||||
|
sed -e '/botocore/ d' \
|
||||||
|
-e '/jmespath/ d' \
|
||||||
|
-e '/s3transfer/ d' \
|
||||||
|
-i setup.py || die
|
||||||
|
|
||||||
|
# prevent an infinite loop
|
||||||
|
rm tests/functional/docs/test_smoke.py || die
|
||||||
|
|
||||||
|
distutils-r1_python_prepare_all
|
||||||
|
}
|
||||||
|
|
||||||
|
python_test() {
|
||||||
|
nosetests -v tests/unit/ tests/functional/ || die "test failed under ${EPYTHON}"
|
||||||
|
}
|
@ -0,0 +1,59 @@
|
|||||||
|
# Copyright 1999-2020 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
PYTHON_COMPAT=( python3_{6..9} )
|
||||||
|
|
||||||
|
inherit distutils-r1
|
||||||
|
|
||||||
|
DESCRIPTION="Low-level, data-driven core of boto 3"
|
||||||
|
HOMEPAGE="https://github.com/boto/botocore"
|
||||||
|
LICENSE="Apache-2.0"
|
||||||
|
SLOT="0"
|
||||||
|
|
||||||
|
if [[ "${PV}" == "9999" ]]; then
|
||||||
|
EGIT_REPO_URI="https://github.com/boto/botocore"
|
||||||
|
inherit git-r3
|
||||||
|
else
|
||||||
|
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||||
|
KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux"
|
||||||
|
fi
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
dev-python/six[${PYTHON_USEDEP}]
|
||||||
|
dev-python/jmespath[${PYTHON_USEDEP}]
|
||||||
|
dev-python/python-dateutil[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/urllib3-1.25.4[${PYTHON_USEDEP}]
|
||||||
|
"
|
||||||
|
BDEPEND="
|
||||||
|
test? (
|
||||||
|
dev-python/mock[${PYTHON_USEDEP}]
|
||||||
|
dev-python/jsonschema[${PYTHON_USEDEP}]
|
||||||
|
)
|
||||||
|
"
|
||||||
|
|
||||||
|
PATCHES=(
|
||||||
|
"${FILESDIR}/1.8.6-tests-pass-all-env-vars-to-cmd-runner.patch"
|
||||||
|
)
|
||||||
|
|
||||||
|
distutils_enable_sphinx docs/source \
|
||||||
|
'dev-python/guzzle_sphinx_theme'
|
||||||
|
distutils_enable_tests nose
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
# unpin deps
|
||||||
|
sed -i -e "s:>=.*':':" setup.py || die
|
||||||
|
# very unstable
|
||||||
|
sed -i -e 's:test_stress_test_token_bucket:_&:' \
|
||||||
|
tests/functional/retries/test_bucket.py || die
|
||||||
|
distutils-r1_src_prepare
|
||||||
|
}
|
||||||
|
|
||||||
|
python_test() {
|
||||||
|
# note: suites need to be run separately as one of the unit tests
|
||||||
|
# seems to be leaking mocks and breaking a few functional tests
|
||||||
|
nosetests -v tests/unit ||
|
||||||
|
die "unit tests failed under ${EPYTHON}"
|
||||||
|
nosetests -v tests/functional ||
|
||||||
|
die "functional tests failed under ${EPYTHON}"
|
||||||
|
}
|
@ -1 +1,2 @@
|
|||||||
DIST bottle-0.12.18.tar.gz 71557 BLAKE2B a34cc1ab9a2a8505b7fda8bbddbae30b4e6c4829cae53f0f886237a21fdfa7f2b2463b216d7a16464539f41bdce4c1dabb5cc66027b8fdd19b10e9a78a3cdbb5 SHA512 db8a341cd80d755205518bb9eac5b79dca9e541ab3ad9d9d57f891d895f7df75a8facd16b068cbdf7c4f884f35e384449f4cbd565a43e9c5d000d3a9f5b7dcb0
|
DIST bottle-0.12.18.tar.gz 71557 BLAKE2B a34cc1ab9a2a8505b7fda8bbddbae30b4e6c4829cae53f0f886237a21fdfa7f2b2463b216d7a16464539f41bdce4c1dabb5cc66027b8fdd19b10e9a78a3cdbb5 SHA512 db8a341cd80d755205518bb9eac5b79dca9e541ab3ad9d9d57f891d895f7df75a8facd16b068cbdf7c4f884f35e384449f4cbd565a43e9c5d000d3a9f5b7dcb0
|
||||||
|
DIST bottle-0.12.19.tar.gz 73142 BLAKE2B e59d7a507d3401869ba4953a48274062fc56226afa2f7aad596b4ef4352e4a79cea2d224dfe32d7ce014e4f4a3ba088d0e7a0886f64a84bb6b78571e953fa3c3 SHA512 e5d2f6a32d1b89ae3cc9607456c0614db2b58882c6d36273d695c51d3d77b1858cac4d914dbf19bca3b74be68c197aa6473f162e40d9b7ae2af3a084a28c2637
|
||||||
|
@ -0,0 +1,48 @@
|
|||||||
|
# Copyright 1999-2020 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
|
||||||
|
PYTHON_COMPAT=( python3_{6,7,8,9} pypy3 )
|
||||||
|
|
||||||
|
inherit distutils-r1 optfeature
|
||||||
|
|
||||||
|
DESCRIPTION="A fast and simple micro-framework for small web-applications"
|
||||||
|
HOMEPAGE="https://pypi.org/project/bottle/ https://bottlepy.org/"
|
||||||
|
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="MIT"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86"
|
||||||
|
IUSE="test"
|
||||||
|
RESTRICT="!test? ( test )"
|
||||||
|
|
||||||
|
BDEPEND="test? ( dev-python/mako[${PYTHON_USEDEP}] )"
|
||||||
|
RDEPEND=""
|
||||||
|
|
||||||
|
PATCHES=(
|
||||||
|
"${FILESDIR}"/${PN}-0.12.8-py3.5-backport.patch
|
||||||
|
)
|
||||||
|
|
||||||
|
python_prepare_all() {
|
||||||
|
sed -i -e '/scripts/d' setup.py || die
|
||||||
|
|
||||||
|
# Remove test file requring connection to network
|
||||||
|
rm test/test_server.py || die
|
||||||
|
distutils-r1_python_prepare_all
|
||||||
|
}
|
||||||
|
|
||||||
|
python_test() {
|
||||||
|
# A few odd fails in the suite under pypy
|
||||||
|
# https://github.com/bottlepy/bottle/issues/714
|
||||||
|
"${EPYTHON}" test/testall.py || die "tests failed under ${EPYTHON}"
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
optfeature "Templating support" dev-python/mako
|
||||||
|
elog "Due to problems with bottle.py being in /usr/bin (see bug #474874)"
|
||||||
|
elog "we do as most other distros and do not install the script anymore."
|
||||||
|
elog "If you do want/have to call it directly rather than through your app,"
|
||||||
|
elog "please use the following instead:"
|
||||||
|
elog ' `python -m bottle`'
|
||||||
|
}
|
@ -1 +1,2 @@
|
|||||||
DIST cliff-3.4.0.tar.gz 78990 BLAKE2B d7d8209e2fe24614cde6d3e113eb0dbbba981addef045fe318143e71f9a240188c0fb74e831d868b31b6dafb4289f7beabfbb5fe1dade1df196f670c53a55549 SHA512 d625588f4eed0aeee549b4a21e604f1cb886b8c10a12df7c546a5292223ec5bf9067352b4d326d5710673dab56eec47e2fb46c9c5d5df6e9fbf026d030bcde1c
|
DIST cliff-3.4.0.tar.gz 78990 BLAKE2B d7d8209e2fe24614cde6d3e113eb0dbbba981addef045fe318143e71f9a240188c0fb74e831d868b31b6dafb4289f7beabfbb5fe1dade1df196f670c53a55549 SHA512 d625588f4eed0aeee549b4a21e604f1cb886b8c10a12df7c546a5292223ec5bf9067352b4d326d5710673dab56eec47e2fb46c9c5d5df6e9fbf026d030bcde1c
|
||||||
|
DIST cliff-3.5.0.tar.gz 82997 BLAKE2B f169770a0a956e6091e56eccda8d10906bee09bdb03b474f3b17837b3eda858f3afd21beae1d6945bcdabfa89fc1555d13d70ddd0454a10fe05bfb63c8de75e7 SHA512 215f22e5dd2c4c17bd0f19866189b6b247377a7d5bddeb4a07b7536af7545bd0440b5fb0a98474fc018e3b12f6695f60028c012f3e7eeb6498b20f2923939d08
|
||||||
|
@ -0,0 +1,41 @@
|
|||||||
|
# Copyright 1999-2020 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
|
||||||
|
PYTHON_COMPAT=( python3_{6..9} )
|
||||||
|
# TODO: revert to rdepend once this is merged
|
||||||
|
# https://github.com/openstack/cliff/pull/3
|
||||||
|
DISTUTILS_USE_SETUPTOOLS=manual
|
||||||
|
|
||||||
|
inherit distutils-r1
|
||||||
|
|
||||||
|
DESCRIPTION="Command Line Interface Formulation Framework"
|
||||||
|
HOMEPAGE="https://github.com/openstack/cliff"
|
||||||
|
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="Apache-2.0"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~alpha ~amd64 ~arm64 ~hppa ~ia64 ~mips ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux"
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
>=dev-python/cmd2-0.8.0[${PYTHON_USEDEP}]
|
||||||
|
<dev-python/prettytable-0.8[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/pyparsing-2.1.0[${PYTHON_USEDEP}]
|
||||||
|
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/six-1.10.0[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/stevedore-2.0.1[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/pyyaml-3.12.0[${PYTHON_USEDEP}]
|
||||||
|
"
|
||||||
|
BDEPEND="
|
||||||
|
>=dev-python/pbr-2.0.0[${PYTHON_USEDEP}]
|
||||||
|
!~dev-python/pbr-2.1.0
|
||||||
|
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||||
|
test? (
|
||||||
|
dev-python/sphinx[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/testtools-2.2.0[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/testscenarios-0.4[${PYTHON_USEDEP}]
|
||||||
|
)
|
||||||
|
"
|
||||||
|
|
||||||
|
distutils_enable_tests unittest
|
@ -1 +1,2 @@
|
|||||||
DIST jeepney-0.4.3.tar.gz 28121 BLAKE2B 2c9b5b5ec26a9af25d28af602827c73c8ec9377a88a4aa79b9a986675c1ef3f195763a338f3efa4ee371f7751dcf05a9f9cfed06c8d6677d81da3699773d5561 SHA512 bfb12c9259a57324759f8be44d1faf2c0535762e72db5f1370e64cb144c0fc537c9bc9cfb9b075932fb3a20e3ef4e0c990c10905cc5a69e3fb088e8de4193689
|
DIST jeepney-0.4.3.tar.gz 28121 BLAKE2B 2c9b5b5ec26a9af25d28af602827c73c8ec9377a88a4aa79b9a986675c1ef3f195763a338f3efa4ee371f7751dcf05a9f9cfed06c8d6677d81da3699773d5561 SHA512 bfb12c9259a57324759f8be44d1faf2c0535762e72db5f1370e64cb144c0fc537c9bc9cfb9b075932fb3a20e3ef4e0c990c10905cc5a69e3fb088e8de4193689
|
||||||
|
DIST jeepney-0.5.0.tar.gz 48460 BLAKE2B 5ce1fd0315ad839cf2e0ec5616a448da840d1d3b1720528a0cd858526815b062929ebdc92916820008969092bce470c88704deb96c6120c086f631d1312985b9 SHA512 ae80a363cac4944cb6a499450835176d63e29545b8025c6dd0241a08b35e7b2564beaab578cbba319799ec5530fd6fed7e9f910e401d68b46290617e5f739992
|
||||||
|
@ -0,0 +1,43 @@
|
|||||||
|
# Copyright 1999-2020 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
|
||||||
|
DISTUTILS_USE_SETUPTOOLS=no
|
||||||
|
PYTHON_COMPAT=( pypy3 python3_{6,7,8,9} )
|
||||||
|
|
||||||
|
inherit distutils-r1
|
||||||
|
|
||||||
|
DESCRIPTION="Low-level, pure Python DBus protocol wrapper"
|
||||||
|
HOMEPAGE="https://gitlab.com/takluyver/jeepney"
|
||||||
|
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="MIT"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86"
|
||||||
|
IUSE="examples"
|
||||||
|
|
||||||
|
BDEPEND="
|
||||||
|
test? (
|
||||||
|
dev-python/pytest-asyncio[${PYTHON_USEDEP}]
|
||||||
|
dev-python/testpath[${PYTHON_USEDEP}]
|
||||||
|
)
|
||||||
|
"
|
||||||
|
|
||||||
|
distutils_enable_tests pytest
|
||||||
|
|
||||||
|
distutils_enable_sphinx docs \
|
||||||
|
dev-python/sphinx_rtd_theme
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
rm jeepney/io/tests/test_trio.py || die
|
||||||
|
distutils-r1_src_prepare
|
||||||
|
}
|
||||||
|
|
||||||
|
python_install_all() {
|
||||||
|
if use examples; then
|
||||||
|
docompress -x "/usr/share/doc/${PF}/examples"
|
||||||
|
dodoc -r examples
|
||||||
|
fi
|
||||||
|
distutils-r1_python_install_all
|
||||||
|
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue