parent
ee2226c733
commit
3f001df4be
@ -1,4 +1,3 @@
|
||||
DIST ansible-1.9.6.tar.gz 941457 SHA256 50773781b1e76f2885bbeb2351a97cf1c6a29239d3e073da939a104e7e81ee5d SHA512 97ea17f032bf253c53d5e1f79071603f0b3b7caffe4e267534cf181ab88b7186d953c41203c762e0650ab70302bde7e84bb5ee8bcd03153a3e4a76e41d1a3bec WHIRLPOOL b26390090aeabd2a6e8e27916a7cc0e89e0041715bd036118f034292da52df55107d27c577fe38e838b3455d3167cf3e876533fa47fe184d02ebfaa98cf46f5e
|
||||
DIST ansible-2.1.2.0.tar.gz 1881113 SHA256 9c37a7bd397c05ab8ca3fcc49417649ea49b9133d4cd9500408235617d1621eb SHA512 5637a7ee82ef6b5377bb0daafd215df3e5c54be7b84d49bfea1f5584090e4f3831a20c206f41816f879ea961d7d6eb461e954d4f4d84bfb875c030585e8f8c2e WHIRLPOOL fafabec1a4e74fb2ab68c25147074f519f68124eda222a745452846f50a739d66977e310366168bf22a560747e49813f92f5867add5c3317ecba064207830140
|
||||
DIST ansible-2.1.3.0.tar.gz 1851643 SHA256 a3bb0487687b70d5586277f0f0c9a419d05ad1811b81fa18535a568e5d064c0b SHA512 6a73a361a89e2785ba5157e309e18c04e2dd09a4133f9ab437d0b05f4e56790bc0430e08976638306c0254aa6b8eac4b558bbcd058f8f5bdba420de8f48c8c34 WHIRLPOOL 7dbb85ddb4533a2b4189aec7aa911a173e51646902bca71c7fdad2fadb7e3f3b88b3463dbf4a75913df0a9c72b3073dbad4b6c962dd484f638d5c58b5112ec4d
|
||||
DIST ansible-2.2.0.0.tar.gz 2441851 SHA256 d9f198d293394ce0f8ba802561b21368888e3301036a706b5584641b49408586 SHA512 8bb8360f41e920c46552ead826a342311d0acffa264334c8c8ae868f8bf45caad4ff2b9c9c0ec4e551653edaf80eb49d8dece5c2ba7e1088c2ce74d3ff0e3130 WHIRLPOOL 911ba4959fbca8527e9cf4b46c86cefc415433cab21486ff47302d02e60c4c2da1abc91c7ab564642a518acd5a5c1cbc8b3930ef7f596518c5aa358f001f4064
|
||||
|
@ -1,58 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
inherit distutils-r1 eutils versionator
|
||||
|
||||
DESCRIPTION="Model-driven deployment, config management, and command execution framework"
|
||||
HOMEPAGE="http://ansible.com/"
|
||||
BLAKE2B_HASH="5f/51/9f54f20180eb323a80451c9f48f508bd5bbe03008c136e125b4ce3946fcf"
|
||||
SRC_URI="https://pypi.python.org/packages/${BLAKE2B_HASH}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 x86 ~x64-macos"
|
||||
IUSE="keyczar test"
|
||||
|
||||
RDEPEND="
|
||||
keyczar? ( dev-python/keyczar[${PYTHON_USEDEP}] )
|
||||
dev-python/paramiko[${PYTHON_USEDEP}]
|
||||
dev-python/jinja[${PYTHON_USEDEP}]
|
||||
dev-python/pyyaml[${PYTHON_USEDEP}]
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
>=dev-python/pycrypto-2.6[${PYTHON_USEDEP}]
|
||||
dev-python/httplib2[${PYTHON_USEDEP}]
|
||||
dev-python/six[${PYTHON_USEDEP}]
|
||||
net-misc/sshpass
|
||||
virtual/ssh
|
||||
"
|
||||
DEPEND="
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
>=dev-python/packaging-16.6[${PYTHON_USEDEP}]
|
||||
test? (
|
||||
${RDEPEND}
|
||||
dev-python/nose[${PYTHON_USEDEP}]
|
||||
>=dev-python/mock-1.0.1[${PYTHON_USEDEP}]
|
||||
<dev-python/mock-1.1[${PYTHON_USEDEP}]
|
||||
dev-python/passlib[${PYTHON_USEDEP}]
|
||||
dev-python/coverage[${PYTHON_USEDEP}]
|
||||
dev-python/unittest2[${PYTHON_USEDEP}]
|
||||
dev-vcs/git
|
||||
)"
|
||||
|
||||
# not included in release tarball
|
||||
RESTRICT="test"
|
||||
|
||||
python_test() {
|
||||
nosetests -d -w test/units -v --with-coverage --cover-package=ansible --cover-branches || die
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
distutils-r1_python_install_all
|
||||
|
||||
doman docs/man/man1/*.1
|
||||
}
|
@ -1,6 +1,4 @@
|
||||
DIST puppet-agent_1.7.1-1xenial_amd64.deb 13901688 SHA256 f9f0cedcb29f054064bc2b94e59c0a380ff01467c1c622e2b38f0957c7bea758 SHA512 018f99aab356cd597ecb1e94c22fd55f9e19e7ea0ced4b36c829ec9b45b7ba1c5188a3097cb0e837634a39eceb810b11e377b5c80decf94dd11b43b687f100ff WHIRLPOOL bc7ccbaf37e619fd89c0c6c4cb57db13a10cef5c030e48b25bb5d6e041a7a916af6d1d01f7fd4f7b8d047065e555aaebd1c3c81c6a91d17ca1bdda91e1dc48a5
|
||||
DIST puppet-agent_1.7.1-1xenial_i386.deb 15252694 SHA256 0e2c94907bcd0174e5518a72eb91b4e66639ffa2829292044782658b7762fd19 SHA512 b1f85586848cff2b6790c93a320a7c8ee226d78dca14ddcf947e9d01c1b105b379cb0e044280640e95873e7abd31c3873d6e90117c249c314ae948bca36bad17 WHIRLPOOL b2460598fd12fdd565e6cc131a8e14d4eb411b233ce5125e436d09432fa5f9fca9d9065c515b53d0a26811a18d120cc0bcae0e9c848ed19820d89903d27340c3
|
||||
DIST puppet-agent_1.8.0-1xenial_amd64.deb 15184340 SHA256 9c00b0f7d1527927f0b95b744302c392ff24437d6de344dd259e0ed12c5fa22e SHA512 bd0c6571c9d66074f7e1e48c9766253684b6f164499566d0ebaf19e94a6ae7b8caf225cb93b668a3d9520fc4c8c0e3b44ef64661538eb5f9449d19d383149118 WHIRLPOOL 548b0adbae3ffc67bd6434e0cba60e7c87afa759400581df73f081b03802731a0ef0ba581d476d13559d264c2ce22bef7cafa0d7ce5fab381d75f3f0c7e98137
|
||||
DIST puppet-agent_1.8.0-1xenial_i386.deb 16607898 SHA256 407e8cfdf184a23f3813ea66bf53c3b4bfa7b2b7e1b8eb53e49bbd3266afd1b6 SHA512 3bbddfe85a8f66b48ad1f10d98ab12376df3d839d0bc8b8a3a00022ad3df8f3f3b8ebbf32a7a4bee3c4ba245a4e7da08f7adf7c817ce395527e247a6d4e68694 WHIRLPOOL 9aa1ad9bc3f7b161f939bdfdc979e05b3da543247d0260486806200afb18f03cb1a5f3fc012aad1c2d788e932a1aabc64fe547394b282c72dc7b6d247c912cd0
|
||||
DIST puppet-agent_1.8.1-1xenial_amd64.deb 15184048 SHA256 380bada6281c8785aa91ae60434afd3f36f470c723d09746274f8d91a872e23e SHA512 d0457a7b7024d1f00cb11b6287f17d6dea8411bf183e5610e7a0657400914aa9a3c02609b159e00ff8dde1ac433e33f9499a257e4edd7a1bc4f9e74a2f7765ee WHIRLPOOL a7279a33efc8798ece02be5135b7a777d1e339dccbc5fc1cbd9d0ee0fbb05e490d8a6bf17c3454e836729a8deb80250328375a93e22c925bf4eeeba711f7c2d8
|
||||
DIST puppet-agent_1.8.1-1xenial_i386.deb 16608626 SHA256 8908e987ba451d34e54210e0cfa6f1269a1e678f695c4f73c284216d5fa4522a SHA512 a6124489752172e9e5e5899ef032a5d2e7ed3de2096f9055f63d77358035ad2672ebddb075f73aed5d13660d2b40add8bc0962c56b9ec1942463dbe3847297aa WHIRLPOOL 034c9c026d0607d02e98267ec422cadd14dfa934866c962904ceecb1f1de4c22e1adb76e763a6b5c46c5c2dcd29e9f8bb89a9450517fa33706b1f48412acc5ba
|
||||
|
@ -1,103 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
inherit eutils systemd unpacker user
|
||||
|
||||
DESCRIPTION="general puppet client utils along with mcollective hiera and facter"
|
||||
HOMEPAGE="https://puppetlabs.com/"
|
||||
SRC_BASE="http://apt.puppetlabs.com/pool/xenial/PC1/${PN:0:1}/${PN}/${PN}_${PV}-1xenial"
|
||||
SRC_URI="
|
||||
amd64? ( ${SRC_BASE}_amd64.deb )
|
||||
x86? ( ${SRC_BASE}_i386.deb )
|
||||
"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="puppetdb selinux"
|
||||
RESTRICT="strip"
|
||||
|
||||
CDEPEND="!app-admin/augeas
|
||||
!app-admin/mcollective
|
||||
!app-admin/puppet
|
||||
!dev-ruby/hiera
|
||||
!dev-ruby/facter
|
||||
!app-emulation/virt-what"
|
||||
|
||||
DEPEND="
|
||||
${CDEPEND}"
|
||||
RDEPEND="${CDEPEND}
|
||||
app-portage/eix
|
||||
sys-apps/dmidecode
|
||||
selinux? (
|
||||
sys-libs/libselinux[ruby]
|
||||
sec-policy/selinux-puppet
|
||||
)
|
||||
puppetdb? ( >=dev-ruby/puppetdb-termini-3.1.0 )"
|
||||
|
||||
S=${WORKDIR}
|
||||
|
||||
QA_PREBUILT="
|
||||
/opt/puppetlabs/puppet
|
||||
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/2.1.0/x86_64-linux/*
|
||||
/opt/puppetlabs/puppet/lib/ruby/2.1.0/x86_64-linux/mathn/*
|
||||
/opt/puppetlabs/puppet/lib/ruby/2.1.0/x86_64-linux/io/*
|
||||
/opt/puppetlabs/puppet/lib/ruby/2.1.0/x86_64-linux/dl/*
|
||||
/opt/puppetlabs/puppet/lib/ruby/2.1.0/x86_64-linux/racc/*
|
||||
/opt/puppetlabs/puppet/lib/ruby/2.1.0/x86_64-linux/enc/*
|
||||
/opt/puppetlabs/puppet/lib/ruby/2.1.0/x86_64-linux/json/ext/*
|
||||
/opt/puppetlabs/puppet/lib/ruby/2.1.0/x86_64-linux/rbconfig/*
|
||||
/opt/puppetlabs/puppet/lib/ruby/2.1.0/x86_64-linux/digest/*
|
||||
/opt/puppetlabs/puppet/lib/ruby/2.1.0/x86_64-linux/*
|
||||
/opt/puppetlabs/puppet/lib/engines/*
|
||||
/opt/puppetlabs/puppet/lib/virt-what/*
|
||||
/opt/puppetlabs/puppet/lib/*
|
||||
/opt/puppetlabs/puppet/bin/*"
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup puppet
|
||||
enewuser puppet -1 -1 /var/run/puppet puppet
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# conf.d
|
||||
doconfd etc/default/puppet
|
||||
doconfd etc/default/mcollective
|
||||
doconfd etc/default/pxp-agent
|
||||
# logrotate.d
|
||||
insinto /etc/logrotate.d
|
||||
doins etc/logrotate.d/mcollective
|
||||
doins etc/logrotate.d/pxp-agent
|
||||
# puppet itself
|
||||
insinto /etc/puppetlabs
|
||||
doins -r etc/puppetlabs/*
|
||||
# logdir for systemd
|
||||
dodir var/log/puppetlabs/puppet/
|
||||
fperms 0750 var/log/puppetlabs/puppet/
|
||||
# the rest
|
||||
insinto /opt
|
||||
dodir opt/puppetlabs/puppet/cache
|
||||
doins -r opt/*
|
||||
fperms 0750 /opt/puppetlabs/puppet/cache
|
||||
# init
|
||||
newinitd "${FILESDIR}/puppet.initd" puppet
|
||||
newinitd "${FILESDIR}/mcollective.initd" mcollective
|
||||
systemd_dounit lib/systemd/system/puppet.service
|
||||
systemd_dounit lib/systemd/system/mcollective.service
|
||||
systemd_dounit lib/systemd/system/pxp-agent.service
|
||||
systemd_newtmpfilesd "${FILESDIR}/puppet-agent.conf.tmpfilesd" puppet-agent.conf
|
||||
# symlinks
|
||||
chmod 0755 -R "${D}/opt/puppetlabs/puppet/bin/"
|
||||
chmod 0755 "${D}//opt/puppetlabs/puppet/lib/virt-what/virt-what-cpuid-helper"
|
||||
dosym /opt/puppetlabs/bin/facter /usr/bin/facter
|
||||
dosym /opt/puppetlabs/bin/hiera /usr/bin/hiera
|
||||
dosym /opt/puppetlabs/bin/mco /usr/bin/mco
|
||||
dosym /opt/puppetlabs/bin/puppet /usr/bin/puppet
|
||||
dosym /opt/puppetlabs/puppet/bin/mcollectived /usr/sbin/mcollectived
|
||||
dosym /opt/puppetlabs/puppet/bin/virt-what /usr/bin/virt-what
|
||||
dosym /opt/puppetlabs/puppet/bin/augparse /usr/bin/augparse
|
||||
dosym /opt/puppetlabs/puppet/bin/augtool /usr/bin/augtool
|
||||
dosym /opt/puppetlabs/puppet/bin/extlookup2hiera /usr/bin/extlookup2hiera
|
||||
}
|
@ -1,4 +1,3 @@
|
||||
DIST puppetdb-4.0.2.tar.gz 22131185 SHA256 7306f509f2caf642e37c0b8c1d67a07734a7912ae6ce0887c805d038e3d43fb6 SHA512 60594246df950f644cdc8d17da16685b15ab3b4838586820a1fd2a242aaa66a0320a1ffd8da445c7a071f8af15305ad711a588eb1ac5c0646a8bfed65e5b935f WHIRLPOOL 77406d20e62014f3e3ac4c688ffa9792b1590ea05b5a176aa4a36d34e7feeee74792d86350f74e4b4274015fe6e96dbc198f26bf016b8c10993621e507c0e9cd
|
||||
DIST puppetdb-4.2.2.tar.gz 22423081 SHA256 21f02707e6c7a544e95897ffbb4bfa755cdeed04fbc75220b7e63b353e8f385a SHA512 fde6a37eef88dd484c7654935ba059be6ac0bc088b60c1689ce61f5fd89c0fa1eb898460b973f422f457fe8eeaed073e19d0d8420b7ac5075164d180dca690da WHIRLPOOL 3b84daffda9e64cd34d07c78c91a5f4bc41a3687fcfb1bcd90d7451520e0081fd37d5d6989d3534cc7c7f9f506f4a47847da3aaa9cfb82d027c67ceabde02208
|
||||
DIST puppetdb-4.2.4.tar.gz 22555040 SHA256 dd0db3c883dc71d6d198a213b628f3993d35e62b900d268791ba8e655c8a430a SHA512 05856abb3f12b4e3b0b7602a07ef39d43cb459cde9d3b6d047439ebb28cca56512caa6c481833abf27bfc0cb075f2252c0d0fd2646aea2c38e1bc2a4169514ba WHIRLPOOL 37b6bd8dba1fdeb6df1d8a7b2f8541cc4522b0a95369fdeae6f563dbf672a3b8281813f7a169bbbaf2b3e0c0b0e103b5b4834cb1c26d75d6de78879ddc9c10da
|
||||
DIST puppetdb-4.3.0.tar.gz 22576514 SHA256 f0f1cc2d7676043b58b05e78593aec0009316b1ad1eaf9ec7d277d078c1c452d SHA512 062d7193dbe3f814fdf1c45ec912d4b93136d8b42ff5bdde530bee7ddd988a75f222b0436a042d3b7b927ca1a57210a6bfbe3f0d1721d55ca490cee95dd2d8c9 WHIRLPOOL 6694ae3840b0d242a174c8242762451c911ac2caa902895a49d173f360fc03e0d4efcbf3dd85250b607f713f3739b9c13ae8a2935950541b3493f80b8c768e72
|
||||
|
@ -1,91 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit multilib systemd user
|
||||
|
||||
DESCRIPTION="PuppetDB collects data generated by Puppet."
|
||||
HOMEPAGE="http://docs.puppetlabs.com/puppetdb/"
|
||||
SRC_URI="https://downloads.puppetlabs.com/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
IUSE=""
|
||||
# will need the same keywords as puppet
|
||||
KEYWORDS="amd64 x86"
|
||||
|
||||
RDEPEND+=">=virtual/jdk-1.7.0"
|
||||
DEPEND+=""
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup puppetdb
|
||||
enewuser puppetdb -1 -1 /opt/puppetlabs/server/data/puppetdb "puppetdb"
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
sed -i 's/sysconfig/conf\.d/g' ext/redhat/puppetdb.service || die
|
||||
sed -i 's/sysconfig/conf\.d/g' ext/bin/puppetdb || die
|
||||
sed -i 's/sysconfig/conf\.d/g' install.sh || die
|
||||
sed -i 's/var\/run/run/g' ext/puppetdb.tmpfiles.conf || die
|
||||
sed -i 's/var\/run/run/g' install.sh || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
einfo "not compiling"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dodir /opt/puppetlabs/server/data/puppetdb
|
||||
insinto /opt/puppetlabs/server/apps/puppetdb
|
||||
insopts -m0744
|
||||
doins ext/ezbake-functions.sh
|
||||
insopts -m0644
|
||||
doins ext/ezbake.manifest
|
||||
doins puppetdb.jar
|
||||
insinto /etc/puppetlabs/puppetdb
|
||||
doins ext/config/logback.xml
|
||||
doins ext/config/bootstrap.cfg
|
||||
doins ext/config/request-logging.xml
|
||||
insinto /etc/puppetlabs/puppetdb/conf.d
|
||||
doins ext/config/conf.d/jetty.ini
|
||||
doins ext/config/conf.d/repl.ini
|
||||
doins ext/config/conf.d/database.ini
|
||||
doins ext/config/conf.d/config.ini
|
||||
insopts -m0755
|
||||
insinto /opt/puppetlabs/server/apps/puppetdb/scripts
|
||||
doins install.sh
|
||||
insinto /opt/puppetlabs/server/apps/puppetdb/cli/apps
|
||||
doins ext/cli/foreground
|
||||
doins ext/cli/ssl-setup
|
||||
doins ext/cli/export
|
||||
doins ext/cli/config-migration
|
||||
doins ext/cli/foreground
|
||||
doins ext/cli/anonymize
|
||||
doins ext/cli/import
|
||||
insinto /opt/puppetlabs/server/apps/puppetdb/bin
|
||||
doins ext/bin/puppetdb
|
||||
insopts -m0644
|
||||
dodir /opt/puppetlabs/server/bin
|
||||
dosym ../apps/puppetdb/bin/puppetdb /opt/puppetlabs/server/bin/puppetdb
|
||||
dodir /opt/puppetlabs/bin
|
||||
dosym ../server/apps/puppetdb/bin/puppetdb /opt/puppetlabs/bin/puppetdb
|
||||
dosym /opt/puppetlabs/server/apps/puppetdb/bin/puppetdb /usr/bin/puppetdb
|
||||
# init type tasks
|
||||
newconfd ext/default puppetdb
|
||||
systemd_dounit ext/redhat/puppetdb.service
|
||||
systemd_newtmpfilesd ext/puppetdb.tmpfiles.conf puppetdb.conf
|
||||
newinitd "${FILESDIR}/puppetdb.initd" puppetdb
|
||||
# misc
|
||||
insinto /etc/logrotate.d
|
||||
newins ext/puppetdb.logrotate.conf puppetdb
|
||||
fowners -R puppetdb:puppetdb /opt/puppetlabs/server/data/puppetdb
|
||||
fperms -R 770 /opt/puppetlabs/server/data/puppetdb
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "to install please run '/opt/puppetlabs/server/bin/puppetdb ssl-setup'"
|
||||
elog
|
||||
elog "to upgrade please run '/opt/puppetlabs/server/bin/puppetdb config-migration'"
|
||||
}
|
@ -1,3 +1,4 @@
|
||||
DIST salt-2015.5.10.tar.gz 5693422 SHA256 863a96e70f8521af35fe11b10d25b3205a0bfbba9a8aee02e2842aa7106496fd SHA512 78a4cbe5c771208e957360689a25ae4e44566987e07e7fda54e6db9028485eacc6ad016c65c981090f9b5d95331e46048a094aecc27703b3956c06ab6ebad95d WHIRLPOOL 805b48df07707d85d8338251f26c72164a5421731fc11f5c933b72af97348a2f11ee35889f72ec032acbea275e98575d35786b56fd84a7917f8fdbc30567ae86
|
||||
DIST salt-2015.8.12.tar.gz 7033938 SHA256 712f72b30a9555ea46a51bc677e05ffa2eefaeefa6b48d4f7ae45dbcb1073c69 SHA512 8ce940a413c740bd82c6c96103d48b376a47cb8161a5d72ece3f4bf6b39134bd722787a427249726dc137064d032fa913c7f6c6db22d0808ba1a829d4f25e9ec WHIRLPOOL 723660eac1346c3ba29b88c7db1a4485a194aebbdf33ea6dc411c420059767a3feb5c863941d772b504cede4a78a57e3ce696601872d21d29f4def373db697d4
|
||||
DIST salt-2016.11.0.tar.gz 9044879 SHA256 b516285926ee95cedc64ecddab05d14422b7c8819c9f6d046a431c41d608e6bc SHA512 0cddebe9fda1f7d08aa7ee5d4e49e182c67e7bc179136da30d20c991bc10d7299034198f6721b89eda2604480aa2cfe6960f37fadde4d72adf166a065a9f6443 WHIRLPOOL 595ab7c7e50cafdfc7d69a1e24964a88092e93416dc23b295e1ab59f1ce3ae8fa10b24c4e9fe45c1d2d8557290aceae66f93d3da81a1f1be62c98e537cb8ad6a
|
||||
DIST salt-2016.3.4.tar.gz 8354090 SHA256 5d4c822719d7fb2d79b0103cd9b015d251300890f8aa174e16b73fcfd6eb22f9 SHA512 ca17c5607d23d09e95fb4b6afbcf1b4f0be6bab47ff3eee883c1464e13b5271b71f0e7bedfa8afe05f32bf3a0a6f4050a91afb9285b52aa0f3da6105221397e0 WHIRLPOOL 95347b1f8447e8701074727430ef0a232e92aa9e961451c445890552c6d9533569e470dfa4864f673c6c3b3eccb16ec9c3615cfcab6d29e74756861afe43fcac
|
||||
|
@ -0,0 +1,23 @@
|
||||
diff --git a/tests/unit/utils/extend_test.py b/tests/unit/utils/extend_test.py
|
||||
index f63a4896f7..54bf443d9a 100644
|
||||
--- a/tests/unit/utils/extend_test.py
|
||||
+++ b/tests/unit/utils/extend_test.py
|
||||
@@ -38,18 +38,6 @@ class ExtendTestCase(TestCase):
|
||||
shutil.rmtree(self.out, True)
|
||||
os.chdir(self.starting_dir)
|
||||
|
||||
- @patch('sys.exit', MagicMock)
|
||||
- def test_run(self):
|
||||
- out = salt.utils.extend.run('test', 'test', 'this description', integration.CODE_DIR, False)
|
||||
- self.out = out
|
||||
- year = date.today().strftime('%Y')
|
||||
- self.assertTrue(os.path.exists(out))
|
||||
- self.assertFalse(os.path.exists(os.path.join(out, 'template.yml')))
|
||||
- self.assertTrue(os.path.exists(os.path.join(out, 'directory')))
|
||||
- self.assertTrue(os.path.exists(os.path.join(out, 'directory', 'test.py')))
|
||||
- with salt.utils.fopen(os.path.join(out, 'directory', 'test.py'), 'r') as test_f:
|
||||
- self.assertEqual(test_f.read(), year)
|
||||
-
|
||||
if __name__ == '__main__':
|
||||
from unit import run_tests
|
||||
run_tests(ExtendTestCase, needs_daemon=False)
|
@ -0,0 +1,34 @@
|
||||
diff --git a/tests/unit/modules/inspect_collector_test.py b/tests/unit/modules/inspect_collector_test.py
|
||||
index 9105670526..e077bc3f44 100644
|
||||
--- a/tests/unit/modules/inspect_collector_test.py
|
||||
+++ b/tests/unit/modules/inspect_collector_test.py
|
||||
@@ -52,29 +52,6 @@ class InspectorCollectorTestCase(TestCase):
|
||||
self.assertEqual(inspector.pidfile, '/foo/pid/bar.pid')
|
||||
|
||||
@patch("os.mkdir", MagicMock())
|
||||
- def test_file_tree(self):
|
||||
- '''
|
||||
- Test file tree.
|
||||
-
|
||||
- :return:
|
||||
- '''
|
||||
-
|
||||
- inspector = Inspector(cachedir='/test', piddir='/test', pidfilename='bar.pid')
|
||||
- tree_root = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'inspectlib', 'tree_test')
|
||||
- expected_tree = (['/a/a/dummy.a', '/a/b/dummy.b', '/b/b.1', '/b/b.2', '/b/b.3'],
|
||||
- ['/a', '/a/a', '/a/b', '/a/c', '/b', '/c'],
|
||||
- ['/a/a/dummy.ln.a', '/a/b/dummy.ln.b', '/a/c/b.1', '/b/b.4',
|
||||
- '/b/b.5', '/c/b.1', '/c/b.2', '/c/b.3'])
|
||||
- tree_result = []
|
||||
- for chunk in inspector._get_all_files(tree_root):
|
||||
- buff = []
|
||||
- for pth in chunk:
|
||||
- buff.append(pth.replace(tree_root, ''))
|
||||
- tree_result.append(buff)
|
||||
- tree_result = tuple(tree_result)
|
||||
- self.assertEqual(expected_tree, tree_result)
|
||||
-
|
||||
- @patch("os.mkdir", MagicMock())
|
||||
def test_get_unmanaged_files(self):
|
||||
'''
|
||||
Test get_unmanaged_files.
|
@ -0,0 +1,34 @@
|
||||
diff --git a/tests/unit/modules/qemu_nbd_test.py b/tests/unit/modules/qemu_nbd_test.py
|
||||
index 615e6b5670..fbd24aab86 100644
|
||||
--- a/tests/unit/modules/qemu_nbd_test.py
|
||||
+++ b/tests/unit/modules/qemu_nbd_test.py
|
||||
@@ -77,6 +77,7 @@ class QemuNbdTestCase(TestCase):
|
||||
Test if it mount the named image via qemu-nbd
|
||||
and return the mounted roots
|
||||
'''
|
||||
+ tmpdir = os.environ.get('TMPDIR', '/tmp')
|
||||
mock = MagicMock(return_value=True)
|
||||
with patch.dict(qemu_nbd.__salt__, {'cmd.run': mock}):
|
||||
self.assertEqual(qemu_nbd.init('/srv/image.qcow2'), '')
|
||||
@@ -89,7 +90,7 @@ class QemuNbdTestCase(TestCase):
|
||||
'mount.mount': mock,
|
||||
'cmd.retcode': MagicMock(side_effect=[1, 0])}):
|
||||
self.assertDictEqual(qemu_nbd.init('/srv/image.qcow2'),
|
||||
- {'/tmp/nbd/nbd0/nbd0': '/dev/nbd0'})
|
||||
+ {os.path.join(tmpdir, 'nbd/nbd0/nbd0'): '/dev/nbd0'})
|
||||
|
||||
# 'clear' function tests: 1
|
||||
|
||||
diff --git a/tests/unit/utils/context_test.py b/tests/unit/utils/context_test.py
|
||||
index 5249d56747..a27ee9ab61 100644
|
||||
--- a/tests/unit/utils/context_test.py
|
||||
+++ b/tests/unit/utils/context_test.py
|
||||
@@ -18,7 +18,7 @@ import salt.payload
|
||||
import salt.utils
|
||||
|
||||
__context__ = {'a': 'b'}
|
||||
-__opts__ = {'cachedir': '/tmp'}
|
||||
+__opts__ = {'cachedir': os.environ.get('TMPDIR', '/tmp')}
|
||||
|
||||
|
||||
@skipIf(NO_MOCK, NO_MOCK_REASON)
|
@ -0,0 +1,144 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
inherit eutils systemd distutils-r1
|
||||
|
||||
DESCRIPTION="Salt is a remote execution and configuration manager"
|
||||
HOMEPAGE="http://saltstack.org/"
|
||||
|
||||
if [[ ${PV} == 9999* ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="git://github.com/${PN}stack/${PN}.git"
|
||||
EGIT_BRANCH="develop"
|
||||
SRC_URI=""
|
||||
KEYWORDS=""
|
||||
else
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
KEYWORDS="~x86 ~amd64"
|
||||
fi
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
IUSE="cherrypy ldap libcloud libvirt gnupg keyring mako mongodb mysql neutron nova"
|
||||
IUSE+=" openssl portage profile redis selinux test timelib raet +zeromq vim-syntax"
|
||||
|
||||
RDEPEND="sys-apps/pciutils
|
||||
dev-python/jinja[${PYTHON_USEDEP}]
|
||||
>=dev-python/msgpack-0.3[${PYTHON_USEDEP}]
|
||||
dev-python/pyyaml[${PYTHON_USEDEP}]
|
||||
dev-python/markupsafe[${PYTHON_USEDEP}]
|
||||
>=dev-python/requests-1.0.0[${PYTHON_USEDEP}]
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
>=www-servers/tornado-4.2.1[${PYTHON_USEDEP}]
|
||||
virtual/python-futures[${PYTHON_USEDEP}]
|
||||
libcloud? ( >=dev-python/libcloud-0.14.0[${PYTHON_USEDEP}] )
|
||||
mako? ( dev-python/mako[${PYTHON_USEDEP}] )
|
||||
ldap? ( dev-python/python-ldap[${PYTHON_USEDEP}] )
|
||||
libvirt? ( dev-python/libvirt-python[${PYTHON_USEDEP}] )
|
||||
openssl? (
|
||||
dev-libs/openssl:*[-bindist]
|
||||
dev-python/pyopenssl[${PYTHON_USEDEP}]
|
||||
)
|
||||
raet? (
|
||||
>=dev-python/libnacl-1.0.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/ioflo-1.1.7[${PYTHON_USEDEP}]
|
||||
>=dev-python/raet-0.6.0[${PYTHON_USEDEP}]
|
||||
)
|
||||
zeromq? (
|
||||
>=dev-python/pyzmq-2.2.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/pycrypto-2.6.1[${PYTHON_USEDEP}]
|
||||
)
|
||||
cherrypy? ( >=dev-python/cherrypy-3.2.2[${PYTHON_USEDEP}] )
|
||||
mongodb? ( dev-python/pymongo[${PYTHON_USEDEP}] )
|
||||
portage? ( sys-apps/portage[${PYTHON_USEDEP}] )
|
||||
keyring? ( dev-python/keyring[${PYTHON_USEDEP}] )
|
||||
mysql? ( dev-python/mysql-python[${PYTHON_USEDEP}] )
|
||||
redis? ( dev-python/redis-py[${PYTHON_USEDEP}] )
|
||||
selinux? ( sec-policy/selinux-salt )
|
||||
timelib? ( dev-python/timelib[${PYTHON_USEDEP}] )
|
||||
nova? ( >=dev-python/python-novaclient-2.17.0[${PYTHON_USEDEP}] )
|
||||
neutron? ( >=dev-python/python-neutronclient-2.3.6[${PYTHON_USEDEP}] )
|
||||
gnupg? ( dev-python/python-gnupg[${PYTHON_USEDEP}] )
|
||||
profile? ( dev-python/yappi[${PYTHON_USEDEP}] )
|
||||
vim-syntax? ( app-vim/salt-vim )"
|
||||
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
test? (
|
||||
dev-python/psutil[${PYTHON_USEDEP}]
|
||||
dev-python/pip[${PYTHON_USEDEP}]
|
||||
dev-python/virtualenv[${PYTHON_USEDEP}]
|
||||
dev-python/mock[${PYTHON_USEDEP}]
|
||||
dev-python/timelib[${PYTHON_USEDEP}]
|
||||
>=dev-python/boto-2.32.1[${PYTHON_USEDEP}]
|
||||
!x86? ( dev-python/boto3[${PYTHON_USEDEP}] )
|
||||
>=dev-python/moto-0.3.6[${PYTHON_USEDEP}]
|
||||
>=dev-python/SaltTesting-2016.5.11[${PYTHON_USEDEP}]
|
||||
>=dev-python/libcloud-0.14.0[${PYTHON_USEDEP}]
|
||||
${RDEPEND}
|
||||
)"
|
||||
|
||||
DOCS=( README.rst AUTHORS )
|
||||
|
||||
REQUIRED_USE="|| ( raet zeromq )"
|
||||
RESTRICT="x86? ( test )"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-2016.11.0-tmpdir.patch"
|
||||
"${FILESDIR}/${PN}-2016.3.1-dont-realpath-tmpdir.patch"
|
||||
"${FILESDIR}/${PN}-2016.3.4-test-nonexist-dirs.patch"
|
||||
"${FILESDIR}/${PN}-2016.11.0-remove-file-tree-test.patch"
|
||||
"${FILESDIR}/${PN}-2016.11.0-broken-tests.patch"
|
||||
)
|
||||
|
||||
python_prepare() {
|
||||
# this test fails because it trys to "pip install distribute"
|
||||
rm tests/unit/{modules,states}/zcbuildout_test.py \
|
||||
tests/unit/modules/{rh_ip,win_network,random_org}_test.py || die
|
||||
|
||||
# apparently libcloud does not know about this?
|
||||
rm tests/unit/cloud/clouds/dimensiondata_test.py || die
|
||||
|
||||
# seriously? "ValueError: Missing (or not readable) key file: '/home/dany/PRIVKEY.pem'"
|
||||
rm tests/unit/cloud/clouds/gce_test.py || die
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
local svc
|
||||
USE_SETUPTOOLS=1 distutils-r1_python_install_all
|
||||
|
||||
for svc in minion master syndic api; do
|
||||
newinitd "${FILESDIR}"/${svc}-initd-4 salt-${svc}
|
||||
newconfd "${FILESDIR}"/${svc}-confd-1 salt-${svc}
|
||||
systemd_dounit "${FILESDIR}"/salt-${svc}.service
|
||||
done
|
||||
|
||||
insinto /etc/${PN}
|
||||
doins -r conf/*
|
||||
}
|
||||
|
||||
python_test() {
|
||||
local tempdir
|
||||
# testsuite likes lots of files
|
||||
ulimit -n 3072 || die
|
||||
|
||||
# ${T} is too long a path for the tests to work
|
||||
tempdir="$(mktemp -dup /tmp salt-XXX)"
|
||||
mkdir "${T}/$(basename "${tempdir}")"
|
||||
|
||||
(
|
||||
cleanup() { rm -f "${tempdir}"; }
|
||||
trap cleanup EXIT
|
||||
|
||||
addwrite "${tempdir}"
|
||||
ln -s "$(realpath --relative-to=/tmp "${T}/$(basename "${tempdir}")")" "${tempdir}"
|
||||
|
||||
USE_SETUPTOOLS=1 SHELL="/bin/bash" \
|
||||
TMPDIR="${tempdir}" \
|
||||
${EPYTHON} tests/runtests.py \
|
||||
--unit-tests --no-report --verbose
|
||||
|
||||
) || die "testing failed"
|
||||
}
|
@ -1 +1,2 @@
|
||||
DIST aspell6-en-2016.11.20-0.tar.bz2 184650 SHA256 5ca6da8b850c36c2f718d51c653e2f8f68b612f29b5c20d99f704b01a1952691 SHA512 acf4c0bac9dba5b001481da159768ee65decea480c6c601ca0733091558406a84a7d8efb47c1806b032d8e22e96927787a29f8e4e93563a01361e4cfaf3a3519 WHIRLPOOL 0a5dc503d7dce72f3b6001e84599078cb31477e50552cef9a3474c7cb3e0c7516d644e3e9bd7dd32b46959b5078b531c3fa82ed26a5cb54628d793ccfe4927e0
|
||||
DIST aspell6-en-7.1-0.tar.bz2 175360 SHA256 ff9df3c2e8c5bb19c6a66078b36a0ef4c4dfb0fcb969e29f7b5345e26d748d0a SHA512 4ede7cb1d231929835e5aa25d1d067ce2f59064e42a27b271e5fd1afdf6e418220720caad2a0c16ec63485e37528d9a515ba55035caeb01372b57410e1152f0f WHIRLPOOL b2e412a3de3a00347f760be2f6e95ccab6c1a9d8320e02408d71524e5fdc12d534f40e9a905fe1abc2f4902571ea30c87a7c3ff050c22d93307a1a6aaf8fb8e4
|
||||
|
@ -0,0 +1,18 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
ASPELL_LANG="English (US, British, Canadian)"
|
||||
ASPOSTFIX="6"
|
||||
|
||||
inherit aspell-dict versionator
|
||||
|
||||
LICENSE="myspell-en_CA-KevinAtkinson public-domain Princeton Ispell"
|
||||
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris"
|
||||
|
||||
IUSE=""
|
||||
|
||||
SRC_URI="mirror://gnu/aspell/dict/${SPELLANG}/${PN%-*}${ASPOSTFIX}-${PN#*-}-$(replace_version_separator 3 '-').tar.bz2"
|
@ -1 +1,2 @@
|
||||
DIST diskimage-builder-1.23.0.tar.gz 255659 SHA256 c235f459f4a52bf0cff134bb6921d29cdf7b87a4427d070e97e16c4b486fb66d SHA512 18d420759df167762c8b41249c94243081ffcf5312727dfc882964c9957752acadd6c526ef34fc49dcf9539b15852542f51f0d83630d27d67fc1c82efa144708 WHIRLPOOL bdd5ce22ae37f96420d9faae40a3cbcfa0d89ff1698f911759b2d79bfb7f867bee4fd0d827a14c1d825969c2bac6996d108cf9427fac5615de7c3527c268c8ee
|
||||
DIST diskimage-builder-1.24.0.tar.gz 256522 SHA256 e5236e0be1d07e0111bceae344bfe6f9dd8b0ed9eba64240e218ecc70b9a7b03 SHA512 27e99142e3d951c2137bf53b16298cc9aacfb5167e9fb4572e735e36b555628262c730570b177ea65565f27afce76c0fb8fdee97c9aa7a2346dfdbae1909fd30 WHIRLPOOL 95f77d78b2d723ec9bdcff190d6e583a0ea6963104126ca146221cf53974137d675e795133659dcd55477645cc2c7c7e8734acd8029f903e98130efd196f16a8
|
||||
|
@ -0,0 +1,32 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Golden Disk Image builder."
|
||||
HOMEPAGE="http://docs.openstack.org/developer/diskimage-builder/"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm64 ~x86 ~amd64-linux ~x86-linux"
|
||||
IUSE=""
|
||||
|
||||
CDEPEND=">=dev-python/pbr-1.8[${PYTHON_USEDEP}]"
|
||||
DEPEND="${CDEPEND}
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]"
|
||||
RDEPEND="${CDEPEND}
|
||||
>=dev-python/Babel-2.3.4[${PYTHON_USEDEP}]
|
||||
dev-python/dib-utils[${PYTHON_USEDEP}]
|
||||
>=dev-python/pyyaml-3.10.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/flake8-2.5.4[${PYTHON_USEDEP}]
|
||||
<dev-python/flake8-2.6.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/six-1.9.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-sphinx-4.7.0[${PYTHON_USEDEP}]
|
||||
app-emulation/qemu
|
||||
sys-block/parted
|
||||
sys-fs/multipath-tools"
|
@ -1,6 +1,2 @@
|
||||
DIST ganeti-2.11.6.tar.gz 4145886 SHA256 db11659ae7aaab5933b55b35f703236edc91ec763e443ac80679a057ba57af5e SHA512 c68ba0661f7598b2fbd67a96fd897e9a8fe7c3a79e914200c08a8e6cb78ad7ea8a85ce7cfee157e22c07d5f46ae6ed61d946cf2cc3852624cd303deb96f1e449 WHIRLPOOL 9bd0acd85ed86b8d05164d6ee70ea960fd42128f9144739c148e70917675d53c1d808d22df981a1ea0d843dfc5fd14fd516d6d39330634beec7eb0ecae4cbe5b
|
||||
DIST ganeti-2.12.3.tar.gz 4373350 SHA256 e66fc4c3dde1e90d85749ceb5c1c90bd6eaed1d139796829833b74337d2d4148 SHA512 7715db8e472e4ac99bf184028cd9853495153485c6638bcddba2d05ce958b6b44d3be07290780bb27b22337ae646881d6b0a30bbe87b7249106ac34d22bdd6c2 WHIRLPOOL e24d695d5acc582905ae7ba003e3fe6e6aa6ea4f9135daf76b953864c392803cd1c6ed81eb0e96652038f289bf450f3ac1a428c46d7a2573bc39a9451a47694e
|
||||
DIST ganeti-2.13.0.tar.gz 4573781 SHA256 30ccfa971b15d49b45a4bfb75bb9631c0993adbd7feac0562c11305ae8c13753 SHA512 bd847ae7e12cb978fae59a458a4d0e33fee470c51748964453b5d0ea6615e6d959519c84922e92229e942a88f1ad88a6d1cb655f58391d033d5f5dfc249ef941 WHIRLPOOL 925159e36fde1cd36214b4fe54b4e06958cc8bd3ded28e32bc4f99842aafcb4c53c701c8a651421559dc13b4d18ae2cc11f1b9d1d2da1e862561cca81d009bda
|
||||
DIST ganeti-2.14.1.tar.gz 4655994 SHA256 ae90c69f0c02d2ee558363a1c021dfaaaf4ccb59b662a72fa6485b406766e133 SHA512 2d3927bf888ea56df6b6275a869979c53d4b01e2e527e2dddea2a4835c90e85831e9e7691162999e5c58e9d214e03a37690e84f8fde9f1a0631897b06db348c3 WHIRLPOOL 3554161afd646af41e587fffa9dc85788f6ef13102121c636802946b64161cdeaeea326103171b70577b06635eebf6988b2f3942024a944612642aefd92b89bb
|
||||
DIST ganeti-2.15.2.tar.gz 4723007 SHA256 1e09d29cae5020142d20a96165b23f3b62b5511b875051b6374d09c4c13c0b83 SHA512 e0707aa535857779622e0eb18cccb89bc34fe4acf373628c30524e3f7e572c4b3d628946ad219149c14615d6471c4d72dbd0c6e3e1855a9f3644b4605544df85 WHIRLPOOL a09a13d64e7c6fa7823072d767fa6495cd814bb22e7a5fc708c8b339103a41da4e45f38574a2c665fe89c8774f220a2715c3aba180eb674eae603730dd2d25ad
|
||||
DIST ganeti_2.15.2-4.debian.tar.xz 42440 SHA256 d2b907ad54b6fad8bc9c023c718c6f1a35cbc487fa065291f465f1e518df6d02 SHA512 e405f54996236fe5166c89190c529256899458594d30e4daee85a9381400e618bc8cc578c43a166ed6d868ed3c5118e4bddc5103b596db89a504de3ba3a1f403 WHIRLPOOL 16acab23919541bfd1748ff9f5e243c483ed4b5b10bcd5c233821c06968671ce0fcdab86ec95a30f6162a308df1eca16424e94b80ea095dfc90931a4be930b26
|
||||
|
@ -1,225 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
PYTHON_COMPAT=(python2_7)
|
||||
PYTHON_REQ_USE="ipv6(+)?"
|
||||
|
||||
inherit eutils confutils autotools bash-completion-r1 python-single-r1 versionator pax-utils
|
||||
|
||||
MY_PV="${PV/_rc/~rc}"
|
||||
#MY_PV="${PV/_beta/~beta}"
|
||||
MY_P="${PN}-${MY_PV}"
|
||||
SERIES="$(get_version_component_range 1-2)"
|
||||
|
||||
if [[ ${PV} == "9999" ]] ; then
|
||||
EGIT_REPO_URI="git://git.ganeti.org/ganeti.git"
|
||||
inherit git-2
|
||||
KEYWORDS=""
|
||||
# you will need to pull in the haskell overlay for pandoc
|
||||
GIT_DEPEND="app-text/pandoc
|
||||
dev-python/docutils
|
||||
dev-python/sphinx
|
||||
media-libs/gd[fontconfig,jpeg,png,truetype]
|
||||
media-gfx/graphviz
|
||||
media-fonts/urw-fonts"
|
||||
else
|
||||
SRC_URI="http://downloads.ganeti.org/releases/${SERIES}/${P}.tar.gz"
|
||||
KEYWORDS="amd64 x86"
|
||||
fi
|
||||
|
||||
DESCRIPTION="Ganeti is a virtual server management software tool"
|
||||
HOMEPAGE="https://code.google.com/p/ganeti/"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
IUSE="drbd haskell-daemons htools ipv6 kvm lxc monitoring multiple-users rbd syslog test xen"
|
||||
REQUIRED_USE="|| ( kvm xen lxc )
|
||||
test? ( ipv6 )"
|
||||
|
||||
USER_PREFIX="${GANETI_USER_PREFIX:-"gnt-"}"
|
||||
GROUP_PREFIX="${GANETI_GROUP_PREFIX:-"${USER_PREFIX}"}"
|
||||
|
||||
HASKELL_DEPS=">=dev-lang/ghc-6.12:0=
|
||||
<dev-lang/ghc-7.8
|
||||
dev-haskell/json:0=
|
||||
dev-haskell/curl:0=
|
||||
dev-haskell/network:0=
|
||||
dev-haskell/parallel:3=
|
||||
dev-haskell/hslogger:0=
|
||||
dev-haskell/utf8-string:0=
|
||||
dev-haskell/attoparsec:0=
|
||||
dev-haskell/crypto:0=
|
||||
dev-haskell/vector:0=
|
||||
dev-haskell/hinotify:0=
|
||||
dev-haskell/regex-pcre-builtin:0=
|
||||
dev-haskell/zlib:0=
|
||||
dev-haskell/base64-bytestring:0=
|
||||
monitoring? ( dev-haskell/snap-server:0= )"
|
||||
|
||||
DEPEND="xen? ( >=app-emulation/xen-3.0 )
|
||||
kvm? ( app-emulation/qemu )
|
||||
lxc? ( app-emulation/lxc )
|
||||
drbd? ( <sys-cluster/drbd-8.5 )
|
||||
rbd? ( sys-cluster/ceph )
|
||||
ipv6? ( net-misc/ndisc6 )
|
||||
haskell-daemons? (
|
||||
${HASKELL_DEPS}
|
||||
dev-haskell/text:0=
|
||||
)
|
||||
dev-libs/openssl:0
|
||||
dev-python/paramiko[${PYTHON_USEDEP}]
|
||||
dev-python/pyopenssl[${PYTHON_USEDEP}]
|
||||
dev-python/pyparsing[${PYTHON_USEDEP}]
|
||||
dev-python/pycurl[${PYTHON_USEDEP}]
|
||||
dev-python/pyinotify[${PYTHON_USEDEP}]
|
||||
dev-python/simplejson[${PYTHON_USEDEP}]
|
||||
dev-python/ipaddr[${PYTHON_USEDEP}]
|
||||
dev-python/bitarray[${PYTHON_USEDEP}]
|
||||
net-analyzer/arping
|
||||
net-analyzer/fping
|
||||
net-misc/bridge-utils
|
||||
net-misc/curl[ssl]
|
||||
net-misc/openssh
|
||||
net-misc/socat
|
||||
sys-apps/iproute2
|
||||
sys-fs/lvm2
|
||||
>=sys-apps/baselayout-2.0
|
||||
${PYTHON_DEPS}
|
||||
${GIT_DEPEND}"
|
||||
RDEPEND="${DEPEND}
|
||||
!app-emulation/ganeti-htools"
|
||||
DEPEND+="${HASKELL_DEPS}
|
||||
sys-devel/m4
|
||||
test? (
|
||||
dev-python/mock
|
||||
dev-python/pyyaml
|
||||
dev-haskell/haddock:0=
|
||||
dev-haskell/test-framework:0=
|
||||
dev-haskell/test-framework-hunit:0=
|
||||
dev-haskell/test-framework-quickcheck2:0=
|
||||
dev-haskell/temporary:0=
|
||||
sys-apps/fakeroot
|
||||
)"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-2.11-start-stop-daemon-args.patch"
|
||||
"${FILESDIR}/${PN}-2.11-add-pgrep.patch"
|
||||
"${FILESDIR}/${PN}-2.11-daemon-util.patch"
|
||||
"${FILESDIR}/${PN}-2.7-fix-tests.patch"
|
||||
"${FILESDIR}/${PN}-2.9-disable-root-tests.patch"
|
||||
"${FILESDIR}/${PN}-2.11-regex-builtin.patch"
|
||||
"${FILESDIR}/${PN}-2.9-skip-cli-test.patch"
|
||||
"${FILESDIR}/${PN}-2.10-rundir.patch"
|
||||
"${FILESDIR}/${PN}-2.11-qemu-enable-kvm.patch"
|
||||
"${FILESDIR}/${PN}-2.11-tests.patch"
|
||||
"${FILESDIR}/${PN}-lockdir.patch"
|
||||
"${FILESDIR}/${PN}-2.11-useradd.patch"
|
||||
"${FILESDIR}/${PN}-2.11-dont-nest-libdir.patch"
|
||||
"${FILESDIR}/${PN}-2.11-dont-print-man-help.patch"
|
||||
"${FILESDIR}/${PN}-2.11-daemon-util-tests.patch"
|
||||
)
|
||||
|
||||
REQUIRED_USE="kvm? ( || ( amd64 x86 ) )"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
pkg_setup () {
|
||||
confutils_use_depend_all haskell-daemons htools
|
||||
python-single-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${PATCHES[@]}"
|
||||
|
||||
[[ ${PV} == "9999" ]] && ./autogen.sh
|
||||
rm autotools/missing
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure () {
|
||||
# this is kind of a hack to work around the removal of the qemu-kvm wrapper
|
||||
local kvm_arch
|
||||
|
||||
if use amd64; then
|
||||
kvm_arch=x86_64
|
||||
elif use x86; then
|
||||
kvm_arch=i386
|
||||
elif use kvm; then
|
||||
die "Could not determine qemu system to use for kvm"
|
||||
fi
|
||||
|
||||
econf --localstatedir=/var \
|
||||
--sharedstatedir=/var \
|
||||
--disable-symlinks \
|
||||
--docdir=/usr/share/doc/${P} \
|
||||
--with-ssh-initscript=/etc/init.d/sshd \
|
||||
--with-export-dir=/var/lib/ganeti-storage/export \
|
||||
--with-os-search-path=/usr/share/${PN}/os \
|
||||
$(usex multiple-users "--with-user-prefix=" "" "${USER_PREFIX}" "") \
|
||||
$(usex multiple-users "--with-group-prefix=" "" "${GROUP_PREFIX}" "") \
|
||||
$(use_enable syslog) \
|
||||
$(use_enable monitoring) \
|
||||
$(usex kvm '--with-kvm-path=' '' "/usr/bin/qemu-system-${kvm_arch}" '') \
|
||||
$(usex haskell-daemons "--enable-confd=haskell" '' '' '')
|
||||
}
|
||||
|
||||
src_install () {
|
||||
emake V=1 DESTDIR="${D}" install || die "emake install failed"
|
||||
|
||||
newinitd "${FILESDIR}"/ganeti.initd-r3 ${PN}
|
||||
newconfd "${FILESDIR}"/ganeti.confd-r2 ${PN}
|
||||
|
||||
if use kvm; then
|
||||
newinitd "${FILESDIR}"/ganeti-kvm-poweroff.initd ganeti-kvm-poweroff
|
||||
newconfd "${FILESDIR}"/ganeti-kvm-poweroff.confd ganeti-kvm-poweroff
|
||||
fi
|
||||
|
||||
# ganeti installs it's own docs in a generic location
|
||||
rm -rf "${D}"/{usr/share/doc/${PN},run}
|
||||
|
||||
newbashcomp doc/examples/bash_completion ganeti
|
||||
|
||||
dodoc INSTALL UPGRADE NEWS README doc/*.rst
|
||||
dohtml -r doc/html/* doc/css/*.css
|
||||
|
||||
docinto examples
|
||||
dodoc doc/examples/{ganeti.cron,gnt-config-backup} doc/examples/*.ocf
|
||||
|
||||
docinto examples/hooks
|
||||
dodoc doc/examples/hooks/{ipsec,ethers}
|
||||
|
||||
insinto /etc/cron.d
|
||||
newins doc/examples/ganeti.cron ${PN}
|
||||
|
||||
insinto /etc/logrotate.d
|
||||
newins doc/examples/ganeti.logrotate ${PN}
|
||||
|
||||
# need to dodir rather than keepdir here (bug #552482)
|
||||
dodir /var/lib/${PN}
|
||||
|
||||
keepdir /var/log/${PN}/
|
||||
keepdir /usr/share/${PN}/${SERIES}/os/
|
||||
keepdir /var/lib/ganeti-storage/{export,file,shared}/
|
||||
|
||||
dosym ${SERIES} "/usr/share/${PN}/default"
|
||||
dosym ${SERIES} "/usr/$(get_libdir)/${PN}/default"
|
||||
|
||||
python_fix_shebang "${ED}" "${D}"/usr/"$(get_libdir)"/${PN}/${SERIES}
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if use multiple-users; then
|
||||
elog "You have enable multiple user support, the users for this must"
|
||||
elog "be created. You can use the provided tool for this, which is"
|
||||
elog "located at:"
|
||||
elog " /usr/$(get_libdir)/${PN}/tools/users-setup"
|
||||
fi
|
||||
}
|
||||
|
||||
src_test () {
|
||||
PATH="${S}/scripts:${S}/src:${PATH}" \
|
||||
TMPDIR="/tmp" \
|
||||
emake check || die "emake check failed"
|
||||
}
|
@ -1,267 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
PYTHON_COMPAT=(python2_7)
|
||||
PYTHON_REQ_USE="ipv6(+)?"
|
||||
|
||||
inherit eutils user autotools bash-completion-r1 python-single-r1 versionator
|
||||
|
||||
MY_PV="${PV/_rc/~rc}"
|
||||
MY_PV="${MY_PV/_beta/~beta}"
|
||||
MY_P="${PN}-${MY_PV}"
|
||||
SERIES="$(get_version_component_range 1-2)"
|
||||
|
||||
if [[ ${PV} == "9999" ]] ; then
|
||||
EGIT_REPO_URI="git://git.ganeti.org/ganeti.git"
|
||||
inherit git-2
|
||||
KEYWORDS=""
|
||||
GIT_DEPEND="app-text/pandoc
|
||||
dev-python/docutils
|
||||
dev-python/sphinx[${PYTHON_USEDEP}]
|
||||
media-libs/gd[fontconfig,jpeg,png,truetype]
|
||||
media-gfx/graphviz
|
||||
media-fonts/urw-fonts"
|
||||
else
|
||||
SRC_URI="http://downloads.ganeti.org/releases/${SERIES}/${MY_P}.tar.gz"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
fi
|
||||
|
||||
DESCRIPTION="Ganeti is a virtual server management software tool"
|
||||
HOMEPAGE="http://www.ganeti.org/"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
IUSE="drbd haskell-daemons htools ipv6 kvm lxc monitoring multiple-users rbd syslog test xen"
|
||||
REQUIRED_USE="|| ( kvm xen lxc )
|
||||
test? ( ipv6 )
|
||||
${PYTHON_REQUIRED_USE}"
|
||||
|
||||
USER_PREFIX="${GANETI_USER_PREFIX:-"gnt-"}"
|
||||
GROUP_PREFIX="${GANETI_GROUP_PREFIX:-"${USER_PREFIX}"}"
|
||||
|
||||
# the haskell less-than atoms list are resolver hints, they aren't actual
|
||||
# direct dependencies, just hints to help the resolver fufill the dependency
|
||||
# on an older transformer.
|
||||
# these need to stay until 2.14.0
|
||||
DEPEND="
|
||||
dev-libs/openssl:0
|
||||
dev-python/paramiko[${PYTHON_USEDEP}]
|
||||
dev-python/pyopenssl[${PYTHON_USEDEP}]
|
||||
dev-python/pyparsing[${PYTHON_USEDEP}]
|
||||
dev-python/pycurl[${PYTHON_USEDEP}]
|
||||
dev-python/pyinotify[${PYTHON_USEDEP}]
|
||||
dev-python/simplejson[${PYTHON_USEDEP}]
|
||||
dev-python/ipaddr[${PYTHON_USEDEP}]
|
||||
dev-python/bitarray[${PYTHON_USEDEP}]
|
||||
net-analyzer/arping
|
||||
net-analyzer/fping
|
||||
net-misc/bridge-utils
|
||||
net-misc/curl[ssl]
|
||||
net-misc/openssh
|
||||
net-misc/socat
|
||||
sys-apps/iproute2
|
||||
sys-fs/lvm2
|
||||
>=sys-apps/baselayout-2.0
|
||||
=dev-lang/ghc-7.6*:0=
|
||||
>=dev-haskell/json-0.9:0=
|
||||
<dev-haskell/monad-control-1.0.0.0:0=
|
||||
<dev-haskell/transformers-0.4.0:0=
|
||||
dev-haskell/curl:0=
|
||||
dev-haskell/network:0=
|
||||
dev-haskell/parallel:3=
|
||||
>=dev-haskell/hslogger-1.2.6:0=
|
||||
dev-haskell/snap-server:0=
|
||||
dev-haskell/utf8-string:0=
|
||||
dev-haskell/attoparsec:0=
|
||||
dev-haskell/crypto:0=
|
||||
dev-haskell/vector:0=
|
||||
dev-haskell/hinotify:0=
|
||||
dev-haskell/regex-pcre-builtin:0=
|
||||
dev-haskell/zlib:0=
|
||||
>=dev-haskell/lifted-base-0.2.3.3:0=
|
||||
<dev-haskell/lens-3.10:0=
|
||||
dev-haskell/base64-bytestring:0=
|
||||
<dev-haskell/mtl-2.2
|
||||
<dev-haskell/contravariant-0.6
|
||||
<dev-haskell/profunctors-4.3
|
||||
<dev-haskell/distributive-0.4.4
|
||||
<dev-haskell/comonad-4.2.2
|
||||
<dev-haskell/transformers-compat-0.3
|
||||
<dev-haskell/transformers-base-0.4.4
|
||||
<dev-haskell/semigroupoids-4.0
|
||||
<dev-haskell/semigroupoid-extras-4.0
|
||||
<dev-haskell/groupoids-4.0
|
||||
xen? ( >=app-emulation/xen-3.0 )
|
||||
kvm? ( app-emulation/qemu )
|
||||
lxc? ( app-emulation/lxc )
|
||||
drbd? ( <sys-cluster/drbd-8.5 )
|
||||
rbd? ( sys-cluster/ceph )
|
||||
ipv6? ( net-misc/ndisc6 )
|
||||
haskell-daemons? ( dev-haskell/text:0= )
|
||||
${PYTHON_DEPS}
|
||||
${GIT_DEPEND}"
|
||||
RDEPEND="${DEPEND}
|
||||
!app-emulation/ganeti-htools"
|
||||
DEPEND+="sys-devel/m4
|
||||
test? (
|
||||
dev-python/mock
|
||||
dev-python/pyyaml
|
||||
dev-haskell/haddock:0=
|
||||
dev-haskell/test-framework:0=
|
||||
dev-haskell/test-framework-hunit:0=
|
||||
dev-haskell/test-framework-quickcheck2:0=
|
||||
dev-haskell/temporary:0=
|
||||
sys-apps/fakeroot
|
||||
net-misc/socat
|
||||
dev-util/shelltestrunner
|
||||
)"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-2.12-start-stop-daemon-args.patch"
|
||||
"${FILESDIR}/${PN}-2.11-add-pgrep.patch"
|
||||
"${FILESDIR}/${PN}-2.12.3-daemon-util.patch"
|
||||
"${FILESDIR}/${PN}-2.7-fix-tests.patch"
|
||||
"${FILESDIR}/${PN}-2.9-disable-root-tests.patch"
|
||||
"${FILESDIR}/${PN}-2.11-regex-builtin.patch"
|
||||
"${FILESDIR}/${PN}-2.9-skip-cli-test.patch"
|
||||
"${FILESDIR}/${PN}-2.10-rundir.patch"
|
||||
"${FILESDIR}/${PN}-2.12-qemu-enable-kvm.patch"
|
||||
"${FILESDIR}/${PN}-2.11-tests.patch"
|
||||
"${FILESDIR}/${PN}-lockdir.patch"
|
||||
"${FILESDIR}/${PN}-2.11-useradd.patch"
|
||||
"${FILESDIR}/${PN}-2.11-dont-nest-libdir.patch"
|
||||
"${FILESDIR}/${PN}-2.11-dont-print-man-help.patch"
|
||||
"${FILESDIR}/${PN}-2.11-daemon-util-tests.patch"
|
||||
"${FILESDIR}/${PN}-2.12-tests.patch"
|
||||
)
|
||||
|
||||
REQUIRED_USE="kvm? ( || ( amd64 x86 ) )"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
QA_WX_LOAD="usr/$(get_libdir)/${PN}/${SERIES}/usr/sbin/ganeti-*d
|
||||
usr/$(get_libdir)/${PN}/${SERIES}/usr/bin/htools"
|
||||
|
||||
pkg_setup () {
|
||||
local user
|
||||
confutils_use_depend_all haskell-daemons htools
|
||||
python-single-r1_pkg_setup
|
||||
|
||||
if use multiple-users; then
|
||||
for user in gnt-{masterd,confd,luxid,rapi,daemons,admin}; do
|
||||
enewgroup ${user}
|
||||
enewuser ${user} -1 -1 -1 ${user}
|
||||
done
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
local testfile
|
||||
epatch "${PATCHES[@]}"
|
||||
|
||||
# not sure why these tests are failing
|
||||
# should remove this on next version bump if possible
|
||||
for testfile in test/py/import-export_unittest.bash; do
|
||||
printf '#!/bin/bash\ntrue\n' > "${testfile}"
|
||||
done
|
||||
|
||||
# take the sledgehammer approach to bug #526270
|
||||
grep -lr '/bin/sh' "${S}" | xargs -r -- sed -i 's:/bin/sh:/bin/bash:g'
|
||||
|
||||
[[ ${PV} =~ [9]{4,} ]] && ./autogen.sh
|
||||
rm autotools/missing
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure () {
|
||||
# this is kind of a hack to work around the removal of the qemu-kvm wrapper
|
||||
local kvm_arch
|
||||
|
||||
if use amd64; then
|
||||
kvm_arch=x86_64
|
||||
elif use x86; then
|
||||
kvm_arch=i386
|
||||
elif use kvm; then
|
||||
die "Could not determine qemu system to use for kvm"
|
||||
fi
|
||||
|
||||
econf --localstatedir=/var \
|
||||
--sharedstatedir=/var \
|
||||
--disable-symlinks \
|
||||
--docdir=/usr/share/doc/${P} \
|
||||
--with-ssh-initscript=/etc/init.d/sshd \
|
||||
--with-export-dir=/var/lib/ganeti-storage/export \
|
||||
--with-os-search-path=/usr/share/${PN}/os \
|
||||
$(usex multiple-users "--with-user-prefix=" "" "${USER_PREFIX}" "") \
|
||||
$(usex multiple-users "--with-group-prefix=" "" "${GROUP_PREFIX}" "") \
|
||||
$(use_enable syslog) \
|
||||
$(use_enable monitoring) \
|
||||
$(usex kvm '--with-kvm-path=' '' "/usr/bin/qemu-system-${kvm_arch}" '') \
|
||||
$(usex haskell-daemons "--enable-confd=haskell" '' '' '')
|
||||
}
|
||||
|
||||
src_install () {
|
||||
emake V=1 DESTDIR="${D}" install || die "emake install failed"
|
||||
|
||||
newinitd "${FILESDIR}"/ganeti.initd-r3 ${PN}
|
||||
newconfd "${FILESDIR}"/ganeti.confd-r2 ${PN}
|
||||
|
||||
if use kvm; then
|
||||
newinitd "${FILESDIR}"/ganeti-kvm-poweroff.initd ganeti-kvm-poweroff
|
||||
newconfd "${FILESDIR}"/ganeti-kvm-poweroff.confd ganeti-kvm-poweroff
|
||||
fi
|
||||
|
||||
# ganeti installs it's own docs in a generic location
|
||||
rm -rf "${D}"/{usr/share/doc/${PN},run}
|
||||
|
||||
sed -i "s:/usr/$(get_libdir)/${PN}/tools/burnin:burnin:" doc/examples/bash_completion
|
||||
newbashcomp doc/examples/bash_completion gnt-instance
|
||||
bashcomp_alias gnt-instance burnin ganeti-{cleaner,confd} \
|
||||
h{space,check,scan,info,ail,arep,roller,squeeze,bal} \
|
||||
gnt-{os,job,filter,debug,storage,group,node,network,backup,cluster}
|
||||
|
||||
dodoc INSTALL UPGRADE NEWS README doc/*.rst
|
||||
dohtml -r doc/html/* doc/css/*.css
|
||||
|
||||
docinto examples
|
||||
dodoc doc/examples/{ganeti.cron,gnt-config-backup} doc/examples/*.ocf
|
||||
|
||||
docinto examples/hooks
|
||||
dodoc doc/examples/hooks/{ipsec,ethers}
|
||||
|
||||
insinto /etc/cron.d
|
||||
newins doc/examples/ganeti.cron ${PN}
|
||||
|
||||
insinto /etc/logrotate.d
|
||||
newins doc/examples/ganeti.logrotate ${PN}
|
||||
|
||||
# need to dodir rather than keepdir here (bug #552482)
|
||||
dodir /var/lib/${PN}
|
||||
|
||||
keepdir /var/log/${PN}/
|
||||
keepdir /usr/share/${PN}/${SERIES}/os/
|
||||
keepdir /var/lib/ganeti-storage/{export,file,shared}/
|
||||
|
||||
dosym ${SERIES} "/usr/share/${PN}/default"
|
||||
dosym ${SERIES} "/usr/$(get_libdir)/${PN}/default"
|
||||
|
||||
python_fix_shebang "${ED}" "${D}"/usr/"$(get_libdir)"/${PN}/${SERIES}
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if use multiple-users; then
|
||||
elog "You have enable multiple user support, the users for this must"
|
||||
elog "be created. You can use the provided tool for this, which is"
|
||||
elog "located at:"
|
||||
elog " /usr/$(get_libdir)/${PN}/tools/users-setup"
|
||||
fi
|
||||
}
|
||||
|
||||
src_test () {
|
||||
PATH="${S}/scripts:${S}/src:${PATH}" \
|
||||
TMPDIR="/tmp" \
|
||||
GANETI_MASTER="$(hostname -f)" \
|
||||
emake check || die "emake check failed"
|
||||
}
|
@ -1,260 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
PYTHON_COMPAT=(python2_7)
|
||||
PYTHON_REQ_USE="ipv6(+)?"
|
||||
|
||||
inherit eutils user autotools bash-completion-r1 python-single-r1 versionator
|
||||
|
||||
MY_PV="${PV/_rc/~rc}"
|
||||
MY_PV="${MY_PV/_beta/~beta}"
|
||||
MY_P="${PN}-${MY_PV}"
|
||||
SERIES="$(get_version_component_range 1-2)"
|
||||
|
||||
if [[ ${PV} == "9999" ]] ; then
|
||||
EGIT_REPO_URI="git://git.ganeti.org/ganeti.git"
|
||||
inherit git-2
|
||||
KEYWORDS=""
|
||||
else
|
||||
SRC_URI="http://downloads.ganeti.org/releases/${SERIES}/${MY_P}.tar.gz"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
fi
|
||||
|
||||
DESCRIPTION="Ganeti is a virtual server management software tool"
|
||||
HOMEPAGE="http://www.ganeti.org/"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
IUSE="drbd haskell-daemons htools ipv6 kvm lxc monitoring multiple-users rbd syslog test xen"
|
||||
REQUIRED_USE="|| ( kvm xen lxc )
|
||||
test? ( ipv6 )
|
||||
${PYTHON_REQUIRED_USE}"
|
||||
|
||||
USER_PREFIX="${GANETI_USER_PREFIX:-"gnt-"}"
|
||||
GROUP_PREFIX="${GANETI_GROUP_PREFIX:-"${USER_PREFIX}"}"
|
||||
|
||||
DEPEND="
|
||||
dev-libs/openssl:0
|
||||
dev-python/paramiko[${PYTHON_USEDEP}]
|
||||
dev-python/pyopenssl[${PYTHON_USEDEP}]
|
||||
dev-python/pyparsing[${PYTHON_USEDEP}]
|
||||
dev-python/pycurl[${PYTHON_USEDEP}]
|
||||
dev-python/pyinotify[${PYTHON_USEDEP}]
|
||||
dev-python/simplejson[${PYTHON_USEDEP}]
|
||||
dev-python/ipaddr[${PYTHON_USEDEP}]
|
||||
dev-python/bitarray[${PYTHON_USEDEP}]
|
||||
net-analyzer/arping
|
||||
net-analyzer/fping
|
||||
net-misc/bridge-utils
|
||||
net-misc/curl[ssl]
|
||||
net-misc/openssh
|
||||
net-misc/socat
|
||||
sys-apps/iproute2
|
||||
sys-fs/lvm2
|
||||
>=sys-apps/baselayout-2.0
|
||||
=dev-lang/ghc-7.6*:0=
|
||||
>=dev-haskell/json-0.9:0=
|
||||
dev-haskell/curl:0=
|
||||
dev-haskell/network:0=
|
||||
dev-haskell/parallel:3=
|
||||
>=dev-haskell/hslogger-1.2.6:0=
|
||||
dev-haskell/snap-server:0=
|
||||
dev-haskell/utf8-string:0=
|
||||
dev-haskell/attoparsec:0=
|
||||
dev-haskell/crypto:0=
|
||||
dev-haskell/vector:0=
|
||||
dev-haskell/hinotify:0=
|
||||
dev-haskell/regex-pcre-builtin:0=
|
||||
dev-haskell/zlib:0=
|
||||
>=dev-haskell/lifted-base-0.2.3.3:0=
|
||||
<dev-haskell/lens-4:0=
|
||||
dev-haskell/psqueue:0=
|
||||
dev-haskell/base64-bytestring:0=
|
||||
<dev-haskell/semigroupoids-4.1:0=
|
||||
<dev-haskell/mtl-2.2:0=
|
||||
<dev-haskell/monad-control-1.0.0.0:0=
|
||||
<dev-haskell/transformers-0.4.0:0=
|
||||
<dev-haskell/contravariant-0.6
|
||||
<dev-haskell/transformers-compat-0.4[three]
|
||||
<dev-haskell/transformers-base-0.4.4
|
||||
xen? ( >=app-emulation/xen-3.0 )
|
||||
kvm? ( app-emulation/qemu )
|
||||
lxc? ( app-emulation/lxc )
|
||||
drbd? ( <sys-cluster/drbd-8.5 )
|
||||
rbd? ( sys-cluster/ceph )
|
||||
ipv6? ( net-misc/ndisc6 )
|
||||
haskell-daemons? ( dev-haskell/text:0= )
|
||||
${PYTHON_DEPS}"
|
||||
RDEPEND="${DEPEND}
|
||||
!app-emulation/ganeti-htools"
|
||||
DEPEND+="
|
||||
sys-devel/m4
|
||||
<dev-python/sphinx-1.3[${PYTHON_USEDEP}]
|
||||
media-fonts/urw-fonts
|
||||
media-gfx/graphviz
|
||||
=app-text/pandoc-1.12*
|
||||
test? (
|
||||
dev-python/mock
|
||||
dev-python/pyyaml
|
||||
dev-haskell/haddock:0=
|
||||
dev-haskell/test-framework:0=
|
||||
dev-haskell/test-framework-hunit:0=
|
||||
dev-haskell/test-framework-quickcheck2:0=
|
||||
dev-haskell/temporary:0=
|
||||
sys-apps/fakeroot
|
||||
net-misc/socat
|
||||
dev-util/shelltestrunner
|
||||
)"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-2.12-start-stop-daemon-args.patch"
|
||||
"${FILESDIR}/${PN}-2.11-add-pgrep.patch"
|
||||
"${FILESDIR}/${PN}-2.13-daemon-util.patch"
|
||||
"${FILESDIR}/${PN}-2.7-fix-tests.patch"
|
||||
"${FILESDIR}/${PN}-2.9-disable-root-tests.patch"
|
||||
"${FILESDIR}/${PN}-2.9-skip-cli-test.patch"
|
||||
"${FILESDIR}/${PN}-2.10-rundir.patch"
|
||||
"${FILESDIR}/${PN}-2.12-qemu-enable-kvm.patch"
|
||||
"${FILESDIR}/${PN}-2.11-tests.patch"
|
||||
"${FILESDIR}/${PN}-lockdir.patch"
|
||||
"${FILESDIR}/${PN}-2.11-dont-nest-libdir.patch"
|
||||
"${FILESDIR}/${PN}-2.11-dont-print-man-help.patch"
|
||||
"${FILESDIR}/${PN}-2.11-daemon-util-tests.patch"
|
||||
"${FILESDIR}/${PN}-2.13-regex-pcre-builtin.patch"
|
||||
"${FILESDIR}/${PN}-2.13-process_unittest.patch"
|
||||
"${FILESDIR}/${PN}-2.13-disable-usersgroups-test.patch"
|
||||
)
|
||||
|
||||
REQUIRED_USE="kvm? ( || ( amd64 x86 ) )"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
QA_WX_LOAD="usr/$(get_libdir)/${PN}/${SERIES}/usr/sbin/ganeti-*d
|
||||
usr/$(get_libdir)/${PN}/${SERIES}/usr/bin/htools"
|
||||
|
||||
pkg_setup () {
|
||||
local user
|
||||
confutils_use_depend_all haskell-daemons htools
|
||||
python-single-r1_pkg_setup
|
||||
|
||||
if use multiple-users; then
|
||||
for user in gnt-{masterd,confd,luxid,rapi,daemons,admin}; do
|
||||
enewgroup ${user}
|
||||
enewuser ${user} -1 -1 -1 ${user}
|
||||
done
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
local testfile
|
||||
epatch "${PATCHES[@]}"
|
||||
|
||||
# not sure why these tests are failing
|
||||
# should remove this on next version bump if possible
|
||||
for testfile in test/py/import-export_unittest.bash; do
|
||||
printf '#!/bin/bash\ntrue\n' > "${testfile}"
|
||||
done
|
||||
|
||||
# take the sledgehammer approach to bug #526270
|
||||
grep -lr '/bin/sh' "${S}" | xargs -r -- sed -i 's:/bin/sh:/bin/bash:g'
|
||||
|
||||
[[ ${PV} =~ [9]{4,} ]] && ./autogen.sh
|
||||
rm autotools/missing
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure () {
|
||||
# this is kind of a hack to work around the removal of the qemu-kvm wrapper
|
||||
local kvm_arch
|
||||
|
||||
if use amd64; then
|
||||
kvm_arch=x86_64
|
||||
elif use x86; then
|
||||
kvm_arch=i386
|
||||
elif use kvm; then
|
||||
die "Could not determine qemu system to use for kvm"
|
||||
fi
|
||||
|
||||
econf --localstatedir=/var \
|
||||
--sharedstatedir=/var \
|
||||
--disable-symlinks \
|
||||
--docdir=/usr/share/doc/${P} \
|
||||
--with-ssh-initscript=/etc/init.d/sshd \
|
||||
--with-export-dir=/var/lib/ganeti-storage/export \
|
||||
--with-os-search-path=/usr/share/${PN}/os \
|
||||
$(use_enable test haskell-tests) \
|
||||
$(usex multiple-users "--with-default-user=" "" "gnt-daemons" "") \
|
||||
$(usex multiple-users "--with-user-prefix=" "" "${USER_PREFIX}" "") \
|
||||
$(usex multiple-users "--with-default-group=" "" "gnt-daemons" "") \
|
||||
$(usex multiple-users "--with-group-prefix=" "" "${GROUP_PREFIX}" "") \
|
||||
$(use_enable syslog) \
|
||||
$(use_enable monitoring) \
|
||||
$(usex kvm '--with-kvm-path=' '' "/usr/bin/qemu-system-${kvm_arch}" '') \
|
||||
$(usex haskell-daemons "--enable-confd=haskell" '' '' '')
|
||||
}
|
||||
|
||||
src_install () {
|
||||
emake V=1 DESTDIR="${D}" install || die "emake install failed"
|
||||
|
||||
newinitd "${FILESDIR}"/ganeti.initd-r3 ${PN}
|
||||
newconfd "${FILESDIR}"/ganeti.confd-r2 ${PN}
|
||||
|
||||
if use kvm; then
|
||||
newinitd "${FILESDIR}"/ganeti-kvm-poweroff.initd ganeti-kvm-poweroff
|
||||
newconfd "${FILESDIR}"/ganeti-kvm-poweroff.confd ganeti-kvm-poweroff
|
||||
fi
|
||||
|
||||
# ganeti installs it's own docs in a generic location
|
||||
rm -rf "${D}"/{usr/share/doc/${PN},run}
|
||||
|
||||
sed -i "s:/usr/$(get_libdir)/${PN}/tools/burnin:burnin:" doc/examples/bash_completion
|
||||
newbashcomp doc/examples/bash_completion gnt-instance
|
||||
bashcomp_alias gnt-instance burnin ganeti-{cleaner,confd} \
|
||||
h{space,check,scan,info,ail,arep,roller,squeeze,bal} \
|
||||
gnt-{os,job,filter,debug,storage,group,node,network,backup,cluster}
|
||||
|
||||
dodoc INSTALL UPGRADE NEWS README doc/*.rst
|
||||
dohtml -r doc/html/* doc/css/*.css
|
||||
|
||||
docinto examples
|
||||
dodoc doc/examples/{ganeti.cron,gnt-config-backup} doc/examples/*.ocf
|
||||
|
||||
docinto examples/hooks
|
||||
dodoc doc/examples/hooks/{ipsec,ethers}
|
||||
|
||||
insinto /etc/cron.d
|
||||
newins doc/examples/ganeti.cron ${PN}
|
||||
|
||||
insinto /etc/logrotate.d
|
||||
newins doc/examples/ganeti.logrotate ${PN}
|
||||
|
||||
# need to dodir rather than keepdir here (bug #552482)
|
||||
dodir /var/lib/${PN}
|
||||
|
||||
keepdir /var/log/${PN}/
|
||||
keepdir /usr/share/${PN}/${SERIES}/os/
|
||||
keepdir /var/lib/ganeti-storage/{export,file,shared}/
|
||||
|
||||
dosym ${SERIES} "/usr/share/${PN}/default"
|
||||
dosym ${SERIES} "/usr/$(get_libdir)/${PN}/default"
|
||||
|
||||
python_fix_shebang "${ED}" "${D}"/usr/"$(get_libdir)"/${PN}/${SERIES}
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if use multiple-users; then
|
||||
elog "You have enable multiple user support, the users for this must"
|
||||
elog "be created. You can use the provided tool for this, which is"
|
||||
elog "located at:"
|
||||
elog " /usr/$(get_libdir)/${PN}/tools/users-setup"
|
||||
fi
|
||||
}
|
||||
|
||||
src_test () {
|
||||
PATH="${S}/scripts:${S}/src:${PATH}" \
|
||||
TMPDIR="/tmp" \
|
||||
GANETI_MASTER="$(hostname -f)" \
|
||||
emake check || die "emake check failed"
|
||||
}
|
@ -1,296 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
PYTHON_COMPAT=(python2_7)
|
||||
PYTHON_REQ_USE="ipv6(+)?"
|
||||
|
||||
inherit eutils user autotools bash-completion-r1 python-single-r1 versionator
|
||||
|
||||
MY_PV="${PV/_rc/~rc}"
|
||||
MY_PV="${MY_PV/_beta/~beta}"
|
||||
MY_P="${PN}-${MY_PV}"
|
||||
SERIES="$(get_version_component_range 1-2)"
|
||||
|
||||
if [[ ${PV} =~ [9]{4,} ]] ; then
|
||||
EGIT_REPO_URI="git://git.ganeti.org/ganeti.git"
|
||||
inherit git-2
|
||||
KEYWORDS=""
|
||||
else
|
||||
SRC_URI="http://downloads.ganeti.org/releases/${SERIES}/${MY_P}.tar.gz"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
fi
|
||||
|
||||
DESCRIPTION="Ganeti is a virtual server management software tool"
|
||||
HOMEPAGE="http://www.ganeti.org/"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
IUSE="drbd haskell-daemons htools ipv6 kvm lxc monitoring multiple-users rbd syslog test xen"
|
||||
REQUIRED_USE="|| ( kvm xen lxc )
|
||||
test? ( ipv6 )
|
||||
${PYTHON_REQUIRED_USE}"
|
||||
|
||||
USER_PREFIX="${GANETI_USER_PREFIX:-"gnt-"}"
|
||||
GROUP_PREFIX="${GANETI_GROUP_PREFIX:-"${USER_PREFIX}"}"
|
||||
|
||||
DEPEND="
|
||||
dev-libs/openssl:0
|
||||
dev-python/paramiko[${PYTHON_USEDEP}]
|
||||
dev-python/pyopenssl[${PYTHON_USEDEP}]
|
||||
dev-python/pyparsing[${PYTHON_USEDEP}]
|
||||
dev-python/pycurl[${PYTHON_USEDEP}]
|
||||
dev-python/pyinotify[${PYTHON_USEDEP}]
|
||||
dev-python/simplejson[${PYTHON_USEDEP}]
|
||||
dev-python/ipaddr[${PYTHON_USEDEP}]
|
||||
dev-python/bitarray[${PYTHON_USEDEP}]
|
||||
net-analyzer/arping
|
||||
net-analyzer/fping
|
||||
net-misc/bridge-utils
|
||||
net-misc/curl[ssl]
|
||||
net-misc/openssh
|
||||
net-misc/socat
|
||||
sys-apps/iproute2
|
||||
sys-fs/lvm2
|
||||
>=sys-apps/baselayout-2.0
|
||||
=dev-lang/ghc-7.6*:0=
|
||||
dev-haskell/cabal:0=
|
||||
dev-haskell/cabal-install:0=
|
||||
>=dev-haskell/mtl-2.1.1:0=
|
||||
>=dev-haskell/old-time-1.1.0.0:0=
|
||||
>=dev-haskell/random-1.0.1.1:0=
|
||||
haskell-daemons? ( >=dev-haskell/text-0.11.1.13:0= )
|
||||
>=dev-haskell/transformers-0.3.0.0:0=
|
||||
|
||||
>=dev-haskell/attoparsec-0.10.1.1:0=
|
||||
<dev-haskell/attoparsec-0.13:0
|
||||
>=dev-haskell/base64-bytestring-1.0.0.1:0=
|
||||
<dev-haskell/base64-bytestring-1.1:0=
|
||||
>=dev-haskell/crypto-4.2.4:0=
|
||||
<dev-haskell/crypto-4.3:0=
|
||||
>=dev-haskell/curl-1.3.7:0=
|
||||
<dev-haskell/curl-1.4:0=
|
||||
>=dev-haskell/hinotify-0.3.2:0=
|
||||
<dev-haskell/hinotify-0.4:0=
|
||||
>=dev-haskell/hslogger-1.1.4:0=
|
||||
<dev-haskell/hslogger-1.3:0=
|
||||
>=dev-haskell/json-0.5:0=
|
||||
<dev-haskell/json-0.9:0=
|
||||
>=dev-haskell/lens-3.10:0=
|
||||
<dev-haskell/lens-4.8:0=
|
||||
>=dev-haskell/lifted-base-0.2.0.3:0=
|
||||
<dev-haskell/lifted-base-0.3:0=
|
||||
>=dev-haskell/monad-control-0.3.1.3:0=
|
||||
<dev-haskell/monad-control-1.1:0=
|
||||
>=dev-haskell/network-2.3.0.13:0=
|
||||
<dev-haskell/network-2.7:0=
|
||||
>=dev-haskell/parallel-3.2.0.2:3=
|
||||
<dev-haskell/parallel-3.3:3=
|
||||
>=dev-haskell/temporary-1.1.2.3:0=
|
||||
<dev-haskell/temporary-1.3:0=
|
||||
>=dev-haskell/regex-pcre-0.94.2:0=
|
||||
<dev-haskell/regex-pcre-0.95:0=
|
||||
>=dev-haskell/transformers-base-0.4.1:0=
|
||||
<dev-haskell/transformers-base-0.5:0=
|
||||
>=dev-haskell/utf8-string-0.3.7:0=
|
||||
<dev-haskell/utf8-string-0.4:0=
|
||||
>=dev-haskell/zlib-0.5.3.3:0=
|
||||
<dev-haskell/zlib-0.6:0=
|
||||
|
||||
>=dev-haskell/psqueue-1.1:0=
|
||||
<dev-haskell/psqueue-1.2:0=
|
||||
>=dev-haskell/snap-core-0.8.1:0=
|
||||
<dev-haskell/snap-core-0.10:0=
|
||||
>=dev-haskell/snap-server-0.8.1:0=
|
||||
<dev-haskell/snap-server-0.10:0=
|
||||
|
||||
dev-haskell/vector:0=
|
||||
<dev-haskell/semigroupoids-4.1:0=
|
||||
<dev-haskell/contravariant-0.6
|
||||
<dev-haskell/transformers-compat-0.4[three]
|
||||
xen? ( >=app-emulation/xen-3.0 )
|
||||
kvm? ( app-emulation/qemu )
|
||||
lxc? ( app-emulation/lxc )
|
||||
drbd? ( <sys-cluster/drbd-8.5 )
|
||||
rbd? ( sys-cluster/ceph )
|
||||
ipv6? ( net-misc/ndisc6 )
|
||||
${PYTHON_DEPS}"
|
||||
RDEPEND="${DEPEND}
|
||||
!app-emulation/ganeti-htools"
|
||||
DEPEND+="
|
||||
sys-devel/m4
|
||||
<dev-python/sphinx-1.3[${PYTHON_USEDEP}]
|
||||
media-fonts/urw-fonts
|
||||
media-gfx/graphviz
|
||||
=app-text/pandoc-1.12*
|
||||
>=dev-haskell/test-framework-0.6:0=
|
||||
<dev-haskell/test-framework-0.9:0=
|
||||
>=dev-haskell/test-framework-hunit-0.2.7:0=
|
||||
<dev-haskell/test-framework-hunit-0.4:0=
|
||||
>=dev-haskell/test-framework-quickcheck2-0.2.12.1:0=
|
||||
<dev-haskell/test-framework-quickcheck2-0.4:0=
|
||||
test? (
|
||||
dev-python/mock
|
||||
dev-python/pyyaml
|
||||
dev-haskell/haddock:0=
|
||||
>=dev-haskell/hunit-1.2.4.2:0=
|
||||
<dev-haskell/hunit-1.3:0=
|
||||
>=dev-haskell/quickcheck-2.4.2:2=
|
||||
<dev-haskell/quickcheck-2.8:2=
|
||||
sys-apps/fakeroot
|
||||
net-misc/socat
|
||||
dev-util/shelltestrunner
|
||||
)"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-2.12-start-stop-daemon-args.patch"
|
||||
"${FILESDIR}/${PN}-2.11-add-pgrep.patch"
|
||||
"${FILESDIR}/${PN}-2.13-daemon-util.patch"
|
||||
"${FILESDIR}/${PN}-2.7-fix-tests.patch"
|
||||
"${FILESDIR}/${PN}-2.9-disable-root-tests.patch"
|
||||
"${FILESDIR}/${PN}-2.9-skip-cli-test.patch"
|
||||
"${FILESDIR}/${PN}-2.10-rundir.patch"
|
||||
"${FILESDIR}/${PN}-2.12-qemu-enable-kvm.patch"
|
||||
"${FILESDIR}/${PN}-2.11-tests.patch"
|
||||
"${FILESDIR}/${PN}-lockdir.patch"
|
||||
"${FILESDIR}/${PN}-2.11-dont-nest-libdir.patch"
|
||||
"${FILESDIR}/${PN}-2.11-dont-print-man-help.patch"
|
||||
"${FILESDIR}/${PN}-2.11-daemon-util-tests.patch"
|
||||
"${FILESDIR}/${PN}-2.13-process_unittest.patch"
|
||||
)
|
||||
|
||||
REQUIRED_USE="kvm? ( || ( amd64 x86 ) )
|
||||
test? ( ipv6 )"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
# apparently currently broken
|
||||
QA_WX_LOAD="
|
||||
usr/lib*/${PN}/${SERIES}/usr/sbin/ganeti-*d
|
||||
usr/lib*/${PN}/${SERIES}/usr/bin/htools
|
||||
"
|
||||
|
||||
pkg_setup () {
|
||||
local user
|
||||
python-single-r1_pkg_setup
|
||||
|
||||
if use multiple-users; then
|
||||
for user in gnt-{masterd,confd,luxid,rapi,daemons,admin}; do
|
||||
enewgroup ${user}
|
||||
enewuser ${user} -1 -1 -1 ${user}
|
||||
done
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
local testfile
|
||||
epatch "${PATCHES[@]}"
|
||||
|
||||
# not sure why these tests are failing
|
||||
# should remove this on next version bump if possible
|
||||
for testfile in test/py/import-export_unittest.bash; do
|
||||
printf '#!/bin/bash\ntrue\n' > "${testfile}"
|
||||
done
|
||||
|
||||
# take the sledgehammer approach to bug #526270
|
||||
grep -lr '/bin/sh' "${S}" | xargs -r -- sed -i 's:/bin/sh:/bin/bash:g'
|
||||
|
||||
[[ ${PV} =~ [9]{4,} ]] && ./autogen.sh
|
||||
rm autotools/missing
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure () {
|
||||
# this is kind of a hack to work around the removal of the qemu-kvm wrapper
|
||||
local kvm_arch
|
||||
|
||||
if use amd64; then
|
||||
kvm_arch=x86_64
|
||||
elif use x86; then
|
||||
kvm_arch=i386
|
||||
elif use kvm; then
|
||||
die "Could not determine qemu system to use for kvm"
|
||||
fi
|
||||
|
||||
econf --localstatedir=/var \
|
||||
--sharedstatedir=/var \
|
||||
--disable-symlinks \
|
||||
--docdir=/usr/share/doc/${P} \
|
||||
--with-ssh-initscript=/etc/init.d/sshd \
|
||||
--with-export-dir=/var/lib/ganeti-storage/export \
|
||||
--with-os-search-path=/usr/share/${PN}/os \
|
||||
$(use_enable test haskell-tests) \
|
||||
$(usex multiple-users "--with-default-user=" "" "gnt-daemons" "") \
|
||||
$(usex multiple-users "--with-user-prefix=" "" "${USER_PREFIX}" "") \
|
||||
$(usex multiple-users "--with-default-group=" "" "gnt-daemons" "") \
|
||||
$(usex multiple-users "--with-group-prefix=" "" "${GROUP_PREFIX}" "") \
|
||||
$(use_enable syslog) \
|
||||
$(use_enable monitoring) \
|
||||
$(usex kvm '--with-kvm-path=' '' "/usr/bin/qemu-system-${kvm_arch}" '') \
|
||||
$(usex haskell-daemons "--enable-confd=haskell" '' '' '')
|
||||
}
|
||||
|
||||
src_install () {
|
||||
emake V=1 DESTDIR="${D}" install || die "emake install failed"
|
||||
|
||||
newinitd "${FILESDIR}"/ganeti.initd-r3 ${PN}
|
||||
newconfd "${FILESDIR}"/ganeti.confd-r2 ${PN}
|
||||
|
||||
if use kvm; then
|
||||
newinitd "${FILESDIR}"/ganeti-kvm-poweroff.initd ganeti-kvm-poweroff
|
||||
newconfd "${FILESDIR}"/ganeti-kvm-poweroff.confd ganeti-kvm-poweroff
|
||||
fi
|
||||
|
||||
# ganeti installs it's own docs in a generic location
|
||||
rm -rf "${D}"/{usr/share/doc/${PN},run}
|
||||
|
||||
sed -i "s:/usr/$(get_libdir)/${PN}/tools/burnin:burnin:" doc/examples/bash_completion
|
||||
newbashcomp doc/examples/bash_completion gnt-instance
|
||||
bashcomp_alias gnt-instance burnin ganeti-{cleaner,confd} \
|
||||
h{space,check,scan,info,ail,arep,roller,squeeze,bal} \
|
||||
gnt-{os,job,filter,debug,storage,group,node,network,backup,cluster}
|
||||
|
||||
dodoc INSTALL UPGRADE NEWS README doc/*.rst
|
||||
dohtml -r doc/html/* doc/css/*.css
|
||||
|
||||
docinto examples
|
||||
dodoc doc/examples/{ganeti.cron,gnt-config-backup} doc/examples/*.ocf
|
||||
|
||||
docinto examples/hooks
|
||||
dodoc doc/examples/hooks/{ipsec,ethers}
|
||||
|
||||
insinto /etc/cron.d
|
||||
newins doc/examples/ganeti.cron ${PN}
|
||||
|
||||
insinto /etc/logrotate.d
|
||||
newins doc/examples/ganeti.logrotate ${PN}
|
||||
|
||||
# need to dodir rather than keepdir here (bug #552482)
|
||||
dodir /var/lib/${PN}
|
||||
|
||||
keepdir /var/log/${PN}/
|
||||
keepdir /usr/share/${PN}/${SERIES}/os/
|
||||
keepdir /var/lib/ganeti-storage/{export,file,shared}/
|
||||
|
||||
dosym ${SERIES} "/usr/share/${PN}/default"
|
||||
dosym ${SERIES} "/usr/$(get_libdir)/${PN}/default"
|
||||
|
||||
python_fix_shebang "${ED}" "${D}"/usr/"$(get_libdir)"/${PN}/${SERIES}
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if use multiple-users; then
|
||||
elog "You have enable multiple user support, the users for this must"
|
||||
elog "be created. You can use the provided tool for this, which is"
|
||||
elog "located at:"
|
||||
elog " /usr/$(get_libdir)/${PN}/tools/users-setup"
|
||||
fi
|
||||
}
|
||||
|
||||
src_test () {
|
||||
PATH="${S}/scripts:${S}/src:${PATH}" \
|
||||
TMPDIR="/tmp" \
|
||||
GANETI_MASTER="$(hostname -f)" \
|
||||
emake check || die "emake check failed"
|
||||
}
|
@ -1,313 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
PYTHON_COMPAT=(python2_7)
|
||||
PYTHON_REQ_USE="ipv6(+)?"
|
||||
|
||||
inherit user autotools bash-completion-r1 python-single-r1 versionator
|
||||
|
||||
MY_PV="${PV/_rc/~rc}"
|
||||
MY_PV="${MY_PV/_beta/~beta}"
|
||||
MY_P="${PN}-${MY_PV}"
|
||||
SERIES="$(get_version_component_range 1-2)"
|
||||
|
||||
if [[ ${PV} =~ [9]{4,} ]] ; then
|
||||
EGIT_REPO_URI="git://git.ganeti.org/ganeti.git"
|
||||
inherit git-2
|
||||
KEYWORDS=""
|
||||
else
|
||||
SRC_URI="http://downloads.ganeti.org/releases/${SERIES}/${MY_P}.tar.gz"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
fi
|
||||
|
||||
DESCRIPTION="Ganeti is a virtual server management software tool"
|
||||
HOMEPAGE="http://www.ganeti.org/"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
IUSE="drbd haskell-daemons htools ipv6 kvm lxc monitoring multiple-users rbd syslog test xen"
|
||||
|
||||
REQUIRED_USE="|| ( kvm xen lxc )
|
||||
test? ( ipv6 )
|
||||
kvm? ( || ( amd64 x86 ) )
|
||||
${PYTHON_REQUIRED_USE}"
|
||||
|
||||
USER_PREFIX="${GANETI_USER_PREFIX:-"gnt-"}"
|
||||
GROUP_PREFIX="${GANETI_GROUP_PREFIX:-"${USER_PREFIX}"}"
|
||||
|
||||
DEPEND="
|
||||
dev-libs/openssl:0
|
||||
dev-python/paramiko[${PYTHON_USEDEP}]
|
||||
dev-python/pyopenssl[${PYTHON_USEDEP}]
|
||||
dev-python/simplejson[${PYTHON_USEDEP}]
|
||||
dev-python/pyparsing[${PYTHON_USEDEP}]
|
||||
dev-python/pyinotify[${PYTHON_USEDEP}]
|
||||
dev-python/pycurl[${PYTHON_USEDEP}]
|
||||
dev-python/ipaddr[${PYTHON_USEDEP}]
|
||||
dev-python/bitarray[${PYTHON_USEDEP}]
|
||||
dev-python/docutils[${PYTHON_USEDEP}]
|
||||
net-analyzer/arping
|
||||
net-analyzer/fping
|
||||
net-misc/bridge-utils
|
||||
net-misc/curl[ssl]
|
||||
net-misc/openssh
|
||||
net-misc/socat
|
||||
sys-apps/iproute2
|
||||
sys-fs/lvm2
|
||||
>=sys-apps/baselayout-2.0
|
||||
dev-lang/ghc:0=
|
||||
dev-haskell/cabal:0=
|
||||
dev-haskell/cabal-install:0=
|
||||
>=dev-haskell/mtl-2.1.1:0=
|
||||
>=dev-haskell/old-time-1.1.0.0:0=
|
||||
>=dev-haskell/random-1.0.1.1:0=
|
||||
haskell-daemons? ( >=dev-haskell/text-0.11.1.13:0= )
|
||||
>=dev-haskell/transformers-0.3.0.0:0=
|
||||
|
||||
>=dev-haskell/attoparsec-0.10.1.1:0=
|
||||
<dev-haskell/attoparsec-0.13:0
|
||||
>=dev-haskell/base64-bytestring-1.0.0.1:0=
|
||||
<dev-haskell/base64-bytestring-1.1:0=
|
||||
>=dev-haskell/crypto-4.2.4:0=
|
||||
<dev-haskell/crypto-4.3:0=
|
||||
>=dev-haskell/curl-1.3.7:0=
|
||||
<dev-haskell/curl-1.4:0=
|
||||
>=dev-haskell/hinotify-0.3.2:0=
|
||||
<dev-haskell/hinotify-0.4:0=
|
||||
>=dev-haskell/hslogger-1.1.4:0=
|
||||
<dev-haskell/hslogger-1.3:0=
|
||||
>=dev-haskell/json-0.5:0=
|
||||
<dev-haskell/json-0.9:0=
|
||||
>=dev-haskell/lens-3.10:0=
|
||||
<dev-haskell/lens-4.8:0=
|
||||
>=dev-haskell/lifted-base-0.2.0.3:0=
|
||||
<dev-haskell/lifted-base-0.3:0=
|
||||
>=dev-haskell/monad-control-0.3.1.3:0=
|
||||
<dev-haskell/monad-control-1.1:0=
|
||||
>=dev-haskell/network-2.3.0.13:0=
|
||||
<dev-haskell/network-2.7:0=
|
||||
>=dev-haskell/parallel-3.2.0.2:3=
|
||||
<dev-haskell/parallel-3.3:3=
|
||||
>=dev-haskell/temporary-1.1.2.3:0=
|
||||
<dev-haskell/temporary-1.3:0=
|
||||
>=dev-haskell/regex-pcre-0.94.2:0=
|
||||
<dev-haskell/regex-pcre-0.95:0=
|
||||
>=dev-haskell/transformers-base-0.4.1:0=
|
||||
<dev-haskell/transformers-base-0.5:0=
|
||||
>=dev-haskell/utf8-string-0.3.7:0=
|
||||
<dev-haskell/utf8-string-0.4:0=
|
||||
>=dev-haskell/zlib-0.5.3.3:0=
|
||||
<dev-haskell/zlib-0.6:0=
|
||||
|
||||
>=dev-haskell/psqueue-1.1:0=
|
||||
<dev-haskell/psqueue-1.2:0=
|
||||
>=dev-haskell/snap-core-0.8.1:0=
|
||||
<dev-haskell/snap-core-0.10:0=
|
||||
>=dev-haskell/snap-server-0.8.1:0=
|
||||
<dev-haskell/snap-server-0.10:0=
|
||||
>=dev-haskell/case-insensitive-0.4.0.1
|
||||
|
||||
dev-haskell/vector:0=
|
||||
<dev-haskell/semigroupoids-4.1:0=
|
||||
<dev-haskell/contravariant-0.6
|
||||
<dev-haskell/transformers-compat-0.4[three]
|
||||
xen? ( >=app-emulation/xen-3.0 )
|
||||
kvm? (
|
||||
dev-python/psutil
|
||||
app-emulation/qemu
|
||||
)
|
||||
lxc? ( app-emulation/lxc )
|
||||
drbd? (
|
||||
|| (
|
||||
<sys-cluster/drbd-8.5
|
||||
sys-cluster/drbd-utils
|
||||
)
|
||||
)
|
||||
rbd? ( sys-cluster/ceph )
|
||||
ipv6? ( net-misc/ndisc6 )
|
||||
${PYTHON_DEPS}"
|
||||
RDEPEND="${DEPEND}
|
||||
!app-emulation/ganeti-htools"
|
||||
DEPEND+="
|
||||
sys-devel/m4
|
||||
app-text/pandoc
|
||||
<dev-python/sphinx-1.3[${PYTHON_USEDEP}]
|
||||
media-fonts/urw-fonts
|
||||
media-gfx/graphviz
|
||||
>=dev-haskell/test-framework-0.6:0=
|
||||
<dev-haskell/test-framework-0.9:0=
|
||||
>=dev-haskell/test-framework-hunit-0.2.7:0=
|
||||
<dev-haskell/test-framework-hunit-0.4:0=
|
||||
>=dev-haskell/test-framework-quickcheck2-0.2.12.1:0=
|
||||
<dev-haskell/test-framework-quickcheck2-0.4:0=
|
||||
test? (
|
||||
dev-python/mock
|
||||
dev-python/pyyaml
|
||||
dev-haskell/haddock:0=
|
||||
>=dev-haskell/hunit-1.2.4.2:0=
|
||||
<dev-haskell/hunit-1.3:0=
|
||||
>=dev-haskell/quickcheck-2.4.2:2=
|
||||
<dev-haskell/quickcheck-2.8:2=
|
||||
sys-apps/fakeroot
|
||||
net-misc/socat
|
||||
dev-util/shelltestrunner
|
||||
)"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-2.12-start-stop-daemon-args.patch"
|
||||
"${FILESDIR}/${PN}-2.11-add-pgrep.patch"
|
||||
"${FILESDIR}/${PN}-2.15-daemon-util.patch"
|
||||
"${FILESDIR}/${PN}-2.9-disable-root-tests.patch"
|
||||
"${FILESDIR}/${PN}-2.9-skip-cli-test.patch"
|
||||
"${FILESDIR}/${PN}-2.10-rundir.patch"
|
||||
"${FILESDIR}/${PN}-2.12-qemu-enable-kvm.patch"
|
||||
"${FILESDIR}/${PN}-2.11-tests.patch"
|
||||
"${FILESDIR}/${PN}-lockdir.patch"
|
||||
"${FILESDIR}/${PN}-2.11-dont-nest-libdir.patch"
|
||||
"${FILESDIR}/${PN}-2.11-dont-print-man-help.patch"
|
||||
"${FILESDIR}/${PN}-2.11-daemon-util-tests.patch"
|
||||
"${FILESDIR}/${PN}-2.13-process_unittest.patch"
|
||||
"${FILESDIR}/${PN}-2.15-python-mock.patch"
|
||||
"${FILESDIR}/${PN}-2.15.2-remove-sandbox-failing-tests.patch"
|
||||
"${FILESDIR}/${PN}-2.15-noded-must-run-as-root.patch"
|
||||
"${FILESDIR}/${PN}-2.15-kvmd-run-as-daemon-user.patch"
|
||||
"${FILESDIR}/${PN}-2.15-dont-invert-return-values-for-man-warnings.patch"
|
||||
)
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
QA_WX_LOAD="
|
||||
usr/lib*/${PN}/${SERIES}/usr/sbin/ganeti-*d
|
||||
usr/lib*/${PN}/${SERIES}/usr/bin/htools
|
||||
"
|
||||
|
||||
pkg_setup () {
|
||||
local user
|
||||
python-single-r1_pkg_setup
|
||||
|
||||
if use multiple-users; then
|
||||
for user in gnt-{masterd,confd,luxid,rapi,daemons,admin}; do
|
||||
enewgroup ${user}
|
||||
enewuser ${user} -1 -1 -1 ${user}
|
||||
done
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
local testfile
|
||||
eapply "${PATCHES[@]}"
|
||||
|
||||
# not sure why these tests are failing
|
||||
# should remove this on next version bump if possible
|
||||
for testfile in test/py/import-export_unittest.bash; do
|
||||
printf '#!/bin/bash\ntrue\n' > "${testfile}"
|
||||
done
|
||||
|
||||
# take the sledgehammer approach to bug #526270
|
||||
grep -lr '/bin/sh' "${S}" | xargs -r -- sed -i 's:/bin/sh:/bin/bash:g'
|
||||
|
||||
eapply_user
|
||||
|
||||
[[ ${PV} =~ [9]{4,} ]] && ./autogen.sh
|
||||
rm autotools/missing
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure () {
|
||||
# this is kind of a hack to work around the removal of the qemu-kvm wrapper
|
||||
local kvm_arch
|
||||
|
||||
if use amd64; then
|
||||
kvm_arch=x86_64
|
||||
elif use x86; then
|
||||
kvm_arch=i386
|
||||
elif use kvm; then
|
||||
die "Could not determine qemu system to use for kvm"
|
||||
fi
|
||||
|
||||
econf --localstatedir=/var \
|
||||
--sharedstatedir=/var \
|
||||
--disable-symlinks \
|
||||
--with-ssh-initscript=/etc/init.d/sshd \
|
||||
--with-export-dir=/var/lib/ganeti-storage/export \
|
||||
--with-os-search-path=/usr/share/${PN}/os \
|
||||
$(use_enable test haskell-tests) \
|
||||
$(usex multiple-users "--with-default-user=" "" "gnt-daemons" "") \
|
||||
$(usex multiple-users "--with-user-prefix=" "" "${USER_PREFIX}" "") \
|
||||
$(usex multiple-users "--with-default-group=" "" "gnt-daemons" "") \
|
||||
$(usex multiple-users "--with-group-prefix=" "" "${GROUP_PREFIX}" "") \
|
||||
$(use_enable syslog) \
|
||||
$(use_enable monitoring) \
|
||||
$(usex kvm '--with-kvm-path=' '' "/usr/bin/qemu-system-${kvm_arch}" '') \
|
||||
$(usex haskell-daemons "--enable-confd=haskell" '' '' '')
|
||||
}
|
||||
|
||||
src_install () {
|
||||
emake V=1 DESTDIR="${D}" install
|
||||
|
||||
newinitd "${FILESDIR}"/ganeti.initd-r3 ${PN}
|
||||
newconfd "${FILESDIR}"/ganeti.confd-r2 ${PN}
|
||||
|
||||
if use kvm; then
|
||||
newinitd "${FILESDIR}"/ganeti-kvm-poweroff.initd ganeti-kvm-poweroff
|
||||
newconfd "${FILESDIR}"/ganeti-kvm-poweroff.confd ganeti-kvm-poweroff
|
||||
fi
|
||||
|
||||
# ganeti installs it's own docs in a generic location
|
||||
rm -rf "${D}"/{usr/share/doc/${PN},run}
|
||||
|
||||
sed -i "s:/usr/$(get_libdir)/${PN}/tools/burnin:burnin:" doc/examples/bash_completion
|
||||
newbashcomp doc/examples/bash_completion gnt-instance
|
||||
bashcomp_alias gnt-instance burnin ganeti-{cleaner,confd} \
|
||||
h{space,check,scan,info,ail,arep,roller,squeeze,bal} \
|
||||
gnt-{os,job,filter,debug,storage,group,node,network,backup,cluster}
|
||||
|
||||
use monitoring && bashcomp_alias gnt-instance mon-collector
|
||||
|
||||
dodoc INSTALL UPGRADE NEWS README doc/*.rst
|
||||
|
||||
docinto html
|
||||
dodoc -r doc/html/* doc/css/*.css
|
||||
|
||||
docinto examples
|
||||
dodoc doc/examples/{ganeti.cron,gnt-config-backup} doc/examples/*.ocf
|
||||
|
||||
docinto examples/hooks
|
||||
dodoc doc/examples/hooks/{ipsec,ethers}
|
||||
|
||||
insinto /etc/cron.d
|
||||
newins doc/examples/ganeti.cron ${PN}
|
||||
|
||||
insinto /etc/logrotate.d
|
||||
newins doc/examples/ganeti.logrotate ${PN}
|
||||
|
||||
# need to dodir rather than keepdir here (bug #552482)
|
||||
dodir /var/lib/${PN}
|
||||
|
||||
keepdir /var/log/${PN}/
|
||||
keepdir /usr/share/${PN}/${SERIES}/os/
|
||||
keepdir /var/lib/ganeti-storage/{export,file,shared}/
|
||||
|
||||
dosym ${SERIES} "/usr/share/${PN}/default"
|
||||
dosym ${SERIES} "/usr/$(get_libdir)/${PN}/default"
|
||||
|
||||
python_fix_shebang "${ED}" "${D}"/usr/"$(get_libdir)"/${PN}/${SERIES}
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if use multiple-users; then
|
||||
elog "You have enable multiple user support, the users for this must"
|
||||
elog "be created. You can use the provided tool for this, which is"
|
||||
elog "located at:"
|
||||
elog " /usr/$(get_libdir)/${PN}/tools/users-setup"
|
||||
fi
|
||||
}
|
||||
|
||||
src_test () {
|
||||
PATH="${S}/scripts:${S}/src:${PATH}" \
|
||||
TMPDIR="/tmp" \
|
||||
GANETI_MASTER="$(hostname -f)" \
|
||||
emake check || die "emake check failed"
|
||||
}
|
@ -1,2 +1,3 @@
|
||||
DIST virt-viewer-3.1.tar.gz 835147 SHA256 be4e49470b650fc22513c2c01f2e13e30ee2d494d0d7b319b6f414ca781078c7 SHA512 72deb289c32a315fc4e1d73148d0b0a366cf929ff9fb389b62d750d317d02a43e2bf3bc170f43d9f37a184d8c7754b3e282de404fbcfa59ff278a87e4aa0acaf WHIRLPOOL 90f47dfc79f1529272fae8fbaf7553c369a9c2161b63071037fcb5279050a5ff9391800922e2a43f5c37e133b13f6736b59f3574531e22ce7dd27d2de9c714cf
|
||||
DIST virt-viewer-4.0.tar.gz 897593 SHA256 1c427b0ea104539342519334735e6f667d5784c42a5aafc253b580875d88fa1f SHA512 7d1e470a159c8784dff6c4fb1f9228689f76ddbdae314bd57f86c6dc975d1d50590732640768b7e08d6a3bbc02eefbde090cd8f05c97151cd8abdc7ae97e66ea WHIRLPOOL e07b472e8a562c608d69cc211c34c6558ba08694f92ea6250f23c719a3a32f82d3f8b20d4fa5fd992497a8402bc40b6abdde80345ca1ec4e539826807cdd81ec
|
||||
DIST virt-viewer-5.0.tar.gz 908726 SHA256 0b2ded8b927a782a20fcf93b5377051285eec5677501b593d650213e79b88b2e SHA512 924fa88fd0ca7cc5b3d0a348c0d1104337fe0a06328e32110b4417c64f5d9efaf6df534adbc1eaa69157d229763b773307fa834a66f16156e3703731525eb690 WHIRLPOOL 43ac427fd1318f7579db35141e15edacdd55b0b979a726f0b4f801954376754e33b93e042c8fc8799b5fa7ef08fa3cf18eb35c607cde60a28b7719e7fd731df5
|
||||
|
@ -0,0 +1,37 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
inherit gnome2
|
||||
|
||||
DESCRIPTION="Graphical console client for connecting to virtual machines"
|
||||
HOMEPAGE="http://virt-manager.org/"
|
||||
SRC_URI="http://virt-manager.org/download/sources/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="sasl +spice +vnc"
|
||||
|
||||
RDEPEND=">=app-emulation/libvirt-0.10.0[sasl?]
|
||||
app-emulation/libvirt-glib
|
||||
>=dev-libs/libxml2-2.6
|
||||
x11-libs/gtk+:3
|
||||
spice? ( >=net-misc/spice-gtk-0.31[sasl?,gtk3] )
|
||||
vnc? ( >=net-libs/gtk-vnc-0.5.0[sasl?,gtk3] )"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-lang/perl
|
||||
>=dev-util/intltool-0.35.0
|
||||
virtual/pkgconfig
|
||||
spice? ( >=app-emulation/spice-protocol-0.12.10 )"
|
||||
|
||||
REQUIRED_USE="|| ( spice vnc )"
|
||||
|
||||
src_configure() {
|
||||
gnome2_src_configure \
|
||||
--disable-update-mimedb \
|
||||
--without-ovirt \
|
||||
$(use_with vnc gtk-vnc) \
|
||||
$(use_with spice spice-gtk)
|
||||
}
|
@ -1,3 +1,4 @@
|
||||
DIST highlight-3.17.tar.bz2 617834 SHA256 87ca5907943da25c756407d35ea0df8eb7762f3e32544201da27555c8eadb301 SHA512 27d5391339e80b616146489e97f63bca336f18b26c2ff5b94ae5bf183d3d1cdbfba202ab36d8eac86dee98ff49c6cc6c41dcf31860f0277f0327688e622d954e WHIRLPOOL 53ee5a4c58021f2a395d1d2e29090a43b06f3ad4ccad4461843f5a1eedebabe5ff33d2ac0c97c9d1ea496023c3acfe9eb30ff4d9d119a0eae4173ea1f9352cc3
|
||||
DIST highlight-3.31.tar.bz2 628481 SHA256 c78cdce3c8133736c3bc2f931d34cb69c09e043c9ce681251e26a9f9b19c4c6d SHA512 dc42e03779300abfb0f69f9d47bc9afa08f20a80bf9b5e88e1de464f35ff774ae7f341c2ddb23e487971f06e256119131827ccf038b976e1af1d239d04a445a5 WHIRLPOOL d1edc9ccf93b8ba85bab4aeef20dbe6bb693b8f3e64011d0b21346ecdcd196d246841a36512447e3be21099640e6b9ae7f09c203233d790515c61cd71491df7b
|
||||
DIST highlight-3.32.tar.bz2 622414 SHA256 c54e495319b5b0781a672615763978d5300b3065fa4e02ec9c69b0cafe930c9d SHA512 0a9270371df31c0bca6e3c012fe5ef638e38ae696efe2dfc0ae58a64fe0de42e6c88ddd7455f699417a604f497906c84c741217e46872cb7deebc75b7b47c6e3 WHIRLPOOL 5114545c5c0e43620e67fefc5b5d2f592ea244dea4c11b4a449c406a0d91b629628f1504a46c707278c2ba4c706a6349b6bc7a2e0e10145ee3824e7d7dfc1c7f
|
||||
DIST highlight-3.33.tar.bz2 620644 SHA256 64b530354feccabc3e8eeec02a0341be0625509db1fa5dd201c4d07e4d845c3c SHA512 12dc233e91380d762cafdc8a685fe6063e2b115d4df5e7ed83c4e880076a8b4fd3d41bf3631a9840600ae3012a87c64c31667b0f81655dd2ad10f26c563cce83 WHIRLPOOL 350b94f608e28d17b746630658cd3a4eea03465a30e73b7c44b1b03fc852818506c0bedbe148376c4466e7dc99a19c1ff0e21b17a16bb8f32ef533fa1edf521a
|
||||
|
@ -0,0 +1,66 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit toolchain-funcs qt4-r2 flag-o-matic
|
||||
|
||||
DESCRIPTION="converts source code to formatted text ((X)HTML, RTF, (La)TeX, XSL-FO, XML) with syntax highlight"
|
||||
HOMEPAGE="http://www.andre-simon.de/"
|
||||
SRC_URI="http://www.andre-simon.de/zip/${P}.tar.bz2"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos"
|
||||
IUSE="examples qt4"
|
||||
|
||||
RDEPEND="dev-lang/lua:0=
|
||||
qt4? (
|
||||
dev-qt/qtgui:4
|
||||
dev-qt/qtcore:4
|
||||
)"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-libs/boost
|
||||
virtual/pkgconfig"
|
||||
|
||||
src_prepare() {
|
||||
sed -i "/LSB_DOC_DIR/s:doc/${PN}:doc/${PF}:" \
|
||||
src/core/datadir.cpp || die
|
||||
|
||||
if has_version '<dev-lang/lua-5.2' ; then
|
||||
sed -i 's/-DUSE_LUA52//' src/makefile || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
myhlopts=(
|
||||
"CXX=$(tc-getCXX)"
|
||||
"AR=$(tc-getAR)"
|
||||
"LDFLAGS=${LDFLAGS}"
|
||||
"CFLAGS=${CXXFLAGS} -DNDEBUG -std=c++11"
|
||||
"DESTDIR=${D}"
|
||||
"PREFIX=${EPREFIX}/usr"
|
||||
"HL_CONFIG_DIR=${EPREFIX}/etc/highlight/"
|
||||
"HL_DATA_DIR=${EPREFIX}/usr/share/highlight/"
|
||||
"doc_dir=${EPREFIX}/usr/share/doc/${PF}/"
|
||||
"conf_dir=${EPREFIX}/etc/highlight/"
|
||||
)
|
||||
emake -f makefile "${myhlopts[@]}"
|
||||
if use qt4 ; then
|
||||
cd src/gui-qt
|
||||
eqmake4 'DEFINES+=DATA_DIR=\\\"'"${EPREFIX}"'/usr/share/${PN}/\\\" CONFIG_DIR=\\\"'"${EPREFIX}"'/etc/${PN}/\\\" DOC_DIR=\\\"'"${EPREFIX}"'/usr/share/doc/${PF}/\\\"'
|
||||
emake
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake -f makefile "${myhlopts[@]}" install
|
||||
use qt4 && emake -f makefile "${myhlopts[@]}" install-gui
|
||||
|
||||
if use examples ; then
|
||||
docompress -x /usr/share/doc/${PF}/examples
|
||||
else
|
||||
rm -rf "${ED}"/usr/share/doc/${PF}/examples
|
||||
fi
|
||||
}
|
@ -0,0 +1,261 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI="6"
|
||||
|
||||
inherit autotools eutils flag-o-matic multilib multilib-minimal toolchain-funcs versionator
|
||||
|
||||
SRC_PV="$(printf "%u%02u%02u%02u" $(get_version_components))"
|
||||
DOC_PV="${SRC_PV}"
|
||||
# DOC_PV="$(printf "%u%02u%02u00" $(get_version_components $(get_version_component_range 1-3)))"
|
||||
|
||||
DESCRIPTION="A SQL Database Engine in a C Library"
|
||||
HOMEPAGE="https://sqlite.org/"
|
||||
SRC_URI="doc? ( https://sqlite.org/2016/${PN}-doc-${DOC_PV}.zip )
|
||||
tcl? ( https://sqlite.org/2016/${PN}-src-${SRC_PV}.zip )
|
||||
test? ( https://sqlite.org/2016/${PN}-src-${SRC_PV}.zip )
|
||||
tools? ( https://sqlite.org/2016/${PN}-src-${SRC_PV}.zip )
|
||||
!tcl? ( !test? ( !tools? ( https://sqlite.org/2016/${PN}-autoconf-${SRC_PV}.tar.gz ) ) )"
|
||||
|
||||
LICENSE="public-domain"
|
||||
SLOT="3"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE="debug doc icu +readline secure-delete static-libs tcl test tools"
|
||||
|
||||
RDEPEND="icu? ( dev-libs/icu:0=[${MULTILIB_USEDEP}] )
|
||||
readline? ( sys-libs/readline:0=[${MULTILIB_USEDEP}] )
|
||||
tcl? ( dev-lang/tcl:0=[${MULTILIB_USEDEP}] )
|
||||
tools? ( dev-lang/tcl:0=[${MULTILIB_USEDEP}] )"
|
||||
DEPEND="${RDEPEND}
|
||||
doc? ( app-arch/unzip )
|
||||
tcl? ( app-arch/unzip )
|
||||
test? (
|
||||
app-arch/unzip
|
||||
dev-lang/tcl:0[${MULTILIB_USEDEP}]
|
||||
)
|
||||
tools? ( app-arch/unzip )"
|
||||
|
||||
full_tarball() {
|
||||
use tcl || use test || use tools
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
if full_tarball; then
|
||||
S="${WORKDIR}/${PN}-src-${SRC_PV}"
|
||||
else
|
||||
S="${WORKDIR}/${PN}-autoconf-${SRC_PV}"
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
if full_tarball; then
|
||||
epatch "${FILESDIR}/${PN}-3.14.0-full_tarball-build.patch"
|
||||
|
||||
eapply_user
|
||||
|
||||
# Fix AC_CHECK_FUNCS.
|
||||
# https://mailinglists.sqlite.org/cgi-bin/mailman/private/sqlite-dev/2016-March/002762.html
|
||||
sed -e "s/AC_CHECK_FUNCS(.*)/AC_CHECK_FUNCS([fdatasync fullfsync gmtime_r isnan localtime_r localtime_s malloc_usable_size posix_fallocate pread pread64 pwrite pwrite64 strchrnul usleep utime])/" -i configure.ac || die "sed failed"
|
||||
else
|
||||
epatch "${FILESDIR}/${PN}-3.12.0-nonfull_tarball-build.patch"
|
||||
|
||||
eapply_user
|
||||
|
||||
# Fix AC_CHECK_FUNCS.
|
||||
# https://mailinglists.sqlite.org/cgi-bin/mailman/private/sqlite-dev/2016-March/002762.html
|
||||
sed \
|
||||
-e "s/AC_CHECK_FUNCS(\[fdatasync.*/AC_CHECK_FUNCS([fdatasync fullfsync gmtime_r isnan localtime_r localtime_s malloc_usable_size posix_fallocate pread pread64 pwrite pwrite64 strchrnul usleep utime])/" \
|
||||
-e "/AC_CHECK_FUNCS(posix_fallocate)/d" \
|
||||
-i configure.ac || die "sed failed"
|
||||
fi
|
||||
|
||||
eautoreconf
|
||||
|
||||
multilib_copy_sources
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
local CPPFLAGS="${CPPFLAGS}" options=()
|
||||
|
||||
options+=(
|
||||
--enable-$(full_tarball && echo load-extension || echo dynamic-extensions)
|
||||
--enable-threadsafe
|
||||
)
|
||||
if ! full_tarball; then
|
||||
options+=(--disable-static-shell)
|
||||
fi
|
||||
|
||||
# Support detection of misuse of SQLite API.
|
||||
# https://sqlite.org/compile.html#enable_api_armor
|
||||
append-cppflags -DSQLITE_ENABLE_API_ARMOR
|
||||
|
||||
# Support column metadata functions.
|
||||
# https://sqlite.org/c3ref/column_database_name.html
|
||||
append-cppflags -DSQLITE_ENABLE_COLUMN_METADATA
|
||||
|
||||
# Support dbstat virtual table.
|
||||
# https://sqlite.org/dbstat.html
|
||||
append-cppflags -DSQLITE_ENABLE_DBSTAT_VTAB
|
||||
|
||||
# Support comments in output of EXPLAIN.
|
||||
# https://sqlite.org/compile.html#enable_explain_comments
|
||||
append-cppflags -DSQLITE_ENABLE_EXPLAIN_COMMENTS
|
||||
|
||||
# Support Full-Text Search versions 3, 4 and 5.
|
||||
# https://sqlite.org/fts3.html
|
||||
# https://sqlite.org/fts5.html
|
||||
append-cppflags -DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_FTS3_PARENTHESIS -DSQLITE_ENABLE_FTS4
|
||||
options+=(--enable-fts5)
|
||||
|
||||
# Support hidden columns.
|
||||
append-cppflags -DSQLITE_ENABLE_HIDDEN_COLUMNS
|
||||
|
||||
# Support JSON1 extension.
|
||||
# https://sqlite.org/json1.html
|
||||
append-cppflags -DSQLITE_ENABLE_JSON1
|
||||
|
||||
# Support memsys5 memory allocator.
|
||||
# https://sqlite.org/malloc.html#memsys5
|
||||
append-cppflags -DSQLITE_ENABLE_MEMSYS5
|
||||
|
||||
# Support Resumable Bulk Update extension.
|
||||
# https://sqlite.org/rbu.html
|
||||
append-cppflags -DSQLITE_ENABLE_RBU
|
||||
|
||||
# Support R*Trees.
|
||||
# https://sqlite.org/rtree.html
|
||||
append-cppflags -DSQLITE_ENABLE_RTREE
|
||||
|
||||
# Support scan status functions.
|
||||
# https://sqlite.org/c3ref/stmt_scanstatus.html
|
||||
# https://sqlite.org/c3ref/stmt_scanstatus_reset.html
|
||||
append-cppflags -DSQLITE_ENABLE_STMT_SCANSTATUS
|
||||
|
||||
# Support Session extension.
|
||||
# https://sqlite.org/sessionintro.html
|
||||
options+=(--enable-session)
|
||||
|
||||
# Support unknown() function.
|
||||
# https://sqlite.org/compile.html#enable_unknown_sql_function
|
||||
append-cppflags -DSQLITE_ENABLE_UNKNOWN_SQL_FUNCTION
|
||||
|
||||
# Support unlock notification.
|
||||
# https://sqlite.org/unlock_notify.html
|
||||
append-cppflags -DSQLITE_ENABLE_UNLOCK_NOTIFY
|
||||
|
||||
# Support soundex() function.
|
||||
# https://sqlite.org/lang_corefunc.html#soundex
|
||||
append-cppflags -DSQLITE_SOUNDEX
|
||||
|
||||
# debug USE flag.
|
||||
if full_tarball; then
|
||||
options+=($(use_enable debug))
|
||||
else
|
||||
if use debug; then
|
||||
append-cppflags -DSQLITE_DEBUG
|
||||
else
|
||||
append-cppflags -DNDEBUG
|
||||
fi
|
||||
fi
|
||||
|
||||
# icu USE flag.
|
||||
if use icu; then
|
||||
# Support ICU extension.
|
||||
# https://sqlite.org/compile.html#enable_icu
|
||||
append-cppflags -DSQLITE_ENABLE_ICU
|
||||
if full_tarball; then
|
||||
sed -e "s/^TLIBS = @LIBS@/& -licui18n -licuuc/" -i Makefile.in || die "sed failed"
|
||||
else
|
||||
sed -e "s/^LIBS = @LIBS@/& -licui18n -licuuc/" -i Makefile.in || die "sed failed"
|
||||
fi
|
||||
fi
|
||||
|
||||
# readline USE flag.
|
||||
options+=(
|
||||
--disable-editline
|
||||
$(use_enable readline)
|
||||
)
|
||||
if full_tarball && use readline; then
|
||||
options+=(--with-readline-inc="-I${EPREFIX}/usr/include/readline")
|
||||
fi
|
||||
|
||||
# secure-delete USE flag.
|
||||
if use secure-delete; then
|
||||
# Enable secure_delete pragma by default.
|
||||
# https://sqlite.org/pragma.html#pragma_secure_delete
|
||||
append-cppflags -DSQLITE_SECURE_DELETE
|
||||
fi
|
||||
|
||||
# static-libs USE flag.
|
||||
options+=($(use_enable static-libs static))
|
||||
|
||||
# tcl, test, tools USE flags.
|
||||
if full_tarball; then
|
||||
options+=(--enable-tcl)
|
||||
fi
|
||||
|
||||
if [[ "${CHOST}" == *-mint* ]]; then
|
||||
append-cppflags -DSQLITE_OMIT_WAL
|
||||
fi
|
||||
|
||||
econf "${options[@]}"
|
||||
}
|
||||
|
||||
multilib_src_compile() {
|
||||
emake HAVE_TCL="$(usex tcl 1 "")" TCLLIBDIR="${EPREFIX}/usr/$(get_libdir)/${P}"
|
||||
|
||||
if use tools && multilib_is_native_abi; then
|
||||
emake changeset dbhash rbu scrub showdb showjournal showstat4 showwal sqldiff sqlite3_analyzer
|
||||
fi
|
||||
}
|
||||
|
||||
multilib_src_test() {
|
||||
if [[ "${EUID}" -eq 0 ]]; then
|
||||
ewarn "Skipping tests due to root permissions"
|
||||
return
|
||||
fi
|
||||
|
||||
emake HAVE_TCL="$(usex tcl 1 "")" $(use debug && echo fulltest || echo test)
|
||||
}
|
||||
|
||||
multilib_src_install() {
|
||||
emake DESTDIR="${D}" HAVE_TCL="$(usex tcl 1 "")" TCLLIBDIR="${EPREFIX}/usr/$(get_libdir)/${P}" install
|
||||
|
||||
if use tools && multilib_is_native_abi; then
|
||||
install_tool() {
|
||||
if [[ -f ".libs/${1}" ]]; then
|
||||
newbin ".libs/${1}" "${2}"
|
||||
else
|
||||
newbin "${1}" "${2}"
|
||||
fi
|
||||
}
|
||||
|
||||
install_tool changeset sqlite3-changeset
|
||||
install_tool dbhash sqlite3-db-hash
|
||||
install_tool rbu sqlite3-rbu
|
||||
install_tool scrub sqlite3-scrub
|
||||
install_tool showdb sqlite3-show-db
|
||||
install_tool showjournal sqlite3-show-journal
|
||||
install_tool showstat4 sqlite3-show-stat4
|
||||
install_tool showwal sqlite3-show-wal
|
||||
install_tool sqldiff sqlite3-diff
|
||||
install_tool sqlite3_analyzer sqlite3-analyzer
|
||||
|
||||
unset -f install_tool
|
||||
fi
|
||||
}
|
||||
|
||||
multilib_src_install_all() {
|
||||
prune_libtool_files
|
||||
|
||||
doman sqlite3.1
|
||||
|
||||
if use doc; then
|
||||
rm "${WORKDIR}/${PN}-doc-${DOC_PV}/"*.{db,txt}
|
||||
(
|
||||
docinto html
|
||||
dodoc -r "${WORKDIR}/${PN}-doc-${DOC_PV}/"*
|
||||
)
|
||||
fi
|
||||
}
|
@ -1,2 +1,3 @@
|
||||
DIST tiled-0.17.0.tar.gz 4852620 SHA256 f7fce2006a04c9e6e5d45a15fb31d342a4a66f7a01e1e6bc0753035cfbf42f31 SHA512 bf9b0cdd08c9091238a5e37f0670f2f3c389a46892c682a81f817e5daae0e6e3b13edf5d61a4105d9064e44585a4d6c7f7956b4c69b14488ee04af1834bf066c WHIRLPOOL 9e8b21098016cb20be66071e115f678bd10531a63b99c949e8a0e04ba6302834c414cc1ddf294f36b13bf1e43c22b9403a2aa13dc52ddbe84c24eb95d9b88ddb
|
||||
DIST tiled-0.17.1.tar.gz 4854247 SHA256 11297f97370df10dd32b24a0c5ce9988b3c1903a13f2be0ebb3c20f49c5e0fb4 SHA512 97f025d4d8a2018781a0cb3c318e85f56e4b71f3c3ee6950ac2a99dfac87303690ffb72c31d2a90a5b7f9ff0ac3909a112ea0e7858a915615829a301f65acd58 WHIRLPOOL f34ad8b8d622981c833fac5a88bee762eb7a94dfc4dec8f1884c9ee980b33b6969241cf585b1963a804a62002b8a1f60d88b8139297618755a0f0ee56365bc58
|
||||
DIST tiled-0.17.2.tar.gz 4854767 SHA256 a9c5d68ccc00d89df8611df6c1c37aa8796fffcff968f3993f6d78686678c4b9 SHA512 c5c9cfe50f32adf4c146e8d9a08393b173d59aafee3df747bfb7a0137fe9580dcbf07518d6972491393f9f24289d628c4352a7359acbd06d500cd3ad0200fa42 WHIRLPOOL db45e8b2f5f743126db19d546ad9a8c0bca7e71ec9e2f54f447fcb228ab13cfb3e6d0d2f52482650b29608c31f774669427e1c6b6e3656fee529825ab0c1d533
|
||||
|
@ -0,0 +1,69 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
inherit fdo-mime gnome2-utils multilib python-single-r1 qmake-utils
|
||||
|
||||
DESCRIPTION="A general purpose tile map editor"
|
||||
HOMEPAGE="http://www.mapeditor.org/"
|
||||
SRC_URI="https://github.com/bjorn/tiled/archive/v${PV}/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD BSD-2 GPL-2+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="examples python"
|
||||
|
||||
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-qt/qtcore-5.6:5
|
||||
>=dev-qt/qtgui-5.6:5
|
||||
>=dev-qt/qtnetwork-5.6:5
|
||||
>=dev-qt/qtopengl-5.6:5
|
||||
>=dev-qt/qtwidgets-5.6:5
|
||||
sys-libs/zlib
|
||||
python? ( ${PYTHON_DEPS} )
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-qt/linguist-tools:5
|
||||
"
|
||||
|
||||
DOCS=( AUTHORS COPYING NEWS.md README.md )
|
||||
|
||||
pkg_setup() {
|
||||
use python && python-single-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
eqmake5 LIBDIR="/usr/$(get_libdir)" PREFIX="/usr" DISABLE_PYTHON_PLUGIN="$(usex !python)"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake INSTALL_ROOT="${D}" install
|
||||
|
||||
einstalldocs
|
||||
|
||||
if use examples ; then
|
||||
docompress -x /usr/share/doc/${PF}/examples
|
||||
dodoc -r examples
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
gnome2_icon_savelist
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
gnome2_icon_cache_update
|
||||
fdo-mime_desktop_database_update
|
||||
fdo-mime_mime_database_update
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
gnome2_icon_cache_update
|
||||
fdo-mime_desktop_database_update
|
||||
fdo-mime_mime_database_update
|
||||
}
|
@ -0,0 +1,27 @@
|
||||
Native toolchain can default to different ABI (amd64 in bug case).
|
||||
Set target to i386.
|
||||
https://bugs.gentoo.org/600664
|
||||
diff --git a/mono/mini/aot-compiler.c b/mono/mini/aot-compiler.c
|
||||
index a1c359f..beaaf76 100644
|
||||
--- a/mono/mini/aot-compiler.c
|
||||
+++ b/mono/mini/aot-compiler.c
|
||||
@@ -9842,7 +9842,9 @@ compile_asm (MonoAotCompile *acfg)
|
||||
const char *tool_prefix = acfg->aot_opts.tool_prefix ? acfg->aot_opts.tool_prefix : "";
|
||||
char *ld_flags = acfg->aot_opts.ld_flags ? acfg->aot_opts.ld_flags : g_strdup("");
|
||||
|
||||
-#if defined(TARGET_AMD64) && !defined(TARGET_MACH)
|
||||
+#if defined(TARGET_X86) && !defined(TARGET_MACH)
|
||||
+#define AS_OPTIONS "--32"
|
||||
+#elif defined(TARGET_AMD64) && !defined(TARGET_MACH)
|
||||
#define AS_OPTIONS "--64"
|
||||
#elif defined(TARGET_POWERPC64)
|
||||
#define AS_OPTIONS "-a64 -mppc64"
|
||||
@@ -9886,6 +9888,8 @@ compile_asm (MonoAotCompile *acfg)
|
||||
#define LD_OPTIONS "--shared"
|
||||
#elif defined(TARGET_POWERPC64)
|
||||
#define LD_OPTIONS "-m elf64ppc"
|
||||
+#elif defined(TARGET_X86)
|
||||
+#define LD_OPTIONS "-m elf_i386"
|
||||
#endif
|
||||
|
||||
#ifndef LD_OPTIONS
|
@ -1,3 +1,5 @@
|
||||
DIST Botan-1.10.12.tgz 2707397 SHA256 affc3a79919577943f896e64d3e4a4dcc4970c5bf80cc98c7f3a3144745eac27 SHA512 074ed9c89d715ada53a3366139da3f0f2fd7ee01941d301b0a9c1a897927ed88c0ade32f66768091664e6b652b7921b3b4c513106ee6ce1942dece3a25216bf5 WHIRLPOOL bfe7029e5ebf660434b14cd49e0c9f4612e9ee88ad50803edfa589754bede01dc39d71542b62eaaa0f7e85dbf623b4b11a90528bcb903c2333103685ce91401f
|
||||
DIST Botan-1.10.13.tgz 2710181 SHA256 23ec973d4b4a4fe04f490d409e08ac5638afe3aa09acd7f520daaff38ba19b90 SHA512 a09d2cb5dda21bf384b81675025f249abdfe232c95dc3383f0baebc2bf1603b2ed1e2aec9a81aae95df592ec2eeae8906c63474a6da42ad3701669a5d8f14656 WHIRLPOOL 4161d689205f02ed8b97bb371be47829d11dee744a024e24bb834264cfa6143c8a9fb7df969410975e4bf2b708063e3c05b6106c4dbe7f5566e3331ee5e901a9
|
||||
DIST Botan-1.10.14.tgz 2710757 SHA256 10ed0b394db165733ac9557d8656356b7e9744d38c61c2b9c44cba6d84ff4c1c SHA512 ae524653a99b02d6d8d7bb2b88a446c066fe1044d8fd2708ea2a4cd5aafbe2b0d165d2ce1730669a4df18013cf5b6540bb5944bafea512b4957e3417de512e95 WHIRLPOOL 51aa1d68757ad515f65c255c585be8050efed085800340d43fa068b48647ef8c50fc9e284ac16d0cef3d874f5fa44f143210dcc004561807e1d1b307d89cff9d
|
||||
DIST Botan-1.11.33.tgz 4329671 SHA256 d65f95399dc5710aea90d682d65e554fed4571115f1382416e9142370a47e949 SHA512 49bb4485663897dd07bb7982771befacc50bfabef5806dc802cbd4d39f5d641b08a264824b5b1b96421e810811353deea15e728c5d08ce2932cf0e4602ae099d WHIRLPOOL 86154158915e29eef7753797df037d560078bda4ecfaafffba1064a238618b1ec10e0712b85cd64537ca3dfbac5ce38bf1323456d30b2bd5a51c0dae7f81d339
|
||||
DIST Botan-1.11.34.tgz 4908624 SHA256 59ad548f8ddb967737f102b252bab30ca0b49f039f204502394cf506ae731f16 SHA512 c3dad24872f726c62fd302cf05e4a67985e8d6e00b6bdfc9852abe2204329f794b656e9ee89470b76ea16426371ef5b1729626c36d9a2b89e1939172382f192c WHIRLPOOL ba1db76068ae8e55169cba19597be159de1999555ff64ba95a7b80a38ed25d6170be9c2586ca680323340774784fad96b9ca83ff0b17a5b162ba11014e2641a4
|
||||
|
@ -0,0 +1,154 @@
|
||||
# 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 eutils multilib python-r1 toolchain-funcs
|
||||
|
||||
MY_PN="Botan"
|
||||
MY_P="${MY_PN}-${PV}"
|
||||
DESCRIPTION="A C++ crypto library"
|
||||
HOMEPAGE="http://botan.randombit.net/"
|
||||
SRC_URI="http://botan.randombit.net/releases/${MY_P}.tgz"
|
||||
|
||||
KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~ppc-macos"
|
||||
SLOT="0"
|
||||
LICENSE="BSD"
|
||||
IUSE="bindist doc python bzip2 gmp ssl static-libs threads zlib"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
RDEPEND="bzip2? ( >=app-arch/bzip2-1.0.5 )
|
||||
zlib? ( >=sys-libs/zlib-1.2.3 )
|
||||
python? ( ${PYTHON_DEPS} >=dev-libs/boost-1.48[python,${PYTHON_USEDEP}] )
|
||||
gmp? ( >=dev-libs/gmp-4.2.2:* )
|
||||
ssl? ( >=dev-libs/openssl-0.9.8g:*[bindist=] )"
|
||||
DEPEND="${RDEPEND}
|
||||
doc? ( dev-python/sphinx )"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${P}-build.patch"
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
sed -e "s/-Wl,-soname,\$@ //" -i src/build-data/makefile/python.in || die "sed failed"
|
||||
sed \
|
||||
-e "/DOCDIR/d" \
|
||||
-e "/^install:/s/ docs//" \
|
||||
-i src/build-data/makefile/unix_shr.in || die "sed failed"
|
||||
|
||||
# Fix ImportError with Python 3.
|
||||
sed -e "s/_botan/.&/" -i src/wrap/python/__init__.py || die "sed failed"
|
||||
|
||||
use python && python_copy_sources
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local disable_modules="proc_walk,unix_procs"
|
||||
use threads || disable_modules+=",pthreads"
|
||||
use bindist && disable_modules+=",ecdsa"
|
||||
elog "Disabling modules: ${disable_modules}"
|
||||
|
||||
# Enable v9 instructions for sparc64
|
||||
if [[ "${PROFILE_ARCH}" = "sparc64" ]]; then
|
||||
CHOSTARCH="sparc32-v9"
|
||||
else
|
||||
CHOSTARCH="${CHOST%%-*}"
|
||||
fi
|
||||
|
||||
local myos=
|
||||
case ${CHOST} in
|
||||
*-darwin*) myos=darwin ;;
|
||||
*) myos=linux ;;
|
||||
esac
|
||||
|
||||
# foobared buildsystem, --prefix translates into DESTDIR, see also make
|
||||
# install in src_install, we need the correct live-system prefix here on
|
||||
# Darwin for a shared lib with correct install_name
|
||||
./configure.py \
|
||||
--prefix="${EPREFIX}/usr" \
|
||||
--libdir=$(get_libdir) \
|
||||
--docdir=share/doc \
|
||||
--cc=gcc \
|
||||
--os=${myos} \
|
||||
--cpu=${CHOSTARCH} \
|
||||
--with-endian="$(tc-endian)" \
|
||||
--without-sphinx \
|
||||
--with-tr1=system \
|
||||
$(use_with bzip2) \
|
||||
$(use_with gmp gnump) \
|
||||
$(use_with python boost-python) \
|
||||
$(use_with ssl openssl) \
|
||||
$(use_with zlib) \
|
||||
--disable-modules=${disable_modules} \
|
||||
|| die "configure.py failed"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake CXX="$(tc-getCXX)" AR="$(tc-getAR) crs" LIB_OPT="${CXXFLAGS}" MACH_OPT=""
|
||||
|
||||
if use python; then
|
||||
building() {
|
||||
rm -fr build/python
|
||||
ln -s "${BUILD_DIR}" build/python
|
||||
cp Makefile.python build/python
|
||||
sed -i \
|
||||
-e "s/-lboost_python/-lboost_python-$(echo ${EPYTHON} | sed 's/python//')/" \
|
||||
build/python/Makefile.python
|
||||
emake -f build/python/Makefile.python \
|
||||
CXX="$(tc-getCXX)" \
|
||||
CFLAGS="${CXXFLAGS}" \
|
||||
LDFLAGS="${LDFLAGS}" \
|
||||
PYTHON_ROOT="/usr/$(get_libdir)" \
|
||||
PYTHON_INC="-I$(python_get_includedir)"
|
||||
}
|
||||
python_foreach_impl building
|
||||
fi
|
||||
|
||||
if use doc; then
|
||||
einfo "Generation of documentation"
|
||||
sphinx-build doc doc_output
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
chmod -R ugo+rX "${S}"
|
||||
emake CXX="$(tc-getCXX)" CHECK_OPT="${CXXFLAGS}" check
|
||||
LD_LIBRARY_PATH="${S}" ./check --validate || die "Validation tests failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${ED}usr" install
|
||||
|
||||
if ! use static-libs; then
|
||||
rm "${ED}usr/$(get_libdir)/libbotan"*.a || die 'remove of static libs failed'
|
||||
fi
|
||||
|
||||
# Add compatibility symlinks.
|
||||
[[ -e "${ED}usr/bin/botan-config" ]] && die "Compatibility code no longer needed"
|
||||
[[ -e "${ED}usr/$(get_libdir)/pkgconfig/botan.pc" ]] && die "Compatibility code no longer needed"
|
||||
dosym botan-config-1.10 /usr/bin/botan-config
|
||||
dosym botan-1.10.pc /usr/$(get_libdir)/pkgconfig/botan.pc
|
||||
|
||||
if use python; then
|
||||
installation() {
|
||||
rm -fr build/python
|
||||
ln -s "${BUILD_DIR}" build/python
|
||||
emake -f Makefile.python \
|
||||
PYTHON_SITE_PACKAGE_DIR="${ED}$(python_get_sitedir)" \
|
||||
install
|
||||
}
|
||||
python_foreach_impl installation
|
||||
fi
|
||||
|
||||
if use doc; then
|
||||
pushd doc_output > /dev/null
|
||||
insinto /usr/share/doc/${PF}/html
|
||||
doins -r [a-z]* _static
|
||||
popd > /dev/null
|
||||
fi
|
||||
}
|
@ -0,0 +1,140 @@
|
||||
# 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,3_5} )
|
||||
|
||||
inherit eutils multilib python-r1 toolchain-funcs
|
||||
|
||||
MY_PN="Botan"
|
||||
MY_P="${MY_PN}-${PV}"
|
||||
DESCRIPTION="A C++ crypto library"
|
||||
HOMEPAGE="http://botan.randombit.net/"
|
||||
SRC_URI="http://botan.randombit.net/releases/${MY_P}.tgz"
|
||||
|
||||
KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~ppc-macos"
|
||||
SLOT="0"
|
||||
LICENSE="BSD"
|
||||
IUSE="bindist doc boost python bzip2 libressl lzma sqlite ssl static-libs zlib"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
REQUIRED_USE="python? ( boost )"
|
||||
|
||||
RDEPEND="bzip2? ( >=app-arch/bzip2-1.0.5 )
|
||||
zlib? ( >=sys-libs/zlib-1.2.3 )
|
||||
boost? ( ${PYTHON_DEPS} >=dev-libs/boost-1.48[python?,${PYTHON_USEDEP}] )
|
||||
lzma? ( app-arch/xz-utils )
|
||||
sqlite? ( dev-db/sqlite:3 )
|
||||
ssl? (
|
||||
!libressl? ( >=dev-libs/openssl-0.9.8g:0[bindist=] )
|
||||
libressl? ( dev-libs/libressl )
|
||||
)"
|
||||
DEPEND="${RDEPEND}
|
||||
doc? ( dev-python/sphinx )"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${P}-rng.patch"
|
||||
)
|
||||
|
||||
pkg_pretend() {
|
||||
# Botan 1.11 requires -std=c++11
|
||||
if [[ ${MERGE_TYPE} != binary ]]; then
|
||||
[[ $(gcc-major-version) -lt 4 ]] || \
|
||||
( [[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 7 ]] ) \
|
||||
&& die "Sorry, but gcc 4.7 or higher is required."
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
sed \
|
||||
-e "/^install:/s/ docs//" \
|
||||
-i src/build-data/makefile/gmake.in || die "sed failed"
|
||||
use python && python_copy_sources
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local disable_modules=( proc_walk unix_procs )
|
||||
use boost || disable_modules+=( "boost" )
|
||||
use bindist && disable_modules+=( "ecdsa" )
|
||||
use python || disable_modules+=( "ffi" )
|
||||
elog "Disabling modules: ${disable_modules[@]}"
|
||||
|
||||
# Enable v9 instructions for sparc64
|
||||
if [[ "${PROFILE_ARCH}" = "sparc64" ]]; then
|
||||
CHOSTARCH="sparc32-v9"
|
||||
else
|
||||
CHOSTARCH="${CHOST%%-*}"
|
||||
fi
|
||||
|
||||
local myos=
|
||||
case ${CHOST} in
|
||||
*-darwin*) myos=darwin ;;
|
||||
*) myos=linux ;;
|
||||
esac
|
||||
|
||||
local pythonvers=()
|
||||
if use python; then
|
||||
append() {
|
||||
pythonvers+=( ${EPYTHON/python/} )
|
||||
}
|
||||
python_foreach_impl append
|
||||
fi
|
||||
|
||||
./configure.py \
|
||||
--prefix="${EPREFIX}/usr" \
|
||||
--destdir="${D}/${EPREFIX}/usr" \
|
||||
--libdir=$(get_libdir) \
|
||||
--docdir=share/doc \
|
||||
--cc=gcc \
|
||||
--os=${myos} \
|
||||
--cpu=${CHOSTARCH} \
|
||||
--with-endian="$(tc-endian)" \
|
||||
--without-sphinx \
|
||||
$(use_with bzip2) \
|
||||
$(use_with lzma) \
|
||||
$(use_with sqlite sqlite3) \
|
||||
$(use_with ssl openssl) \
|
||||
$(use_with zlib) \
|
||||
$(use_with boost) \
|
||||
--with-python-version=$(IFS=","; echo "${pythonvers[*]}" ) \
|
||||
--disable-modules=$(IFS=","; echo "${disable_modules[*]}" ) \
|
||||
|| die "configure.py failed"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake CXX="$(tc-getCXX) -pthread" AR="$(tc-getAR) crs" LIB_OPT="-c ${CXXFLAGS}"
|
||||
if use doc; then
|
||||
einfo "Generation of documentation"
|
||||
sphinx-build doc doc_output
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
LD_LIBRARY_PATH="${S}" ./botan-test || die "Validation tests failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake install
|
||||
|
||||
if ! use static-libs; then
|
||||
rm "${ED}usr/$(get_libdir)/libbotan"*.a || die 'remove of static libs failed'
|
||||
fi
|
||||
|
||||
# Add compatibility symlinks.
|
||||
[[ -e "${ED}usr/bin/botan-config" ]] && die "Compatibility code no longer needed"
|
||||
[[ -e "${ED}usr/$(get_libdir)/pkgconfig/botan.pc" ]] && die "Compatibility code no longer needed"
|
||||
dosym botan-config-1.11 /usr/bin/botan-config
|
||||
dosym botan-1.11.pc /usr/$(get_libdir)/pkgconfig/botan.pc
|
||||
|
||||
use python && python_foreach_impl python_optimize
|
||||
|
||||
if use doc; then
|
||||
pushd doc_output > /dev/null
|
||||
insinto /usr/share/doc/${PF}/html
|
||||
doins -r [a-z]* _static
|
||||
popd > /dev/null
|
||||
fi
|
||||
}
|
@ -0,0 +1,26 @@
|
||||
From d8cb9d52a7e7e7e20cd371349583794e17fd0778 Mon Sep 17 00:00:00 2001
|
||||
From: Alon Bar-Lev <alon.barlev@gmail.com>
|
||||
Date: Thu, 1 Dec 2016 20:50:35 +0200
|
||||
Subject: [PATCH] utils: safeint.h: use botan's to_string
|
||||
|
||||
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
|
||||
---
|
||||
src/utils/safeint.h | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/utils/safeint.h b/src/utils/safeint.h
|
||||
index e0bd662..0a03e4e 100644
|
||||
--- a/src/utils/safeint.h
|
||||
+++ b/src/utils/safeint.h
|
||||
@@ -17,7 +17,7 @@ class Integer_Overflow_Detected : public Exception
|
||||
{
|
||||
public:
|
||||
Integer_Overflow_Detected(const std::string& file, int line) :
|
||||
- Exception("Integer overflow detected at " + file + ":" + std::to_string(line))
|
||||
+ Exception("Integer overflow detected at " + file + ":" + to_string(line))
|
||||
{}
|
||||
};
|
||||
|
||||
--
|
||||
2.7.3
|
||||
|
@ -0,0 +1,30 @@
|
||||
From 2b72637f06ad35bd5458372a964bf30a0b4f7cf9 Mon Sep 17 00:00:00 2001
|
||||
From: Alon Bar-Lev <alon.barlev@gmail.com>
|
||||
Date: Thu, 1 Dec 2016 21:55:17 +0200
|
||||
Subject: [PATCH] system_rng: workaround read only urandom
|
||||
|
||||
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
|
||||
---
|
||||
src/lib/rng/system_rng/system_rng.cpp | 5 ++++-
|
||||
1 file changed, 4 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/lib/rng/system_rng/system_rng.cpp b/src/lib/rng/system_rng/system_rng.cpp
|
||||
index eaba382..12b0876 100644
|
||||
--- a/src/lib/rng/system_rng/system_rng.cpp
|
||||
+++ b/src/lib/rng/system_rng/system_rng.cpp
|
||||
@@ -135,8 +135,11 @@ void System_RNG_Impl::add_entropy(const uint8_t input[], size_t len)
|
||||
* by the OS or sysadmin that additional entropy is not wanted
|
||||
* in the system pool, so we accept that and return here,
|
||||
* since there is no corrective action possible.
|
||||
+ *
|
||||
+ * In Linux EBADF or EPERM is returned if m_fd is not opened for
|
||||
+ * writing.
|
||||
*/
|
||||
- if(errno == EPERM)
|
||||
+ if(errno == EPERM || errno == EBADF)
|
||||
return;
|
||||
|
||||
// maybe just ignore any failure here and return?
|
||||
--
|
||||
2.7.3
|
||||
|
@ -0,0 +1,17 @@
|
||||
https://bugzilla.redhat.com/show_bug.cgi?id=1181167
|
||||
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=775139
|
||||
https://bugs.gentoo.org/show_bug.cgi?id=536454
|
||||
|
||||
Index: kpathsea/mktexlsr
|
||||
===================================================================
|
||||
--- kpathsea.orig/mktexlsr
|
||||
+++ kpathsea/mktexlsr
|
||||
@@ -73,7 +73,7 @@ if tty -s; then verbose=true; else verbo
|
||||
dry_run=false
|
||||
trees=
|
||||
|
||||
-treefile="${TMPDIR-/tmp}/mktexlsrtrees$$.tmp"
|
||||
+treefile=`mktemp --tmpdir mktexlsrtrees.XXXXXXXXXX` || exit 1
|
||||
trap 'cd /; rm -f $treefile; test -z "$db_dir_tmp" || rm -rf "$db_dir_tmp";
|
||||
exit' 0 1 2 3 7 13 15
|
||||
|
@ -1,3 +1,4 @@
|
||||
DIST leatherman-0.9.0.tar.gz 392308 SHA256 8d79a998caa47047bfc52093e6a50618458b5c0aa502a6cf61f9fb7a6451c3bb SHA512 25c5edd58abad4e20d36ec7badb94aacc0f9a9e44200e710dcb3da116685396bba5b12ae806f9865e48d5d50c43a31486d8aa39fd853551ccf2c3eaa28859c8d WHIRLPOOL 492ae8971368a8c7e3527a875c8cb4a46d5a767b80b45d32b33fa2f1c66a7d2ea4825c923a6993b1147ac8e68bb111c682ef5315c13a11a68bd583b3423e6656
|
||||
DIST leatherman-0.9.1.tar.gz 417376 SHA256 dc436230edd65f5244a72d290c598a3889787c917c4aa1a10f4559149408de81 SHA512 93fcb374eeac37a1e1009def0b94de8e7017764db7d18967da0409c34397e32249894de13e23509ecb37907388d7019e08e021db1d6909b1e8fe8b7b6e535c28 WHIRLPOOL 4e2c89322d349780624dff0670e353b923c159df9db20cf20272a8d7e80a899b85f949c2bbfc05e7a587ff845a5a342fc690be5dd3457d185b2d6850bf97ac47
|
||||
DIST leatherman-0.9.3.tar.gz 417894 SHA256 3ede61039b8f15ca54cfa543e614bd115b6c862d3bf994c16d1783eb72ba0810 SHA512 8888c58875d806a7a20ab4aa2e45a52e585f3fda784b38e0552ef8367c1ea6b71d557534e179a11e897f8fe9249373c7cd5777c5bf6c9900b9581c690b4be4cc WHIRLPOOL b9c738d5365a68d7ea497f0e30929323f6fa6ebd396a1f97ab2d73a13d3eb43e3ac64b501e64b1e82397869dfba4b7aaeace7ad9be4930bd842ff2ebe070be2b
|
||||
DIST leatherman-0.9.4.tar.gz 418077 SHA256 a396514fef1ab5d14ebc745a9166ac4fcdf229e5378824302de751ef5ec2bee9 SHA512 c08401856f5afc1b9d48cf31fa3c037ee9f316f4356419785c021696dff4628bfde92318ad0e50faf83aa9b205ebd479bbb46379431811cfec1dcbd5c88021f7 WHIRLPOOL cdae73fc20e08603c81d98127f642e6720fae449f1f1fbb9ca591ffed051bb1efc5ba21ea93a041d9cc8c7c58844ed5fc7467f6e9107d325687609780e8e2a6d
|
||||
|
@ -0,0 +1,52 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
USE_RUBY="ruby21 ruby22"
|
||||
CMAKE_MIN_VERSION="3.2.2"
|
||||
|
||||
inherit cmake-utils multilib ruby-ng
|
||||
|
||||
DESCRIPTION="A C++ toolkit"
|
||||
HOMEPAGE="https://github.com/puppetlabs/leatherman"
|
||||
SRC_URI="https://downloads.puppetlabs.com/facter/${P}.tar.gz"
|
||||
SRC_URI="https://github.com/puppetlabs/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
S="${S}/all/${P}"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
IUSE="debug test"
|
||||
KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~x86"
|
||||
|
||||
CDEPEND="
|
||||
>=sys-devel/gcc-4.8:*
|
||||
>=dev-libs/boost-1.54[nls]
|
||||
net-misc/curl"
|
||||
|
||||
RDEPEND+=" ${CDEPEND}"
|
||||
DEPEND+=" test? ( ${CDEPEND} )"
|
||||
|
||||
src_prepare() {
|
||||
sed -i 's/\-Werror\ //g' "cmake/cflags.cmake" || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DCMAKE_VERBOSE_MAKEFILE=ON
|
||||
-DCMAKE_BUILD_TYPE=None
|
||||
-DCMAKE_INSTALL_PREFIX=/usr
|
||||
-DCMAKE_INSTALL_SYSCONFDIR=/etc
|
||||
-DCMAKE_INSTALL_LOCALSTATEDIR=/var
|
||||
)
|
||||
if use debug; then
|
||||
mycmakeargs+=(
|
||||
-DCMAKE_BUILD_TYPE=Debug
|
||||
)
|
||||
fi
|
||||
cmake-utils_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cmake-utils_src_install
|
||||
}
|
@ -1,3 +1,4 @@
|
||||
DIST mathjax-2.2.tar.gz 8974100 SHA256 7879b59d2992bc31cda0d8b9d4f8fb47d4435f3129e421be46cc6d3136ed7449 SHA512 11987a959a7b154ea8df4ad93ce6193eed930affcfbfd2ba3fd965356c3ea957ef73a3ea6830a841bbe81f64ed0d9a78ab9fd74d0cbf011671b7d174cdc1f80c WHIRLPOOL 5bfba913fe1d768561c52154b714791afd8721673c2b404e3f4dd2b0c18855843521baf6ac534bb07826d475f83e81b4131e218d2e359f329b9cc8f143e40899
|
||||
DIST mathjax-2.4.0.tar.gz 23048567 SHA256 cd7175e1e352793942a976bf40692b954b5169bd28533921a8a8dd4ec865d855 SHA512 1f1cd590d0d584e38a51920e1d92e7dd1e0b8a0660b1ad29b522a5ced4d6c1f7d00074500d726aeee04c04f10c963944d1ef6aa2a662d7b53df609f9270b8de0 WHIRLPOOL 0b9dc53d1070a587261e770fe16a118171b40fa4d5de88a580726c1b9181d6d264c936eb68721798610e7d15a69c861d4b0454566ea1072a541c80a4bd5b6093
|
||||
DIST mathjax-2.5.3.tar.gz 23257294 SHA256 d24fcd6e66db4d79177513fbd25be9b75bff30f2a379199e8a05d5051fed5df3 SHA512 007b3d4e7d4224746ea8996838f6d208ee6dd04a6c2e3dc38b6e7ad83421732d4f5c5b9b6714183d0a25a46fdc1a9cd73a6ca769f29dbe3f36c79a5ca0ee1178 WHIRLPOOL a25f492d649dca6a0fe99602d8aecbf8538aef5bec56fd41b72208f68deac733f3e6ca109b2eb351c1d3ee3de6ed8b75eb3724b85cae8f717a6ac78b788fea96
|
||||
DIST mathjax-2.7.0.tar.gz 24594403 SHA256 4944dd3995417c7692b64462698054760d38ff72175f66e2f2a007c5031d5927 SHA512 2a7c2b4a4991485c18f78dda4115da05a31c1a2d952c403726e99d22fd26f166298199238ad482e53b63b5414be687f325b586f5ebe4e2d552447c929415b350 WHIRLPOOL ba8467e31b21c7fa5503b91d578bd7c8b85182221f3c19ad1535dcbfab89e72c2ed83b8a796982865062efd44cd495f54e00975c2a87e6a4d1fe96f2e9690bab
|
||||
|
@ -0,0 +1,59 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit eutils
|
||||
|
||||
DESCRIPTION="JavaScript display engine for LaTeX, MathML and AsciiMath"
|
||||
HOMEPAGE="http://www.mathjax.org/"
|
||||
SRC_URI="https://github.com/mathjax/MathJax/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux"
|
||||
IUSE="doc examples"
|
||||
|
||||
RESTRICT="binchecks strip"
|
||||
|
||||
S=${WORKDIR}/MathJax-${PV}
|
||||
|
||||
make_webconf() {
|
||||
# web server config file - should we really do this?
|
||||
cat > $1 <<-EOF
|
||||
Alias /MathJax/ ${EPREFIX}${webinstalldir}/
|
||||
Alias /mathjax/ ${EPREFIX}${webinstalldir}/
|
||||
|
||||
<Directory ${EPREFIX}${webinstalldir}>
|
||||
Options None
|
||||
AllowOverride None
|
||||
Order allow,deny
|
||||
Allow from all
|
||||
</Directory>
|
||||
EOF
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
egit_clean
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local DOCS=( README* )
|
||||
use doc && local HTML_DOCS=( docs/html/* )
|
||||
default
|
||||
if use examples; then
|
||||
insinto /usr/share/${PN}/examples
|
||||
doins -r test/*
|
||||
fi
|
||||
rm -r test docs LICENSE README* || die
|
||||
|
||||
webinstalldir=/usr/share/${PN}
|
||||
insinto ${webinstalldir}
|
||||
doins -r *
|
||||
|
||||
make_webconf MathJax.conf
|
||||
insinto /etc/httpd/conf.d
|
||||
doins MathJax.conf
|
||||
}
|
@ -0,0 +1,339 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit eutils flag-o-matic multilib toolchain-funcs multilib-minimal
|
||||
|
||||
NSPR_VER="4.12"
|
||||
RTM_NAME="NSS_${PV//./_}_RTM"
|
||||
# Rev of https://git.fedorahosted.org/cgit/nss-pem.git
|
||||
PEM_GIT_REV="429b0222759d8ad8e6dcd29e62875ae3efd69116"
|
||||
PEM_P="${PN}-pem-20160329"
|
||||
|
||||
DESCRIPTION="Mozilla's Network Security Services library that implements PKI support"
|
||||
HOMEPAGE="http://www.mozilla.org/projects/security/pki/nss/"
|
||||
SRC_URI="https://archive.mozilla.org/pub/security/nss/releases/${RTM_NAME}/src/${P}.tar.gz
|
||||
cacert? ( https://dev.gentoo.org/~axs/distfiles/${PN}-cacert-class1-class3.patch )
|
||||
nss-pem? ( https://dev.gentoo.org/~polynomial-c/${PEM_P}.tar.xz )"
|
||||
|
||||
LICENSE="|| ( MPL-2.0 GPL-2 LGPL-2.1 )"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE="cacert +nss-pem utils"
|
||||
CDEPEND=">=dev-db/sqlite-3.8.2[${MULTILIB_USEDEP}]
|
||||
>=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}]"
|
||||
DEPEND=">=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}]
|
||||
>=dev-libs/nspr-${NSPR_VER}[${MULTILIB_USEDEP}]
|
||||
${CDEPEND}"
|
||||
RDEPEND=">=dev-libs/nspr-${NSPR_VER}[${MULTILIB_USEDEP}]
|
||||
${CDEPEND}
|
||||
abi_x86_32? (
|
||||
!<=app-emulation/emul-linux-x86-baselibs-20140508-r12
|
||||
!app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
|
||||
)"
|
||||
|
||||
RESTRICT="test"
|
||||
|
||||
S="${WORKDIR}/${P}/${PN}"
|
||||
|
||||
MULTILIB_CHOST_TOOLS=(
|
||||
/usr/bin/nss-config
|
||||
)
|
||||
|
||||
PATCHES=(
|
||||
# Custom changes for gentoo
|
||||
"${FILESDIR}/${PN}-3.21-gentoo-fixups.patch"
|
||||
"${FILESDIR}/${PN}-3.21-gentoo-fixup-warnings.patch"
|
||||
"${FILESDIR}/${PN}-3.23-hppa-byte_order.patch"
|
||||
)
|
||||
|
||||
src_unpack() {
|
||||
unpack ${A}
|
||||
if use nss-pem ; then
|
||||
mv "${PN}"/lib/ckfw/pem/ "${S}"/lib/ckfw/ || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
if use nss-pem ; then
|
||||
PATCHES+=(
|
||||
"${FILESDIR}/${PN}-3.21-enable-pem.patch"
|
||||
)
|
||||
fi
|
||||
if use cacert ; then #521462
|
||||
PATCHES+=(
|
||||
"${DISTDIR}/${PN}-cacert-class1-class3.patch"
|
||||
)
|
||||
fi
|
||||
|
||||
default
|
||||
|
||||
pushd coreconf >/dev/null || die
|
||||
# hack nspr paths
|
||||
echo 'INCLUDES += -I$(DIST)/include/dbm' \
|
||||
>> headers.mk || die "failed to append include"
|
||||
|
||||
# modify install path
|
||||
sed -e '/CORE_DEPTH/s:SOURCE_PREFIX.*$:SOURCE_PREFIX = $(CORE_DEPTH)/dist:' \
|
||||
-i source.mk || die
|
||||
|
||||
# Respect LDFLAGS
|
||||
sed -i -e 's/\$(MKSHLIB) -o/\$(MKSHLIB) \$(LDFLAGS) -o/g' rules.mk
|
||||
popd >/dev/null || die
|
||||
|
||||
# Fix pkgconfig file for Prefix
|
||||
sed -i -e "/^PREFIX =/s:= /usr:= ${EPREFIX}/usr:" \
|
||||
config/Makefile || die
|
||||
|
||||
# use host shlibsign if need be #436216
|
||||
if tc-is-cross-compiler ; then
|
||||
sed -i \
|
||||
-e 's:"${2}"/shlibsign:shlibsign:' \
|
||||
cmd/shlibsign/sign.sh || die
|
||||
fi
|
||||
|
||||
# dirty hack
|
||||
sed -i -e "/CRYPTOLIB/s:\$(SOFTOKEN_LIB_DIR):../freebl/\$(OBJDIR):" \
|
||||
lib/ssl/config.mk || die
|
||||
sed -i -e "/CRYPTOLIB/s:\$(SOFTOKEN_LIB_DIR):../../lib/freebl/\$(OBJDIR):" \
|
||||
cmd/platlibs.mk || die
|
||||
|
||||
multilib_copy_sources
|
||||
|
||||
strip-flags
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
# Ensure we stay multilib aware
|
||||
sed -i -e "/@libdir@/ s:lib64:$(get_libdir):" config/Makefile || die
|
||||
}
|
||||
|
||||
nssarch() {
|
||||
# Most of the arches are the same as $ARCH
|
||||
local t=${1:-${CHOST}}
|
||||
case ${t} in
|
||||
aarch64*)echo "aarch64";;
|
||||
hppa*) echo "parisc";;
|
||||
i?86*) echo "i686";;
|
||||
x86_64*) echo "x86_64";;
|
||||
*) tc-arch ${t};;
|
||||
esac
|
||||
}
|
||||
|
||||
nssbits() {
|
||||
local cc cppflags="${1}CPPFLAGS" cflags="${1}CFLAGS"
|
||||
if [[ ${1} == BUILD_ ]]; then
|
||||
cc=$(tc-getBUILD_CC)
|
||||
else
|
||||
cc=$(tc-getCC)
|
||||
fi
|
||||
echo > "${T}"/test.c || die
|
||||
${cc} ${!cppflags} ${!cflags} -c "${T}"/test.c -o "${T}/${1}test.o" || die
|
||||
case $(file "${T}/${1}test.o") in
|
||||
*32-bit*x86-64*) echo USE_X32=1;;
|
||||
*64-bit*|*ppc64*|*x86_64*) echo USE_64=1;;
|
||||
*32-bit*|*ppc*|*i386*) ;;
|
||||
*) die "Failed to detect whether ${cc} builds 64bits or 32bits, disable distcc if you're using it, please";;
|
||||
esac
|
||||
}
|
||||
|
||||
multilib_src_compile() {
|
||||
# use ABI to determine bit'ness, or fallback if unset
|
||||
local buildbits mybits
|
||||
case "${ABI}" in
|
||||
n32) mybits="USE_N32=1";;
|
||||
x32) mybits="USE_X32=1";;
|
||||
s390x|*64) mybits="USE_64=1";;
|
||||
${DEFAULT_ABI})
|
||||
einfo "Running compilation test to determine bit'ness"
|
||||
mybits=$(nssbits)
|
||||
;;
|
||||
esac
|
||||
# bitness of host may differ from target
|
||||
if tc-is-cross-compiler; then
|
||||
buildbits=$(nssbits BUILD_)
|
||||
fi
|
||||
|
||||
local makeargs=(
|
||||
CC="$(tc-getCC)"
|
||||
AR="$(tc-getAR) rc \$@"
|
||||
RANLIB="$(tc-getRANLIB)"
|
||||
OPTIMIZER=
|
||||
${mybits}
|
||||
)
|
||||
|
||||
# Take care of nspr settings #436216
|
||||
local myCPPFLAGS="${CPPFLAGS} $($(tc-getPKG_CONFIG) nspr --cflags)"
|
||||
unset NSPR_INCLUDE_DIR
|
||||
|
||||
# Do not let `uname` be used.
|
||||
if use kernel_linux ; then
|
||||
makeargs+=(
|
||||
OS_TARGET=Linux
|
||||
OS_RELEASE=2.6
|
||||
OS_TEST="$(nssarch)"
|
||||
)
|
||||
fi
|
||||
|
||||
export NSS_ENABLE_WERROR=0 #567158
|
||||
export BUILD_OPT=1
|
||||
export NSS_USE_SYSTEM_SQLITE=1
|
||||
export NSDISTMODE=copy
|
||||
export NSS_ENABLE_ECC=1
|
||||
export FREEBL_NO_DEPEND=1
|
||||
export ASFLAGS=""
|
||||
|
||||
local d
|
||||
|
||||
# Build the host tools first.
|
||||
LDFLAGS="${BUILD_LDFLAGS}" \
|
||||
XCFLAGS="${BUILD_CFLAGS}" \
|
||||
NSPR_LIB_DIR="${T}/fakedir" \
|
||||
emake -j1 -C coreconf \
|
||||
CC="$(tc-getBUILD_CC)" \
|
||||
${buildbits:-${mybits}}
|
||||
makeargs+=( NSINSTALL="${PWD}/$(find -type f -name nsinstall)" )
|
||||
|
||||
# Then build the target tools.
|
||||
for d in . lib/dbm ; do
|
||||
CPPFLAGS="${myCPPFLAGS}" \
|
||||
XCFLAGS="${CFLAGS} ${CPPFLAGS}" \
|
||||
NSPR_LIB_DIR="${T}/fakedir" \
|
||||
emake -j1 "${makeargs[@]}" -C ${d}
|
||||
done
|
||||
}
|
||||
|
||||
# Altering these 3 libraries breaks the CHK verification.
|
||||
# All of the following cause it to break:
|
||||
# - stripping
|
||||
# - prelink
|
||||
# - ELF signing
|
||||
# http://www.mozilla.org/projects/security/pki/nss/tech-notes/tn6.html
|
||||
# Either we have to NOT strip them, or we have to forcibly resign after
|
||||
# stripping.
|
||||
#local_libdir="$(get_libdir)"
|
||||
#export STRIP_MASK="
|
||||
# */${local_libdir}/libfreebl3.so*
|
||||
# */${local_libdir}/libnssdbm3.so*
|
||||
# */${local_libdir}/libsoftokn3.so*"
|
||||
|
||||
export NSS_CHK_SIGN_LIBS="freebl3 nssdbm3 softokn3"
|
||||
|
||||
generate_chk() {
|
||||
local shlibsign="$1"
|
||||
local libdir="$2"
|
||||
einfo "Resigning core NSS libraries for FIPS validation"
|
||||
shift 2
|
||||
local i
|
||||
for i in ${NSS_CHK_SIGN_LIBS} ; do
|
||||
local libname=lib${i}.so
|
||||
local chkname=lib${i}.chk
|
||||
"${shlibsign}" \
|
||||
-i "${libdir}"/${libname} \
|
||||
-o "${libdir}"/${chkname}.tmp \
|
||||
&& mv -f \
|
||||
"${libdir}"/${chkname}.tmp \
|
||||
"${libdir}"/${chkname} \
|
||||
|| die "Failed to sign ${libname}"
|
||||
done
|
||||
}
|
||||
|
||||
cleanup_chk() {
|
||||
local libdir="$1"
|
||||
shift 1
|
||||
local i
|
||||
for i in ${NSS_CHK_SIGN_LIBS} ; do
|
||||
local libfname="${libdir}/lib${i}.so"
|
||||
# If the major version has changed, then we have old chk files.
|
||||
[ ! -f "${libfname}" -a -f "${libfname}.chk" ] \
|
||||
&& rm -f "${libfname}.chk"
|
||||
done
|
||||
}
|
||||
|
||||
multilib_src_install() {
|
||||
pushd dist >/dev/null || die
|
||||
|
||||
dodir /usr/$(get_libdir)
|
||||
cp -L */lib/*$(get_libname) "${ED}"/usr/$(get_libdir) || die "copying shared libs failed"
|
||||
cp -L */lib/libcrmf.a "${ED}"/usr/$(get_libdir) || die "copying libs failed"
|
||||
cp -L */lib/libfreebl.a "${ED}"/usr/$(get_libdir) || die "copying libs failed"
|
||||
|
||||
# Install nss-config and pkgconfig file
|
||||
dodir /usr/bin
|
||||
cp -L */bin/nss-config "${ED}"/usr/bin || die
|
||||
dodir /usr/$(get_libdir)/pkgconfig
|
||||
cp -L */lib/pkgconfig/nss.pc "${ED}"/usr/$(get_libdir)/pkgconfig || die
|
||||
|
||||
# create an nss-softokn.pc from nss.pc for libfreebl and some private headers
|
||||
# bug 517266
|
||||
sed -e 's#Libs:#Libs: -lfreebl#' \
|
||||
-e 's#Cflags:#Cflags: -I${includedir}/private#' \
|
||||
*/lib/pkgconfig/nss.pc >"${ED}"/usr/$(get_libdir)/pkgconfig/nss-softokn.pc \
|
||||
|| die "could not create nss-softokn.pc"
|
||||
|
||||
# all the include files
|
||||
insinto /usr/include/nss
|
||||
doins public/nss/*.h
|
||||
insinto /usr/include/nss/private
|
||||
doins private/nss/{blapi,alghmac}.h
|
||||
|
||||
popd >/dev/null || die
|
||||
|
||||
local f nssutils
|
||||
# Always enabled because we need it for chk generation.
|
||||
nssutils="shlibsign"
|
||||
|
||||
if multilib_is_native_abi ; then
|
||||
if use utils; then
|
||||
# The tests we do not need to install.
|
||||
#nssutils_test="bltest crmftest dbtest dertimetest
|
||||
#fipstest remtest sdrtest"
|
||||
# checkcert utils has been removed in nss-3.22:
|
||||
# https://bugzilla.mozilla.org/show_bug.cgi?id=1187545
|
||||
# https://hg.mozilla.org/projects/nss/rev/df1729d37870
|
||||
nssutils="addbuiltin atob baddbdir btoa certcgi certutil
|
||||
cmsutil conflict crlutil derdump digest makepqg mangle modutil multinit
|
||||
nonspr10 ocspclnt oidcalc p7content p7env p7sign p7verify pk11mode
|
||||
pk12util pp rsaperf selfserv shlibsign signtool signver ssltap strsclnt
|
||||
symkeyutil tstclnt vfychain vfyserv"
|
||||
# install man-pages for utils (bug #516810)
|
||||
doman doc/nroff/*.1
|
||||
fi
|
||||
pushd dist/*/bin >/dev/null || die
|
||||
for f in ${nssutils}; do
|
||||
dobin ${f}
|
||||
done
|
||||
popd >/dev/null || die
|
||||
fi
|
||||
|
||||
# Prelink breaks the CHK files. We don't have any reliable way to run
|
||||
# shlibsign after prelink.
|
||||
dodir /etc/prelink.conf.d
|
||||
printf -- "-b ${EPREFIX}/usr/$(get_libdir)/lib%s.so\n" ${NSS_CHK_SIGN_LIBS} \
|
||||
> "${ED}"/etc/prelink.conf.d/nss.conf
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
multilib_pkg_postinst() {
|
||||
# We must re-sign the libraries AFTER they are stripped.
|
||||
local shlibsign="${EROOT}/usr/bin/shlibsign"
|
||||
# See if we can execute it (cross-compiling & such). #436216
|
||||
"${shlibsign}" -h >&/dev/null
|
||||
if [[ $? -gt 1 ]] ; then
|
||||
shlibsign="shlibsign"
|
||||
fi
|
||||
generate_chk "${shlibsign}" "${EROOT}"/usr/$(get_libdir)
|
||||
}
|
||||
|
||||
multilib_foreach_abi multilib_pkg_postinst
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
multilib_pkg_postrm() {
|
||||
cleanup_chk "${EROOT}"/usr/$(get_libdir)
|
||||
}
|
||||
|
||||
multilib_foreach_abi multilib_pkg_postrm
|
||||
}
|
@ -1 +1 @@
|
||||
DIST markup-0.7.2.tar.gz 275010 SHA256 630a737ab6113e17999aacfd55f73b6671211d7980be86f0c711c0b385887c34 SHA512 72a87f54692a0b751c23e6b52bc4ecaa68334b0c6c067793cbf5b011b7d06ce7563f9aa2daeef3553ab48bb6cb9e592587b5a4f37279eaef7b45e19e5b372f73 WHIRLPOOL 679a01c5d197eadf1a8b74247e276405c182acff4c7781b577fbad9fcdc33be164ff81222e79c4e0e5193d1295ee4896ddda547cce1712bfb5ebda050f5bf5ac
|
||||
DIST markup-0.7.3.tar.gz 275094 SHA256 e1eb3562e0d26ccc33aa5dbe802e4210dbd7c30a8e69b6098b825afb11bb6af1 SHA512 e4577e438241d58c728507c88f14b7f029dbc4aa6b9c5dbf78f03b6c083a430026158c3146a88c14c9cd90a242b1bb4ed838b150bb89433fb6a6f673e5d2bb66 WHIRLPOOL ad967738706d4c017f266ecdef7b0772ce0bc17f9bc7dda228ffabc9cccccc88cde69337e063577d1fcda1e93cf4a7f18bbbf09709ee82f0a4b8382f5e339d2e
|
||||
|
@ -1,273 +0,0 @@
|
||||
Index: markup.ml-0.7.2/test/test_encoding.ml
|
||||
===================================================================
|
||||
--- markup.ml-0.7.2.orig/test/test_encoding.ml
|
||||
+++ markup.ml-0.7.2/test/test_encoding.ml
|
||||
@@ -15,9 +15,9 @@ let test_ucs_4 (f : Encoding.t) name s1
|
||||
expect_error (1, 2) (`Decoding_error (bad_bytes, name))
|
||||
begin fun report ->
|
||||
let chars = s1 |> string |> f ~report in
|
||||
- next_option chars ok (assert_equal (Some (Char.code 'f')));
|
||||
+ next_option chars ok (assert_equal (Some ((Uchar.of_int (Char.code 'f')))));
|
||||
next_option chars ok (assert_equal (Some Uutf.u_rep));
|
||||
- next_option chars ok (assert_equal (Some (Char.code 'o')));
|
||||
+ next_option chars ok (assert_equal (Some ((Uchar.of_int (Char.code 'o')))));
|
||||
next_option chars ok (assert_equal None);
|
||||
next_option chars ok (assert_equal None)
|
||||
end;
|
||||
@@ -25,9 +25,9 @@ let test_ucs_4 (f : Encoding.t) name s1
|
||||
expect_error (2, 2) (`Decoding_error ("\x00\x00\x00", name))
|
||||
begin fun report ->
|
||||
let chars = s2 |> string |> f ~report in
|
||||
- next_option chars ok (assert_equal (Some (Char.code 'f')));
|
||||
- next_option chars ok (assert_equal (Some 0x000A));
|
||||
- next_option chars ok (assert_equal (Some (Char.code 'o')));
|
||||
+ next_option chars ok (assert_equal (Some (Uchar.of_int (Char.code 'f'))));
|
||||
+ next_option chars ok (assert_equal (Some (Uchar.of_int 0x000A)));
|
||||
+ next_option chars ok (assert_equal (Some (Uchar.of_int (Char.code 'o'))));
|
||||
next_option chars ok (assert_equal (Some Uutf.u_rep));
|
||||
next_option chars ok (assert_equal None);
|
||||
next_option chars ok (assert_equal None)
|
||||
@@ -38,12 +38,12 @@ let tests = [
|
||||
let s = "\xef\xbb\xbffoo\xf0\x9f\x90\x99bar\xa0more" in
|
||||
expect_error (1, 8) (`Decoding_error ("\xa0", "utf-8")) begin fun report ->
|
||||
let chars = s |> string |> utf_8 ~report in
|
||||
- next_n 3 chars ok (assert_equal (List.map Char.code ['f'; 'o'; 'o']));
|
||||
- next_option chars ok (assert_equal (Some 0x1F419));
|
||||
- next_n 3 chars ok (assert_equal (List.map Char.code ['b'; 'a'; 'r']));
|
||||
+ next_n 3 chars ok (assert_equal (List.map (fun x -> Uchar.of_int (Char.code x)) ['f'; 'o'; 'o']));
|
||||
+ next_option chars ok (assert_equal (Some (Uchar.of_int 0x1F419)));
|
||||
+ next_n 3 chars ok (assert_equal (List.map (fun x -> Uchar.of_int (Char.code x)) ['b'; 'a'; 'r']));
|
||||
next_option chars ok (assert_equal (Some Uutf.u_rep));
|
||||
next_n 4 chars ok
|
||||
- (assert_equal (List.map Char.code ['m'; 'o'; 'r'; 'e']));
|
||||
+ (assert_equal (List.map (fun x -> Uchar.of_int (Char.code x)) ['m'; 'o'; 'r'; 'e']));
|
||||
next_option chars ok (assert_equal None);
|
||||
next_option chars ok (assert_equal None)
|
||||
end);
|
||||
@@ -53,11 +53,11 @@ let tests = [
|
||||
expect_error (1, 6) (`Decoding_error ("\xdc\x19", "utf-16be"))
|
||||
begin fun report ->
|
||||
let chars = s |> string |> utf_16be ~report in
|
||||
- next_n 3 chars ok (assert_equal (List.map Char.code ['f'; 'o'; 'o']));
|
||||
- next_option chars ok (assert_equal (Some 0x1F419));
|
||||
- next_option chars ok (assert_equal (Some (Char.code 'b')));
|
||||
+ next_n 3 chars ok (assert_equal (List.map (fun x -> Uchar.of_int (Char.code x)) ['f'; 'o'; 'o']));
|
||||
+ next_option chars ok (assert_equal (Some (Uchar.of_int 0x1F419)));
|
||||
+ next_option chars ok (assert_equal (Some (Uchar.of_int (Char.code 'b'))));
|
||||
next_option chars ok (assert_equal (Some Uutf.u_rep));
|
||||
- next_n 16 chars ok (assert_equal (List.map Char.code ['a'; 'r']));
|
||||
+ next_n 16 chars ok (assert_equal (List.map (fun x -> Uchar.of_int (Char.code x)) ['a'; 'r']));
|
||||
next_option chars ok (assert_equal None);
|
||||
next_option chars ok (assert_equal None)
|
||||
end);
|
||||
@@ -67,11 +67,11 @@ let tests = [
|
||||
expect_error (1, 6) (`Decoding_error ("\x19\xdc", "utf-16le"))
|
||||
begin fun report ->
|
||||
let chars = s |> string |> utf_16le ~report in
|
||||
- next_n 3 chars ok (assert_equal (List.map Char.code ['f'; 'o'; 'o']));
|
||||
- next_option chars ok (assert_equal (Some 0x1F419));
|
||||
- next_option chars ok (assert_equal (Some (Char.code 'b')));
|
||||
+ next_n 3 chars ok (assert_equal (List.map (fun x -> Uchar.of_int (Char.code x)) ['f'; 'o'; 'o']));
|
||||
+ next_option chars ok (assert_equal (Some (Uchar.of_int 0x1F419)));
|
||||
+ next_option chars ok (assert_equal (Some (Uchar.of_int (Char.code 'b'))));
|
||||
next_option chars ok (assert_equal (Some Uutf.u_rep));
|
||||
- next_n 16 chars ok (assert_equal (List.map Char.code ['a'; 'r']));
|
||||
+ next_n 16 chars ok (assert_equal (List.map (fun x -> Uchar.of_int (Char.code x)) ['a'; 'r']));
|
||||
next_option chars ok (assert_equal None);
|
||||
next_option chars ok (assert_equal None)
|
||||
end);
|
||||
@@ -79,7 +79,7 @@ let tests = [
|
||||
("encoding.iso_8859_1" >:: fun _ ->
|
||||
let chars = string "foo\xa0" |> iso_8859_1 in
|
||||
next_n 4 chars
|
||||
- ok (assert_equal (List.map Char.code ['f'; 'o'; 'o'; '\xa0']));
|
||||
+ ok (assert_equal (List.map (fun x -> Uchar.of_int (Char.code x)) ['f'; 'o'; 'o'; '\xa0']));
|
||||
next_option chars ok (assert_equal None);
|
||||
next_option chars ok (assert_equal None));
|
||||
|
||||
@@ -88,26 +88,26 @@ let tests = [
|
||||
expect_error (1, 4) (`Decoding_error ("\xa0", "us-ascii"))
|
||||
begin fun report ->
|
||||
let chars = s |> string |> us_ascii ~report in
|
||||
- next_n 3 chars ok (assert_equal (List.map Char.code ['f'; 'o'; 'o']));
|
||||
+ next_n 3 chars ok (assert_equal (List.map (fun x -> Uchar.of_int (Char.code x)) ['f'; 'o'; 'o']));
|
||||
next_option chars ok (assert_equal (Some Uutf.u_rep));
|
||||
- next_n 3 chars ok (assert_equal (List.map Char.code ['b'; 'a'; 'r']));
|
||||
+ next_n 3 chars ok (assert_equal (List.map (fun x -> Uchar.of_int (Char.code x)) ['b'; 'a'; 'r']));
|
||||
next_option chars ok (assert_equal None);
|
||||
next_option chars ok (assert_equal None)
|
||||
end);
|
||||
|
||||
("encoding.windows_1251" >:: fun _ ->
|
||||
let chars = string "foo\xe0\xe1\xe2bar" |> windows_1251 in
|
||||
- next_n 3 chars ok (assert_equal (List.map Char.code ['f'; 'o'; 'o']));
|
||||
- next_n 3 chars ok (assert_equal [0x0430; 0x0431; 0x0432]);
|
||||
- next_n 3 chars ok (assert_equal (List.map Char.code ['b'; 'a'; 'r']));
|
||||
+ next_n 3 chars ok (assert_equal (List.map (fun x -> Uchar.of_int (Char.code x)) ['f'; 'o'; 'o']));
|
||||
+ next_n 3 chars ok (assert_equal [Uchar.of_int 0x0430; Uchar.of_int 0x0431; Uchar.of_int 0x0432]);
|
||||
+ next_n 3 chars ok (assert_equal (List.map (fun x -> Uchar.of_int (Char.code x)) ['b'; 'a'; 'r']));
|
||||
next_option chars ok (assert_equal None);
|
||||
next_option chars ok (assert_equal None));
|
||||
|
||||
("encoding.windows_1252" >:: fun _ ->
|
||||
let chars = string "foo\x80\x83bar" |> windows_1252 in
|
||||
- next_n 3 chars ok (assert_equal (List.map Char.code ['f'; 'o'; 'o']));
|
||||
- next_n 2 chars ok (assert_equal [0x20AC; 0x0192]);
|
||||
- next_n 3 chars ok (assert_equal (List.map Char.code ['b'; 'a'; 'r']));
|
||||
+ next_n 3 chars ok (assert_equal (List.map (fun x -> Uchar.of_int (Char.code x)) ['f'; 'o'; 'o']));
|
||||
+ next_n 2 chars ok (assert_equal [Uchar.of_int 0x20AC; Uchar.of_int 0x0192]);
|
||||
+ next_n 3 chars ok (assert_equal (List.map (fun x -> Uchar.of_int (Char.code x)) ['b'; 'a'; 'r']));
|
||||
next_option chars ok (assert_equal None);
|
||||
next_option chars ok (assert_equal None));
|
||||
|
||||
@@ -137,7 +137,7 @@ let tests = [
|
||||
|
||||
("encoding.ebcdic" >:: fun _ ->
|
||||
let chars = string "\x86\x96\x96" |> ebcdic in
|
||||
- next_n 3 chars ok (assert_equal (List.map Char.code ['f'; 'o'; 'o']));
|
||||
+ next_n 3 chars ok (assert_equal (List.map (fun x -> Uchar.of_int (Char.code x)) ['f'; 'o'; 'o']));
|
||||
next_option chars ok (assert_equal None);
|
||||
next_option chars ok (assert_equal None));
|
||||
]
|
||||
Index: markup.ml-0.7.2/test/test_html_tokenizer.ml
|
||||
===================================================================
|
||||
--- markup.ml-0.7.2.orig/test/test_html_tokenizer.ml
|
||||
+++ markup.ml-0.7.2/test/test_html_tokenizer.ml
|
||||
@@ -134,7 +134,7 @@ let tests = [
|
||||
expect "�"
|
||||
[ 1, 1, E (`Bad_token ("�",
|
||||
reference, "out of range"));
|
||||
- 1, 1, S (`Char Uutf.u_rep);
|
||||
+ 1, 1, S (`Char (Uchar.to_int Uutf.u_rep));
|
||||
1, 35, S `EOF];
|
||||
|
||||
expect "�"
|
||||
@@ -142,22 +142,22 @@ let tests = [
|
||||
reference, "missing ';' at end"));
|
||||
1, 1, E (`Bad_token ("�",
|
||||
reference, "out of range"));
|
||||
- 1, 1, S (`Char Uutf.u_rep);
|
||||
+ 1, 1, S (`Char (Uchar.to_int Uutf.u_rep));
|
||||
1, 34, S `EOF];
|
||||
|
||||
expect "�"
|
||||
[ 1, 1, E (`Bad_token ("�", reference, "out of range"));
|
||||
- 1, 1, S (`Char Uutf.u_rep);
|
||||
+ 1, 1, S (`Char (Uchar.to_int Uutf.u_rep));
|
||||
1, 9, S `EOF];
|
||||
|
||||
expect "�"
|
||||
[ 1, 1, E (`Bad_token ("�", reference, "out of range"));
|
||||
- 1, 1, S (`Char Uutf.u_rep);
|
||||
+ 1, 1, S (`Char (Uchar.to_int Uutf.u_rep));
|
||||
1, 11, S `EOF];
|
||||
|
||||
expect "�"
|
||||
[ 1, 1, E (`Bad_token ("�", reference, "out of range"));
|
||||
- 1, 1, S (`Char Uutf.u_rep);
|
||||
+ 1, 1, S (`Char (Uchar.to_int Uutf.u_rep));
|
||||
1, 5, S `EOF];
|
||||
|
||||
expect ""
|
||||
@@ -264,7 +264,7 @@ let tests = [
|
||||
expect ~state:`RCDATA "f\x00</foo>"
|
||||
([ 1, 1, S (`Char 0x66);
|
||||
1, 2, E (`Bad_token ("U+0000", "content", "null"));
|
||||
- 1, 2, S (`Char Uutf.u_rep)] @
|
||||
+ 1, 2, S (`Char (Uchar.to_int Uutf.u_rep))] @
|
||||
(char_sequence ~start:3 "</foo>"));
|
||||
|
||||
expect ~state:`RCDATA "<title>f</title >"
|
||||
@@ -302,7 +302,7 @@ let tests = [
|
||||
expect ~state:`RAWTEXT "f\x00</foo>"
|
||||
([ 1, 1, S (`Char 0x66);
|
||||
1, 2, E (`Bad_token ("U+0000", "content", "null"));
|
||||
- 1, 2, S (`Char Uutf.u_rep)] @
|
||||
+ 1, 2, S (`Char (Uchar.to_int Uutf.u_rep))] @
|
||||
(char_sequence ~start:3 "</foo>")));
|
||||
|
||||
("html.tokenizer.script-data" >:: fun _ ->
|
||||
@@ -330,7 +330,7 @@ let tests = [
|
||||
expect ~state:`Script_data "f<!--o\x00o"
|
||||
((char_sequence ~no_eof:true "f<!--o") @
|
||||
[1, 7, E (`Bad_token ("U+0000", "script", "null"));
|
||||
- 1, 7, S (`Char Uutf.u_rep);
|
||||
+ 1, 7, S (`Char (Uchar.to_int Uutf.u_rep));
|
||||
1, 8, S (`Char 0x6F);
|
||||
1, 9, E (`Unexpected_eoi "script");
|
||||
1, 9, S `EOF]);
|
||||
@@ -363,7 +363,7 @@ let tests = [
|
||||
expect ~state:`Script_data "f<!--a-\x00-"
|
||||
((char_sequence ~no_eof:true "f<!--a-") @
|
||||
[ 1, 8, E (`Bad_token ("U+0000", "script", "null"));
|
||||
- 1, 8, S (`Char Uutf.u_rep);
|
||||
+ 1, 8, S (`Char (Uchar.to_int Uutf.u_rep));
|
||||
1, 9, S (`Char 0x02D);
|
||||
1, 10, E (`Unexpected_eoi "script");
|
||||
1, 10, S `EOF]);
|
||||
@@ -371,7 +371,7 @@ let tests = [
|
||||
expect ~state:`Script_data "f<!--a--\x00--"
|
||||
((char_sequence ~no_eof:true "f<!--a--") @
|
||||
[ 1, 9, E (`Bad_token ("U+0000", "script", "null"));
|
||||
- 1, 9, S (`Char Uutf.u_rep);
|
||||
+ 1, 9, S (`Char (Uchar.to_int Uutf.u_rep));
|
||||
1, 10, S (`Char 0x02D);
|
||||
1, 11, S (`Char 0x02D);
|
||||
1, 12, E (`Unexpected_eoi "script");
|
||||
@@ -380,14 +380,14 @@ let tests = [
|
||||
expect ~state:`Script_data "f<!--<script>\x00"
|
||||
((char_sequence ~no_eof:true "f<!--<script>") @
|
||||
[ 1, 14, E (`Bad_token ("U+0000", "script", "null"));
|
||||
- 1, 14, S (`Char Uutf.u_rep);
|
||||
+ 1, 14, S (`Char (Uchar.to_int Uutf.u_rep));
|
||||
1, 15, E (`Unexpected_eoi "script");
|
||||
1, 15, S `EOF]);
|
||||
|
||||
expect ~state:`Script_data "f<!--<script>-\x00-"
|
||||
((char_sequence ~no_eof:true "f<!--<script>-") @
|
||||
[ 1, 15, E (`Bad_token ("U+0000", "script", "null"));
|
||||
- 1, 15, S (`Char Uutf.u_rep);
|
||||
+ 1, 15, S (`Char (Uchar.to_int Uutf.u_rep));
|
||||
1, 16, S (`Char 0x2D);
|
||||
1, 17, E (`Unexpected_eoi "script");
|
||||
1, 17, S `EOF]);
|
||||
@@ -395,7 +395,7 @@ let tests = [
|
||||
expect ~state:`Script_data "f<!--<script>--\x00--"
|
||||
((char_sequence ~no_eof:true "f<!--<script>--") @
|
||||
[ 1, 16, E (`Bad_token ("U+0000", "script", "null"));
|
||||
- 1, 16, S (`Char Uutf.u_rep);
|
||||
+ 1, 16, S (`Char (Uchar.to_int Uutf.u_rep));
|
||||
1, 17, S (`Char 0x2D);
|
||||
1, 18, S (`Char 0x2D);
|
||||
1, 19, E (`Unexpected_eoi "script");
|
||||
@@ -413,7 +413,7 @@ let tests = [
|
||||
expect ~state:`Script_data "f\x00</foo>"
|
||||
([ 1, 1, S (`Char 0x66);
|
||||
1, 2, E (`Bad_token ("U+0000", "content", "null"));
|
||||
- 1, 2, S (`Char Uutf.u_rep)] @
|
||||
+ 1, 2, S (`Char (Uchar.to_int Uutf.u_rep))] @
|
||||
(char_sequence ~start:3 "</foo>")));
|
||||
|
||||
("html.tokenizer.plaintext" >:: fun _ ->
|
||||
@@ -424,7 +424,7 @@ let tests = [
|
||||
expect ~state:`PLAINTEXT "f\x00</foo>"
|
||||
([ 1, 1, S (`Char 0x66);
|
||||
1, 2, E (`Bad_token ("U+0000", "content", "null"));
|
||||
- 1, 2, S (`Char Uutf.u_rep)] @
|
||||
+ 1, 2, S (`Char (Uchar.to_int Uutf.u_rep))] @
|
||||
(char_sequence ~start:3 "</foo>")));
|
||||
|
||||
("html.tokenizer.comment" >:: fun _ ->
|
||||
Index: markup.ml-0.7.2/test/test_input.ml
|
||||
===================================================================
|
||||
--- markup.ml-0.7.2.orig/test/test_input.ml
|
||||
+++ markup.ml-0.7.2/test/test_input.ml
|
||||
@@ -71,7 +71,7 @@ let tests = [
|
||||
end);
|
||||
|
||||
("input.bom" >:: fun _ ->
|
||||
- [0xFEFF; 0x66]
|
||||
+ [Uchar.of_int 0xFEFF; Uchar.of_int 0x66]
|
||||
|> of_list
|
||||
|> preprocess is_valid_xml_char Error.ignore_errors
|
||||
|> fst
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,20 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
DIST_AUTHOR=BRAMBLE
|
||||
DIST_VERSION=1.12
|
||||
inherit perl-module
|
||||
|
||||
DESCRIPTION="Send and receive multicast messages"
|
||||
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND=">=dev-perl/IO-Interface-0.940.0"
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/perl-ExtUtils-MakeMaker
|
||||
"
|
@ -0,0 +1 @@
|
||||
DIST IO-Socket-Multicast-1.12.tar.gz 11685 SHA256 70e8af4aa21d19bab5edd9f43a6b3d6277748a65145d46ff0ea2ae4c59495c72 SHA512 7512a48b56aa12c04ba082ed7ab44f573d3cd2ab2b3b377a5faeb93499220c65d8ed7d99612bd0c6f3b15e574438907389bd1406f55fe3bbff878cccb03848a3 WHIRLPOOL 741853035f02c7bb73fa7d277d78dda3e13d75a8019ecdba3c6ac97c9330ccad47b54fe51816e925b21cebd44d61a1ad57dbd0b59a67862bd92bf77e46581590
|
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>perl@gentoo.org</email>
|
||||
<name>Gentoo Perl Project</name>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
@ -1 +1,2 @@
|
||||
DIST ncurses-1.0.2.tgz 16226 SHA256 7fa4998d06a00a094276e5283fd6a408cbf78cd2d3b889fe6ab51be3780c9063 SHA512 e1f684dcab2aa4dd3fded79fed02c78de1525f0384027fe64ad08759617f13ca6fb11742e3407723eecc431ed99847c0c98ae559797dc98ce373a01ba8413bf2 WHIRLPOOL 31cb413b229b6b82b506ee24bc124272fad742567c66574013feb4006af7523aff5a68aae32e8091f62297befb5aa1cc7af199ca66567a9262d0388323830ec4
|
||||
DIST pecl-ncurses-1.0.2-php7.patch.xz 5096 SHA256 8c7456eeb5a290afafd24e2dff46dcfd50856e245d3ae8157406d4aeaee33c0c SHA512 1f1dcaaa61033d7db55048f97e48029a335d5d191447038324eb170c9877da62a7b03cec20ea7496c073b76d7ba1009b4374b088c87e1838ee2dc433749c41fa WHIRLPOOL 0039a64ee9a5781c50bc19e073f390e33f35c66bcc0fc301933461f056e1fbadda0312311356d657e6af518647671f7cef0ae7b991f26c573d0355506f70dc28
|
||||
|
@ -1,21 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
USE_PHP="php5-6 php5-5 php5-4"
|
||||
|
||||
inherit php-ext-pecl-r2
|
||||
|
||||
DESCRIPTION="Terminal screen handling and optimization package"
|
||||
|
||||
LICENSE="PHP-3.01"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="sys-libs/ncurses:0="
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
my_conf="--enable-ncursesw"
|
@ -0,0 +1,24 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
USE_PHP="php5-6 php7-0"
|
||||
|
||||
inherit php-ext-pecl-r3
|
||||
|
||||
SRC_URI+=" http://dev.gentoo.org/~grknight/distfiles/${P}-php7.patch.xz"
|
||||
|
||||
DESCRIPTION="Terminal screen handling and optimization package"
|
||||
|
||||
LICENSE="PHP-3.01"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="sys-libs/ncurses:0="
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
PHP_EXT_ECONF_ARGS=( --enable-ncursesw )
|
||||
PATCHES=( "${WORKDIR}/${P}-php7.patch" )
|
@ -1,15 +1,15 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI="5"
|
||||
EAPI="6"
|
||||
PHP_EXT_NAME="oauth"
|
||||
PHP_EXT_INI="yes"
|
||||
PHP_EXT_ZENDEXT="no"
|
||||
|
||||
USE_PHP="php5-6 php5-5 php5-4"
|
||||
USE_PHP="php5-6"
|
||||
|
||||
inherit php-ext-pecl-r2
|
||||
inherit php-ext-pecl-r3
|
||||
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
@ -0,0 +1,118 @@
|
||||
--- a/pam.c 2016-12-01 14:29:27.453904230 -0500
|
||||
+++ b/pam.c 2016-12-01 14:27:26.496109755 -0500
|
||||
@@ -227,8 +227,13 @@
|
||||
PHP_FUNCTION(pam_auth)
|
||||
{
|
||||
char *username, *password;
|
||||
+#if PHP_MAJOR_VERSION >= 7
|
||||
+ size_t username_len, password_len;
|
||||
+ zval *status = NULL, *server, *remote_addr;
|
||||
+#else
|
||||
int username_len, password_len;
|
||||
zval *status = NULL, **server, **remote_addr;
|
||||
+#endif
|
||||
zend_bool checkacctmgmt = 1;
|
||||
|
||||
pam_auth_t userinfo = {NULL, NULL};
|
||||
@@ -248,22 +253,37 @@
|
||||
if (status) {
|
||||
spprintf(&error_msg, 0, "%s (in %s)", (char *) pam_strerror(pamh, result), "pam_start");
|
||||
zval_dtor(status);
|
||||
+#if PHP_MAJOR_VERSION >= 7
|
||||
+ ZVAL_STRING(status, error_msg);
|
||||
+ efree(error_msg);
|
||||
+#else
|
||||
ZVAL_STRING(status, error_msg, 0);
|
||||
+#endif
|
||||
}
|
||||
RETURN_FALSE;
|
||||
}
|
||||
|
||||
+#if PHP_MAJOR_VERSION >= 7
|
||||
+ if ((remote_addr = zend_hash_str_find(Z_ARR(PG(http_globals)[TRACK_VARS_SERVER]), "REMOTE_ADDR", sizeof("REMOTE_ADDR")-1)) != NULL && Z_TYPE_P(remote_addr) == IS_STRING) {
|
||||
+ pam_set_item(pamh, PAM_RHOST, Z_STRVAL_P(remote_addr));
|
||||
+#else
|
||||
if (zend_hash_find(&EG(symbol_table), "_SERVER", sizeof("_SERVER"), (void **)&server) == SUCCESS && Z_TYPE_PP(server) == IS_ARRAY) {
|
||||
if (zend_hash_find(Z_ARRVAL_PP(server), "REMOTE_ADDR", sizeof("REMOTE_ADDR"), (void **)&remote_addr) == SUCCESS && Z_TYPE_PP(remote_addr) == IS_STRING) {
|
||||
pam_set_item(pamh, PAM_RHOST, Z_STRVAL_PP(remote_addr));
|
||||
}
|
||||
+#endif
|
||||
}
|
||||
|
||||
if ((result = pam_authenticate(pamh, PAM_DISALLOW_NULL_AUTHTOK)) != PAM_SUCCESS) {
|
||||
if (status) {
|
||||
spprintf(&error_msg, 0, "%s (in %s)", (char *) pam_strerror(pamh, result), "pam_authenticate");
|
||||
zval_dtor(status);
|
||||
+#if PHP_MAJOR_VERSION >= 7
|
||||
+ ZVAL_STRING(status, error_msg);
|
||||
+ efree(error_msg);
|
||||
+#else
|
||||
ZVAL_STRING(status, error_msg, 0);
|
||||
+#endif
|
||||
}
|
||||
pam_end(pamh, PAM_SUCCESS);
|
||||
RETURN_FALSE;
|
||||
@@ -274,7 +294,12 @@
|
||||
if (status) {
|
||||
spprintf(&error_msg, 0, "%s (in %s)", (char *) pam_strerror(pamh, result), "pam_acct_mgmt");
|
||||
zval_dtor(status);
|
||||
+#if PHP_MAJOR_VERSION >= 7
|
||||
+ ZVAL_STRING(status, error_msg);
|
||||
+ efree(error_msg);
|
||||
+#else
|
||||
ZVAL_STRING(status, error_msg, 0);
|
||||
+#endif
|
||||
}
|
||||
pam_end(pamh, PAM_SUCCESS);
|
||||
RETURN_FALSE;
|
||||
@@ -291,7 +316,11 @@
|
||||
PHP_FUNCTION(pam_chpass)
|
||||
{
|
||||
char *username, *oldpass, *newpass;
|
||||
+#if PHP_MAJOR_VERSION >= 7
|
||||
+ size_t username_len, oldpass_len, newpass_len;
|
||||
+#else
|
||||
int username_len, oldpass_len, newpass_len;
|
||||
+#endif
|
||||
zval *status = NULL;
|
||||
|
||||
pam_chpass_t userinfo = {NULL, NULL, NULL, 0};
|
||||
@@ -312,7 +341,12 @@
|
||||
if (status) {
|
||||
spprintf(&error_msg, 0, "%s (in %s)", (char *) pam_strerror(pamh, result), "pam_start");
|
||||
zval_dtor(status);
|
||||
+#if PHP_MAJOR_VERSION >= 7
|
||||
+ ZVAL_STRING(status, error_msg);
|
||||
+ efree(error_msg);
|
||||
+#else
|
||||
ZVAL_STRING(status, error_msg, 0);
|
||||
+#endif
|
||||
}
|
||||
RETURN_FALSE;
|
||||
}
|
||||
@@ -321,7 +355,12 @@
|
||||
if (status) {
|
||||
spprintf(&error_msg, 0, "%s (in %s)", (char *) pam_strerror(pamh, result), "pam_authenticate");
|
||||
zval_dtor(status);
|
||||
+#if PHP_MAJOR_VERSION >= 7
|
||||
+ ZVAL_STRING(status, error_msg);
|
||||
+ efree(error_msg);
|
||||
+#else
|
||||
ZVAL_STRING(status, error_msg, 0);
|
||||
+#endif
|
||||
}
|
||||
pam_end(pamh, PAM_SUCCESS);
|
||||
RETURN_FALSE;
|
||||
@@ -331,7 +370,12 @@
|
||||
if (status) {
|
||||
spprintf(&error_msg, 0, "%s (in %s)", (char *) pam_strerror(pamh, result), "pam_chauthtok");
|
||||
zval_dtor(status);
|
||||
+#if PHP_MAJOR_VERSION >= 7
|
||||
+ ZVAL_STRING(status, error_msg);
|
||||
+ efree(error_msg);
|
||||
+#else
|
||||
ZVAL_STRING(status, error_msg, 0);
|
||||
+#endif
|
||||
}
|
||||
pam_end(pamh, PAM_SUCCESS);
|
||||
RETURN_FALSE;
|
@ -1,34 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
PHP_EXT_NAME="pam"
|
||||
PHP_EXT_INI="yes"
|
||||
PHP_EXT_ZENDEXT="no"
|
||||
DOCS="README"
|
||||
|
||||
USE_PHP="php5-6 php5-5 php5-4"
|
||||
|
||||
inherit php-ext-pecl-r2 pam
|
||||
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
DESCRIPTION="This extension provides PAM (Pluggable Authentication Modules) integration"
|
||||
LICENSE="PHP-2.02"
|
||||
SLOT="0"
|
||||
IUSE="debug"
|
||||
|
||||
DEPEND="sys-libs/pam"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
src_configure() {
|
||||
my_conf="--with-pam=/usr $(use_enable debug)"
|
||||
php-ext-source-r2_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
pamd_mimic_system php auth account password
|
||||
php-ext-pecl-r2_src_install
|
||||
}
|
@ -0,0 +1,45 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
PHP_EXT_NAME="pam"
|
||||
PHP_EXT_INI="yes"
|
||||
PHP_EXT_ZENDEXT="no"
|
||||
DOCS=( README )
|
||||
|
||||
USE_PHP="php5-6 php7-0"
|
||||
|
||||
inherit php-ext-pecl-r3 pam
|
||||
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
DESCRIPTION="This extension provides PAM (Pluggable Authentication Modules) integration"
|
||||
LICENSE="PHP-2.02"
|
||||
SLOT="0"
|
||||
IUSE="debug"
|
||||
|
||||
DEPEND="sys-libs/pam"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
PATCHES=( "${FILESDIR}/${PV}-php7.patch" )
|
||||
|
||||
src_prepare() {
|
||||
#Fix DOS line endings
|
||||
for slot in $(php_get_slots); do
|
||||
php_init_slot_env "${slot}"
|
||||
sed -i 's/\r$//' -- pam.c || die
|
||||
done
|
||||
php-ext-source-r3_src_prepare
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local PHP_EXT_ECONF_ARGS=( --with-pam=/usr $(use_enable debug) )
|
||||
php-ext-source-r3_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
pamd_mimic_system php auth account password
|
||||
php-ext-pecl-r3_src_install
|
||||
}
|
@ -1,2 +1,3 @@
|
||||
DIST PySocks-1.5.6.tar.gz 9189 SHA256 a62b35b13968ba3642a973d115ae6a11be886b5f5ae0841a3ecad4b4f1d7deb1 SHA512 3255591864c532f9ce3c0304d7b33165bb09c0a332fb0d126f61315e98f50e1af0f792517533166558fe457dce2d08f2b320adf9dd87b58618e0941d72daee49 WHIRLPOOL fd2b797c863aef1258b7f3e9f8e1abfa83df8d9387274f084cf731e5ae7b5d01230eb793d5d0f60734bdf178761eaec47a6c87634943c90f6a1fab7cca9d82df
|
||||
DIST PySocks-1.5.7.tar.gz 32480 SHA256 e51c7694b10288e6fd9a28e15c0bcce9aca0327e7b32ebcd9af05fcd56f38b88 SHA512 adcb504b938dacb3c5bd5bd28a9f2cd8311bb188dea1a1b65de13ef0b2b00af498a0e44280fff1ceaca4fed95281c070a13866cf13ee898cb564b4ef215ac4a4 WHIRLPOOL 57c9ebc6577b6fdcf883fed8cc5957330eb6848ec7c1bf164a34829832e17492bb9df433bacd9852ea4003d509c19108d5b540db918cf30322e2511fc567b336
|
||||
DIST PySocks-1.6.4.tar.gz 17172 SHA256 07f25f0720983462d5992c44a8288b54261e0055317535fbd8d96fe0c391817e SHA512 54992bb489ea8b559a3a844da1bd0a2b772ab84361f9f466e5b7cc8bc566ae9a01e8c9c0cc6ce914fb63b24d822aab8842cf10ad51d4c6233a5433d4a353b335 WHIRLPOOL 0f5d0255df3a1fa8a330f87fea0d546fc0b6d2554a9f5061dad349e5029ed4f1d4608860433bc353df07632467a298474cdf2418839b68d59376ec22a3c91176
|
||||
|
@ -0,0 +1,18 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python2_7 python3_{4,5} pypy{,3} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="SOCKS client module"
|
||||
HOMEPAGE="https://github.com/Anorov/PySocks http://pypi.python.org/pypi/PySocks"
|
||||
SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux"
|
||||
IUSE=""
|
@ -1 +1,2 @@
|
||||
DIST aodhclient-0.6.0.tar.gz 40827 SHA256 eb33dd5b215a137d052cdbf12d9c7a2ab3d1fe52702ffd2323e57d2fa759363d SHA512 daa3f568cc2c59a010024beecf2917bf7e3ee64a0a18851e19c92dba159fcd2f36e64dd418ac4a36ee93b0a06c8c00b1f222aebfa915e9bddeaca074a12568bc WHIRLPOOL 2e71b890b392f6c00abe2c5fb45dfdf98215403612de2d50f19c4c9a82cde91c5cd7691fe51c3838ab6a7009824dfa01ca1430b95c86a9ac41fdea005758e915
|
||||
DIST aodhclient-0.7.0.tar.gz 42096 SHA256 17afd102aea3711e9315bb6d8f7d176c7ef37e8ee60ea2e9302c5763bf41c979 SHA512 96c454e7ada9b8032f74f928dbb868c23a8a1d358b86d804f190eedeab78af041dd0fa673924da3b51785ef670634787cee91aec308381a2797125650cf79087 WHIRLPOOL 3ded0d4e36a2f9b85c3d05ecd0c6b3bcb5de6ad114fcbd2993e8ec4d679b5c03f90fe3a27bf1fc506af9fdf848a9f31fe73c328dead7f836e0138852da95bdb3
|
||||
|
@ -0,0 +1,38 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
PYTHON_COMPAT=( python2_7 python3_4 python3_5 )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="A client for the OpenStack Aodh API"
|
||||
HOMEPAGE="https://github.com/openstack/python-aodhclient"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm64 ~x86 ~amd64-linux ~x86-linux"
|
||||
|
||||
CDEPEND=">=dev-python/pbr-1.6[${PYTHON_USEDEP}]"
|
||||
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
${CDEPEND}"
|
||||
RDEPEND="
|
||||
${CDEPEND}
|
||||
>=dev-python/cliff-1.14.0[${PYTHON_USEDEP}]
|
||||
!~dev-python/cliff-1.16.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/osc-lib-1.0.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-i18n-2.1.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-serialization-1.10.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-utils-3.16.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/keystoneauth-2.10.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/six-1.9.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/debtcollector-1.3.0[${PYTHON_USEDEP}]
|
||||
"
|
||||
|
||||
python_prepare_all() {
|
||||
# built in...
|
||||
sed -i '/^hacking/d' test-requirements.txt || die
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
@ -1 +1,2 @@
|
||||
DIST pycapnp-0.5.10.tar.gz 461742 SHA256 59f9181091e7030776e434db216373297db41e16eb257fe450102bd29745459f SHA512 a892fde4544e4506d76bceaff7b186dbb89ce4593269857697b7a0c70c5df02eabf8e5c831604a2803c60b1a21b4c5387b286c1d600f7ec2d66bb3d99e8ce58d WHIRLPOOL b210947ea60a3640a1792a6c5df80bd4d94dcb23937f09d26cc95d91439135e1b7efc77150d9305571d0b4a7c7fad226ce31653f7cdb188fd007716ba74438e2
|
||||
DIST pycapnp-0.5.9.tar.gz 455156 SHA256 18dc9fb57928d2cb4d0387fc679d99e42ff08251539f2cadd86365f9768c874e SHA512 742e5ef0c4b8b9dea04a056004011494d2d719364fd6ecdd387f8929cbe85d98c9bdd16e0d79b15a3ebe783bf0906882c978e6b037b4aec92a35acf971c3b508 WHIRLPOOL cbd8305b4171c83a5224b70d3f268bd98970c3bb9559aa6516914a6c677100a3fab940fd13cb2b0c2d23a57d699de11689945349a8b5313f261c37448aeec9d7
|
||||
|
@ -0,0 +1,23 @@
|
||||
# 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,3_5} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Python wrapping of the Cap'n Proto library"
|
||||
HOMEPAGE="http://jparyani.github.io/pycapnp/"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="dev-libs/capnproto"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-python/cython[${PYTHON_USEDEP}]
|
||||
"
|
@ -1,5 +1,6 @@
|
||||
DIST requests-2.11.1.tar.gz 485936 SHA256 5acf980358283faba0b897c73959cecf8b841205bb4b2ad3ef545f46eae1a133 SHA512 135cbab1e279ebf314bffca01bc4d9f9e71963c67069e330e78fbe06c4294031d1d616bc5d5e104161c8696b408887053bdd65351f85e9ff34646368c88852e5 WHIRLPOOL 838e3074f56a87766ebeb04eb75fdd6f5c83da7448b5e9297be8143330acaeae540d10939b7118cbd9e86c1749c8db5c6c22d50064e704b9c1d7278a37a48af4
|
||||
DIST requests-2.12.1.tar.gz 545246 SHA256 2109ecea94df90980be040490ff1d879971b024861539abb00054062388b612e SHA512 e4da2ef674bcddd96bad91b0b06d4736270a348b740e7006537bc1c27704e1fe2592e1c8b0440c8e1c9a765eefcaf254952bfe5f2871c4ae4bd17962b33fcb00 WHIRLPOOL 6ab1c7e94069ba0ed9509d5706a5498a393e0fcdb5baca9dc1c05a40623c044afc927339ea407b067e563e99556402aae4938a6e382a55e639fa4ca77e1498e4
|
||||
DIST requests-2.12.3.tar.gz 546994 SHA256 de5d266953875e9647e37ef7bfe6ef1a46ff8ddfe61b5b3652edf7ea717ee2b2 SHA512 24a918f102784681ae395394c53cfddc6423e83613b955071e546343063107b8ec282441810c9efd5d591b7199b7a3e4c6a3608d42a4e1ca25502704e34d7347 WHIRLPOOL c9ae9f0d9e7d19014c4ef6df261b5254be6d3c315a12850a86aae06ee4dd33bd2e890ba9554d4ecb0668b93fe5ab67298254882a54d72be8ac6f50d98c42e5e8
|
||||
DIST requests-2.7.0.tar.gz 451723 SHA256 398a3db6d61899d25fd4a06c6ca12051b0ce171d705decd7ed5511517b4bb93d SHA512 a93223c3fd21c58f7c0c901b17be17c23dba4efeed8c4347da9d4e04d96a6698e08e01482205661cb7757cc7560d9ae2e62b18f2b422af0cb90fd998fe963ff2 WHIRLPOOL b805d76ad747fc8a754fb0ca0439e8f303df057c2b256ed7f57533b311322e4e28b0d8f22111a3c5ad283823c1256cd24c93fec2aeabc6946013c17ab3540dd9
|
||||
DIST requests-2.8.1.tar.gz 480803 SHA256 84fe8d5bf4dcdcc49002446c47a146d17ac10facf00d9086659064ac43b6c25b SHA512 bccec89165596df3af3f46eb43b5b28b595752485b00ed73978ef76fa6b8a8961c3db046c3f91ff34fa390f037322f6e13b141ba9b600a836a6d798086bd13fb WHIRLPOOL 445e0e12f5900c3396ae7a76d0010b9c4a4ff2c79c51dfc88f117918e436a4d67ea25de39f252cacaabd737b7b1542374172a2b6f482d7ffe1f7514d1cb4a06b
|
||||
DIST requests-2.9.1.tar.gz 484252 SHA256 c577815dd00f1394203fc44eb979724b098f88264a9ef898ee45b8e5e9cf587f SHA512 0b2b64b2ebb68703f2a222a3e5d0227cf15250319195a13497e38959c64b82359b70221157eab2ab828dfc79bcfec13ede4d6272f0202ae1b22ae79d5810adb9 WHIRLPOOL 9d942b97168c8a869b703db324a263ed3f5279a17e18444f7311e3d3a06aac99ef939c1d3f966025d6ac9e2967415880669b3bac6766c2d39c2faee43cb146c3
|
||||
|
@ -0,0 +1,56 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python2_7 python3_{4,5} pypy )
|
||||
PYTHON_REQ_USE="threads(+)"
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="HTTP library for human beings"
|
||||
HOMEPAGE="http://python-requests.org/ https://pypi.python.org/pypi/requests"
|
||||
SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~x64-macos ~x86-macos"
|
||||
IUSE="test"
|
||||
|
||||
RDEPEND="
|
||||
app-misc/ca-certificates
|
||||
>=dev-python/chardet-2.2.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/cryptography-1.3.4[${PYTHON_USEDEP}]
|
||||
>=dev-python/idna-2.0.0[${PYTHON_USEDEP}]
|
||||
dev-python/ndg-httpsclient[${PYTHON_USEDEP}]
|
||||
>=dev-python/py-1.4.30[${PYTHON_USEDEP}]
|
||||
>=dev-python/pyopenssl-0.14[$(python_gen_usedep 'python*' pypy)]
|
||||
>=dev-python/urllib3-1.13.1-r1[${PYTHON_USEDEP}]
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
test? (
|
||||
>=dev-python/pytest-2.8.1[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
# >=dev-python/pytest-httpbin-0.0.7[${PYTHON_USEDEP}]
|
||||
|
||||
# tests connect to various remote sites
|
||||
RESTRICT="test"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-2.12.1-system-packages.patch
|
||||
"${FILESDIR}"/${PN}-2.5.0-system-cacerts.patch
|
||||
)
|
||||
|
||||
python_prepare_all() {
|
||||
# use system chardet & urllib3
|
||||
rm -r requests/packages/{chardet,urllib3} || die
|
||||
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_test() {
|
||||
py.test -v || die
|
||||
}
|
@ -0,0 +1,30 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit bash-completion-r1
|
||||
|
||||
DESCRIPTION="Perl script for automatically building LaTeX documents"
|
||||
HOMEPAGE="http://www.phys.psu.edu/~collins/software/latexmk/"
|
||||
SRC_URI="http://www.phys.psu.edu/~collins/software/latexmk/${P}.zip"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~ppc-macos ~x64-macos ~x86-macos"
|
||||
|
||||
RDEPEND="virtual/latex-base
|
||||
dev-lang/perl"
|
||||
DEPEND="${RDEPEND}
|
||||
app-arch/unzip"
|
||||
|
||||
S="${WORKDIR}/${PN}"
|
||||
|
||||
src_install() {
|
||||
newbin latexmk.pl latexmk
|
||||
doman latexmk.1
|
||||
dodoc CHANGES README latexmk.pdf latexmk.ps latexmk.txt
|
||||
dodoc -r example_rcfiles extra-scripts
|
||||
newbashcomp "${FILESDIR}"/completion.bash-2 ${PN}
|
||||
}
|
@ -1,3 +1,3 @@
|
||||
DIST kdev-php-5.0.2.tar.xz 676252 SHA256 24ec89b4edc854808ce11a8e8b0aeb853f11926b26029bc46c80f901da00aec7 SHA512 1868aed8a79931ce2e41ae223e951657abdd6b8c87175bfaa4ec363add5d76cb6109df3d67a6acf489a0c075aafa4e7c238be2213e44169ddb75092fa4f55036 WHIRLPOOL 1e6d7a81c80498ba36c2526a32eef33841bcdf10adbaf49839b9ba81d14c09556fd60d64af02b7fc3c14fab5addb157458697551497d8f9fcff05d34fd4c5bbb
|
||||
DIST kdev-php-5.0.3.tar.xz 676568 SHA256 76fd1f665a9e0f6a7850d5b2f145b2567ca5442eaaa1ac3b6c8e70709a9e3210 SHA512 8535d54efc4653b07676660ad730a7fe692656f6f312af772e14b3d1a9a955d5af807868a65a4b6842c368af9a4d8ad8589ed99ecd67d7ff36b5c9e81d937e62 WHIRLPOOL ab136737ba3f6bb47c7cfecd063e0e9fe5dfe86889f0867b113abcd4e875a217ebd7325d2d9ed5092f90c6db40bcd66a95c695059f8a24e3c0c7cb6ddc323b60
|
||||
DIST kdevelop-php-1.7.2.tar.xz 658060 SHA256 75de9a5afe32ecaa35eb14e1ae04dd9c6d3e9abf87274ca4537fbdc3b296a369 SHA512 419ac3865c15ba30997e08f655d4ba61877ff15b6f3c0261a52a74e7d158e7a82a638326d2ccae1a435b846f40f76723807ff318ea3242651fb8fee263cdf5e1 WHIRLPOOL bad67fdbff98c2d47dd3034f56abafbb7ff8d1fb17aec3e7004177a50f1f131808b56d80f3c89bb234613ab71badcf2fdd4e67420a3902eda33f2f94489ca2f0
|
||||
DIST kdevelop-php-1.7.3.tar.bz2 691363 SHA256 6b3583560dc9c339d74c51d9774a3ff342e260b285c8d9bd8f7f89f47a7dbf69 SHA512 aa052f546e84ff002cbe899ce9b892935ddb88d959ed2ea695c020c59de6f9a706106bcf5fac11dbfb9a015199286f8d729affe1e0d40842867971c99143cd41 WHIRLPOOL be6ce21cbd0f91a110192194cf0892c5ce3c3cf5c847a1a42e4790e2274043d5ed5e6f3f332cac8ef4f340284f031b838ac415629bb187501a00e2abe2b3ec83
|
||||
|
@ -1,3 +1,3 @@
|
||||
DIST kdev-python-1.7.2.tar.xz 3668764 SHA256 949254984bd489cd5597d4c4986057c43b60febde329f6f9d1b42228aef9444d SHA512 d49a65786516d6709808126c3ec1ea90ccce8f3a7fbdfd39082e6327d3186089fe9d64380587023f0d4d9eea2304f76d8ff510b52cb29169918596652508bae4 WHIRLPOOL 7a01d9afa3151b3139fde5a0609d4eec2be330afe0e7bd241c22658007108ec78be9fbcaf37b8d55bde34b1b354d5043e2b6e79ed52b194ab40744c196ed5124
|
||||
DIST kdev-python-1.7.3.tar.bz2 4361300 SHA256 45b6418d4a96914472e04edec485fd25d04151f544cd1a2c96a63e3cd294f6b2 SHA512 f1f8bc33c60514daff2ed591c660a8ec97ecfc6ce7a28ad586fda5f93559e9b7842b3407340373389b8ccaad8350e49334e176df4a0c3e014aae42cf7259f417 WHIRLPOOL a2151b9e78aa15307ed764d7ba3fe2d4b77e4c13db1492537a5e2dd7023f646d0c3b43dd2f95505259c11bdc23cd03945c40ebdf7c12ba4009c2b518d2d50404
|
||||
DIST kdev-python-5.0.2.tar.xz 1062328 SHA256 5d160951933e2f6742a443e19d24e0c93a82567244500e4bb6a3124e5e4e11ff SHA512 b1e59d248f49573514c18c98010ed69a9ee4ec5ed980a1e39dfa335a1d4bc582b7db673faffb1ad0a46c6f4f8a901aa2df19d077aa9e468758b21d298ad854e1 WHIRLPOOL 933317a5ba5dfca11c608233a3cf4a7c285713eff7f89e80e2c7e21c9f108348eb636e8b21b415e3c9aa7d13294a2df6e4628e2e09680cda3b334d9fc5d07984
|
||||
DIST kdev-python-5.0.3.tar.xz 1063448 SHA256 f140709928ec65c6ab9f87b67249f80ba162619c0dd3bf434aaea044e39805ea SHA512 0867a3c314d2018976249619c1f7adbb92a2ab23eccb957cf45a708eecc670c02d3ebc928ce931fee2f6e756ee036ab4a9774c8ef067c88a88b30cc7f6633951 WHIRLPOOL 0d09cb5ce2ad50fc01587e6331122932a62979144aef93b65fb1c17730c0aa119fa370af4c64b4bda36bf104afa01c3cbc200b12c7387aba90c4c14fdde59707
|
||||
|
@ -1,3 +1,3 @@
|
||||
DIST kdevelop-4.7.2.tar.xz 4441896 SHA256 5801a38a9abfebead18b74c0a0f5a6d68118b297c96ef1e2f75c8bfae3463b19 SHA512 f05643f185a02ce9f07b5e48b0cf61de5e0e2ed892b4fbe4edf749319c37466a2e904c7b64604cdff3b1c5c20e384ea23e7fdd1e30ed15642fd70f5e172e570a WHIRLPOOL 2caf928f84e22aacfa2691fc7a2752f84a38cdfccc4b3c176c04c0f81445a25548f7723ee57da293a921f7934789386bce7e4c50751cd4d61da2d15c39490695
|
||||
DIST kdevelop-4.7.3.tar.bz2 4826588 SHA256 9db388d1c8274da7d168c13db612c7e94ece7815757b945b0aa0371620a06b35 SHA512 e6d410bda001cfaed7c15383497992d6aad0a878c4c6f786c154dc9de581139baf05e592a8355481dd25c7f8d3b52b3a9516187e1e85c1f229ba32bc7cc57636 WHIRLPOOL 521b58b688344884ed178b9f7eaa87f11c0eb7e631a83c33ba4b6b23ae49ca866da667e2e2d726ad17ea3bf311b66a2f2695627d50c4dbbed8074bb338270790
|
||||
DIST kdevelop-5.0.2.tar.xz 4994268 SHA256 9b017901167723230dee8b565cdc7b0e61762415ffcc0a32708f04f7ab668666 SHA512 a92d0c795442642f2bd7db9e37c3f13d67b19e9bb3d5e076ba409ae271062d3e022e284b5a2ce6be0b01d753c5ff4a3522a8149ab6f5f007bc6f24e7bd68e6db WHIRLPOOL 26152f4f78421e45d5ac6a5c8058a155cb5da38c8b348afeceb8868fe11d984d020f2e8b993f617209a118fc959684890bb78b5f0173f14e0d085d3975c319ca
|
||||
DIST kdevelop-5.0.3.tar.xz 5004500 SHA256 17a58dfc38b853c6c5987084e8973b4f7f5015a6c2c20f94c2a9f96b0c13f601 SHA512 5fa799412c5a847bdefeca3f339c3b17b7693761209f646b6aee35734abded234d871ec9763079db7a4236047d68b3ab9a89ac22a0abb8b7a23d4c67cf749444 WHIRLPOOL fa1688d2dfd5d94cf71ae397c9b6c96f0e8c0999c714a41932e9aecd9bea40159f9e39d183cac23a509f63666445b026e05905ddfc176e1e7673f78c9651438a
|
||||
|
@ -1,39 +0,0 @@
|
||||
From: Kevin Funk <kfunk@kde.org>
|
||||
Date: Tue, 18 Oct 2016 07:47:28 +0000
|
||||
Subject: GitHub: Don't crash when Git plugin not loaded
|
||||
X-Git-Url: http://quickgit.kde.org/?p=kdevelop.git&a=commitdiff&h=3afcc322a94878c8f5f662c1c5795b75a3bf62a5
|
||||
---
|
||||
GitHub: Don't crash when Git plugin not loaded
|
||||
|
||||
BUG: 331883
|
||||
FIXED-IN: 5.0.3
|
||||
---
|
||||
|
||||
|
||||
--- a/providers/ghprovider/ghproviderwidget.cpp
|
||||
+++ b/providers/ghprovider/ghproviderwidget.cpp
|
||||
@@ -91,17 +91,20 @@
|
||||
if (!pos.isValid())
|
||||
return nullptr;
|
||||
|
||||
+ auto plugin = ICore::self()->pluginController()->pluginForExtension("org.kdevelop.IBasicVersionControl", "kdevgit");
|
||||
+ if (!plugin) {
|
||||
+ KMessageBox::error(0, i18n("The Git plugin could not be loaded which is required to import a Github project."), i18n("Github Provider Error"));
|
||||
+ return nullptr;
|
||||
+ }
|
||||
+
|
||||
QString url = pos.data(ProviderModel::VcsLocationRole).toString();
|
||||
if (m_account->validAccount())
|
||||
url = "https://" + m_account->token() + "@" + url.mid(8);
|
||||
QUrl real = QUrl(url);
|
||||
VcsLocation loc(real);
|
||||
|
||||
- auto plugin = ICore::self()->pluginController()->pluginForExtension("org.kdevelop.IBasicVersionControl", "kdevgit");
|
||||
- Q_ASSERT(plugin);
|
||||
auto vc = plugin->extension<IBasicVersionControl>();
|
||||
Q_ASSERT(vc);
|
||||
-
|
||||
return vc->createWorkingCopy(loc, dest);
|
||||
}
|
||||
|
||||
|
@ -1,3 +1,3 @@
|
||||
DIST kdevplatform-1.7.2.tar.xz 1929976 SHA256 0afcde7a746adb83b00f2bd6b02efb4022adbd61b6ba4325fb63b71902f1f4e4 SHA512 b95a1837b61d6c63cdd5183194ea70301bb32720df8c5317ba891a91c24c1e174aa69d10131024701bfe710f4848ac50059bc4513cf334d39415d37f4a445d66 WHIRLPOOL 4656a52becd50e9d827010e798941465731872b014400529fde4c45410d7f77d063c7fed237f94991742af997e845145772dbb199df74ae9777d41c2bdc21693
|
||||
DIST kdevplatform-1.7.3.tar.bz2 2417125 SHA256 195134bde11672de38838f4b341ed28c58042374ca12beedacca9d30e6ab4a2b SHA512 a23712bc70a7b084541a0bb441e19ba30bf408e4046403367cfce98cf7cb60b1aa89d6fce466e5512f1d3ea93353dc0dc5b57b0953bb85e7319a4a14d5403be9 WHIRLPOOL b0deafac4013aaad4ab80ae87c5dabd033a522e935ba1569659cb8dd4e7f06b8e75910ffecc3b27c7ffe0687cfc2ba65a2d707e8fd5b96ad603d4a4b011f2864
|
||||
DIST kdevplatform-5.0.2.tar.xz 1997268 SHA256 a7f311198bb72f5fee064d99055e8df39ecf4e9066fe5c0ff901ee8c24d960ec SHA512 5334130ee12fcd3bcc22f488e6e8b64192c9fa878bc4d1666f1e8f5b8ae016410843cce14e38084d455ad3004586b43304f199b0d52bb5c44817e059557da089 WHIRLPOOL 6d1c316d90993e32234faff0ba78dca1fe599078d6836999435e59b825b13c5f2301adb0e20161b1233ad838ec7d291f11e243c665834a7ae5b27c9036c9f8bd
|
||||
DIST kdevplatform-5.0.3.tar.xz 2018600 SHA256 643d1145e1948af221f9ae148d0a10809f3d89af4b97ff0d6c4d571004f46bd4 SHA512 ef48c0de41d1fe20269400eea4d2b04efa04cd62caaa987e6814c5513e843c3cac030479a8a0576b9fc532d7771827fcc4acda128448ff34dec9fbd55bd05d55 WHIRLPOOL 24cbc44345867b78b669993fcc8d1b680c051cce7c6ce91761de14877f05e6f983f562fe99d0ffa2586611d7daee8d66a2a530f7700ae2c44832f9d980069099
|
||||
|
@ -0,0 +1,123 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
# @ECLASS: tmpfiles.eclass
|
||||
# @MAINTAINER:
|
||||
# Gentoo systemd project <systemd@gentoo.org>
|
||||
# William Hubbs <williamh@gentoo.org>
|
||||
# @AUTHOR:
|
||||
# Mike Gilbert <floppym@gentoo.org>
|
||||
# William Hubbs <williamh@gentoo.org>
|
||||
# @BLURB: Functions related to tmpfiles.d files
|
||||
# @DESCRIPTION:
|
||||
# This eclass provides functionality related to installing and
|
||||
# creating volatile and temporary files based on configuration files$and
|
||||
# locations defined at this URL:
|
||||
#
|
||||
# https://www.freedesktop.org/software/systemd/man/tmpfiles.d.html
|
||||
#
|
||||
# The dotmpfiles and newtmpfiles functions are used to install
|
||||
# configuration files into /usr/lib/tmpfiles.d, then in pkg_postinst, the
|
||||
# tmpfiles_process function can be called to process the newly
|
||||
# installed tmpfiles.d entries.
|
||||
#
|
||||
# @EXAMPLE:
|
||||
# Typical usage of this eclass:
|
||||
#
|
||||
# @CODE
|
||||
# EAPI=6
|
||||
# inherit tmpfiles
|
||||
#
|
||||
# ...
|
||||
#
|
||||
# src_install() {
|
||||
# ...
|
||||
# dotmpfiles "${FILESDIR}"/file1.conf "${FILESDIR}"/file2.conf
|
||||
# newtmpfiles "${FILESDIR}"/file3.conf-${PV} file3.conf
|
||||
# ...
|
||||
# }
|
||||
#
|
||||
# pkg_postinst() {
|
||||
# ...
|
||||
# tmpfiles_process file1.conf file2.conf file3.conf
|
||||
# ...
|
||||
# }
|
||||
#
|
||||
# @CODE
|
||||
|
||||
if [[ -z ${TMPFILES_ECLASS} ]]; then
|
||||
TMPFILES_ECLASS=1
|
||||
|
||||
case "${EAPI}" in
|
||||
6) ;;
|
||||
*) die "API is undefined for EAPI ${EAPI}" ;;
|
||||
esac
|
||||
|
||||
RDEPEND="kernel_linux? ( virtual/tmpfiles )"
|
||||
|
||||
# @FUNCTION: dotmpfiles
|
||||
# @USAGE: dotmpfiles <tmpfiles.d_file> ...
|
||||
# @DESCRIPTION:
|
||||
# Install one or more tmpfiles.d files into /usr/lib/tmpfiles.d.
|
||||
dotmpfiles() {
|
||||
debug-print-function "${FUNCNAME}" "$@"
|
||||
|
||||
use kernel_linux || return 0
|
||||
local f
|
||||
for f; do
|
||||
if [[ ${f} != *.conf ]]; then
|
||||
die "tmpfiles.d files must end with .conf"
|
||||
fi
|
||||
done
|
||||
|
||||
(
|
||||
insinto /usr/lib/tmpfiles.d
|
||||
doins "$@"
|
||||
)
|
||||
}
|
||||
|
||||
# @FUNCTION: newtmpfiles
|
||||
# @USAGE: newtmpfiles <old-name> <new-name>.conf
|
||||
# @DESCRIPTION:
|
||||
# Install a tmpfiles.d file in /usr/lib/tmpfiles.d under a new name.
|
||||
newtmpfiles() {
|
||||
debug-print-function "${FUNCNAME}" "$@"
|
||||
|
||||
use kernel_linux || return 0
|
||||
if [[ $2 != *.conf ]]; then
|
||||
die "tmpfiles.d files must end with .conf"
|
||||
fi
|
||||
|
||||
(
|
||||
insinto /usr/lib/tmpfiles.d
|
||||
newins "$@"
|
||||
)
|
||||
}
|
||||
|
||||
# @FUNCTION: tmpfiles_process
|
||||
# @USAGE: tmpfiles_process <filename> <filename> ...
|
||||
# @DESCRIPTION:
|
||||
# Call a tmpfiles.d implementation to create new volatile and temporary
|
||||
# files and directories.
|
||||
tmpfiles_process() {
|
||||
debug-print-function "${FUNCNAME}" "$@"
|
||||
|
||||
use kernel_linux || return 0
|
||||
[[ ${EBUILD_PHASE} == postinst ]] || die "${FUNCNAME}: Only valid in pkg_postinst"
|
||||
[[ ${#} -gt 0 ]] || die "${FUNCNAME}: Must specify at least one filename"
|
||||
|
||||
# Only process tmpfiles for the currently running system
|
||||
[[ ${ROOT} == / ]] || return 0
|
||||
|
||||
if type systemd-tmpfiles &> /dev/null; then
|
||||
systemd-tmpfiles --create "$@"
|
||||
elif type opentmpfiles &> /dev/null; then
|
||||
opentmpfiles --create "$@"
|
||||
fi
|
||||
if [[ $? -ne 0 ]]; then
|
||||
ewarn "The tmpfiles processor exited with a non-zero exit code"
|
||||
fi
|
||||
}
|
||||
|
||||
fi
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue