parent
d14fcfcb81
commit
1ce0fda3c4
@ -1,4 +1,3 @@
|
|||||||
DIST sudo-1.8.16.tar.gz 2707358 SHA256 2d83826fc5125bf073acc203dbda1cf2abeee017090ccc9dddb0431a53d5064d SHA512 7cf5399eb65c4b39071213c27c34d35ed2ea9c4578f19f6e8d3777179914fa30a2848c042e9f85e90e3b5d056322b9eb6c79e2d3b9b210a795e9921a1b00200b WHIRLPOOL 747bff26e93475441aab6bb6ff8e51114f8155277d570cbdb28909b7e63a49fcdcf5d65f186a2ec067f1100cac3c0a2e6f3a7611f78d83794f41d6884a8c6fc9
|
DIST sudo-1.8.16.tar.gz 2707358 SHA256 2d83826fc5125bf073acc203dbda1cf2abeee017090ccc9dddb0431a53d5064d SHA512 7cf5399eb65c4b39071213c27c34d35ed2ea9c4578f19f6e8d3777179914fa30a2848c042e9f85e90e3b5d056322b9eb6c79e2d3b9b210a795e9921a1b00200b WHIRLPOOL 747bff26e93475441aab6bb6ff8e51114f8155277d570cbdb28909b7e63a49fcdcf5d65f186a2ec067f1100cac3c0a2e6f3a7611f78d83794f41d6884a8c6fc9
|
||||||
DIST sudo-1.8.17p1.tar.gz 2786618 SHA256 c690d707fb561b3ecdf6a6de5563bc0b769388eff201c851edbace408bb155cc SHA512 e9facd2d5578d4effb516931322b5f4f9578baa779cba281d36a3d0995b1fd9d085d6b141544b3dc698569fa294163bbad9f779166a05a0f18f4ad81a630b954 WHIRLPOOL 7b89fa9f05bbe72929073d83433f21b5a783047118ae7d434cb08cb536d5e47a641c59f5b4c7310c73d7dc994331974e4f209700e83139c2847f68e7dba014b2
|
|
||||||
DIST sudo-1.8.18p1.tar.gz 2822109 SHA256 e5a0471c721281a693025bbde33ebd9d3db43245d83ab8516bbfc23980379434 SHA512 8dceeb5024c4f94fcc15e75fa2fd164af5e0597734f95df43207738b3258c4d396e102faf2b6811e399f1cdbdbf617b87e5bfcc1e591ea6722f45d81d1098fe5 WHIRLPOOL 094c1232517706a6da4a0548f7ab5c0c7b9e12f8ce584db97d0c4793a38c4044538637f2834b9f3104326bd5b4b826d08ab79b1dc2c5b950de7d7f558685ef7b
|
DIST sudo-1.8.18p1.tar.gz 2822109 SHA256 e5a0471c721281a693025bbde33ebd9d3db43245d83ab8516bbfc23980379434 SHA512 8dceeb5024c4f94fcc15e75fa2fd164af5e0597734f95df43207738b3258c4d396e102faf2b6811e399f1cdbdbf617b87e5bfcc1e591ea6722f45d81d1098fe5 WHIRLPOOL 094c1232517706a6da4a0548f7ab5c0c7b9e12f8ce584db97d0c4793a38c4044538637f2834b9f3104326bd5b4b826d08ab79b1dc2c5b950de7d7f558685ef7b
|
||||||
DIST sudo-1.8.19b2.tar.gz 2858411 SHA256 2355261b6e9e74b9784e466d0aaf2b9cadcbc3863b5df30fff7c5cde14fb0df7 SHA512 66aa256db069c790f85d9a46bcbfc0b92075cb7f11781002b306dde2b87414dc3e836eaf83e8dc0e0d26aca33240bdf9b24ba97e036794af50870abd2fb993eb WHIRLPOOL c6251f662154bb3793719d6c199f93a1f686c97b535e82f8f858fa3b5e088a7774b00bf47e972b3b3b6e01a757ad1f9b3b41d1f7e496bc6e31dfab986e3f9080
|
DIST sudo-1.8.19.tar.gz 2859694 SHA256 1130923534b62c18b40b529c6877d1a020db93f876617b56a569d0a1133d0228 SHA512 0b5ee098b376ac8beafb4372d94ae379109321bb0421c17d6994a6570603efc39628f72ab8d59733be88f2483c4569b84f2506750e7a0644fd8f534175eee90b WHIRLPOOL 1d4800ef6957e59353c04fcfca2de425de4c853a2a7986a8fc063c856ffed633fe81593370a099741e8136e941ad206b32296fad234c1ed6c661793b8dd37050
|
||||||
|
@ -1,200 +0,0 @@
|
|||||||
# Copyright 1999-2016 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Id$
|
|
||||||
|
|
||||||
EAPI=6
|
|
||||||
|
|
||||||
inherit eutils pam multilib libtool
|
|
||||||
|
|
||||||
MY_P=${P/_/}
|
|
||||||
MY_P=${MY_P/beta/b}
|
|
||||||
|
|
||||||
uri_prefix=
|
|
||||||
case ${P} in
|
|
||||||
*_beta*|*_rc*) uri_prefix=beta/ ;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
DESCRIPTION="Allows users or groups to run commands as other users"
|
|
||||||
HOMEPAGE="http://www.sudo.ws/"
|
|
||||||
SRC_URI="http://www.sudo.ws/sudo/dist/${uri_prefix}${MY_P}.tar.gz
|
|
||||||
ftp://ftp.sudo.ws/pub/sudo/${uri_prefix}${MY_P}.tar.gz"
|
|
||||||
|
|
||||||
# Basic license is ISC-style as-is, some files are released under
|
|
||||||
# 3-clause BSD license
|
|
||||||
LICENSE="ISC BSD"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~sparc-solaris"
|
|
||||||
IUSE="ldap nls pam offensive selinux skey +sendmail"
|
|
||||||
|
|
||||||
DEPEND="pam? ( virtual/pam )
|
|
||||||
skey? ( >=sys-auth/skey-1.1.5-r1 )
|
|
||||||
ldap? (
|
|
||||||
>=net-nds/openldap-2.1.30-r1
|
|
||||||
dev-libs/cyrus-sasl
|
|
||||||
)
|
|
||||||
sys-libs/zlib"
|
|
||||||
RDEPEND="${DEPEND}
|
|
||||||
selinux? ( sec-policy/selinux-sudo )
|
|
||||||
ldap? ( dev-lang/perl )
|
|
||||||
pam? ( sys-auth/pambase )
|
|
||||||
>=app-misc/editor-wrapper-3
|
|
||||||
virtual/editor
|
|
||||||
sendmail? ( virtual/mta )"
|
|
||||||
DEPEND="${DEPEND}
|
|
||||||
sys-devel/bison"
|
|
||||||
|
|
||||||
S=${WORKDIR}/${MY_P}
|
|
||||||
|
|
||||||
REQUIRED_USE="pam? ( !skey ) skey? ( !pam )"
|
|
||||||
|
|
||||||
MAKEOPTS+=" SAMPLES="
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
default
|
|
||||||
elibtoolize
|
|
||||||
}
|
|
||||||
|
|
||||||
set_rootpath() {
|
|
||||||
# FIXME: secure_path is a compile time setting. using ROOTPATH
|
|
||||||
# is not perfect, env-update may invalidate this, but until it
|
|
||||||
# is available as a sudoers setting this will have to do.
|
|
||||||
einfo "Setting secure_path ..."
|
|
||||||
|
|
||||||
# first extract the default ROOTPATH from build env
|
|
||||||
ROOTPATH=$(unset ROOTPATH; . "${EPREFIX}"/etc/profile.env; echo "${ROOTPATH}")
|
|
||||||
if [[ -z ${ROOTPATH} ]] ; then
|
|
||||||
ewarn " Failed to find ROOTPATH, please report this"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# then remove duplicate path entries
|
|
||||||
cleanpath() {
|
|
||||||
local newpath thisp IFS=:
|
|
||||||
for thisp in $1 ; do
|
|
||||||
if [[ :${newpath}: != *:${thisp}:* ]] ; then
|
|
||||||
newpath+=:$thisp
|
|
||||||
else
|
|
||||||
einfo " Duplicate entry ${thisp} removed..."
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
ROOTPATH=${newpath#:}
|
|
||||||
}
|
|
||||||
cleanpath /bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/opt/bin${ROOTPATH:+:${ROOTPATH}}
|
|
||||||
|
|
||||||
# finally, strip gcc paths #136027
|
|
||||||
rmpath() {
|
|
||||||
local e newpath thisp IFS=:
|
|
||||||
for thisp in ${ROOTPATH} ; do
|
|
||||||
for e ; do [[ $thisp == $e ]] && continue 2 ; done
|
|
||||||
newpath+=:$thisp
|
|
||||||
done
|
|
||||||
ROOTPATH=${newpath#:}
|
|
||||||
}
|
|
||||||
rmpath '*/gcc-bin/*' '*/gnat-gcc-bin/*' '*/gnat-gcc/*'
|
|
||||||
|
|
||||||
einfo "... done"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
local ROOTPATH
|
|
||||||
set_rootpath
|
|
||||||
|
|
||||||
# audit: somebody got to explain me how I can test this before I
|
|
||||||
# enable it.. - Diego
|
|
||||||
# plugindir: autoconf code is crappy and does not delay evaluation
|
|
||||||
# until `make` time, so we have to use a full path here rather than
|
|
||||||
# basing off other values.
|
|
||||||
econf \
|
|
||||||
--enable-zlib=system \
|
|
||||||
--with-secure-path="${ROOTPATH}" \
|
|
||||||
--with-editor="${EPREFIX}"/usr/libexec/editor \
|
|
||||||
--with-env-editor \
|
|
||||||
$(use_with offensive insults) \
|
|
||||||
$(use_with offensive all-insults) \
|
|
||||||
$(use_with ldap ldap_conf_file /etc/ldap.conf.sudo) \
|
|
||||||
$(use_with ldap) \
|
|
||||||
$(use_enable nls) \
|
|
||||||
$(use_with pam) \
|
|
||||||
$(use_with skey) \
|
|
||||||
$(use_with selinux) \
|
|
||||||
$(use_with sendmail) \
|
|
||||||
--without-opie \
|
|
||||||
--without-linux-audit \
|
|
||||||
--with-rundir="${EPREFIX}"/var/run/sudo \
|
|
||||||
--with-vardir="${EPREFIX}"/var/db/sudo \
|
|
||||||
--with-plugindir="${EPREFIX}"/usr/$(get_libdir)/sudo \
|
|
||||||
--docdir="${EPREFIX}"/usr/share/doc/${PF}
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
default
|
|
||||||
|
|
||||||
if use ldap ; then
|
|
||||||
dodoc README.LDAP
|
|
||||||
dosbin plugins/sudoers/sudoers2ldif
|
|
||||||
|
|
||||||
cat <<-EOF > "${T}"/ldap.conf.sudo
|
|
||||||
# See ldap.conf(5) and README.LDAP for details
|
|
||||||
# This file should only be readable by root
|
|
||||||
|
|
||||||
# supported directives: host, port, ssl, ldap_version
|
|
||||||
# uri, binddn, bindpw, sudoers_base, sudoers_debug
|
|
||||||
# tls_{checkpeer,cacertfile,cacertdir,randfile,ciphers,cert,key}
|
|
||||||
EOF
|
|
||||||
|
|
||||||
insinto /etc
|
|
||||||
doins "${T}"/ldap.conf.sudo
|
|
||||||
fperms 0440 /etc/ldap.conf.sudo
|
|
||||||
|
|
||||||
insinto /etc/openldap/schema
|
|
||||||
newins doc/schema.OpenLDAP sudo.schema
|
|
||||||
fi
|
|
||||||
|
|
||||||
pamd_mimic system-auth sudo auth account session
|
|
||||||
|
|
||||||
keepdir /var/db/sudo
|
|
||||||
fperms 0700 /var/db/sudo
|
|
||||||
|
|
||||||
# Don't install into /var/run as that is a tmpfs most of the time
|
|
||||||
# (bug #504854)
|
|
||||||
rm -rf "${D}"/var/run
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
if use ldap ; then
|
|
||||||
ewarn
|
|
||||||
ewarn "sudo uses the /etc/ldap.conf.sudo file for ldap configuration."
|
|
||||||
ewarn
|
|
||||||
if grep -qs '^[[:space:]]*sudoers:' "${ROOT}"/etc/nsswitch.conf ; then
|
|
||||||
ewarn "In 1.7 series, LDAP is no more consulted, unless explicitly"
|
|
||||||
ewarn "configured in /etc/nsswitch.conf."
|
|
||||||
ewarn
|
|
||||||
ewarn "To make use of LDAP, add this line to your /etc/nsswitch.conf:"
|
|
||||||
ewarn " sudoers: ldap files"
|
|
||||||
ewarn
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
if use prefix ; then
|
|
||||||
ewarn
|
|
||||||
ewarn "To use sudo, you need to change file ownership and permissions"
|
|
||||||
ewarn "with root privileges, as follows:"
|
|
||||||
ewarn
|
|
||||||
ewarn " # chown root:root ${EPREFIX}/usr/bin/sudo"
|
|
||||||
ewarn " # chown root:root ${EPREFIX}/usr/lib/sudo/sudoers.so"
|
|
||||||
ewarn " # chown root:root ${EPREFIX}/etc/sudoers"
|
|
||||||
ewarn " # chown root:root ${EPREFIX}/etc/sudoers.d"
|
|
||||||
ewarn " # chown root:root ${EPREFIX}/var/db/sudo"
|
|
||||||
ewarn " # chmod 4111 ${EPREFIX}/usr/bin/sudo"
|
|
||||||
ewarn
|
|
||||||
fi
|
|
||||||
|
|
||||||
elog "To use the -A (askpass) option, you need to install a compatible"
|
|
||||||
elog "password program from the following list. Starred packages will"
|
|
||||||
elog "automatically register for the use with sudo (but will not force"
|
|
||||||
elog "the -A option):"
|
|
||||||
elog ""
|
|
||||||
elog " [*] net-misc/ssh-askpass-fullscreen"
|
|
||||||
elog " net-misc/x11-ssh-askpass"
|
|
||||||
elog ""
|
|
||||||
elog "You can override the choice by setting the SUDO_ASKPASS environmnent"
|
|
||||||
elog "variable to the program you want to use."
|
|
||||||
}
|
|
@ -1,2 +1,3 @@
|
|||||||
DIST borgbackup-1.0.7.tar.gz 462509 SHA256 203353a299b6ea0c092a1f23b6bb5414a0b795712c213c68f7a1f4c24be131d1 SHA512 750e85597043049775a2480fb32df5a10e4ba581a91911e93eeb29dbc517db43f537b54206f8f2ce8fa51530866ed9e490c31e6c35d181853481fb3e6269d8af WHIRLPOOL ec34fa9f144dc3cf35f8ef8c61e70ce4b62dd624b6fcff42ca0db3e017b68e2afa3e379aec0acbc443279df25dded18b79df9ba702cc3f94ed834a9c7ff6eff0
|
DIST borgbackup-1.0.7.tar.gz 462509 SHA256 203353a299b6ea0c092a1f23b6bb5414a0b795712c213c68f7a1f4c24be131d1 SHA512 750e85597043049775a2480fb32df5a10e4ba581a91911e93eeb29dbc517db43f537b54206f8f2ce8fa51530866ed9e490c31e6c35d181853481fb3e6269d8af WHIRLPOOL ec34fa9f144dc3cf35f8ef8c61e70ce4b62dd624b6fcff42ca0db3e017b68e2afa3e379aec0acbc443279df25dded18b79df9ba702cc3f94ed834a9c7ff6eff0
|
||||||
DIST borgbackup-1.0.8.tar.gz 501606 SHA256 6902563c447c4f378ff1a13167f83d15eb60a02316a06368a539b7ff3d88aeb9 SHA512 2a24b302da6cf0266c53a5efc7c1f500c3a3f290c1a49abbced981d2e252886e81b828ab092518f675a81b9865079af66ea34d035b34ebf19a86a153fff6bd45 WHIRLPOOL 8f258bca6b4787e0494f68660e774bcc63d73d3829c5236815858719381c74ca037fcb418cef039e05b74e7da0535cbe941e3e1a8185e51cae1deb8a5aa58505
|
DIST borgbackup-1.0.8.tar.gz 501606 SHA256 6902563c447c4f378ff1a13167f83d15eb60a02316a06368a539b7ff3d88aeb9 SHA512 2a24b302da6cf0266c53a5efc7c1f500c3a3f290c1a49abbced981d2e252886e81b828ab092518f675a81b9865079af66ea34d035b34ebf19a86a153fff6bd45 WHIRLPOOL 8f258bca6b4787e0494f68660e774bcc63d73d3829c5236815858719381c74ca037fcb418cef039e05b74e7da0535cbe941e3e1a8185e51cae1deb8a5aa58505
|
||||||
|
DIST borgbackup-1.0.9.tar.gz 541796 SHA256 35860840e0429d4bb3acc8b9dd33aa5996a42fb2b678813a982b321a7dba3cb2 SHA512 5623916b143a3d39cab41bc5cca82589a612035d9be0bfd0d211656a975b986bc0c04133bdd1ba44b628fffd84f2c4294530a7c37b9c874e878b77d6105ff0ad WHIRLPOOL 76d740c07bc9767c80e3a725cdbba3f0c990d0e67643089e38f020aa611248f3d3694b07605c12d17645e7af5c1ba7ce7b86a458496350c8c798ab6b97cd0cde
|
||||||
|
@ -0,0 +1,40 @@
|
|||||||
|
# Copyright 1999-2016 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Id$
|
||||||
|
|
||||||
|
EAPI="6"
|
||||||
|
|
||||||
|
PYTHON_COMPAT=( python3_{4,5} )
|
||||||
|
|
||||||
|
inherit distutils-r1
|
||||||
|
|
||||||
|
if [[ ${PV} == "9999" ]] ; then
|
||||||
|
EGIT_REPO_URI="https://github.com/${PN}/borg.git"
|
||||||
|
inherit git-r3
|
||||||
|
else
|
||||||
|
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
fi
|
||||||
|
|
||||||
|
DESCRIPTION="Deduplicating backup program with compression and authenticated encryption."
|
||||||
|
HOMEPAGE="https://borgbackup.readthedocs.io/"
|
||||||
|
|
||||||
|
LICENSE="BSD"
|
||||||
|
SLOT="0"
|
||||||
|
IUSE="libressl +fuse"
|
||||||
|
|
||||||
|
# Unformately we have a file conflict with app-office/borg, bug #580402
|
||||||
|
RDEPEND="
|
||||||
|
!!app-office/borg
|
||||||
|
app-arch/lz4
|
||||||
|
dev-python/msgpack[${PYTHON_USEDEP}]
|
||||||
|
!libressl? ( dev-libs/openssl:0= )
|
||||||
|
libressl? ( dev-libs/libressl:0= )
|
||||||
|
fuse? ( dev-python/llfuse[${PYTHON_USEDEP}] )
|
||||||
|
"
|
||||||
|
|
||||||
|
DEPEND="
|
||||||
|
dev-python/setuptools_scm[${PYTHON_USEDEP}]
|
||||||
|
dev-python/cython[${PYTHON_USEDEP}]
|
||||||
|
${RDEPEND}
|
||||||
|
"
|
@ -1,2 +1,3 @@
|
|||||||
DIST snapper-0.2.8.tar.bz2 475053 SHA256 a44608648ed21a1346f8ae9345044901c39ad01abb501806a22c9d4a771eadc5 SHA512 ce1529062943c34b9de2eafb62c6e28b39bda6f4afc23ec5df5ddd42f213cbaf0d77d94d11d982285114ceecd27bd48206436119af84b2769ed4792aab01c75d WHIRLPOOL 3463cf8beb7adb1f3869645b20928dc21fc9cb72f8ed5275688e0b53c97b8103d0536e3246f12fcdc90c1889d221d13ce131b1920c7298232212c003ea9abb6d
|
DIST snapper-0.2.8.tar.bz2 475053 SHA256 a44608648ed21a1346f8ae9345044901c39ad01abb501806a22c9d4a771eadc5 SHA512 ce1529062943c34b9de2eafb62c6e28b39bda6f4afc23ec5df5ddd42f213cbaf0d77d94d11d982285114ceecd27bd48206436119af84b2769ed4792aab01c75d WHIRLPOOL 3463cf8beb7adb1f3869645b20928dc21fc9cb72f8ed5275688e0b53c97b8103d0536e3246f12fcdc90c1889d221d13ce131b1920c7298232212c003ea9abb6d
|
||||||
DIST snapper-0.3.3.tar.bz2 545800 SHA256 e64f42417fffed65524ce125eb31b5dbdd802a519ef04dd88c9251ef2784fe10 SHA512 f24f6d121f9a613549899b7bf3751f6d9c101db716d7bc3858a2add9f90e08861fc46927ce0130efc232240a91e24934820d0c2b1b65f206ac80d04cdaaec39d WHIRLPOOL 8a55ec12330d13bb1c4a630584418eb0e4f64580324ec8ff9fe444a1d52a4eafddac6c6c6cefc8aec760d84336f24c389e3f6d79ff07d9a40bb69cedbf35c8b7
|
DIST snapper-0.3.3.tar.bz2 545800 SHA256 e64f42417fffed65524ce125eb31b5dbdd802a519ef04dd88c9251ef2784fe10 SHA512 f24f6d121f9a613549899b7bf3751f6d9c101db716d7bc3858a2add9f90e08861fc46927ce0130efc232240a91e24934820d0c2b1b65f206ac80d04cdaaec39d WHIRLPOOL 8a55ec12330d13bb1c4a630584418eb0e4f64580324ec8ff9fe444a1d52a4eafddac6c6c6cefc8aec760d84336f24c389e3f6d79ff07d9a40bb69cedbf35c8b7
|
||||||
|
DIST snapper-0.4.0.tar.bz2 570614 SHA256 3818e123c29ffb1e3c62104c7623643cdc1fcab9494ba2c7e71825fbf68f6c77 SHA512 e4e75b31932309fd4cd3abc462826414f727ae5eec4fd79922d34a6fecd80e3e7bd5d8da4d3e5ac6ede021a21e68cb2ca127559567e8089b9d4636b6e6b61711 WHIRLPOOL 7799aba8e26a46d333d801f1733299ca68161a465702a7666bc68780de773f265bfcddc62126c1c703fde21af8052c878ddd4a87a662f5ad48c5230939a16bc5
|
||||||
|
@ -0,0 +1,73 @@
|
|||||||
|
# Copyright 1999-2016 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Id$
|
||||||
|
|
||||||
|
EAPI=5
|
||||||
|
|
||||||
|
inherit eutils
|
||||||
|
|
||||||
|
DESCRIPTION="Command-line program for btrfs and ext4 snapshot management"
|
||||||
|
HOMEPAGE="http://snapper.io/"
|
||||||
|
SRC_URI="ftp://ftp.suse.com/pub/projects/snapper/${P}.tar.bz2"
|
||||||
|
|
||||||
|
LICENSE="GPL-2"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
IUSE="+btrfs ext4 lvm pam xattr"
|
||||||
|
|
||||||
|
RDEPEND="dev-libs/boost:=[threads]
|
||||||
|
dev-libs/libxml2
|
||||||
|
dev-libs/icu:=
|
||||||
|
sys-apps/acl
|
||||||
|
sys-apps/dbus
|
||||||
|
sys-apps/util-linux
|
||||||
|
sys-libs/zlib
|
||||||
|
virtual/libintl
|
||||||
|
btrfs? ( >=sys-fs/btrfs-progs-3.17.1 )
|
||||||
|
ext4? ( sys-fs/e2fsprogs )
|
||||||
|
lvm? ( sys-fs/lvm2 )
|
||||||
|
pam? ( sys-libs/pam )
|
||||||
|
xattr? ( sys-apps/attr )"
|
||||||
|
|
||||||
|
DEPEND="${RDEPEND}
|
||||||
|
sys-devel/gettext
|
||||||
|
virtual/pkgconfig"
|
||||||
|
|
||||||
|
REQUIRED_USE="|| ( btrfs ext4 lvm )"
|
||||||
|
|
||||||
|
DOCS=( AUTHORS )
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
epatch "${FILESDIR}"/cron-confd.patch
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
local myeconfargs=(
|
||||||
|
--with-conf="/etc/conf.d"
|
||||||
|
--docdir="/usr/share/doc/${PF}"
|
||||||
|
--disable-zypp
|
||||||
|
--enable-rollback
|
||||||
|
$(use_enable btrfs)
|
||||||
|
$(use_enable ext4)
|
||||||
|
$(use_enable lvm)
|
||||||
|
$(use_enable pam)
|
||||||
|
$(use_enable xattr xattrs)
|
||||||
|
)
|
||||||
|
|
||||||
|
econf "${myeconfargs[@]}"
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
default
|
||||||
|
# Existing configuration file required to function
|
||||||
|
newconfd data/sysconfig.snapper snapper
|
||||||
|
prune_libtool_files
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
elog "In order to use Snapper, you need to set up"
|
||||||
|
elog "at least one config first. To do this, run:"
|
||||||
|
elog "snapper create-config <subvolume>"
|
||||||
|
elog "For more information, see man (8) snapper or"
|
||||||
|
elog "http://snapper.io/documentation.html"
|
||||||
|
}
|
@ -0,0 +1 @@
|
|||||||
|
DIST manuale-1.0.3.tar.gz 13407 SHA256 97a5108be4e603c43af4d9ac76305ef9d376964e94753702287c87b5c1d26a51 SHA512 b413b28908ee0a2b2c441580e7e2098dfe90945a77314cd30a7029b49cfdb33caadcb25b7a5a98ce5b6b8c1b031a272ba072fc6d85eabf96813b02b4267ea184 WHIRLPOOL aff7fe2c48e81c5a64799e82f2ed1e166fc168c0c0d697ad5b443ff06168e0b08bd06d7c52d7b5f9081b0d9db4da8147194adec3bf1f25b3287af89090f07b70
|
@ -0,0 +1,25 @@
|
|||||||
|
# Copyright 1999-2016 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Id$
|
||||||
|
|
||||||
|
EAPI=6
|
||||||
|
|
||||||
|
PYTHON_COMPAT=( python{2_7,3_4} )
|
||||||
|
|
||||||
|
inherit distutils-r1
|
||||||
|
|
||||||
|
DESCRIPTION="A fully manual Let's Encrypt client"
|
||||||
|
HOMEPAGE="https://github.com/veeti/manuale"
|
||||||
|
SRC_URI="https://github.com/veeti/manuale/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="MIT"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64"
|
||||||
|
IUSE=""
|
||||||
|
|
||||||
|
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
|
||||||
|
RDEPEND="${DEPEND}
|
||||||
|
dev-python/cryptography[${PYTHON_USEDEP}]
|
||||||
|
dev-python/requests[${PYTHON_USEDEP}]"
|
||||||
|
|
||||||
|
DOCS=( README.md CHANGELOG.md)
|
@ -0,0 +1,11 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||||
|
<pkgmetadata>
|
||||||
|
<maintainer type="person">
|
||||||
|
<email>mrueg@gentoo.org</email>
|
||||||
|
<name>Manuel Rüger</name>
|
||||||
|
</maintainer>
|
||||||
|
<upstream>
|
||||||
|
<remote-id type="github">veeti/manuale</remote-id>
|
||||||
|
</upstream>
|
||||||
|
</pkgmetadata>
|
@ -0,0 +1,395 @@
|
|||||||
|
# Copyright 1999-2016 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Id$
|
||||||
|
|
||||||
|
EAPI=5
|
||||||
|
|
||||||
|
inherit eutils user autotools-utils linux-info systemd readme.gentoo-r1
|
||||||
|
|
||||||
|
BACKPORTS=""
|
||||||
|
|
||||||
|
if [[ ${PV} = *9999* ]]; then
|
||||||
|
inherit git-r3
|
||||||
|
EGIT_REPO_URI="git://libvirt.org/libvirt.git"
|
||||||
|
SRC_URI=""
|
||||||
|
KEYWORDS=""
|
||||||
|
SLOT="0"
|
||||||
|
else
|
||||||
|
# Versions with 4 numbers are stable updates:
|
||||||
|
if [[ ${PV} =~ ^[0-9]+(\.[0-9]+){3} ]]; then
|
||||||
|
SRC_URI="http://libvirt.org/sources/stable_updates/${P}.tar.xz"
|
||||||
|
else
|
||||||
|
SRC_URI="http://libvirt.org/sources/${P}.tar.xz"
|
||||||
|
fi
|
||||||
|
SRC_URI+=" ${BACKPORTS:+
|
||||||
|
https://dev.gentoo.org/~cardoe/distfiles/${P}-${BACKPORTS}.tar.xz
|
||||||
|
https://dev.gentoo.org/~tamiko/distfiles/${P}-${BACKPORTS}.tar.xz}"
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
SLOT="0/${PV}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
DESCRIPTION="C toolkit to manipulate virtual machines"
|
||||||
|
HOMEPAGE="http://www.libvirt.org/"
|
||||||
|
LICENSE="LGPL-2.1"
|
||||||
|
IUSE="
|
||||||
|
apparmor audit +caps firewalld fuse glusterfs iscsi +libvirtd lvm libssh
|
||||||
|
lxc +macvtap nfs nls numa openvz parted pcap phyp policykit +qemu rbd
|
||||||
|
sasl selinux +udev uml +vepa virtualbox virt-network wireshark-plugins
|
||||||
|
xen zeroconf zfs elibc_glibc
|
||||||
|
"
|
||||||
|
|
||||||
|
REQUIRED_USE="
|
||||||
|
firewalld? ( virt-network )
|
||||||
|
libvirtd? ( || ( lxc openvz qemu uml virtualbox xen ) )
|
||||||
|
lxc? ( caps libvirtd )
|
||||||
|
openvz? ( libvirtd )
|
||||||
|
qemu? ( libvirtd )
|
||||||
|
uml? ( libvirtd )
|
||||||
|
vepa? ( macvtap )
|
||||||
|
virt-network? ( libvirtd )
|
||||||
|
virtualbox? ( libvirtd )
|
||||||
|
xen? ( libvirtd )"
|
||||||
|
|
||||||
|
# gettext.sh command is used by the libvirt command wrappers, and it's
|
||||||
|
# non-optional, so put it into RDEPEND.
|
||||||
|
# We can use both libnl:1.1 and libnl:3, but if you have both installed, the
|
||||||
|
# package will use 3 by default. Since we don't have slot pinning in an API,
|
||||||
|
# we must go with the most recent
|
||||||
|
RDEPEND="
|
||||||
|
app-misc/scrub
|
||||||
|
dev-libs/libgcrypt:0
|
||||||
|
dev-libs/libnl:3
|
||||||
|
>=dev-libs/libxml2-2.7.6
|
||||||
|
|| ( >=net-analyzer/netcat6-1.0-r2 >=net-analyzer/openbsd-netcat-1.105-r1 )
|
||||||
|
>=net-libs/gnutls-1.0.25:0=
|
||||||
|
net-libs/libssh2
|
||||||
|
>=net-misc/curl-7.18.0
|
||||||
|
sys-apps/dmidecode
|
||||||
|
>=sys-apps/util-linux-2.17
|
||||||
|
sys-devel/gettext
|
||||||
|
sys-libs/ncurses:0=
|
||||||
|
sys-libs/readline:=
|
||||||
|
apparmor? ( sys-libs/libapparmor )
|
||||||
|
audit? ( sys-process/audit )
|
||||||
|
caps? ( sys-libs/libcap-ng )
|
||||||
|
elibc_glibc? ( sys-libs/glibc[rpc(+)] )
|
||||||
|
firewalld? ( net-firewall/firewalld )
|
||||||
|
fuse? ( >=sys-fs/fuse-2.8.6 )
|
||||||
|
glusterfs? ( >=sys-cluster/glusterfs-3.4.1 )
|
||||||
|
iscsi? ( sys-block/open-iscsi )
|
||||||
|
libssh? ( net-libs/libssh )
|
||||||
|
lvm? ( >=sys-fs/lvm2-2.02.48-r2[-device-mapper-only(-)] )
|
||||||
|
nfs? ( net-fs/nfs-utils )
|
||||||
|
numa? (
|
||||||
|
>sys-process/numactl-2.0.2
|
||||||
|
sys-process/numad
|
||||||
|
)
|
||||||
|
openvz? ( sys-kernel/openvz-sources:* )
|
||||||
|
parted? (
|
||||||
|
>=sys-block/parted-1.8[device-mapper]
|
||||||
|
sys-fs/lvm2[-device-mapper-only(-)]
|
||||||
|
)
|
||||||
|
pcap? ( >=net-libs/libpcap-1.0.0 )
|
||||||
|
policykit? ( >=sys-auth/polkit-0.9 )
|
||||||
|
qemu? (
|
||||||
|
>=app-emulation/qemu-0.13.0
|
||||||
|
dev-libs/yajl
|
||||||
|
)
|
||||||
|
rbd? ( sys-cluster/ceph )
|
||||||
|
sasl? ( dev-libs/cyrus-sasl )
|
||||||
|
selinux? ( >=sys-libs/libselinux-2.0.85 )
|
||||||
|
virt-network? (
|
||||||
|
net-dns/dnsmasq[script]
|
||||||
|
net-firewall/ebtables
|
||||||
|
>=net-firewall/iptables-1.4.10[ipv6]
|
||||||
|
net-misc/radvd
|
||||||
|
sys-apps/iproute2[-minimal]
|
||||||
|
)
|
||||||
|
virtualbox? ( || ( app-emulation/virtualbox >=app-emulation/virtualbox-bin-2.2.0 ) )
|
||||||
|
wireshark-plugins? ( net-analyzer/wireshark:= )
|
||||||
|
xen? (
|
||||||
|
app-emulation/xen
|
||||||
|
app-emulation/xen-tools:=
|
||||||
|
)
|
||||||
|
udev? (
|
||||||
|
virtual/udev
|
||||||
|
>=x11-libs/libpciaccess-0.10.9
|
||||||
|
)
|
||||||
|
zeroconf? ( >=net-dns/avahi-0.6[dbus] )
|
||||||
|
zfs? ( sys-fs/zfs )"
|
||||||
|
|
||||||
|
DEPEND="${RDEPEND}
|
||||||
|
app-text/xhtml1
|
||||||
|
dev-lang/perl
|
||||||
|
dev-libs/libxslt
|
||||||
|
dev-perl/XML-XPath
|
||||||
|
virtual/pkgconfig"
|
||||||
|
|
||||||
|
pkg_setup() {
|
||||||
|
enewgroup qemu 77
|
||||||
|
enewuser qemu 77 -1 -1 "qemu,kvm"
|
||||||
|
|
||||||
|
# Some people used the masked ebuild which was not adding the qemu
|
||||||
|
# user to the kvm group originally. This results in VMs failing to
|
||||||
|
# start for some users. bug #430808
|
||||||
|
egetent group kvm | grep -q qemu
|
||||||
|
if [[ $? -ne 0 ]]; then
|
||||||
|
gpasswd -a qemu kvm
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Check kernel configuration:
|
||||||
|
CONFIG_CHECK=""
|
||||||
|
use fuse && CONFIG_CHECK+="
|
||||||
|
~FUSE_FS"
|
||||||
|
|
||||||
|
use lvm && CONFIG_CHECK+="
|
||||||
|
~BLK_DEV_DM
|
||||||
|
~DM_MULTIPATH
|
||||||
|
~DM_SNAPSHOT"
|
||||||
|
|
||||||
|
use lxc && CONFIG_CHECK+="
|
||||||
|
~BLK_CGROUP
|
||||||
|
~CGROUP_CPUACCT
|
||||||
|
~CGROUP_DEVICE
|
||||||
|
~CGROUP_FREEZER
|
||||||
|
~CGROUP_NET_PRIO
|
||||||
|
~CGROUP_PERF
|
||||||
|
~CGROUPS
|
||||||
|
~CGROUP_SCHED
|
||||||
|
~CPUSETS
|
||||||
|
~IPC_NS
|
||||||
|
~MACVLAN
|
||||||
|
~NAMESPACES
|
||||||
|
~NET_CLS_CGROUP
|
||||||
|
~NET_NS
|
||||||
|
~PID_NS
|
||||||
|
~POSIX_MQUEUE
|
||||||
|
~SECURITYFS
|
||||||
|
~USER_NS
|
||||||
|
~UTS_NS
|
||||||
|
~VETH
|
||||||
|
~!GRKERNSEC_CHROOT_MOUNT
|
||||||
|
~!GRKERNSEC_CHROOT_DOUBLE
|
||||||
|
~!GRKERNSEC_CHROOT_PIVOT
|
||||||
|
~!GRKERNSEC_CHROOT_CHMOD
|
||||||
|
~!GRKERNSEC_CHROOT_CAPS"
|
||||||
|
|
||||||
|
kernel_is lt 4 7 && use lxc && CONFIG_CHECK+="
|
||||||
|
~DEVPTS_MULTIPLE_INSTANCES"
|
||||||
|
|
||||||
|
use macvtap && CONFIG_CHECK+="
|
||||||
|
~MACVTAP"
|
||||||
|
|
||||||
|
use virt-network && CONFIG_CHECK+="
|
||||||
|
~BRIDGE_EBT_MARK_T
|
||||||
|
~BRIDGE_NF_EBTABLES
|
||||||
|
~NETFILTER_ADVANCED
|
||||||
|
~NETFILTER_XT_CONNMARK
|
||||||
|
~NETFILTER_XT_MARK
|
||||||
|
~NETFILTER_XT_TARGET_CHECKSUM"
|
||||||
|
# Bandwidth Limiting Support
|
||||||
|
use virt-network && CONFIG_CHECK+="
|
||||||
|
~BRIDGE_EBT_T_NAT
|
||||||
|
~NET_ACT_POLICE
|
||||||
|
~NET_CLS_FW
|
||||||
|
~NET_CLS_U32
|
||||||
|
~NET_SCH_HTB
|
||||||
|
~NET_SCH_INGRESS
|
||||||
|
~NET_SCH_SFQ"
|
||||||
|
|
||||||
|
# Handle specific kernel versions for different features
|
||||||
|
kernel_is lt 3 6 && CONFIG_CHECK+=" ~CGROUP_MEM_RES_CTLR"
|
||||||
|
if kernel_is ge 3 6; then
|
||||||
|
CONFIG_CHECK+=" ~MEMCG ~MEMCG_SWAP "
|
||||||
|
kernel_is lt 4 5 && CONFIG_CHECK+=" ~MEMCG_KMEM "
|
||||||
|
fi
|
||||||
|
|
||||||
|
ERROR_USER_NS="Optional depending on LXC configuration."
|
||||||
|
|
||||||
|
if [[ -n ${CONFIG_CHECK} ]]; then
|
||||||
|
linux-info_pkg_setup
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
touch "${S}/.mailmap"
|
||||||
|
|
||||||
|
if [[ ${PV} = *9999* ]]; then
|
||||||
|
# git checkouts require bootstrapping to create the configure script.
|
||||||
|
# Additionally the submodules must be cloned to the right locations
|
||||||
|
# bug #377279
|
||||||
|
./bootstrap || die "bootstrap failed"
|
||||||
|
(
|
||||||
|
git submodule status | sed 's/^[ +-]//;s/ .*//'
|
||||||
|
git hash-object bootstrap.conf
|
||||||
|
) >.git-module-status
|
||||||
|
fi
|
||||||
|
|
||||||
|
epatch \
|
||||||
|
"${FILESDIR}"/${PN}-1.3.0-do_not_use_sysconf.patch \
|
||||||
|
"${FILESDIR}"/${PN}-1.2.16-fix_paths_in_libvirt-guests_sh.patch \
|
||||||
|
"${FILESDIR}"/${PN}-1.3.1-fix_paths_for_apparmor.patch \
|
||||||
|
"${FILESDIR}"/${PN}-1.3.4-glibc-2.23.patch
|
||||||
|
|
||||||
|
[[ -n ${BACKPORTS} ]] &&
|
||||||
|
EPATCH_FORCE=yes EPATCH_SUFFIX="patch" \
|
||||||
|
EPATCH_SOURCE="${WORKDIR}/patches" epatch
|
||||||
|
|
||||||
|
epatch_user
|
||||||
|
|
||||||
|
# Tweak the init script:
|
||||||
|
cp "${FILESDIR}/libvirtd.init-r16" "${S}/libvirtd.init" || die
|
||||||
|
sed -e "s/USE_FLAG_FIREWALLD/$(usex firewalld 'need firewalld' '')/" \
|
||||||
|
-e "s/USE_FLAG_AVAHI/$(usex zeroconf 'use avahi-daemon' '')/" \
|
||||||
|
-e "s/USE_FLAG_ISCSI/$(usex iscsi 'use iscsid' '')/" \
|
||||||
|
-e "s/USE_FLAG_RBD/$(usex rbd 'use ceph' '')/" \
|
||||||
|
-i "${S}/libvirtd.init" || die "sed failed"
|
||||||
|
|
||||||
|
AUTOTOOLS_AUTORECONF=true
|
||||||
|
autotools-utils_src_prepare
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
local myeconfargs=(
|
||||||
|
$(use_with apparmor)
|
||||||
|
$(use_with apparmor apparmor-profiles)
|
||||||
|
$(use_with audit)
|
||||||
|
$(use_with caps capng)
|
||||||
|
$(use_with firewalld)
|
||||||
|
$(use_with fuse)
|
||||||
|
$(use_with glusterfs)
|
||||||
|
$(use_with glusterfs storage-gluster)
|
||||||
|
$(use_with iscsi storage-iscsi)
|
||||||
|
$(use_with libvirtd)
|
||||||
|
$(use_with libssh)
|
||||||
|
$(use_with lvm storage-lvm)
|
||||||
|
$(use_with lvm storage-mpath)
|
||||||
|
$(use_with lxc)
|
||||||
|
$(use_with macvtap)
|
||||||
|
$(use_enable nls)
|
||||||
|
$(use_with numa numactl)
|
||||||
|
$(use_with numa numad)
|
||||||
|
$(use_with openvz)
|
||||||
|
$(use_with parted storage-disk)
|
||||||
|
$(use_with pcap libpcap)
|
||||||
|
$(use_with phyp)
|
||||||
|
$(use_with policykit polkit)
|
||||||
|
$(use_with qemu)
|
||||||
|
$(use_with qemu yajl)
|
||||||
|
$(use_with rbd storage-rbd)
|
||||||
|
$(use_with sasl)
|
||||||
|
$(use_with selinux)
|
||||||
|
$(use_with udev)
|
||||||
|
$(use_with uml)
|
||||||
|
$(use_with vepa virtualport)
|
||||||
|
$(use_with virt-network network)
|
||||||
|
$(use_with wireshark-plugins wireshark-dissector)
|
||||||
|
$(use_with xen)
|
||||||
|
$(use_with xen xen-inotify)
|
||||||
|
$(use_with xen libxl)
|
||||||
|
$(use_with zeroconf avahi)
|
||||||
|
$(use_with zfs storage-zfs)
|
||||||
|
|
||||||
|
--without-hal
|
||||||
|
--without-netcf
|
||||||
|
--without-sanlock
|
||||||
|
--without-xenapi
|
||||||
|
|
||||||
|
--with-esx
|
||||||
|
--with-init-script=systemd
|
||||||
|
--with-qemu-group=$(usex caps qemu root)
|
||||||
|
--with-qemu-user=$(usex caps qemu root)
|
||||||
|
--with-remote
|
||||||
|
--with-storage-fs
|
||||||
|
--with-vmware
|
||||||
|
|
||||||
|
--disable-static
|
||||||
|
--disable-werror
|
||||||
|
|
||||||
|
--with-html-subdir=${PF}/html
|
||||||
|
--localstatedir=/var
|
||||||
|
)
|
||||||
|
|
||||||
|
if use virtualbox && has_version app-emulation/virtualbox-ose; then
|
||||||
|
myeconfargs+=( --with-vbox=/usr/lib/virtualbox-ose/ )
|
||||||
|
else
|
||||||
|
myeconfargs+=( $(use_with virtualbox vbox) )
|
||||||
|
fi
|
||||||
|
|
||||||
|
autotools-utils_src_configure
|
||||||
|
|
||||||
|
if [[ ${PV} = *9999* ]]; then
|
||||||
|
# Restore gnulib's config.sub and config.guess
|
||||||
|
# bug #377279
|
||||||
|
(cd .gnulib && git reset --hard > /dev/null)
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
src_test() {
|
||||||
|
cd "${BUILD_DIR}"
|
||||||
|
|
||||||
|
# remove problematic tests, bug #591416, bug #591418
|
||||||
|
sed -i -e 's#commandtest$(EXEEXT) # #' \
|
||||||
|
-e 's#virfirewalltest$(EXEEXT) # #' \
|
||||||
|
-e 's#nwfilterebiptablestest$(EXEEXT) # #' \
|
||||||
|
-e 's#nwfilterxml2firewalltest$(EXEEXT)$##' \
|
||||||
|
tests/Makefile
|
||||||
|
|
||||||
|
export VIR_TEST_DEBUG=1
|
||||||
|
HOME="${T}" emake check || die "tests failed"
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
autotools-utils_src_compile install \
|
||||||
|
DESTDIR="${D}" \
|
||||||
|
SYSTEMD_UNIT_DIR="$(systemd_get_unitdir)"
|
||||||
|
|
||||||
|
find "${D}" -name '*.la' -delete || die
|
||||||
|
|
||||||
|
# Remove bogus, empty directories. They are either not used, or
|
||||||
|
# libvirtd is able to create them on demand
|
||||||
|
rm -rf "${D}"/etc/sysconfig
|
||||||
|
rm -rf "${D}"/var/cache
|
||||||
|
rm -rf "${D}"/var/run
|
||||||
|
rm -rf "${D}"/var/log
|
||||||
|
|
||||||
|
use libvirtd || return 0
|
||||||
|
# From here, only libvirtd-related instructions, be warned!
|
||||||
|
|
||||||
|
systemd_install_serviced \
|
||||||
|
"${FILESDIR}"/libvirtd.service.conf libvirtd.service
|
||||||
|
|
||||||
|
systemd_newtmpfilesd "${FILESDIR}"/libvirtd.tmpfiles.conf libvirtd.conf
|
||||||
|
|
||||||
|
newinitd "${S}/libvirtd.init" libvirtd || die
|
||||||
|
newinitd "${FILESDIR}/libvirt-guests.init-r2" libvirt-guests || die
|
||||||
|
newinitd "${FILESDIR}/virtlockd.init-r1" virtlockd || die
|
||||||
|
newinitd "${FILESDIR}/virtlogd.init-r1" virtlogd || die
|
||||||
|
|
||||||
|
newconfd "${FILESDIR}/libvirtd.confd-r5" libvirtd || die
|
||||||
|
newconfd "${FILESDIR}/libvirt-guests.confd" libvirt-guests || die
|
||||||
|
|
||||||
|
DOC_CONTENTS=$(<"${FILESDIR}/README.gentoo-r1")
|
||||||
|
DISABLE_AUTOFORMATTING=true
|
||||||
|
readme.gentoo_create_doc
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_preinst() {
|
||||||
|
# we only ever want to generate this once
|
||||||
|
if [[ -e "${ROOT}"/etc/libvirt/qemu/networks/default.xml ]]; then
|
||||||
|
rm -rf "${D}"/etc/libvirt/qemu/networks/default.xml
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
if [[ -e "${ROOT}"/etc/libvirt/qemu/networks/default.xml ]]; then
|
||||||
|
touch "${ROOT}"/etc/libvirt/qemu/networks/default.xml
|
||||||
|
fi
|
||||||
|
|
||||||
|
use libvirtd || return 0
|
||||||
|
# From here, only libvirtd-related instructions, be warned!
|
||||||
|
|
||||||
|
DOC_CONTENTS=$(<"${FILESDIR}/README.gentoo-r1")
|
||||||
|
DISABLE_AUTOFORMATTING=true
|
||||||
|
readme.gentoo_print_elog
|
||||||
|
}
|
@ -0,0 +1,20 @@
|
|||||||
|
# Copyright 1999-2016 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Id$
|
||||||
|
EAPI=6
|
||||||
|
|
||||||
|
MY_PN="${PN%-cpp}"
|
||||||
|
MY_P="${MY_PN}-${PV}"
|
||||||
|
|
||||||
|
DESCRIPTION="The ANTLR 3 C++ Runtime"
|
||||||
|
HOMEPAGE="http://www.antlr3.org/"
|
||||||
|
SRC_URI="https://github.com/${MY_PN}/${MY_PN}3/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||||
|
LICENSE="BSD"
|
||||||
|
SLOT="3.5"
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
|
||||||
|
S="${WORKDIR}/${MY_PN}3-${PV}"
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
doheader "${S}"/runtime/Cpp/include/*
|
||||||
|
}
|
@ -1,208 +0,0 @@
|
|||||||
# Copyright 1999-2016 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Id$
|
|
||||||
|
|
||||||
EAPI="6"
|
|
||||||
MY_EXTRAS_VER="20160629-1442Z"
|
|
||||||
SUBSLOT="18"
|
|
||||||
MYSQL_PV_MAJOR="5.6"
|
|
||||||
|
|
||||||
JAVA_PKG_OPT_USE="jdbc"
|
|
||||||
|
|
||||||
inherit toolchain-funcs java-pkg-opt-2 mysql-multilib-r1
|
|
||||||
|
|
||||||
HOMEPAGE="http://mariadb.org/"
|
|
||||||
DESCRIPTION="An enhanced, drop-in replacement for MySQL"
|
|
||||||
|
|
||||||
IUSE="bindist jdbc odbc oqgraph pam sphinx tokudb xml"
|
|
||||||
RESTRICT="!bindist? ( bindist )"
|
|
||||||
|
|
||||||
REQUIRED_USE="server? ( tokudb? ( jemalloc ) ) static? ( !pam )"
|
|
||||||
|
|
||||||
# REMEMBER: also update eclass/mysql*.eclass before committing!
|
|
||||||
KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86 ~sparc-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris"
|
|
||||||
|
|
||||||
MY_PATCH_DIR="${WORKDIR}/mysql-extras-${MY_EXTRAS_VER}"
|
|
||||||
PATCHES=(
|
|
||||||
"${MY_PATCH_DIR}/01050_all_mariadb_mysql_config_cleanup-5.5.41.patch"
|
|
||||||
"${MY_PATCH_DIR}/20006_all_cmake_elib-mariadb-10.0.26.patch"
|
|
||||||
"${MY_PATCH_DIR}/20009_all_mariadb_myodbc_symbol_fix-5.5.38.patch"
|
|
||||||
"${MY_PATCH_DIR}/20018_all_mariadb-10.0.20-without-clientlibs-tools.patch"
|
|
||||||
)
|
|
||||||
COMMON_DEPEND="
|
|
||||||
!bindist? ( >=sys-libs/readline-4.1:0= )
|
|
||||||
server? (
|
|
||||||
extraengine? (
|
|
||||||
odbc? ( dev-db/unixODBC:0= )
|
|
||||||
xml? ( dev-libs/libxml2:2= )
|
|
||||||
)
|
|
||||||
oqgraph? ( >=dev-libs/boost-1.40.0:0= dev-libs/judy:0= )
|
|
||||||
pam? ( virtual/pam:0= )
|
|
||||||
tokudb? ( app-arch/snappy )
|
|
||||||
)
|
|
||||||
>=dev-libs/libpcre-8.35:3=
|
|
||||||
"
|
|
||||||
DEPEND="|| ( >=sys-devel/gcc-3.4.6 >=sys-devel/gcc-apple-4.0 )
|
|
||||||
server? ( extraengine? ( jdbc? ( >=virtual/jdk-1.6 ) ) )
|
|
||||||
${COMMON_DEPEND}"
|
|
||||||
RDEPEND="${RDEPEND} ${COMMON_DEPEND}
|
|
||||||
perl? ( !dev-db/mytop
|
|
||||||
virtual/perl-Getopt-Long
|
|
||||||
dev-perl/TermReadKey
|
|
||||||
virtual/perl-Term-ANSIColor
|
|
||||||
virtual/perl-Time-HiRes )
|
|
||||||
server? ( extraengine? ( jdbc? ( >=virtual/jre-1.6 ) ) )
|
|
||||||
"
|
|
||||||
MULTILIB_WRAPPED_HEADERS+=( /usr/include/mysql/mysql_version.h
|
|
||||||
/usr/include/mysql/private/probes_mysql_nodtrace.h
|
|
||||||
/usr/include/mysql/private/probes_mysql_dtrace.h )
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
java-pkg-opt-2_pkg_setup
|
|
||||||
mysql-multilib-r1_pkg_setup
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_preinst() {
|
|
||||||
java-pkg-opt-2_pkg_preinst
|
|
||||||
mysql-multilib-r1_pkg_preinst
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
java-pkg-opt-2_src_prepare
|
|
||||||
mysql-multilib-r1_src_prepare
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure(){
|
|
||||||
# bug 508724 mariadb cannot use ld.gold
|
|
||||||
tc-ld-disable-gold
|
|
||||||
local MYSQL_CMAKE_NATIVE_DEFINES=(
|
|
||||||
-DWITH_JEMALLOC=$(usex jemalloc system)
|
|
||||||
-DWITH_PCRE=system
|
|
||||||
)
|
|
||||||
if use server ; then
|
|
||||||
# Federated{,X} must be treated special otherwise they will not be built as plugins
|
|
||||||
if ! use extraengine ; then
|
|
||||||
MYSQL_CMAKE_NATIVE_DEFINES+=(
|
|
||||||
-DWITHOUT_FEDERATED=1
|
|
||||||
-DWITHOUT_FEDERATEDX=1 )
|
|
||||||
fi
|
|
||||||
|
|
||||||
MYSQL_CMAKE_NATIVE_DEFINES+=(
|
|
||||||
$(mysql-cmake_use_plugin oqgraph OQGRAPH)
|
|
||||||
$(mysql-cmake_use_plugin sphinx SPHINX)
|
|
||||||
$(mysql-cmake_use_plugin tokudb TOKUDB)
|
|
||||||
$(mysql-cmake_use_plugin pam AUTH_PAM)
|
|
||||||
-DWITHOUT_CASSANDRA=0
|
|
||||||
$(mysql-cmake_use_plugin extraengine SEQUENCE)
|
|
||||||
$(mysql-cmake_use_plugin extraengine SPIDER)
|
|
||||||
$(mysql-cmake_use_plugin extraengine CONNECT)
|
|
||||||
-DCONNECT_WITH_MYSQL=1
|
|
||||||
-DCONNECT_WITH_LIBXML2=$(usex xml)
|
|
||||||
-DCONNECT_WITH_ODBC=$(usex odbc)
|
|
||||||
-DCONNECT_WITH_JDBC=$(usex jdbc)
|
|
||||||
-DWITHOUT_MROONGA=1
|
|
||||||
)
|
|
||||||
fi
|
|
||||||
mysql-multilib-r1_src_configure
|
|
||||||
}
|
|
||||||
|
|
||||||
# Official test instructions:
|
|
||||||
# USE='embedded extraengine perl server openssl static-libs' \
|
|
||||||
# FEATURES='test userpriv -usersandbox' \
|
|
||||||
# ebuild mariadb-X.X.XX.ebuild \
|
|
||||||
# digest clean package
|
|
||||||
multilib_src_test() {
|
|
||||||
|
|
||||||
if ! multilib_is_native_abi ; then
|
|
||||||
einfo "Server tests not available on non-native abi".
|
|
||||||
return 0;
|
|
||||||
fi
|
|
||||||
|
|
||||||
local TESTDIR="${BUILD_DIR}/mysql-test"
|
|
||||||
local retstatus_unit
|
|
||||||
local retstatus_tests
|
|
||||||
|
|
||||||
if use server ; then
|
|
||||||
|
|
||||||
# Bug #213475 - MySQL _will_ object strenously if your machine is named
|
|
||||||
# localhost. Also causes weird failures.
|
|
||||||
[[ "${HOSTNAME}" == "localhost" ]] && die "Your machine must NOT be named localhost"
|
|
||||||
|
|
||||||
if [[ $UID -eq 0 ]]; then
|
|
||||||
die "Testing with FEATURES=-userpriv is no longer supported by upstream. Tests MUST be run as non-root."
|
|
||||||
fi
|
|
||||||
has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox"
|
|
||||||
|
|
||||||
einfo ">>> Test phase [test]: ${CATEGORY}/${PF}"
|
|
||||||
addpredict /this-dir-does-not-exist/t9.MYI
|
|
||||||
|
|
||||||
# Run CTest (test-units)
|
|
||||||
cmake-utils_src_test
|
|
||||||
retstatus_unit=$?
|
|
||||||
[[ $retstatus_unit -eq 0 ]] || eerror "test-unit failed"
|
|
||||||
|
|
||||||
# Ensure that parallel runs don't die
|
|
||||||
export MTR_BUILD_THREAD="$((${RANDOM} % 100))"
|
|
||||||
# Enable parallel testing, auto will try to detect number of cores
|
|
||||||
# You may set this by hand.
|
|
||||||
# The default maximum is 8 unless MTR_MAX_PARALLEL is increased
|
|
||||||
export MTR_PARALLEL="${MTR_PARALLEL:-auto}"
|
|
||||||
|
|
||||||
# create directories because mysqladmin might run out of order
|
|
||||||
mkdir -p "${T}"/var-tests{,/log}
|
|
||||||
|
|
||||||
# These are failing in MariaDB 10.0 for now and are believed to be
|
|
||||||
# false positives:
|
|
||||||
#
|
|
||||||
# main.information_schema, binlog.binlog_statement_insert_delayed,
|
|
||||||
# main.mysqld--help, funcs_1.is_triggers, funcs_1.is_tables_mysql,
|
|
||||||
# funcs_1.is_columns_mysql main.bootstrap
|
|
||||||
# fails due to USE=-latin1 / utf8 default
|
|
||||||
#
|
|
||||||
# main.mysql_client_test, main.mysql_client_test_nonblock
|
|
||||||
# main.mysql_client_test_comp:
|
|
||||||
# segfaults at random under Portage only, suspect resource limits.
|
|
||||||
#
|
|
||||||
# archive.mysqlhotcopy_archive main.mysqlhotcopy_myisam
|
|
||||||
# fails due to bad cleanup of previous tests when run in parallel
|
|
||||||
# The tool is deprecated anyway
|
|
||||||
# Bug 532288
|
|
||||||
|
|
||||||
#main.bootstrap \
|
|
||||||
# for t in main.mysql_client_test main.mysql_client_test_nonblock \
|
|
||||||
# main.mysql_client_test_comp \
|
|
||||||
# binlog.binlog_statement_insert_delayed main.information_schema \
|
|
||||||
# main.mysqld--help \
|
|
||||||
# archive.mysqlhotcopy_archive main.mysqlhotcopy_myisam \
|
|
||||||
# funcs_1.is_triggers funcs_1.is_tables_mysql funcs_1.is_columns_mysql ; do
|
|
||||||
# mysql-multilib-r1_disable_test "$t" "False positives in Gentoo"
|
|
||||||
# done
|
|
||||||
|
|
||||||
# Run mysql tests
|
|
||||||
pushd "${TESTDIR}" || die
|
|
||||||
|
|
||||||
# run mysql-test tests
|
|
||||||
perl mysql-test-run.pl --force --vardir="${T}/var-tests" --reorder
|
|
||||||
|
|
||||||
retstatus_tests=$?
|
|
||||||
[[ $retstatus_tests -eq 0 ]] || eerror "tests failed"
|
|
||||||
has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox"
|
|
||||||
|
|
||||||
popd || die
|
|
||||||
|
|
||||||
# Cleanup is important for these testcases.
|
|
||||||
pkill -9 -f "${S}/ndb" 2>/dev/null
|
|
||||||
pkill -9 -f "${S}/sql" 2>/dev/null
|
|
||||||
|
|
||||||
failures=""
|
|
||||||
[[ $retstatus_unit -eq 0 ]] || failures="${failures} test-unit"
|
|
||||||
[[ $retstatus_tests -eq 0 ]] || failures="${failures} tests"
|
|
||||||
has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox"
|
|
||||||
|
|
||||||
[[ -z "$failures" ]] || die "Test failures: $failures"
|
|
||||||
einfo "Tests successfully completed"
|
|
||||||
|
|
||||||
else
|
|
||||||
einfo "Skipping server tests due to minimal build."
|
|
||||||
fi
|
|
||||||
}
|
|
@ -1,164 +0,0 @@
|
|||||||
# Copyright 1999-2016 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Id$
|
|
||||||
|
|
||||||
EAPI="6"
|
|
||||||
|
|
||||||
MY_EXTRAS_VER="20160212-0233Z"
|
|
||||||
MY_PV="${PV//_alpha_pre/-m}"
|
|
||||||
MY_PV="${MY_PV//_/-}"
|
|
||||||
HAS_TOOLS_PATCH="1"
|
|
||||||
SUBSLOT="18"
|
|
||||||
|
|
||||||
inherit mysql-multilib-r1
|
|
||||||
# only to make repoman happy. it is really set in the eclass
|
|
||||||
IUSE="$IUSE"
|
|
||||||
|
|
||||||
# REMEMBER: also update eclass/mysql*.eclass before committing!
|
|
||||||
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86 ~sparc-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris"
|
|
||||||
|
|
||||||
# When MY_EXTRAS is bumped, the index should be revised to exclude these.
|
|
||||||
EPATCH_EXCLUDE=''
|
|
||||||
|
|
||||||
DEPEND="|| ( >=sys-devel/gcc-3.4.6 >=sys-devel/gcc-apple-4.0 )"
|
|
||||||
RDEPEND="${RDEPEND}"
|
|
||||||
|
|
||||||
# Please do not add a naive src_unpack to this ebuild
|
|
||||||
# If you want to add a single patch, copy the ebuild to an overlay
|
|
||||||
# and create your own mysql-extras tarball, looking at 000_index.txt
|
|
||||||
|
|
||||||
# validate_password plugin uses exceptions when it shouldn't yet (until 5.7)
|
|
||||||
# disable until we see what happens with it
|
|
||||||
MYSQL_CMAKE_NATIVE_DEFINES=( -DWITHOUT_VALIDATE_PASSWORD=1 )
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
mysql-multilib-r1_src_prepare
|
|
||||||
if use libressl ; then
|
|
||||||
sed -i 's/OPENSSL_MAJOR_VERSION STREQUAL "1"/OPENSSL_MAJOR_VERSION STREQUAL "2"/' \
|
|
||||||
"${S}/cmake/ssl.cmake" || die
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
# Official test instructions:
|
|
||||||
# USE='server embedded extraengine perl openssl static-libs' \
|
|
||||||
# FEATURES='test userpriv -usersandbox' \
|
|
||||||
# ebuild mysql-X.X.XX.ebuild \
|
|
||||||
# digest clean package
|
|
||||||
multilib_src_test() {
|
|
||||||
|
|
||||||
if ! multilib_is_native_abi ; then
|
|
||||||
einfo "Server tests not available on non-native abi".
|
|
||||||
return 0;
|
|
||||||
fi
|
|
||||||
|
|
||||||
local TESTDIR="${BUILD_DIR}/mysql-test"
|
|
||||||
local retstatus_unit
|
|
||||||
local retstatus_tests
|
|
||||||
|
|
||||||
# Bug #213475 - MySQL _will_ object strenously if your machine is named
|
|
||||||
# localhost. Also causes weird failures.
|
|
||||||
[[ "${HOSTNAME}" == "localhost" ]] && die "Your machine must NOT be named localhost"
|
|
||||||
|
|
||||||
if use server ; then
|
|
||||||
|
|
||||||
if [[ $UID -eq 0 ]]; then
|
|
||||||
die "Testing with FEATURES=-userpriv is no longer supported by upstream. Tests MUST be run as non-root."
|
|
||||||
fi
|
|
||||||
has usersandbox $FEATURES && ewarn "Some tests may fail with FEATURES=usersandbox"
|
|
||||||
|
|
||||||
einfo ">>> Test phase [test]: ${CATEGORY}/${PF}"
|
|
||||||
|
|
||||||
# Run CTest (test-units)
|
|
||||||
cmake-utils_src_test
|
|
||||||
retstatus_unit=$?
|
|
||||||
|
|
||||||
# Ensure that parallel runs don't die
|
|
||||||
export MTR_BUILD_THREAD="$((${RANDOM} % 100))"
|
|
||||||
# Enable parallel testing, auto will try to detect number of cores
|
|
||||||
# You may set this by hand.
|
|
||||||
# The default maximum is 8 unless MTR_MAX_PARALLEL is increased
|
|
||||||
export MTR_PARALLEL="${MTR_PARALLEL:-auto}"
|
|
||||||
|
|
||||||
# create directories because mysqladmin might right out of order
|
|
||||||
mkdir -p "${T}"/var-tests{,/log}
|
|
||||||
|
|
||||||
# create symlink for the tests to find mysql_tzinfo_to_sql
|
|
||||||
ln -s "${BUILD_DIR}/sql/mysql_tzinfo_to_sql" "${S}/sql/"
|
|
||||||
|
|
||||||
# These are failing in MySQL 5.5/5.6 for now and are believed to be
|
|
||||||
# false positives:
|
|
||||||
#
|
|
||||||
# main.information_schema, binlog.binlog_statement_insert_delayed,
|
|
||||||
# funcs_1.is_triggers funcs_1.is_tables_mysql,
|
|
||||||
# funcs_1.is_columns_mysql, binlog.binlog_mysqlbinlog_filter,
|
|
||||||
# perfschema.binlog_edge_mix, perfschema.binlog_edge_stmt,
|
|
||||||
# mysqld--help-notwin, funcs_1.is_triggers, funcs_1.is_tables_mysql, funcs_1.is_columns_mysql
|
|
||||||
# perfschema.binlog_edge_stmt, perfschema.binlog_edge_mix, binlog.binlog_mysqlbinlog_filter
|
|
||||||
# fails due to USE=-latin1 / utf8 default
|
|
||||||
#
|
|
||||||
# main.mysql_client_test:
|
|
||||||
# segfaults at random under Portage only, suspect resource limits.
|
|
||||||
#
|
|
||||||
# rpl.rpl_plugin_load
|
|
||||||
# fails due to included file not listed in expected result
|
|
||||||
# appears to be poor planning
|
|
||||||
#
|
|
||||||
# main.mysqlhotcopy_archive main.mysqlhotcopy_myisam
|
|
||||||
# fails due to bad cleanup of previous tests when run in parallel
|
|
||||||
# The tool is deprecated anyway
|
|
||||||
# Bug 532288
|
|
||||||
for t in \
|
|
||||||
binlog.binlog_mysqlbinlog_filter \
|
|
||||||
binlog.binlog_statement_insert_delayed \
|
|
||||||
funcs_1.is_columns_mysql \
|
|
||||||
funcs_1.is_tables_mysql \
|
|
||||||
funcs_1.is_triggers \
|
|
||||||
main.information_schema \
|
|
||||||
main.mysql_client_test \
|
|
||||||
main.mysqld--help-notwin \
|
|
||||||
perfschema.binlog_edge_mix \
|
|
||||||
perfschema.binlog_edge_stmt \
|
|
||||||
rpl.rpl_plugin_load \
|
|
||||||
main.mysqlhotcopy_archive main.mysqlhotcopy_myisam \
|
|
||||||
; do
|
|
||||||
mysql-multilib-r1_disable_test "$t" "False positives in Gentoo"
|
|
||||||
done
|
|
||||||
|
|
||||||
if ! use extraengine ; then
|
|
||||||
# bug 401673, 530766
|
|
||||||
for t in federated.federated_plugin ; do
|
|
||||||
mysql-multilib-r1_disable_test "$t" "Test $t requires USE=extraengine (Need federated engine)"
|
|
||||||
done
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Run mysql tests
|
|
||||||
pushd "${TESTDIR}"
|
|
||||||
|
|
||||||
# Set file limits higher so tests run
|
|
||||||
ulimit -n 3000
|
|
||||||
|
|
||||||
# run mysql-test tests
|
|
||||||
perl mysql-test-run.pl --force --vardir="${T}/var-tests" \
|
|
||||||
--suite-timeout=5000 --reorder
|
|
||||||
retstatus_tests=$?
|
|
||||||
# [[ $retstatus_tests -eq 0 ]] || eerror "tests failed"
|
|
||||||
# has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox"
|
|
||||||
|
|
||||||
popd
|
|
||||||
|
|
||||||
# Cleanup is important for these testcases.
|
|
||||||
pkill -9 -f "${S}/ndb" 2>/dev/null
|
|
||||||
pkill -9 -f "${S}/sql" 2>/dev/null
|
|
||||||
|
|
||||||
failures=""
|
|
||||||
[[ $retstatus_unit -eq 0 ]] || failures="${failures} test-unit"
|
|
||||||
[[ $retstatus_tests -eq 0 ]] || failures="${failures} tests"
|
|
||||||
# has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox"
|
|
||||||
|
|
||||||
[[ -z "$failures" ]] || die "Test failures: $failures"
|
|
||||||
einfo "Tests successfully completed"
|
|
||||||
|
|
||||||
else
|
|
||||||
einfo "Skipping server tests due to minimal build."
|
|
||||||
fi
|
|
||||||
}
|
|
@ -1 +1,2 @@
|
|||||||
DIST icu4c-58_1-src.tgz 23366443 SHA256 0eb46ba3746a9c2092c8ad347a29b1a1b4941144772d13a88667a7b11ea30309 SHA512 59b2a76834192a35125fda326587e613ef4486152cf0278c6f22568d4ae02c4b2d897efcea2654ef2b11bd1c3154aecd38cb68a70f69430736f343689f94c155 WHIRLPOOL faf2624a83f0d6f874166b328522dc9c89088db2690433ab05e96371722b635b81fd5210c7e87fe8e5df6681e881cf10204832925b448552affe8c2f6c851e37
|
DIST icu4c-58_1-src.tgz 23366443 SHA256 0eb46ba3746a9c2092c8ad347a29b1a1b4941144772d13a88667a7b11ea30309 SHA512 59b2a76834192a35125fda326587e613ef4486152cf0278c6f22568d4ae02c4b2d897efcea2654ef2b11bd1c3154aecd38cb68a70f69430736f343689f94c155 WHIRLPOOL faf2624a83f0d6f874166b328522dc9c89088db2690433ab05e96371722b635b81fd5210c7e87fe8e5df6681e881cf10204832925b448552affe8c2f6c851e37
|
||||||
|
DIST icu4c-58_2-src.tgz 23369902 SHA256 2b0a4410153a9b20de0e20c7d8b66049a72aef244b53683d0d7521371683da0c SHA512 5c21af748f48b392e6c0412bd0aee92162ea931820dcbfab4ec6e0299868504b303d88f7586cc95de55c777ac0dca3a29d6c8ca0892c646ebc864c8a5b5a162a WHIRLPOOL 25829f8ee870b703fd604ae5b9b584390a142f5011e2a5db18332453e2f1640d81270086f243318eeb93f187b04ea23dab14901ab81c8d924c8d47b1f77aee5a
|
||||||
|
@ -0,0 +1,116 @@
|
|||||||
|
# Copyright 1999-2016 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Id$
|
||||||
|
|
||||||
|
EAPI=6
|
||||||
|
|
||||||
|
inherit eutils flag-o-matic toolchain-funcs autotools multilib-minimal
|
||||||
|
|
||||||
|
DESCRIPTION="External layout part of International Components for Unicode"
|
||||||
|
HOMEPAGE="http://www.icu-project.org/"
|
||||||
|
SRC_URI="http://download.icu-project.org/files/icu4c/${PV/_/}/icu4c-${PV//./_}-src.tgz"
|
||||||
|
|
||||||
|
LICENSE="BSD"
|
||||||
|
|
||||||
|
SLOT="0/${PV}"
|
||||||
|
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
IUSE="debug static-libs"
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
~dev-libs/icu-${PV}
|
||||||
|
dev-libs/icu-le-hb
|
||||||
|
"
|
||||||
|
|
||||||
|
DEPEND="
|
||||||
|
virtual/pkgconfig
|
||||||
|
${RDEPEND}
|
||||||
|
"
|
||||||
|
|
||||||
|
S="${WORKDIR}/${PN/-layoutex}/source"
|
||||||
|
|
||||||
|
PATCHES=(
|
||||||
|
"${FILESDIR}/${PN}-58.1-remove-bashisms.patch"
|
||||||
|
)
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
# apply patches
|
||||||
|
default
|
||||||
|
|
||||||
|
local variable
|
||||||
|
|
||||||
|
# Disable renaming as it is stupid thing to do
|
||||||
|
sed -i \
|
||||||
|
-e "s/#define U_DISABLE_RENAMING 0/#define U_DISABLE_RENAMING 1/" \
|
||||||
|
common/unicode/uconfig.h || die
|
||||||
|
|
||||||
|
# Fix linking of icudata
|
||||||
|
sed -i \
|
||||||
|
-e "s:LDFLAGSICUDT=-nodefaultlibs -nostdlib:LDFLAGSICUDT=:" \
|
||||||
|
config/mh-linux || die
|
||||||
|
|
||||||
|
eautoreconf
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
# Use C++14
|
||||||
|
append-cxxflags -std=c++14
|
||||||
|
|
||||||
|
if tc-is-cross-compiler; then
|
||||||
|
mkdir "${WORKDIR}"/host || die
|
||||||
|
pushd "${WORKDIR}"/host >/dev/null || die
|
||||||
|
|
||||||
|
CFLAGS="" CXXFLAGS="" ASFLAGS="" LDFLAGS="" \
|
||||||
|
CC="$(tc-getBUILD_CC)" CXX="$(tc-getBUILD_CXX)" AR="$(tc-getBUILD_AR)" \
|
||||||
|
RANLIB="$(tc-getBUILD_RANLIB)" LD="$(tc-getBUILD_LD)" \
|
||||||
|
"${S}"/configure --disable-renaming --disable-debug \
|
||||||
|
--disable-samples --enable-static || die
|
||||||
|
emake
|
||||||
|
|
||||||
|
popd >/dev/null || die
|
||||||
|
fi
|
||||||
|
|
||||||
|
multilib-minimal_src_configure
|
||||||
|
}
|
||||||
|
|
||||||
|
multilib_src_configure() {
|
||||||
|
local myeconfargs=(
|
||||||
|
--disable-renaming
|
||||||
|
--disable-samples
|
||||||
|
--enable-layoutex
|
||||||
|
$(use_enable debug)
|
||||||
|
$(use_enable static-libs static)
|
||||||
|
)
|
||||||
|
|
||||||
|
tc-is-cross-compiler && myeconfargs+=(
|
||||||
|
--with-cross-build="${WORKDIR}"/host
|
||||||
|
)
|
||||||
|
|
||||||
|
# icu tries to use clang by default
|
||||||
|
tc-export CC CXX
|
||||||
|
|
||||||
|
ECONF_SOURCE=${S} \
|
||||||
|
econf "${myeconfargs[@]}"
|
||||||
|
}
|
||||||
|
|
||||||
|
multilib_src_test() {
|
||||||
|
# INTLTEST_OPTS: intltest options
|
||||||
|
# -e: Exhaustive testing
|
||||||
|
# -l: Reporting of memory leaks
|
||||||
|
# -v: Increased verbosity
|
||||||
|
# IOTEST_OPTS: iotest options
|
||||||
|
# -e: Exhaustive testing
|
||||||
|
# -v: Increased verbosity
|
||||||
|
# CINTLTST_OPTS: cintltst options
|
||||||
|
# -e: Exhaustive testing
|
||||||
|
# -v: Increased verbosity
|
||||||
|
pushd layoutex &>/dev/null || die
|
||||||
|
emake -j1 VERBOSE="1" check
|
||||||
|
popd &>/dev/null || die
|
||||||
|
}
|
||||||
|
|
||||||
|
multilib_src_install() {
|
||||||
|
pushd layoutex &>/dev/null || die
|
||||||
|
default
|
||||||
|
popd &>/dev/null || die
|
||||||
|
}
|
@ -1 +1,2 @@
|
|||||||
DIST eliom-6.0.0.tar.gz 722673 SHA256 ec5636481be9cccc8256b13a5e551f6a8c32662e1c3211887a22eedf5c8958f9 SHA512 c59261bb6ba2303a7951de2e689abcb55af92b53a145d42054244d253b6757d72ba3f937772219b2b0aa5bccfe1a74baf62c938f40c1cce90720b6efe7be3b63 WHIRLPOOL e4f8c44c16dbc33c7576a117a25cb2f709a893ad82baa517fb2d5a776b0838affbef56aba84a977903c71d32987f3d16af485c5cf8dddd1cc39395025d996226
|
DIST eliom-6.0.0.tar.gz 722673 SHA256 ec5636481be9cccc8256b13a5e551f6a8c32662e1c3211887a22eedf5c8958f9 SHA512 c59261bb6ba2303a7951de2e689abcb55af92b53a145d42054244d253b6757d72ba3f937772219b2b0aa5bccfe1a74baf62c938f40c1cce90720b6efe7be3b63 WHIRLPOOL e4f8c44c16dbc33c7576a117a25cb2f709a893ad82baa517fb2d5a776b0838affbef56aba84a977903c71d32987f3d16af485c5cf8dddd1cc39395025d996226
|
||||||
|
DIST eliom-6.1.0.tar.gz 722881 SHA256 cc27c90dfae92db69f23c9d1301d67433d71c7b8d83cba7253dd7d9c41728dbc SHA512 ab389e8023de952f371209c5fe6863240214af559c4ae883dc9d3dc9f353afcc8e38292974c8c0a05c65213fe7dc0b350580c5c8647bba679a5ec0c44859621e WHIRLPOOL e4eeacc566db899ffbaab8dd58bf81dbb49ed18b27e4285669e809bc05232a4b212e0422e33580d40dbf1ec18f236e65ab09f790211693bfbf5882d269ea5137
|
||||||
|
@ -0,0 +1,66 @@
|
|||||||
|
# Copyright 1999-2016 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Id$
|
||||||
|
|
||||||
|
EAPI=5
|
||||||
|
|
||||||
|
inherit eutils multilib findlib
|
||||||
|
|
||||||
|
DESCRIPTION="A web framework to program client/server applications"
|
||||||
|
HOMEPAGE="http://ocsigen.org/eliom/"
|
||||||
|
|
||||||
|
if [ "${PV#9999}" != "${PV}" ] ; then
|
||||||
|
inherit git-r3
|
||||||
|
SRC_URI=""
|
||||||
|
EGIT_REPO_URI="https://github.com/ocsigen/eliom"
|
||||||
|
KEYWORDS=""
|
||||||
|
else
|
||||||
|
SRC_URI="https://github.com/ocsigen/eliom/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||||
|
KEYWORDS="~amd64"
|
||||||
|
fi
|
||||||
|
|
||||||
|
LICENSE="LGPL-2.1-with-linking-exception"
|
||||||
|
SLOT="0/${PV}"
|
||||||
|
IUSE="doc +ocamlopt +ppx"
|
||||||
|
|
||||||
|
RDEPEND=">=dev-lang/ocaml-4.03:=[ocamlopt?]
|
||||||
|
>=dev-ml/js_of_ocaml-2.8.2:=
|
||||||
|
>=www-servers/ocsigenserver-2.8:=
|
||||||
|
>=dev-ml/tyxml-4:=
|
||||||
|
>=dev-ml/deriving-0.6:=
|
||||||
|
>=dev-ml/reactiveData-0.2.1:=
|
||||||
|
dev-ml/ocaml-ipaddr:=
|
||||||
|
dev-ml/react:=
|
||||||
|
dev-ml/ocaml-ssl:=
|
||||||
|
>=dev-ml/lwt-2.5.0:=
|
||||||
|
dev-ml/camlp4:=
|
||||||
|
ppx? ( >=dev-ml/ppx_tools-0.99.3:= )"
|
||||||
|
DEPEND="${RDEPEND}
|
||||||
|
dev-ml/ocamlbuild
|
||||||
|
dev-ml/opam"
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
if use ocamlopt ; then
|
||||||
|
emake PPX=$(usex ppx true false) all
|
||||||
|
else
|
||||||
|
emake PPX=$(usex ppx true false) byte
|
||||||
|
fi
|
||||||
|
use doc && emake doc
|
||||||
|
emake man
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
opam-installer \
|
||||||
|
--prefix="${ED}/usr" \
|
||||||
|
--libdir="${D}/$(ocamlc -where)" \
|
||||||
|
--docdir="${ED}/usr/share/doc/${PF}" \
|
||||||
|
--mandir="${ED}/usr/share/man" \
|
||||||
|
|| die
|
||||||
|
dodoc CHANGES README.md
|
||||||
|
if use doc ; then
|
||||||
|
docinto client/html
|
||||||
|
dodoc -r _build/src/lib/client/api.docdir/*
|
||||||
|
docinto server/html
|
||||||
|
dodoc -r _build/src/lib/server/api.docdir/*
|
||||||
|
fi
|
||||||
|
}
|
@ -1,2 +1,3 @@
|
|||||||
DIST PAR-1.010.tar.gz 75412 SHA256 78af355e757a55bfec0db4a02d62c402c5c56b31e8d317f70a31fc963b2e7e51 SHA512 57e2c39927402c353ee356ae9b91b4233614afa9dca61c3c2effbe2db8b6c653949cc424b637d12dc89668ddf7f49a38d2e6610521410e613e061c0f980b304d WHIRLPOOL 09f71c55d28a559182f8e1ffecc64a8cc7d9b1dd90eb7a5a72a6c8ac5280691268751113c9f6639f069286326813820d26ea4738c471b80d8a1d3d74c1dde252
|
DIST PAR-1.010.tar.gz 75412 SHA256 78af355e757a55bfec0db4a02d62c402c5c56b31e8d317f70a31fc963b2e7e51 SHA512 57e2c39927402c353ee356ae9b91b4233614afa9dca61c3c2effbe2db8b6c653949cc424b637d12dc89668ddf7f49a38d2e6610521410e613e061c0f980b304d WHIRLPOOL 09f71c55d28a559182f8e1ffecc64a8cc7d9b1dd90eb7a5a72a6c8ac5280691268751113c9f6639f069286326813820d26ea4738c471b80d8a1d3d74c1dde252
|
||||||
DIST PAR-1.012.tar.gz 82015 SHA256 ee1e2b7d7f364a71e91456faf3ceef69eeb639901480a17e4e0ff1e8dba26a85 SHA512 c40eff1c998c5ff64b5260ba8aec4899bd51a848f26d4c59dfc9abc6b0fac48095de5ba6cd42f1bb285243347710242dc997e61c9af0d5466e58127216185873 WHIRLPOOL 1e9173ef27af47ab75e56cc2dfbbb214635edf65bb3a8e3015c4e5b0f8c3394dea15252b4be6862c60935129d5306fb27ea703b3d95032af375aca8876ddebfe
|
DIST PAR-1.012.tar.gz 82015 SHA256 ee1e2b7d7f364a71e91456faf3ceef69eeb639901480a17e4e0ff1e8dba26a85 SHA512 c40eff1c998c5ff64b5260ba8aec4899bd51a848f26d4c59dfc9abc6b0fac48095de5ba6cd42f1bb285243347710242dc997e61c9af0d5466e58127216185873 WHIRLPOOL 1e9173ef27af47ab75e56cc2dfbbb214635edf65bb3a8e3015c4e5b0f8c3394dea15252b4be6862c60935129d5306fb27ea703b3d95032af375aca8876ddebfe
|
||||||
|
DIST PAR-1.014.tar.gz 81744 SHA256 a8a6ebb9130e0466fce4eec9db7e666531d25a6eb818eff83963dc685942ed4b SHA512 8c672f811a599fe608caa6d781ed196cf7391842eecef4d5829f45e1ec19e8c9e4c16c6a54eaf49b024a93a5dbc024f299159ad55058a43889f0f9b600ef0d4a WHIRLPOOL 4ec3fc35b58dddc09bf1a189ed17ed78e4668c330bb2db2a9561a34b7d7a7a613e0438d868c066413c9899f16f441337be3065844be292a5deb045a6a463c9ee
|
||||||
|
@ -0,0 +1,34 @@
|
|||||||
|
# Copyright 1999-2016 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Id$
|
||||||
|
|
||||||
|
EAPI=6
|
||||||
|
|
||||||
|
DIST_AUTHOR=RSCHUPP
|
||||||
|
DIST_VERSION=1.014
|
||||||
|
inherit perl-module
|
||||||
|
|
||||||
|
DESCRIPTION="Perl Archive Toolkit"
|
||||||
|
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~x86 ~x86-solaris"
|
||||||
|
IUSE="minimal"
|
||||||
|
|
||||||
|
DEPEND="
|
||||||
|
!minimal? (
|
||||||
|
virtual/perl-Digest
|
||||||
|
dev-perl/Module-Signature
|
||||||
|
)
|
||||||
|
>=dev-perl/Archive-Zip-1.00
|
||||||
|
>=virtual/perl-AutoLoader-5.660.200
|
||||||
|
>=virtual/perl-File-Temp-0.50.0
|
||||||
|
>=virtual/perl-IO-Compress-1.300.0
|
||||||
|
>=dev-perl/PAR-Dist-0.320.0
|
||||||
|
"
|
||||||
|
RDEPEND="${DEPEND}
|
||||||
|
>=virtual/perl-ExtUtils-MakeMaker-6.590.0
|
||||||
|
"
|
||||||
|
src_test() {
|
||||||
|
perl_rm_files 't/00-pod.t'
|
||||||
|
perl-module_src_test
|
||||||
|
}
|
@ -0,0 +1,44 @@
|
|||||||
|
# Copyright 1999-2016 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Id$
|
||||||
|
|
||||||
|
EAPI=5
|
||||||
|
|
||||||
|
PYTHON_COMPAT=( python{2_7,3_4} )
|
||||||
|
|
||||||
|
AUTOTOOLIZE=yes
|
||||||
|
|
||||||
|
MY_P="${P/_rc/-rc}"
|
||||||
|
|
||||||
|
inherit eutils distutils-r1
|
||||||
|
|
||||||
|
if [[ ${PV} = *9999* ]]; then
|
||||||
|
inherit git-r3
|
||||||
|
EGIT_REPO_URI="git://libvirt.org/libvirt-python.git"
|
||||||
|
SRC_URI=""
|
||||||
|
KEYWORDS=""
|
||||||
|
RDEPEND="app-emulation/libvirt:=[-python(-)]"
|
||||||
|
else
|
||||||
|
SRC_URI="http://libvirt.org/sources/python/${MY_P}.tar.gz"
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
RDEPEND="app-emulation/libvirt:0/${PV}"
|
||||||
|
fi
|
||||||
|
S="${WORKDIR}/${P%_rc*}"
|
||||||
|
|
||||||
|
DESCRIPTION="libvirt Python bindings"
|
||||||
|
HOMEPAGE="http://www.libvirt.org"
|
||||||
|
LICENSE="LGPL-2"
|
||||||
|
SLOT="0"
|
||||||
|
IUSE="test"
|
||||||
|
|
||||||
|
DEPEND="${RDEPEND}
|
||||||
|
virtual/pkgconfig
|
||||||
|
test? ( dev-python/lxml[${PYTHON_USEDEP}]
|
||||||
|
dev-python/nose[${PYTHON_USEDEP}] )"
|
||||||
|
|
||||||
|
# testsuite is currently not included in upstream tarball
|
||||||
|
RESTRICT="test"
|
||||||
|
|
||||||
|
python_test() {
|
||||||
|
esetup.py test
|
||||||
|
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue