parent
1b94627ccb
commit
184d16dbd0
@ -1,3 +1,4 @@
|
||||
DIST orca-2.32.1.tar.bz2 2653300 SHA256 44da9da70c1b47bc87fda8f3b9da4cc1df9993d92388434f5707d39b5a832629 SHA512 d51c5ddfc979e57404b44961bd244dd639551bf9fd086326a4274a9713ec6eebe9aee6a381ee4abf47f211e034ebd2985c8a90303590094997bc10021364f796 WHIRLPOOL 2dcc5168947a25c5b918a6e98daeec246d712c34bc12ce55aa1edc1258c73b83aa7cba23d94f521bc9aec8e763601f7523a9cd91d6abc6119eb2defc47835c55
|
||||
DIST orca-3.6.3.tar.xz 3699564 SHA256 403d2328b5fdbf8ccdd5759cdaf8c757ba897330339ef4429b3695d775d05763 SHA512 0e903946688a395a894530fa8aea5a7709fc3029aa284bcc819f6f12a623996ba4914ce1948caf297775ad17b15859bc5f5e39c30115597f4e309ef835812171 WHIRLPOOL 69d857bf27fa940d413dc781304d2acf81f6b90cfc06f481042545b4fe301587b6e9b4d67f309c04f026bf03ed4f0c791965b7021e30a04a1249d50059bf8caa
|
||||
DIST orca-3.8.1.tar.xz 3612844 SHA256 acca5393d33c2e21a167dd1584bfc7c3038fba1feddf2e5edf4c41e07d19ad03 SHA512 b5770fbc18d4d60afedbc40549016048b1281254a8d825f4569e5e4496ff1e5d3defe427b1a6eb52dc84bb905f9a2c3d1f6cfb05216ce9654aab1e1763cbbeef WHIRLPOOL a825604d9afaba559947ef15eb1625114d3f517c53fa1d5efccb8241c05d9d6b5b5cf678d57ace19333a4037fdbdcadc3a356bcf00d985c7a0ee8d5a3c765c9c
|
||||
DIST orca-3.8.2.tar.xz 3650580 SHA256 33683d933a48649eb60de103c50d0724aa6ace93558e863fb1d01e900f88c2c8 SHA512 4298f481b75ef86e7432cef39be1555158b53e1c19b5875fe43de8e9731be43b73852733955ea50010f30ec3900fc03a0bf66e1c05100ae348d4f205fc93e1f1 WHIRLPOOL 3f38dc99147ab401805507d6fbd8ab274cbd506e95eb906628fe40f15f8fed5bd23c73560ca59b5421cd8941161a7e896bbf4b230a0d161e4f44d7e0acb1c0cb
|
||||
|
@ -0,0 +1,73 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-accessibility/orca/orca-3.8.2.ebuild,v 1.1 2013/08/02 20:49:29 eva Exp $
|
||||
|
||||
EAPI="5"
|
||||
GCONF_DEBUG="no"
|
||||
GNOME2_LA_PUNT="yes"
|
||||
PYTHON_COMPAT=( python3_3 )
|
||||
PYTHON_REQ_USE="threads"
|
||||
|
||||
inherit gnome2 python-r1
|
||||
|
||||
DESCRIPTION="Extensible screen reader that provides access to the desktop"
|
||||
HOMEPAGE="http://projects.gnome.org/orca/"
|
||||
|
||||
LICENSE="LGPL-2.1+ CC-BY-SA-3.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
|
||||
IUSE=""
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
|
||||
# liblouis is not in portage yet
|
||||
# it is used to provide contracted braille support
|
||||
# XXX: Check deps for correctness
|
||||
COMMON_DEPEND="
|
||||
>=app-accessibility/at-spi2-atk-2.5.91:2
|
||||
>=app-accessibility/at-spi2-core-2.5.91:2
|
||||
>=dev-libs/atk-2.5.91
|
||||
>=dev-libs/glib-2.28:2
|
||||
>=dev-python/pygobject-3.2.2:3[${PYTHON_USEDEP}]
|
||||
>=x11-libs/gtk+-3.5.16:3[introspection]
|
||||
${PYTHON_DEPS}
|
||||
"
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
>=app-accessibility/speech-dispatcher-0.8[python,${PYTHON_USEDEP}]
|
||||
dev-libs/atk[introspection]
|
||||
dev-python/pyatspi[${PYTHON_USEDEP}]
|
||||
dev-python/pycairo[${PYTHON_USEDEP}]
|
||||
dev-python/setproctitle[${PYTHON_USEDEP}]
|
||||
x11-libs/libwnck:3[introspection]
|
||||
x11-libs/pango[introspection]
|
||||
"
|
||||
DEPEND="${COMMON_DEPEND}
|
||||
app-text/yelp-tools
|
||||
>=dev-util/intltool-0.40
|
||||
virtual/pkgconfig
|
||||
"
|
||||
|
||||
src_prepare() {
|
||||
gnome2_src_prepare
|
||||
|
||||
python_copy_sources
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
python_foreach_impl run_in_build_dir gnome2_src_configure
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
python_foreach_impl run_in_build_dir gnome2_src_compile
|
||||
}
|
||||
|
||||
src_install() {
|
||||
DOCS="AUTHORS ChangeLog MAINTAINERS NEWS README TODO"
|
||||
installing() {
|
||||
gnome2_src_install
|
||||
# Massage shebang to make python_doscript happy
|
||||
sed -e 's:#!'"${PYTHON}:#!/usr/bin/python:" \
|
||||
-i src/orca/orca || die
|
||||
python_doscript src/orca/orca
|
||||
}
|
||||
python_foreach_impl run_in_build_dir installing
|
||||
}
|
@ -1,7 +1,15 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer>
|
||||
<email>maintainer-needed@gentoo.org</email>
|
||||
</maintainer>
|
||||
<herd>proxy-maintainers</herd>
|
||||
<maintainer>
|
||||
<email>nullishzero@gmail.com</email>
|
||||
<name>Pavel Kazakov</name>
|
||||
<description>Maintainer. Assign bugs to him</description>
|
||||
</maintainer>
|
||||
<maintainer>
|
||||
<email>pinkbyte@gentoo.org</email>
|
||||
<name>Sergey Popov</name>
|
||||
<description>Proxy maintainer. CC him on bugs</description>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
||||
|
@ -0,0 +1,83 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-admin/glance/glance-2013.1.2-r2.ebuild,v 1.3 2013/08/02 18:17:27 prometheanfire Exp $
|
||||
|
||||
EAPI=5
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Provides services for discovering, registering, and retrieving
|
||||
virtual machine images with Openstack"
|
||||
HOMEPAGE="https://launchpad.net/glance"
|
||||
SRC_URI="http://launchpad.net/${PN}/grizzly/${PV}/+download/${P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="ldap mysql postgres +sqlite +swift"
|
||||
REQUIRED_USE="|| ( ldap mysql postgres sqlite )"
|
||||
|
||||
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
|
||||
RDEPEND="${DEPEND}
|
||||
dev-python/boto
|
||||
dev-python/anyjson[${PYTHON_USEDEP}]
|
||||
>=dev-python/eventlet-0.9.12[${PYTHON_USEDEP}]
|
||||
>=dev-python/greenlet-0.3.1[${PYTHON_USEDEP}]
|
||||
dev-python/httplib2[${PYTHON_USEDEP}]
|
||||
dev-python/iso8601[${PYTHON_USEDEP}]
|
||||
>=dev-python/jsonschema-0.7[${PYTHON_USEDEP}]
|
||||
<dev-python/jsonschema-1[${PYTHON_USEDEP}]
|
||||
dev-python/kombu[${PYTHON_USEDEP}]
|
||||
dev-python/lxml[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-config-1.1.0[${PYTHON_USEDEP}]
|
||||
dev-python/passlib[${PYTHON_USEDEP}]
|
||||
dev-python/paste[${PYTHON_USEDEP}]
|
||||
dev-python/pastedeploy[${PYTHON_USEDEP}]
|
||||
dev-python/pycrypto
|
||||
>=dev-python/python-keystoneclient-0.2.0[${PYTHON_USEDEP}]
|
||||
dev-python/python-glanceclient[${PYTHON_USEDEP}]
|
||||
dev-python/routes[${PYTHON_USEDEP}]
|
||||
>=dev-python/sqlalchemy-migrate-0.7
|
||||
>=dev-python/webob-1.2[${PYTHON_USEDEP}]
|
||||
virtual/python-argparse[${PYTHON_USEDEP}]
|
||||
swift? (
|
||||
>=dev-python/python-swiftclient-1.2[${PYTHON_USEDEP}]
|
||||
<dev-python/python-swiftclient-2[${PYTHON_USEDEP}]
|
||||
)
|
||||
sqlite? ( >=dev-python/sqlalchemy-0.7[sqlite]
|
||||
<dev-python/sqlalchemy-0.8[sqlite] )
|
||||
mysql? ( >=dev-python/sqlalchemy-0.7[mysql]
|
||||
<dev-python/sqlalchemy-0.8[mysql] )
|
||||
postgres? ( >=dev-python/sqlalchemy-0.7[postgres]
|
||||
<dev-python/sqlalchemy-0.8[postgres] )
|
||||
ldap? ( dev-python/python-ldap )"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/glance-gbug-474064-grizzly.patch"
|
||||
)
|
||||
|
||||
python_install() {
|
||||
distutils-r1_python_install
|
||||
newconfd "${FILESDIR}/glance.confd" glance
|
||||
newinitd "${FILESDIR}/glance.initd" glance
|
||||
|
||||
for function in api registry scrubber; do
|
||||
dosym /etc/init.d/glance /etc/init.d/glance-${function}
|
||||
done
|
||||
|
||||
diropts -m 0750
|
||||
dodir /var/run/glance /var/log/nova /var/lock/nova
|
||||
keepdir /etc/glance
|
||||
insinto /etc/glance
|
||||
|
||||
doins "etc/glance-api-paste.ini"
|
||||
doins "etc/glance-api.conf"
|
||||
doins "etc/glance-cache.conf"
|
||||
doins "etc/glance-registry-paste.ini"
|
||||
doins "etc/glance-registry.conf"
|
||||
doins "etc/glance-scrubber.conf"
|
||||
doins "etc/logging.cnf.sample"
|
||||
doins "etc/policy.json"
|
||||
doins "etc/schema-image.json"
|
||||
}
|
@ -0,0 +1,83 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-admin/glance/glance-2013.1.9999.ebuild,v 1.1 2013/08/02 18:17:27 prometheanfire Exp $
|
||||
|
||||
EAPI=5
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
inherit git-2 distutils-r1
|
||||
|
||||
DESCRIPTION="Provides services for discovering, registering, and retrieving
|
||||
virtual machine images with Openstack"
|
||||
HOMEPAGE="https://launchpad.net/glance"
|
||||
EGIT_REPO_URI="https://github.com/openstack/glance.git"
|
||||
EGIT_BRANCH="stable/grizzly"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="ldap mysql postgres +sqlite +swift"
|
||||
REQUIRED_USE="|| ( ldap mysql postgres sqlite )"
|
||||
|
||||
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
|
||||
RDEPEND="${DEPEND}
|
||||
dev-python/boto
|
||||
dev-python/anyjson[${PYTHON_USEDEP}]
|
||||
>=dev-python/eventlet-0.9.12[${PYTHON_USEDEP}]
|
||||
>=dev-python/greenlet-0.3.1[${PYTHON_USEDEP}]
|
||||
dev-python/httplib2[${PYTHON_USEDEP}]
|
||||
dev-python/iso8601[${PYTHON_USEDEP}]
|
||||
>=dev-python/jsonschema-0.7[${PYTHON_USEDEP}]
|
||||
<dev-python/jsonschema-1[${PYTHON_USEDEP}]
|
||||
dev-python/kombu[${PYTHON_USEDEP}]
|
||||
dev-python/lxml[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-config-1.1.0[${PYTHON_USEDEP}]
|
||||
dev-python/passlib[${PYTHON_USEDEP}]
|
||||
dev-python/paste[${PYTHON_USEDEP}]
|
||||
dev-python/pastedeploy[${PYTHON_USEDEP}]
|
||||
dev-python/pycrypto
|
||||
>=dev-python/python-keystoneclient-0.2.0[${PYTHON_USEDEP}]
|
||||
dev-python/python-glanceclient[${PYTHON_USEDEP}]
|
||||
dev-python/routes[${PYTHON_USEDEP}]
|
||||
>=dev-python/sqlalchemy-migrate-0.7
|
||||
>=dev-python/webob-1.2[${PYTHON_USEDEP}]
|
||||
virtual/python-argparse[${PYTHON_USEDEP}]
|
||||
swift? (
|
||||
>=dev-python/python-swiftclient-1.2[${PYTHON_USEDEP}]
|
||||
<dev-python/python-swiftclient-2[${PYTHON_USEDEP}]
|
||||
)
|
||||
sqlite? ( >=dev-python/sqlalchemy-0.7[sqlite]
|
||||
<=dev-python/sqlalchemy-0.8[sqlite] )
|
||||
mysql? ( >=dev-python/sqlalchemy-0.7[mysql]
|
||||
<=dev-python/sqlalchemy-0.8[mysql] )
|
||||
postgres? ( >=dev-python/sqlalchemy-0.7[postgres]
|
||||
<=dev-python/sqlalchemy-0.8[postgres] )
|
||||
ldap? ( dev-python/python-ldap )"
|
||||
|
||||
python_install() {
|
||||
distutils-r1_python_install
|
||||
newconfd "${FILESDIR}/glance.confd" glance
|
||||
newinitd "${FILESDIR}/glance.initd" glance
|
||||
|
||||
for function in api registry scrubber; do
|
||||
dosym /etc/init.d/glance /etc/init.d/glance-${function}
|
||||
done
|
||||
|
||||
diropts -m 0750
|
||||
dodir /var/run/glance /var/log/glance /var/lib/glance/images /var/lib/glance/scrubber
|
||||
keepdir /etc/glance
|
||||
keepdir /var/log/glance
|
||||
keepdir /var/lib/glance/images
|
||||
keepdir /var/lib/glance/scrubber
|
||||
insinto /etc/glance
|
||||
|
||||
doins "etc/glance-api-paste.ini"
|
||||
doins "etc/glance-api.conf"
|
||||
doins "etc/glance-cache.conf"
|
||||
doins "etc/glance-registry-paste.ini"
|
||||
doins "etc/glance-registry.conf"
|
||||
doins "etc/glance-scrubber.conf"
|
||||
doins "etc/logging.cnf.sample"
|
||||
doins "etc/policy.json"
|
||||
doins "etc/schema-image.json"
|
||||
}
|
@ -1,31 +0,0 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-admin/psmon/psmon-1.39.ebuild,v 1.5 2013/07/31 21:44:27 vincent Exp $
|
||||
|
||||
inherit perl-app
|
||||
|
||||
DESCRIPTION="Monitors process table to slay aggressive, and spawn dead, processes"
|
||||
HOMEPAGE="http://www.psmon.com/"
|
||||
SRC_URI="http://www.psmon.com/${P}.tar.gz"
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ppc x86"
|
||||
IUSE=""
|
||||
|
||||
DEPEND=">=dev-lang/perl-5.6.0
|
||||
dev-perl/config-general
|
||||
dev-perl/Proc-ProcessTable
|
||||
dev-perl/Unix-Syslog
|
||||
virtual/perl-Getopt-Long"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
src_install() {
|
||||
perl-module_src_install
|
||||
insinto /etc
|
||||
doins etc/psmon.conf
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
einfo "NOTICE: Please modify at least the NotifyEmail parameter found in"
|
||||
einfo "the /etc/psmon.conf file"
|
||||
}
|
@ -1,2 +1 @@
|
||||
DIST salt-0.15.3.tar.gz 3427038 SHA256 19e2ca70b60cad9a2752d1c16d007a243f3dbf4a00bba24d8ecfba1b59e135b2 SHA512 f3cb1956862b3390b8f5bf2fa23dff42f98d4a413c8ba247241e9be06185a9a1ca2aa95f39fecfacc932d4287085e0e56547edf10f94f2f634005941486ff434 WHIRLPOOL 4904879107aead968104bb671d25e57fc6e6e3bd4ed9a01c9edfb225e6ce3d07138e3fda4eb0a3c8ff0bbc3b5214c4ca42026e8708f1a1d798f3f6a59f988138
|
||||
DIST salt-0.16.0.tar.gz 3523789 SHA256 2f79012838a5e674f5cd2126326606bffc3b3cb24c33d8667a11158241b656fc SHA512 1f02b20b71922717cf1ae4ab012e0e2b502a57d52b06ed446ab2fb3ce08912b1bc0a4ed702b0189b1890588af7b3ce94d98bc61815d9d3c03e650b88205fc7f9 WHIRLPOOL 5a597b3804576a5ace0e3f6cd937f81db25bf95b731f646a153c9af2bd28826116b2300f125e02cb5929c1dc8a1a4afcff446be2ee7c7bf2546a3b279f4930ab
|
||||
|
@ -1,69 +0,0 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-admin/salt/salt-0.15.3.ebuild,v 1.1 2013/06/04 17:33:41 chutzpah Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=(python{2_6,2_7})
|
||||
|
||||
inherit eutils distutils-r1
|
||||
|
||||
DESCRIPTION="Salt is a remote execution and configuration manager."
|
||||
HOMEPAGE="http://saltstack.org/"
|
||||
|
||||
if [[ ${PV} == 9999* ]]; then
|
||||
inherit git-2
|
||||
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="ldap libvirt mako mongodb mysql openssl redis test"
|
||||
|
||||
RDEPEND=">=dev-python/pyzmq-2.1.9[${PYTHON_USEDEP}]
|
||||
dev-python/msgpack[${PYTHON_USEDEP}]
|
||||
dev-python/pyyaml[${PYTHON_USEDEP}]
|
||||
dev-python/m2crypto[${PYTHON_USEDEP}]
|
||||
dev-python/pycrypto[${PYTHON_USEDEP}]
|
||||
dev-python/pycryptopp[${PYTHON_USEDEP}]
|
||||
dev-python/jinja[${PYTHON_USEDEP}]
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
mako? ( dev-python/mako[${PYTHON_USEDEP}] )
|
||||
ldap? ( dev-python/python-ldap[${PYTHON_USEDEP}] )
|
||||
openssl? ( dev-python/pyopenssl[${PYTHON_USEDEP}] )
|
||||
libvirt? ( app-emulation/libvirt[python] )
|
||||
mongodb? ( dev-python/pymongo[${PYTHON_USEDEP}] )
|
||||
mysql? ( dev-python/mysql-python[${PYTHON_USEDEP}] )
|
||||
redis? ( dev-python/redis-py[${PYTHON_USEDEP}] )"
|
||||
DEPEND="test? (
|
||||
dev-python/virtualenv
|
||||
${RDEPEND}
|
||||
)"
|
||||
|
||||
python_prepare() {
|
||||
sed -i '/install_requires=/ d' setup.py || die "sed failed"
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
for s in minion master syndic; do
|
||||
newinitd "${FILESDIR}"/${s}-initd-1 salt-${s}
|
||||
newconfd "${FILESDIR}"/${s}-confd-1 salt-${s}
|
||||
done
|
||||
|
||||
insinto /etc/${PN}
|
||||
doins conf/*
|
||||
|
||||
dodoc README.rst AUTHORS
|
||||
}
|
||||
|
||||
python_test() {
|
||||
# testsuite likes lots of files
|
||||
ulimit -n 3072
|
||||
SHELL="/bin/bash" TMPDIR=/tmp ./tests/runtests.py --unit-tests --no-report || die
|
||||
}
|
@ -1,3 +1,3 @@
|
||||
DIST webapp-config-1.50.16.tar.gz 103576 SHA256 cd5cf95d0abc9b469b08e6fffa885df10d3651d558164d35efe8e45df1fc8a5f SHA512 5dee7ee47a228af42d1f417ec004057559f2afbe2ffed668c4c2ecc16a63aae4f7e2b4a56fbe701db15e18c7bd207aed4c5505dff9245b25a9868e0ceef9aeea WHIRLPOOL c605be239c8dfa7422580e8e6932c2ae6b311a972783e93cb1dcf0af2d5ad76be57d71316ad212a094a1b0139fdcb0f64304446c2eb4e56b9eeb3af379afa35d
|
||||
DIST webapp-config-1.50.18.tar.gz 107458 SHA256 4fdc1f714025a00de237fd494dc7529890cb396cfdc5306d5478fba1745dd797 SHA512 b32d71de5c2b33a0d3ebc9a42951fc8d9ea3febe71945fabc0c95782da0fe6e108c8abdc6c3debfa083ee6be6b4624ad0cfc28abea05c4e8501b89845484e003 WHIRLPOOL d073866ab02655af2fa7fc82f34f68ee47c69eaa9c3b2e3e4e29c7457c7acc7766631aaff41419857f1cdb3ebd657917f83172ca4568d7dc09db1633aadd92ec
|
||||
DIST webapp-config-1.50.19.tar.bz2 58884 SHA256 9346d2c37e06da43d083b09bb5d908692ead14b5ef7393a5d18a57f4d4b2ac58 SHA512 ce11181cedf09e8c297a11a7f72bc9c9a76b832052ad2d908f6132f4dc8f660cf234315499400b0e5499ecd2bda3d01cd1ba7ab10e874dccd704154d216b8088 WHIRLPOOL 899ec0c320bc6c8714196b829cf8850e644f3293c9525cfe999ae6406dd2d487386a08823d2be95d09048114b16434f46eafca42d7b0b8b070b1aebc155559be
|
||||
DIST webapp-config-1.51.tar.bz2 62910 SHA256 e8db10184efbe3ce23c39b67e626da8302e4d1b3db54d67e5e18bae07f4c3a1d SHA512 b1e8b3601565e2c3d2fd7d842354ed483cb59168171485a41c8feeb93abb51a009534709513682cf981396f43d180df0746c02b028e98778b9f12c9a47a4ded0 WHIRLPOOL da9a46cca165d8506462f43c4e4d98ae56836bf11330c6fa12472c7facd550fb801f85829b65974e6de3b56e5ba119e0a15de9f6dfe4f67420a564960c0bacb7
|
||||
|
@ -1,72 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-admin/webapp-config/webapp-config-1.50.18.ebuild,v 1.2 2012/04/27 19:43:57 blueness Exp $
|
||||
|
||||
EAPI="3"
|
||||
PYTHON_DEPEND="2"
|
||||
SUPPORT_PYTHON_ABIS="1"
|
||||
|
||||
inherit distutils eutils
|
||||
|
||||
DESCRIPTION="Gentoo's installer for web-based applications"
|
||||
HOMEPAGE="http://sourceforge.net/projects/webapp-config/"
|
||||
SRC_URI="mirror://gentoo/${P}.tar.gz
|
||||
mirror://sourceforge/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
|
||||
IUSE=""
|
||||
|
||||
DEPEND=""
|
||||
RDEPEND=""
|
||||
RESTRICT_PYTHON_ABIS="3.*"
|
||||
|
||||
PYTHON_MODNAME="WebappConfig"
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}/${PN}-1.50.16-apache-move.patch"
|
||||
epatch "${FILESDIR}/${PN}-1.50.16-baselayout2.patch"
|
||||
epatch "${FILESDIR}/${PN}-1.50.16-htdocs-symlink.patch"
|
||||
#UPSTREAM-MERGED#epatch "${FILESDIR}/${PN}-1.50.16-absolute-paths.patch"
|
||||
epatch "${FILESDIR}/${PN}-1.50.16-update-servers.patch"
|
||||
# Do not build nor install eclass manual, bug 322759
|
||||
rm -f doc/webapp.eclass.5*
|
||||
sed -e '/MAN_PAGES/s/webapp.eclass.5//' \
|
||||
-e '/HTML_PAGES/s/webapp.eclass.5.html//' \
|
||||
-i doc/Makefile || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# According to this discussion:
|
||||
# http://mail.python.org/pipermail/distutils-sig/2004-February/003713.html
|
||||
# distutils does not provide for specifying two different script install
|
||||
# locations. Since we only install one script here the following should
|
||||
# be ok
|
||||
distutils_src_install --install-scripts="/usr/sbin"
|
||||
|
||||
insinto /etc/vhosts
|
||||
doins config/webapp-config
|
||||
|
||||
keepdir /usr/share/webapps
|
||||
keepdir /var/db/webapps
|
||||
|
||||
dodoc examples/phpmyadmin-2.5.4-r1.ebuild AUTHORS.txt CHANGES.txt examples/postinstall-en.txt
|
||||
doman doc/*.[58]
|
||||
dohtml doc/*.[58].html
|
||||
}
|
||||
|
||||
src_test() {
|
||||
testing() {
|
||||
PYTHONPATH="." "$(PYTHON)" WebappConfig/tests/dtest.py
|
||||
}
|
||||
python_execute_function testing
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
distutils_pkg_postinst
|
||||
|
||||
elog "Now that you have upgraded webapp-config, you **must** update your"
|
||||
elog "config files in /etc/vhosts/webapp-config before you emerge any"
|
||||
elog "packages that use webapp-config."
|
||||
}
|
@ -1,3 +1 @@
|
||||
DIST mecab-ipadic-2.7.0-20060707.tar.gz 12025605 SHA256 da118657bd1c621bcae337baec6931d35592efa2098f49ef82da8ebd3c5d5805 SHA512 b558be7111ca7f77d93bd06ae61b34417720c58c62696ab0b1e10141d9e43d90ea157df167081e254d1698837661b75d6c47d4d58183fb9ecbe375926639f053 WHIRLPOOL 231bae58be84e481573d00561a3d5129dc35dd5d81bc61e04fddaac8db3d601d78988f3ca23ebd9aff4e39bd87addf0896d366582409c94e731e61cc7a377f7c
|
||||
DIST mecab-ipadic-2.7.0-20070610.tar.gz 12125695 SHA256 77a678efddb6f932b4c87fdd299458c3122591044102517e526587a0582ff9d3 SHA512 3e48445c5d32ddb9968bf9eb842688cc349767280f27329d4186d553dd5d13c91b998a37fd5d5d1dd9ac1a8abe26b721a7f03fe3f4e4f3ec6cbedb67d5396f77 WHIRLPOOL 3353e3766bfc0b2cef91324b2c2111e40b1b41cb021de8c865d5fd7f4261b2e22934d53a85fb7a92019e5e0fa17ee388ada8d1cc9e80d235bcc534867fa27ceb
|
||||
DIST mecab-ipadic-2.7.0-20070801.tar.gz 12208105 SHA256 b62f527d881c504576baed9c6ef6561554658b175ce6ae0096a60307e49e3523 SHA512 35ea662cb62f1967849f7ed5781bd6dafef0fe20d63e88d9a0057666e57ed23d5a0e6fb8d0701a0cc4da43a1050c1b02463bb862decc71c36b7fc2acdc158d86 WHIRLPOOL 0e769455d0f0db53e1801cc68483b412f0f070a37460644dc7fe43c27d60200d417e4e55b41a39dc2737a0e99ded568ebf0781bff2f33d3cba7132eb271e5781
|
||||
|
@ -1,35 +0,0 @@
|
||||
# Copyright 1999-2009 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-dicts/mecab-ipadic/mecab-ipadic-2.7.0.20060707.ebuild,v 1.9 2009/12/27 17:17:04 armin76 Exp $
|
||||
|
||||
IUSE="unicode"
|
||||
|
||||
MY_P=${PN}-${PV%.*}-${PV/*.}
|
||||
|
||||
DESCRIPTION="IPA dictionary for MeCab"
|
||||
HOMEPAGE="http://mecab.sourceforge.net/"
|
||||
SRC_URI="mirror://sourceforge/mecab/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="ipadic"
|
||||
KEYWORDS="amd64 ~arm ~ia64 ppc ppc64 sparc x86"
|
||||
SLOT="0"
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
DEPEND=">=app-text/mecab-0.90"
|
||||
|
||||
src_compile() {
|
||||
|
||||
local myconf
|
||||
|
||||
use unicode && myconf="${myconf} --with-charset=utf8"
|
||||
|
||||
econf ${myconf} || die
|
||||
emake || die
|
||||
|
||||
}
|
||||
|
||||
src_install() {
|
||||
|
||||
emake DESTDIR="${D}" install || die
|
||||
|
||||
}
|
@ -1,35 +0,0 @@
|
||||
# Copyright 1999-2009 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-dicts/mecab-ipadic/mecab-ipadic-2.7.0.20070610.ebuild,v 1.8 2009/12/27 17:17:04 armin76 Exp $
|
||||
|
||||
IUSE="unicode"
|
||||
|
||||
MY_P="${PN}-${PV%.*}-${PV/*.}"
|
||||
|
||||
DESCRIPTION="IPA dictionary for MeCab"
|
||||
HOMEPAGE="http://mecab.sourceforge.net/"
|
||||
SRC_URI="mirror://sourceforge/mecab/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="ipadic"
|
||||
KEYWORDS="amd64 ~arm ia64 ppc ppc64 sparc x86"
|
||||
SLOT="0"
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
DEPEND=">=app-text/mecab-0.90"
|
||||
|
||||
src_compile() {
|
||||
|
||||
local myconf
|
||||
|
||||
use unicode && myconf="${myconf} --with-charset=utf8"
|
||||
|
||||
econf ${myconf} || die
|
||||
emake || die
|
||||
|
||||
}
|
||||
|
||||
src_install() {
|
||||
|
||||
emake DESTDIR="${D}" install || die
|
||||
|
||||
}
|
@ -1,2 +1,3 @@
|
||||
DIST jde-2.4.0.1.tar.bz2 3719643 SHA256 1481962464e18a11e6dc52a175200d726b0731cca5e09367f510266a424f822a SHA512 ed7957c5ec7a0fb9cdfc87d2f227f7850627e494a4d85712dfb401f4dbb64bad764b104ce41cbd363d4779c404997cd9adb2fa32a33bba4bc644ac1a5aee9ff1 WHIRLPOOL 9f71e0527b2af496c60c4e5549838cb907af4257e07a857eaa00b4ffe8d2a9be2b3d91340b5352c7a55bf540c225d8a621c811df29f095a630f80f11e89ac45f
|
||||
DIST jde-2.4.1_pre20110622.tar.gz 3813917 SHA256 ed565e4c644ade7d30d2f7c3e811d9c10df9e86b1aa1ebc81a8d66d62537b5f8 SHA512 b3b653eb396059d7d3de50f9f35869920c901580b18529c5cd4e8c52629bab81a253f0792369c63137570554b44d29417ff42299b8fcf6e2e86941164a1b7498 WHIRLPOOL 961ed023d2af3cdbb5166bb4fdfb32dd176eda18d750180dfec397c6278edb7c914c7925e59ffd5aeeac62ea4baf12dac7fe371b6f89931aa2b6a75e4829c2ac
|
||||
DIST jdee-2.4.1.tar.xz 2742232 SHA256 24241376837361e23a2c181775423ac248e441e3ced513e21cbef30529cbeb43 SHA512 5ce5f0f84b2502e9af808f33210511e8b7682902b1f342d678fe42dd8f9f3690b90ef7bb22583550eb769818782c50f545d6baf47b52bc7f4502fab411ab5359 WHIRLPOOL c20988fc59fdd453e9942b53d444605dd3738a9978e2bd6a67d30b550e5510926056bc0b7734a9fdf4fd7c4ac09a2bbd1baaf35b92bc94438b378d722ab76a37
|
||||
|
@ -1,3 +1,5 @@
|
||||
DIST kvm-kmod-2.6.32.27.tar.bz2 278391 SHA256 801cbd622b3856ff4ba55e4cb7efe3604ce76200b78d99f8f38c18f2f9ac71e1 SHA512 0041067f4fad6e8dd2183659f937f5b86864c5ae02bc10a39360e99c85ef81548a0d48d4b13983cd42d3d0b8abc98e710b030e9f2ebcaeadc5492e4cfb25b139 WHIRLPOOL b0af858bece5fef694a5423fa783fe1761bcaf99203a353ada7a29bd85b5ca3e16d3c2a558acadcbc4c3bbaeff4d4eb451e293d5dfd61e4dc20027e0f265967c
|
||||
DIST kvm-kmod-3.10.1.tar.bz2 302264 SHA256 2b9ae4e36690804fabb1eac4028495f99939f6abe5518c3f98c3d7c8dd488898 SHA512 d86edc933bbb41d7139c56143084c37c8fb6973993756ed8177afbb2e0f4f620dba749f2ebd1e2e90eb70a1a5ea40712c3b5fc3c1aee3d3f131ec39a1b2d80bf WHIRLPOOL 0946ed02b7c0287c02e9d4b75875ef7a4bd46281a6b107cc7115e787d760803724286f4a517f47a286e7c880e895e88cdc69775399d03a8b196815bc62bd7dee
|
||||
DIST kvm-kmod-3.3.6.tar.bz2 275650 SHA256 b6edcf64c468e4a880d7b633c716805462c07546d93799791c9d3eb6166e593f SHA512 6258d532576c2b10dc3410bb9d7af390268d6dd56195e4b66057a7c991a32fec782289d9cdc4894c8dccb88d87ecb574645529430dd0ac85f8344b304286d046 WHIRLPOOL e422e2c065feaf611c2e1a5e2d308f5f4198fa19d96156371ef7fcc17bd898599b34cba0b6106f1a15bf20f9fa5eaf6ae0dabdcd7bbfa228238ce057848e120b
|
||||
DIST kvm-kmod-3.4.tar.bz2 280821 SHA256 94a7ce2d0f06c7b9f913be3432e768a2340e50235845fc4e9027abed8aee3291 SHA512 868a554c9ba3a1418f0aa9bdd894ab114e3d59acfa27b3759e362f4631d972f7f48d70563e5ba3e973595195c27fda0c1138c030fd27abdbb8da71103b65cfaa WHIRLPOOL ce99ca65748b12e82a18f67f724eb27cc31310019f8fda15293d6eab9d18dd1a20b9b311fc77162a73f90591d7d772373645dbf02a707c8ca218b2c6840b8bed
|
||||
DIST kvm-kmod-3.6.tar.bz2 278798 SHA256 74f6bb8de670d5eac58612142c1d504cf0e98325343e8443f9752197e43e1595 SHA512 27042527343926f5c6be41789305b6d8ca888e18e92e95a7bbcc18712865d97ff0b392d46356c57280134f3b2892ed5725975b72715aae22c4e1b02f4378e4f4 WHIRLPOOL 765549376aa3f7c2db11a79c8e5e055e330d211e36bfa03cda41a85e846a89f49d2dd17da219b1c742d1f2bbb89148a0ef2d019940756db7680acdef52c19bf8
|
||||
DIST kvm-kmod-3.8.tar.bz2 289028 SHA256 55da50de9c801c9136c312887d5ffd462e80f55f363e88f0928eeb1450b814a1 SHA512 05d04509fc86a0eec0ae408404b15f5ce2eb640c12aacd09b9bb54ffe10b9bb88dff53329ddb7e960a5388cf2e20a07341e1d829e173603b52cbb58d792c87c4 WHIRLPOOL f63628cfff99ca0f9e10cb2afef6cb03b31adbfa0b2c3e056717c2df4da119e760b90a81a0cf1456ddfd7aa79ddb19452102c7600df4767275c49156ea140de9
|
||||
|
@ -1,6 +1,6 @@
|
||||
# Copyright 1999-2011 Gentoo Foundation
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-emulation/kvm-kmod/kvm-kmod-2.6.32.27.ebuild,v 1.1 2011/05/25 14:56:34 cardoe Exp $
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-emulation/kvm-kmod/kvm-kmod-3.10.1.ebuild,v 1.1 2013/08/02 13:33:37 cardoe Exp $
|
||||
|
||||
EAPI="2"
|
||||
|
@ -0,0 +1,68 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-emulation/kvm-kmod/kvm-kmod-3.6.ebuild,v 1.1 2013/08/02 13:33:37 cardoe Exp $
|
||||
|
||||
EAPI="2"
|
||||
|
||||
inherit eutils linux-mod
|
||||
|
||||
SRC_URI="mirror://sourceforge/kvm/${P}.tar.bz2"
|
||||
|
||||
DESCRIPTION="Kernel-based Virtual Machine kernel modules"
|
||||
HOMEPAGE="http://www.linux-kvm.org"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="-* ~amd64 ~x86"
|
||||
IUSE=""
|
||||
RESTRICT="test"
|
||||
|
||||
RDEPEND=""
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
pkg_setup() {
|
||||
linux-mod_pkg_setup
|
||||
|
||||
linux_config_exists || die "Your kernel sources are unconfigured"
|
||||
|
||||
if ! linux_chkconfig_present KVM; then
|
||||
eerror "KVM now needs CONFIG_KVM built into your kernel, even"
|
||||
eerror "if you're using the external modules from this package."
|
||||
eerror "Please enable KVM support in your kernel, found at:"
|
||||
eerror
|
||||
eerror " Virtualization"
|
||||
eerror " Kernel-based Virtual Machine (KVM) support"
|
||||
eerror
|
||||
die "KVM support not detected!"
|
||||
fi
|
||||
BUILD_TARGETS="all"
|
||||
MODULE_NAMES="kvm(kernel/arch/x86/kvm/:${S}:${S}/x86)"
|
||||
MODULE_NAMES="${MODULE_NAMES} kvm-intel(kernel/arch/x86/kvm/:${S}:${S}/x86)"
|
||||
MODULE_NAMES="${MODULE_NAMES} kvm-amd(kernel/arch/x86/kvm/:${S}:${S}/x86)"
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local conf_opts
|
||||
|
||||
conf_opts="--kerneldir=$KV_DIR"
|
||||
|
||||
if has_multilib_profile && [[ "${DEFAULT_ABI}" == "x86" ]] ; then
|
||||
conf_opts="$conf_opts --arch=x86"
|
||||
fi
|
||||
|
||||
./configure ${conf_opts} || die "configure failed"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
linux-mod_src_compile
|
||||
}
|
||||
|
||||
src_install() {
|
||||
linux-mod_src_install
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
find /lib/modules/${KV_FULL} -name 'kvm*.ko' -type f -delete
|
||||
|
||||
linux-mod_pkg_preinst
|
||||
}
|
@ -0,0 +1,68 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-emulation/kvm-kmod/kvm-kmod-3.8.ebuild,v 1.1 2013/08/02 13:33:37 cardoe Exp $
|
||||
|
||||
EAPI="2"
|
||||
|
||||
inherit eutils linux-mod
|
||||
|
||||
SRC_URI="mirror://sourceforge/kvm/${P}.tar.bz2"
|
||||
|
||||
DESCRIPTION="Kernel-based Virtual Machine kernel modules"
|
||||
HOMEPAGE="http://www.linux-kvm.org"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="-* ~amd64 ~x86"
|
||||
IUSE=""
|
||||
RESTRICT="test"
|
||||
|
||||
RDEPEND=""
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
pkg_setup() {
|
||||
linux-mod_pkg_setup
|
||||
|
||||
linux_config_exists || die "Your kernel sources are unconfigured"
|
||||
|
||||
if ! linux_chkconfig_present KVM; then
|
||||
eerror "KVM now needs CONFIG_KVM built into your kernel, even"
|
||||
eerror "if you're using the external modules from this package."
|
||||
eerror "Please enable KVM support in your kernel, found at:"
|
||||
eerror
|
||||
eerror " Virtualization"
|
||||
eerror " Kernel-based Virtual Machine (KVM) support"
|
||||
eerror
|
||||
die "KVM support not detected!"
|
||||
fi
|
||||
BUILD_TARGETS="all"
|
||||
MODULE_NAMES="kvm(kernel/arch/x86/kvm/:${S}:${S}/x86)"
|
||||
MODULE_NAMES="${MODULE_NAMES} kvm-intel(kernel/arch/x86/kvm/:${S}:${S}/x86)"
|
||||
MODULE_NAMES="${MODULE_NAMES} kvm-amd(kernel/arch/x86/kvm/:${S}:${S}/x86)"
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local conf_opts
|
||||
|
||||
conf_opts="--kerneldir=$KV_DIR"
|
||||
|
||||
if has_multilib_profile && [[ "${DEFAULT_ABI}" == "x86" ]] ; then
|
||||
conf_opts="$conf_opts --arch=x86"
|
||||
fi
|
||||
|
||||
./configure ${conf_opts} || die "configure failed"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
linux-mod_src_compile
|
||||
}
|
||||
|
||||
src_install() {
|
||||
linux-mod_src_install
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
find /lib/modules/${KV_FULL} -name 'kvm*.ko' -type f -delete
|
||||
|
||||
linux-mod_pkg_preinst
|
||||
}
|
@ -1,3 +1,2 @@
|
||||
DIST libvirt-glib-0.1.5.tar.gz 709647 SHA256 b3a4fea273cb52890812a5d4033556c5221112c7fe47da2838de72641e547cbb SHA512 1bbb69348f80a8560e6eaffe396e8087fc01fa7a022b009b95a776b34db69a6ee5438e496d2a57cb2cb7273b702962f76d4fe6abc0a721f22bab74438943735d WHIRLPOOL 75d5d232fddcdf0b8d8db78cf5e4b9f160c5a74d932f29adcf5c6bfb1fa012084fd736bb6a2b60ee7d8d2b05ae9dc93a5fa5f62099162e5c7b211627b57417c9
|
||||
DIST libvirt-glib-0.1.6.tar.gz 710452 SHA256 274b88584db94bb5d404e5398d6b5ef184afad49a2e4b3f4f6c47ba940bf55bf SHA512 485f6ee7f3bab4f2348bb47cb435ca85c0f12fb21f435cbc0b024560a4b68217914d0492d76e9f2d2bc7c8a9ae7d43d52338c0a081dd9fe779f36551dce60f80 WHIRLPOOL 16d16f4ecb2b1d6711bc913728b8e53299718d17ac7ef00f779caab892be3ff101451aebf06104190797d7998f26dc1bbc7e24d65c544bedb75cbe48b4586c74
|
||||
DIST libvirt-glib-0.1.7.tar.gz 746318 SHA256 39652c07d95f980ff30b39e0fd072e768fb85d778d65432da24b17dee9d36429 SHA512 a6e296afbee64424009119036637fe96bbd703c9209e832fbf9fe1ad82054ce39017ce4e2e0b4d59559193dee2de50d72d171701eacfebd3baccb61ff3216662 WHIRLPOOL 76dd9b033981da1034ac7e4f706dcc5c97b361a2f37a6a6d36850f0035e0dd5a1d7e0ff60ed42d4b6e8737a12e25c47866b22054eb41dad85ff5b39d85b58a4c
|
||||
|
@ -1,40 +0,0 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-emulation/libvirt-glib/libvirt-glib-0.1.5.ebuild,v 1.1 2013/01/14 20:25:03 cardoe Exp $
|
||||
|
||||
EAPI=5
|
||||
GCONF_DEBUG="no"
|
||||
GNOME2_LA_PUNT="yes"
|
||||
VALA_MIN_API_VERSION="0.14"
|
||||
PYTHON_COMPAT=( python{2_6,2_7} )
|
||||
|
||||
inherit gnome2 python-single-r1 vala
|
||||
|
||||
DESCRIPTION="GLib and GObject mappings for libvirt"
|
||||
HOMEPAGE="http://libvirt.org/git/?p=libvirt-glib.git"
|
||||
SRC_URI="ftp://libvirt.org/libvirt/glib/${P}.tar.gz"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="+introspection python +vala"
|
||||
REQUIRED_USE="vala? ( introspection )"
|
||||
|
||||
RDEPEND="dev-libs/libxml2:2
|
||||
>=app-emulation/libvirt-0.9.10:=
|
||||
>=dev-libs/glib-2.10:2
|
||||
introspection? ( >=dev-libs/gobject-introspection-0.10.8:= )
|
||||
python? ( ${PYTHON_DEPS} )"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-util/gtk-doc-am
|
||||
virtual/pkgconfig
|
||||
vala? ( $(vala_depend) )"
|
||||
|
||||
pkg_setup() {
|
||||
G2CONF+="--disable-test-coverage
|
||||
--disable-static
|
||||
$(use_enable introspection)
|
||||
$(use_enable vala)
|
||||
$(use_with python)"
|
||||
use python && python-single-r1_pkg_setup
|
||||
}
|
@ -1,432 +0,0 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-emulation/libvirt/libvirt-1.0.5.2.ebuild,v 1.3 2013/07/04 12:25:08 ago Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
#BACKPORTS=b8430867
|
||||
AUTOTOOLIZE=yes
|
||||
|
||||
MY_P="${P/_rc/-rc}"
|
||||
|
||||
PYTHON_DEPEND="python? 2:2.5"
|
||||
#RESTRICT_PYTHON_ABIS="3.*"
|
||||
#SUPPORT_PYTHON_ABIS="1"
|
||||
|
||||
inherit eutils python user autotools linux-info systemd
|
||||
|
||||
if [[ ${PV} = *9999* ]]; then
|
||||
inherit git-2
|
||||
EGIT_REPO_URI="git://libvirt.org/libvirt.git"
|
||||
AUTOTOOLIZE=yes
|
||||
SRC_URI=""
|
||||
KEYWORDS=""
|
||||
else
|
||||
SRC_URI="http://libvirt.org/sources/stable_updates/${MY_P}.tar.gz
|
||||
ftp://libvirt.org/libvirt/stable_updates/${MY_P}.tar.gz
|
||||
${BACKPORTS:+
|
||||
http://dev.gentoo.org/~cardoe/distfiles/${MY_P}-${BACKPORTS}.tar.xz}"
|
||||
KEYWORDS="amd64 x86"
|
||||
fi
|
||||
S="${WORKDIR}/${P%_rc*}"
|
||||
|
||||
DESCRIPTION="C toolkit to manipulate virtual machines"
|
||||
HOMEPAGE="http://www.libvirt.org/"
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0"
|
||||
IUSE="audit avahi +caps firewalld fuse iscsi +libvirtd lvm lxc +macvtap nfs \
|
||||
nls numa openvz parted pcap phyp policykit python +qemu rbd sasl \
|
||||
selinux +udev uml +vepa virtualbox virt-network xen elibc_glibc \
|
||||
systemd"
|
||||
REQUIRED_USE="libvirtd? ( || ( lxc openvz qemu uml virtualbox xen ) )
|
||||
lxc? ( caps libvirtd )
|
||||
openvz? ( libvirtd )
|
||||
qemu? ( libvirtd )
|
||||
uml? ( libvirtd )
|
||||
vepa? ( macvtap )
|
||||
virtualbox? ( libvirtd )
|
||||
xen? ( libvirtd )
|
||||
virt-network? ( libvirtd )
|
||||
firewalld? ( virt-network )"
|
||||
|
||||
# gettext.sh command is used by the libvirt command wrappers, and it's
|
||||
# non-optional, so put it into RDEPEND.
|
||||
# We can use both libnl:1.1 and libnl:3, but if you have both installed, the
|
||||
# package will use 3 by default. Since we don't have slot pinning in an API,
|
||||
# we must go with the most recent
|
||||
RDEPEND="sys-libs/readline
|
||||
sys-libs/ncurses
|
||||
>=net-misc/curl-7.18.0
|
||||
dev-libs/libgcrypt
|
||||
>=dev-libs/libxml2-2.7.6
|
||||
dev-libs/libnl:3
|
||||
>=net-libs/gnutls-1.0.25
|
||||
net-libs/libssh2
|
||||
sys-apps/dmidecode
|
||||
>=sys-apps/util-linux-2.17
|
||||
sys-devel/gettext
|
||||
>=net-analyzer/netcat6-1.0-r2
|
||||
app-misc/scrub
|
||||
audit? ( sys-process/audit )
|
||||
avahi? ( >=net-dns/avahi-0.6[dbus] )
|
||||
caps? ( sys-libs/libcap-ng )
|
||||
fuse? ( >=sys-fs/fuse-2.8.6 )
|
||||
iscsi? ( sys-block/open-iscsi )
|
||||
lxc? ( sys-power/pm-utils )
|
||||
lvm? ( >=sys-fs/lvm2-2.02.48-r2 )
|
||||
nfs? ( net-fs/nfs-utils )
|
||||
numa? (
|
||||
>sys-process/numactl-2.0.2
|
||||
sys-process/numad
|
||||
)
|
||||
openvz? ( sys-kernel/openvz-sources )
|
||||
parted? (
|
||||
>=sys-block/parted-1.8[device-mapper]
|
||||
sys-fs/lvm2
|
||||
)
|
||||
pcap? ( >=net-libs/libpcap-1.0.0 )
|
||||
policykit? ( >=sys-auth/polkit-0.9 )
|
||||
qemu? (
|
||||
>=app-emulation/qemu-0.13.0
|
||||
dev-libs/yajl
|
||||
sys-power/pm-utils
|
||||
)
|
||||
rbd? ( sys-cluster/ceph )
|
||||
sasl? ( dev-libs/cyrus-sasl )
|
||||
selinux? ( >=sys-libs/libselinux-2.0.85 )
|
||||
virtualbox? ( || ( app-emulation/virtualbox >=app-emulation/virtualbox-bin-2.2.0 ) )
|
||||
xen? ( app-emulation/xen-tools app-emulation/xen )
|
||||
udev? ( virtual/udev >=x11-libs/libpciaccess-0.10.9 )
|
||||
virt-network? ( net-dns/dnsmasq
|
||||
>=net-firewall/iptables-1.4.10
|
||||
net-misc/radvd
|
||||
net-firewall/ebtables
|
||||
sys-apps/iproute2[-minimal]
|
||||
firewalld? ( net-firewall/firewalld )
|
||||
)
|
||||
elibc_glibc? ( || ( >=net-libs/libtirpc-0.2.2-r1 <sys-libs/glibc-2.14 ) )"
|
||||
# one? ( dev-libs/xmlrpc-c )
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig
|
||||
app-text/xhtml1
|
||||
dev-libs/libxslt
|
||||
=dev-lang/python-2*"
|
||||
|
||||
LXC_CONFIG_CHECK="
|
||||
~CGROUPS
|
||||
~CGROUP_FREEZER
|
||||
~CGROUP_DEVICE
|
||||
~CGROUP_CPUACCT
|
||||
~CGROUP_SCHED
|
||||
~CGROUP_PERF
|
||||
~BLK_CGROUP
|
||||
~NET_CLS_CGROUP
|
||||
~NETPRIO_CGROUP
|
||||
~CPUSETS
|
||||
~RESOURCE_COUNTERS
|
||||
~NAMESPACES
|
||||
~UTS_NS
|
||||
~IPC_NS
|
||||
~PID_NS
|
||||
~NET_NS
|
||||
~DEVPTS_MULTIPLE_INSTANCES
|
||||
~VETH
|
||||
~MACVLAN
|
||||
~POSIX_MQUEUE
|
||||
~!GRKERNSEC_CHROOT_MOUNT
|
||||
~!GRKERNSEC_CHROOT_DOUBLE
|
||||
~!GRKERNSEC_CHROOT_PIVOT
|
||||
~!GRKERNSEC_CHROOT_CHMOD
|
||||
~!GRKERNSEC_CHROOT_CAPS
|
||||
"
|
||||
|
||||
VIRTNET_CONFIG_CHECK="
|
||||
~BRIDGE_NF_EBTABLES
|
||||
~BRIDGE_EBT_MARK_T
|
||||
~NETFILTER_ADVANCED
|
||||
~NETFILTER_XT_TARGET_CHECKSUM
|
||||
~NETFILTER_XT_CONNMARK
|
||||
~NETFILTER_XT_MARK
|
||||
"
|
||||
|
||||
MACVTAP_CONFIG_CHECK="~MACVTAP"
|
||||
|
||||
pkg_setup() {
|
||||
python_set_active_version 2
|
||||
python_pkg_setup
|
||||
|
||||
enewgroup qemu 77
|
||||
enewuser qemu 77 -1 -1 qemu kvm
|
||||
|
||||
# Some people used the masked ebuild which was not adding the qemu
|
||||
# user to the kvm group originally. This results in VMs failing to
|
||||
# start for some users. bug #430808
|
||||
egetent group kvm | grep -q qemu
|
||||
if [[ $? -ne 0 ]]; then
|
||||
gpasswd -a qemu kvm
|
||||
fi
|
||||
|
||||
# Handle specific kernel versions for different features
|
||||
kernel_is lt 3 6 && LXC_CONFIG_CHECK+=" ~CGROUP_MEM_RES_CTLR"
|
||||
kernel_is ge 3 6 && LXC_CONFIG_CHECK+=" ~MEMCG ~MEMCG_SWAP ~MEMCG_KMEM"
|
||||
|
||||
CONFIG_CHECK=""
|
||||
use fuse && CONFIG_CHECK+=" ~FUSE_FS"
|
||||
use lxc && CONFIG_CHECK+="${LXC_CONFIG_CHECK}"
|
||||
use macvtap && CONFIG_CHECK+="${MACVTAP}"
|
||||
use virt-network && CONFIG_CHECK+="${VIRTNET_CONFIG_CHECK}"
|
||||
if [[ -n ${CONFIG_CHECK} ]]; then
|
||||
linux-info_pkg_setup
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
touch "${S}/.mailmap"
|
||||
[[ -n ${BACKPORTS} ]] && \
|
||||
EPATCH_FORCE=yes EPATCH_SUFFIX="patch" EPATCH_SOURCE="${S}/patches" \
|
||||
epatch
|
||||
|
||||
if [[ ${PV} = *9999* ]]; then
|
||||
|
||||
# git checkouts require bootstrapping to create the configure script.
|
||||
# Additionally the submodules must be cloned to the right locations
|
||||
# bug #377279
|
||||
./bootstrap || die "bootstrap failed"
|
||||
(
|
||||
git submodule status | sed 's/^[ +-]//;s/ .*//'
|
||||
git hash-object bootstrap.conf
|
||||
) >.git-module-status
|
||||
fi
|
||||
|
||||
epatch_user
|
||||
|
||||
[[ -n ${AUTOTOOLIZE} ]] && eautoreconf
|
||||
|
||||
# Tweak the init script
|
||||
local avahi_init=
|
||||
local iscsi_init=
|
||||
local rbd_init=
|
||||
local firewalld_init=
|
||||
cp "${FILESDIR}/libvirtd.init-r12" "${S}/libvirtd.init"
|
||||
use avahi && avahi_init='avahi-daemon'
|
||||
use iscsi && iscsi_init='iscsid'
|
||||
use rbd && rbd_init='ceph'
|
||||
use firewalld && firewalld_init='need firewalld'
|
||||
|
||||
sed -e "s/USE_FLAG_FIREWALLD/${firewalld_init}/" -i "${S}/libvirtd.init"
|
||||
sed -e "s/USE_FLAG_AVAHI/${avahi_init}/" -i "${S}/libvirtd.init"
|
||||
sed -e "s/USE_FLAG_ISCSI/${iscsi_init}/" -i "${S}/libvirtd.init"
|
||||
sed -e "s/USE_FLAG_RBD/${rbd_init}/" -i "${S}/libvirtd.init"
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconf=""
|
||||
|
||||
## enable/disable daemon, otherwise client only utils
|
||||
myconf="${myconf} $(use_with libvirtd)"
|
||||
|
||||
## enable/disable the daemon using avahi to find VMs
|
||||
myconf="${myconf} $(use_with avahi)"
|
||||
|
||||
## hypervisors on the local host
|
||||
myconf="${myconf} $(use_with xen) $(use_with xen xen-inotify)"
|
||||
myconf+=" --without-xenapi"
|
||||
if use xen && has_version ">=app-emulation/xen-tools-4.2.0"; then
|
||||
myconf+=" --with-libxl"
|
||||
else
|
||||
myconf+=" --without-libxl"
|
||||
fi
|
||||
myconf="${myconf} $(use_with openvz)"
|
||||
myconf="${myconf} $(use_with lxc)"
|
||||
if use virtualbox && has_version app-emulation/virtualbox-ose; then
|
||||
myconf="${myconf} --with-vbox=/usr/lib/virtualbox-ose/"
|
||||
else
|
||||
myconf="${myconf} $(use_with virtualbox vbox)"
|
||||
fi
|
||||
myconf="${myconf} $(use_with uml)"
|
||||
myconf="${myconf} $(use_with qemu)"
|
||||
myconf="${myconf} $(use_with qemu yajl)" # Use QMP over HMP
|
||||
myconf="${myconf} $(use_with phyp)"
|
||||
myconf="${myconf} --with-esx"
|
||||
myconf="${myconf} --with-vmware"
|
||||
|
||||
## additional host drivers
|
||||
myconf="${myconf} $(use_with virt-network network)"
|
||||
myconf="${myconf} --with-storage-fs"
|
||||
myconf="${myconf} $(use_with lvm storage-lvm)"
|
||||
myconf="${myconf} $(use_with iscsi storage-iscsi)"
|
||||
myconf="${myconf} $(use_with parted storage-disk)"
|
||||
myconf="${myconf} $(use_with lvm storage-mpath)"
|
||||
myconf="${myconf} $(use_with rbd storage-rbd)"
|
||||
myconf="${myconf} $(use_with numa numactl)"
|
||||
myconf="${myconf} $(use_with numa numad)"
|
||||
myconf="${myconf} $(use_with selinux)"
|
||||
myconf="${myconf} $(use_with fuse)"
|
||||
|
||||
# udev for device support details
|
||||
myconf="${myconf} $(use_with udev)"
|
||||
|
||||
# linux capability support so we don't need privileged accounts
|
||||
myconf="${myconf} $(use_with caps capng)"
|
||||
|
||||
## auth stuff
|
||||
myconf="${myconf} $(use_with policykit polkit)"
|
||||
myconf="${myconf} $(use_with sasl)"
|
||||
|
||||
# network bits
|
||||
myconf="${myconf} $(use_with macvtap)"
|
||||
myconf="${myconf} $(use_with pcap libpcap)"
|
||||
myconf="${myconf} $(use_with vepa virtualport)"
|
||||
myconf="${myconf} $(use_with firewalld)"
|
||||
|
||||
## other
|
||||
myconf="${myconf} $(use_enable nls)"
|
||||
myconf="${myconf} $(use_with python)"
|
||||
|
||||
# user privilege bits fir qemu/kvm
|
||||
if use caps; then
|
||||
myconf="${myconf} --with-qemu-user=qemu"
|
||||
myconf="${myconf} --with-qemu-group=qemu"
|
||||
else
|
||||
myconf="${myconf} --with-qemu-user=root"
|
||||
myconf="${myconf} --with-qemu-group=root"
|
||||
fi
|
||||
|
||||
# audit support
|
||||
myconf="${myconf} $(use_with audit)"
|
||||
|
||||
## stuff we don't yet support
|
||||
myconf="${myconf} --without-netcf"
|
||||
|
||||
# we use udev over hal
|
||||
myconf="${myconf} --without-hal"
|
||||
|
||||
# locking support
|
||||
myconf="${myconf} --without-sanlock"
|
||||
|
||||
# systemd unit files
|
||||
use systemd && myconf="${myconf} --with-init-script=systemd"
|
||||
|
||||
# this is a nasty trick to work around the problem in bug
|
||||
# #275073. The reason why we don't solve this properly is that
|
||||
# it'll require us to rebuild autotools (and we don't really want
|
||||
# to do that right now). The proper solution has been sent
|
||||
# upstream and should hopefully land in 0.7.7, in the mean time,
|
||||
# mime the same functionality with this.
|
||||
case ${CHOST} in
|
||||
*cygwin* | *mingw* )
|
||||
;;
|
||||
*)
|
||||
ac_cv_prog_WINDRES=no
|
||||
;;
|
||||
esac
|
||||
|
||||
econf \
|
||||
${myconf} \
|
||||
--disable-static \
|
||||
--docdir=/usr/share/doc/${PF} \
|
||||
--with-remote \
|
||||
--localstatedir=/var
|
||||
|
||||
if [[ ${PV} = *9999* ]]; then
|
||||
# Restore gnulib's config.sub and config.guess
|
||||
# bug #377279
|
||||
(cd .gnulib && git reset --hard > /dev/null)
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
# Explicitly allow parallel build of tests
|
||||
export VIR_TEST_DEBUG=1
|
||||
HOME="${T}" emake check || die "tests failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake install \
|
||||
DESTDIR="${D}" \
|
||||
HTML_DIR=/usr/share/doc/${PF}/html \
|
||||
DOCS_DIR=/usr/share/doc/${PF}/python \
|
||||
EXAMPLE_DIR=/usr/share/doc/${PF}/python/examples \
|
||||
SYSTEMD_UNIT_DIR="$(systemd_get_unitdir)" \
|
||||
|| die "emake install failed"
|
||||
|
||||
find "${D}" -name '*.la' -delete || die
|
||||
|
||||
use libvirtd || return 0
|
||||
# From here, only libvirtd-related instructions, be warned!
|
||||
|
||||
newinitd "${S}/libvirtd.init" libvirtd || die
|
||||
newconfd "${FILESDIR}/libvirtd.confd-r4" libvirtd || die
|
||||
|
||||
keepdir /var/lib/libvirt/images
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
# we only ever want to generate this once
|
||||
if [[ -e "${ROOT}"/etc/libvirt/qemu/networks/default.xml ]]; then
|
||||
rm -rf "${D}"/etc/libvirt/qemu/networks/default.xml
|
||||
fi
|
||||
|
||||
# We really don't want to use or support old PolicyKit cause it
|
||||
# screws with the new polkit integration
|
||||
if has_version sys-auth/policykit; then
|
||||
rm -rf "${D}"/usr/share/PolicyKit/policy/org.libvirt.unix.policy
|
||||
fi
|
||||
|
||||
# Only sysctl files ending in .conf work
|
||||
mv "${D}"/usr/lib/sysctl.d/libvirtd.conf "${D}"/etc/sysctl.d/libvirtd.conf
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
use python && python_mod_optimize libvirt.py
|
||||
|
||||
if [[ -e "${ROOT}"/etc/libvirt/qemu/networks/default.xml ]]; then
|
||||
touch "${ROOT}"/etc/libvirt/qemu/networks/default.xml
|
||||
fi
|
||||
|
||||
# support for dropped privileges
|
||||
if use qemu; then
|
||||
fperms 0750 "${EROOT}/var/lib/libvirt/qemu"
|
||||
fperms 0750 "${EROOT}/var/cache/libvirt/qemu"
|
||||
fi
|
||||
|
||||
if use caps && use qemu; then
|
||||
fowners -R qemu:qemu "${EROOT}/var/lib/libvirt/qemu"
|
||||
fowners -R qemu:qemu "${EROOT}/var/cache/libvirt/qemu"
|
||||
elif use qemu; then
|
||||
fowners -R root:root "${EROOT}/var/lib/libvirt/qemu"
|
||||
fowners -R root:root "${EROOT}/var/cache/libvirt/qemu"
|
||||
fi
|
||||
|
||||
if ! use policykit; then
|
||||
elog "To allow normal users to connect to libvirtd you must change the"
|
||||
elog "unix sock group and/or perms in /etc/libvirt/libvirtd.conf"
|
||||
fi
|
||||
|
||||
use libvirtd || return 0
|
||||
# From here, only libvirtd-related instructions, be warned!
|
||||
|
||||
elog
|
||||
elog "For the basic networking support (bridged and routed networks)"
|
||||
elog "you don't need any extra software. For more complex network modes"
|
||||
elog "including but not limited to NATed network, you can enable the"
|
||||
elog "'virt-network' USE flag."
|
||||
elog
|
||||
if has_version net-dns/dnsmasq; then
|
||||
ewarn "If you have a DNS server setup on your machine, you will have"
|
||||
ewarn "to configure /etc/dnsmasq.conf to enable the following settings: "
|
||||
ewarn " bind-interfaces"
|
||||
ewarn " interface or except-interface"
|
||||
ewarn
|
||||
ewarn "Otherwise you might have issues with your existing DNS server."
|
||||
fi
|
||||
|
||||
if use caps && use qemu; then
|
||||
elog "libvirt will now start qemu/kvm VMs with non-root privileges."
|
||||
elog "Ensure any resources your VMs use are accessible by qemu:qemu"
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
use python && python_mod_cleanup libvirt.py
|
||||
}
|
@ -0,0 +1,546 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-emulation/qemu/qemu-1.5.2-r1.ebuild,v 1.1 2013/08/03 19:47:09 cardoe Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python{2_5,2_6,2_7} )
|
||||
PYTHON_REQ_USE="ncurses,readline"
|
||||
|
||||
inherit eutils flag-o-matic linux-info toolchain-funcs multilib python-r1 \
|
||||
user udev fcaps readme.gentoo
|
||||
|
||||
BACKPORTS=e26b4ba6
|
||||
|
||||
if [[ ${PV} = *9999* ]]; then
|
||||
EGIT_REPO_URI="git://git.qemu.org/qemu.git"
|
||||
inherit git-2
|
||||
SRC_URI=""
|
||||
KEYWORDS=""
|
||||
else
|
||||
SRC_URI="http://wiki.qemu-project.org/download/${P}.tar.bz2
|
||||
${BACKPORTS:+
|
||||
http://dev.gentoo.org/~cardoe/distfiles/${P}-${BACKPORTS}.tar.xz}"
|
||||
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~x86-fbsd"
|
||||
fi
|
||||
|
||||
DESCRIPTION="QEMU + Kernel-based Virtual Machine userland tools"
|
||||
HOMEPAGE="http://www.qemu.org http://www.linux-kvm.org"
|
||||
|
||||
LICENSE="GPL-2 LGPL-2 BSD-2"
|
||||
SLOT="0"
|
||||
IUSE="accessibility +aio alsa bluetooth +caps +curl debug fdt glusterfs \
|
||||
gtk iscsi +jpeg \
|
||||
kernel_linux kernel_FreeBSD mixemu ncurses opengl +png pulseaudio python \
|
||||
rbd sasl +seccomp sdl selinux smartcard spice static static-softmmu \
|
||||
static-user systemtap tci test +threads tls usbredir +uuid vde +vhost-net \
|
||||
virtfs +vnc xattr xen xfs"
|
||||
|
||||
COMMON_TARGETS="i386 x86_64 alpha arm cris m68k microblaze microblazeel mips
|
||||
mipsel mips64 mips64el or32 ppc ppc64 sh4 sh4eb sparc sparc64 s390x unicore32"
|
||||
IUSE_SOFTMMU_TARGETS="${COMMON_TARGETS} lm32 moxie ppcemb xtensa xtensaeb"
|
||||
IUSE_USER_TARGETS="${COMMON_TARGETS} armeb mipsn32 mipsn32el ppc64abi32 sparc32plus"
|
||||
|
||||
# Setup the default SoftMMU targets, while using the loops
|
||||
# below to setup the other targets.
|
||||
REQUIRED_USE="|| ("
|
||||
|
||||
for target in ${IUSE_SOFTMMU_TARGETS}; do
|
||||
IUSE="${IUSE} qemu_softmmu_targets_${target}"
|
||||
REQUIRED_USE="${REQUIRED_USE} qemu_softmmu_targets_${target}"
|
||||
done
|
||||
|
||||
for target in ${IUSE_USER_TARGETS}; do
|
||||
IUSE="${IUSE} qemu_user_targets_${target}"
|
||||
REQUIRED_USE="${REQUIRED_USE} qemu_user_targets_${target}"
|
||||
done
|
||||
REQUIRED_USE="${REQUIRED_USE} )"
|
||||
|
||||
# Block USE flag configurations known to not work
|
||||
REQUIRED_USE="${REQUIRED_USE}
|
||||
python? ( ${PYTHON_REQUIRED_USE} )
|
||||
static? ( static-softmmu static-user )
|
||||
static-softmmu? ( !alsa !pulseaudio !bluetooth !opengl !gtk )
|
||||
virtfs? ( xattr )"
|
||||
|
||||
# Yep, you need both libcap and libcap-ng since virtfs only uses libcap.
|
||||
LIB_DEPEND=">=dev-libs/glib-2.0[static-libs(+)]
|
||||
sys-apps/pciutils[static-libs(+)]
|
||||
sys-libs/zlib[static-libs(+)]
|
||||
>=x11-libs/pixman-0.28.0[static-libs(+)]
|
||||
aio? ( dev-libs/libaio[static-libs(+)] )
|
||||
caps? ( sys-libs/libcap-ng[static-libs(+)] )
|
||||
curl? ( >=net-misc/curl-7.15.4[static-libs(+)] )
|
||||
fdt? ( >=sys-apps/dtc-1.2.0[static-libs(+)] )
|
||||
glusterfs? ( >=sys-cluster/glusterfs-3.4.0[static-libs(+)] )
|
||||
jpeg? ( virtual/jpeg[static-libs(+)] )
|
||||
ncurses? ( sys-libs/ncurses[static-libs(+)] )
|
||||
png? ( media-libs/libpng[static-libs(+)] )
|
||||
rbd? ( sys-cluster/ceph[static-libs(+)] )
|
||||
sasl? ( dev-libs/cyrus-sasl[static-libs(+)] )
|
||||
sdl? ( >=media-libs/libsdl-1.2.11[static-libs(+)] )
|
||||
seccomp? ( >=sys-libs/libseccomp-1.0.1[static-libs(+)] )
|
||||
spice? ( >=app-emulation/spice-0.12.0[static-libs(+)] )
|
||||
tls? ( net-libs/gnutls[static-libs(+)] )
|
||||
uuid? ( >=sys-apps/util-linux-2.16.0[static-libs(+)] )
|
||||
vde? ( net-misc/vde[static-libs(+)] )
|
||||
xattr? ( sys-apps/attr[static-libs(+)] )
|
||||
xfs? ( sys-fs/xfsprogs[static-libs(+)] )"
|
||||
RDEPEND="!static-softmmu? ( ${LIB_DEPEND//\[static-libs(+)]} )
|
||||
static-user? ( >=dev-libs/glib-2.0[static-libs(+)] )
|
||||
qemu_softmmu_targets_i386? (
|
||||
>=sys-firmware/ipxe-1.0.0_p20130624
|
||||
~sys-firmware/seabios-1.7.2.2
|
||||
~sys-firmware/sgabios-0.1_pre8
|
||||
~sys-firmware/vgabios-0.7a
|
||||
)
|
||||
qemu_softmmu_targets_x86_64? (
|
||||
>=sys-firmware/ipxe-1.0.0_p20130624
|
||||
~sys-firmware/seabios-1.7.2.2
|
||||
~sys-firmware/sgabios-0.1_pre8
|
||||
~sys-firmware/vgabios-0.7a
|
||||
)
|
||||
accessibility? ( app-accessibility/brltty )
|
||||
alsa? ( >=media-libs/alsa-lib-1.0.13 )
|
||||
bluetooth? ( net-wireless/bluez )
|
||||
gtk? (
|
||||
x11-libs/gtk+:3
|
||||
x11-libs/vte:2.90
|
||||
)
|
||||
iscsi? ( net-libs/libiscsi )
|
||||
opengl? ( virtual/opengl )
|
||||
pulseaudio? ( media-sound/pulseaudio )
|
||||
python? ( ${PYTHON_DEPS} )
|
||||
sdl? ( media-libs/libsdl[X] )
|
||||
selinux? ( sec-policy/selinux-qemu )
|
||||
smartcard? ( dev-libs/nss !app-emulation/libcacard )
|
||||
spice? ( >=app-emulation/spice-protocol-0.12.3 )
|
||||
systemtap? ( dev-util/systemtap )
|
||||
usbredir? ( >=sys-apps/usbredir-0.6 )
|
||||
virtfs? ( sys-libs/libcap )
|
||||
xen? ( app-emulation/xen-tools )"
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
dev-lang/perl
|
||||
=dev-lang/python-2*
|
||||
sys-apps/texinfo
|
||||
virtual/pkgconfig
|
||||
kernel_linux? ( >=sys-kernel/linux-headers-2.6.35 )
|
||||
static-softmmu? ( ${LIB_DEPEND} )
|
||||
test? (
|
||||
dev-libs/glib[utils]
|
||||
sys-devel/bc
|
||||
)"
|
||||
|
||||
STRIP_MASK="/usr/share/qemu/palcode-clipper"
|
||||
|
||||
QA_PREBUILT="
|
||||
usr/share/qemu/openbios-ppc
|
||||
usr/share/qemu/openbios-sparc64
|
||||
usr/share/qemu/openbios-sparc32
|
||||
usr/share/qemu/palcode-clipper
|
||||
usr/share/qemu/s390-ccw.img"
|
||||
|
||||
QA_WX_LOAD="usr/bin/qemu-i386
|
||||
usr/bin/qemu-x86_64
|
||||
usr/bin/qemu-alpha
|
||||
usr/bin/qemu-arm
|
||||
usr/bin/qemu-cris
|
||||
usr/bin/qemu-m68k
|
||||
usr/bin/qemu-microblaze
|
||||
usr/bin/qemu-microblazeel
|
||||
usr/bin/qemu-mips
|
||||
usr/bin/qemu-mipsel
|
||||
usr/bin/qemu-or32
|
||||
usr/bin/qemu-ppc
|
||||
usr/bin/qemu-ppc64
|
||||
usr/bin/qemu-ppc64abi32
|
||||
usr/bin/qemu-sh4
|
||||
usr/bin/qemu-sh4eb
|
||||
usr/bin/qemu-sparc
|
||||
usr/bin/qemu-sparc64
|
||||
usr/bin/qemu-armeb
|
||||
usr/bin/qemu-sparc32plus
|
||||
usr/bin/qemu-s390x
|
||||
usr/bin/qemu-unicore32"
|
||||
|
||||
DOC_CONTENTS="If you don't have kvm compiled into the kernel, make sure
|
||||
you have the kernel module loaded before running kvm. The easiest way to
|
||||
ensure that the kernel module is loaded is to load it on boot.\n
|
||||
For AMD CPUs the module is called 'kvm-amd'\n
|
||||
For Intel CPUs the module is called 'kvm-intel'\n
|
||||
Please review /etc/conf.d/modules for how to load these\n\n
|
||||
Make sure your user is in the 'kvm' group\n
|
||||
Just run 'gpasswd -a <USER> kvm', then have <USER> re-login."
|
||||
|
||||
qemu_support_kvm() {
|
||||
if use qemu_softmmu_targets_x86_64 || use qemu_softmmu_targets_i386 \
|
||||
use qemu_softmmu_targets_ppc || use qemu_softmmu_targets_ppc64 \
|
||||
use qemu_softmmu_targets_s390x; then
|
||||
return 0
|
||||
fi
|
||||
|
||||
return 1
|
||||
}
|
||||
|
||||
pkg_pretend() {
|
||||
if use kernel_linux && kernel_is lt 2 6 25; then
|
||||
eerror "This version of KVM requres a host kernel of 2.6.25 or higher."
|
||||
elif use kernel_linux; then
|
||||
if ! linux_config_exists; then
|
||||
eerror "Unable to check your kernel for KVM support"
|
||||
else
|
||||
CONFIG_CHECK="~KVM ~TUN ~BRIDGE"
|
||||
ERROR_KVM="You must enable KVM in your kernel to continue"
|
||||
ERROR_KVM_AMD="If you have an AMD CPU, you must enable KVM_AMD in"
|
||||
ERROR_KVM_AMD+=" your kernel configuration."
|
||||
ERROR_KVM_INTEL="If you have an Intel CPU, you must enable"
|
||||
ERROR_KVM_INTEL+=" KVM_INTEL in your kernel configuration."
|
||||
ERROR_TUN="You will need the Universal TUN/TAP driver compiled"
|
||||
ERROR_TUN+=" into your kernel or loaded as a module to use the"
|
||||
ERROR_TUN+=" virtual network device if using -net tap."
|
||||
ERROR_BRIDGE="You will also need support for 802.1d"
|
||||
ERROR_BRIDGE+=" Ethernet Bridging for some network configurations."
|
||||
use vhost-net && CONFIG_CHECK+=" ~VHOST_NET"
|
||||
ERROR_VHOST_NET="You must enable VHOST_NET to have vhost-net"
|
||||
ERROR_VHOST_NET+=" support"
|
||||
|
||||
if use amd64 || use x86 || use amd64-linux || use x86-linux; then
|
||||
CONFIG_CHECK+=" ~KVM_AMD ~KVM_INTEL"
|
||||
fi
|
||||
|
||||
use python && CONFIG_CHECK+=" ~DEBUG_FS"
|
||||
ERROR_DEBUG_FS="debugFS support required for kvm_stat"
|
||||
|
||||
# Now do the actual checks setup above
|
||||
check_extra_config
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup kvm 78
|
||||
|
||||
python_export_best
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# Alter target makefiles to accept CFLAGS set via flag-o
|
||||
sed -i 's/^\(C\|OP_C\|HELPER_C\)FLAGS=/\1FLAGS+=/' \
|
||||
Makefile Makefile.target || die
|
||||
|
||||
epatch "${FILESDIR}"/qemu-9999-cflags.patch
|
||||
[[ -n ${BACKPORTS} ]] && \
|
||||
EPATCH_FORCE=yes EPATCH_SUFFIX="patch" EPATCH_SOURCE="${S}/patches" \
|
||||
epatch
|
||||
|
||||
# Fix ld and objcopy being called directly
|
||||
tc-export LD OBJCOPY
|
||||
|
||||
# Verbose builds
|
||||
MAKEOPTS+=" V=1"
|
||||
|
||||
epatch_user
|
||||
}
|
||||
|
||||
##
|
||||
# configures qemu based on the build directory and the build type
|
||||
# we are using.
|
||||
#
|
||||
qemu_src_configure() {
|
||||
debug-print-function $FUNCNAME "$@"
|
||||
|
||||
local buildtype=$1
|
||||
local builddir=$2
|
||||
local conf_opts audio_opts
|
||||
local static_flag="static-${buildtype}"
|
||||
|
||||
conf_opts="--prefix=/usr"
|
||||
conf_opts+=" --sysconfdir=/etc"
|
||||
conf_opts+=" --libdir=/usr/$(get_libdir)"
|
||||
conf_opts+=" --docdir=/usr/share/doc/${PF}/html"
|
||||
conf_opts+=" --disable-bsd-user"
|
||||
conf_opts+=" --disable-guest-agent"
|
||||
conf_opts+=" --disable-strip"
|
||||
conf_opts+=" --disable-werror"
|
||||
conf_opts+=" --python=${PYTHON}"
|
||||
|
||||
# audio options
|
||||
audio_opts="oss"
|
||||
use alsa && audio_opts="alsa,${audio_opts}"
|
||||
use sdl && audio_opts="sdl,${audio_opts}"
|
||||
use pulseaudio && audio_opts="pa,${audio_opts}"
|
||||
|
||||
if [[ ${buildtype} == "user" ]]; then
|
||||
conf_opts+=" --enable-linux-user"
|
||||
conf_opts+=" --disable-system"
|
||||
conf_opts+=" --target-list=${user_targets}"
|
||||
conf_opts+=" --disable-blobs"
|
||||
conf_opts+=" --disable-bluez"
|
||||
conf_opts+=" --disable-curses"
|
||||
conf_opts+=" --disable-kvm"
|
||||
conf_opts+=" --disable-libiscsi"
|
||||
conf_opts+=" --disable-glusterfs"
|
||||
conf_opts+=" $(use_enable seccomp)"
|
||||
conf_opts+=" --disable-sdl"
|
||||
conf_opts+=" --disable-smartcard-nss"
|
||||
conf_opts+=" --disable-tools"
|
||||
conf_opts+=" --disable-vde"
|
||||
fi
|
||||
|
||||
if [[ ${buildtype} == "softmmu" ]]; then
|
||||
conf_opts+=" --disable-linux-user"
|
||||
conf_opts+=" --enable-system"
|
||||
conf_opts+=" --with-system-pixman"
|
||||
conf_opts+=" --target-list=${softmmu_targets}"
|
||||
conf_opts+=" $(use_enable bluetooth bluez)"
|
||||
conf_opts+=" $(use_enable gtk)"
|
||||
use gtk && conf_opts+=" --with-gtkabi=3.0"
|
||||
conf_opts+=" $(use_enable sdl)"
|
||||
conf_opts+=" $(use_enable aio linux-aio)"
|
||||
conf_opts+=" $(use_enable accessibility brlapi)"
|
||||
conf_opts+=" $(use_enable caps cap-ng)"
|
||||
conf_opts+=" $(use_enable curl)"
|
||||
conf_opts+=" $(use_enable fdt)"
|
||||
conf_opts+=" $(use_enable glusterfs)"
|
||||
conf_opts+=" $(use_enable iscsi libiscsi)"
|
||||
conf_opts+=" $(use_enable jpeg vnc-jpeg)"
|
||||
conf_opts+=" $(use_enable kernel_linux kvm)"
|
||||
conf_opts+=" $(use_enable kernel_linux nptl)"
|
||||
conf_opts+=" $(use_enable ncurses curses)"
|
||||
conf_opts+=" $(use_enable opengl glx)"
|
||||
conf_opts+=" $(use_enable png vnc-png)"
|
||||
conf_opts+=" $(use_enable rbd)"
|
||||
conf_opts+=" $(use_enable sasl vnc-sasl)"
|
||||
conf_opts+=" $(use_enable seccomp)"
|
||||
conf_opts+=" $(use_enable smartcard smartcard-nss)"
|
||||
conf_opts+=" $(use_enable spice)"
|
||||
conf_opts+=" $(use_enable tls vnc-tls)"
|
||||
conf_opts+=" $(use_enable tls vnc-ws)"
|
||||
conf_opts+=" $(use_enable usbredir usb-redir)"
|
||||
conf_opts+=" $(use_enable uuid)"
|
||||
conf_opts+=" $(use_enable vde)"
|
||||
conf_opts+=" $(use_enable vhost-net)"
|
||||
conf_opts+=" $(use_enable virtfs)"
|
||||
conf_opts+=" $(use_enable vnc)"
|
||||
conf_opts+=" $(use_enable xattr attr)"
|
||||
conf_opts+=" $(use_enable xen)"
|
||||
conf_opts+=" $(use_enable xen xen-pci-passthrough)"
|
||||
conf_opts+=" $(use_enable xfs xfsctl)"
|
||||
use mixemu && conf_opts+=" --enable-mixemu"
|
||||
conf_opts+=" --audio-drv-list=${audio_opts}"
|
||||
conf_opts+=" --enable-migration-from-qemu-kvm"
|
||||
fi
|
||||
|
||||
conf_opts+=" $(use_enable debug debug-info)"
|
||||
conf_opts+=" $(use_enable debug debug-tcg)"
|
||||
conf_opts+=" --enable-docs"
|
||||
conf_opts+=" $(use_enable tci tcg-interpreter)"
|
||||
|
||||
# Add support for SystemTAP
|
||||
use systemtap && conf_opts="${conf_opts} --enable-trace-backend=dtrace"
|
||||
|
||||
# Add support for static builds
|
||||
use ${static_flag} && conf_opts="${conf_opts} --static --disable-pie"
|
||||
|
||||
# We always want to attempt to build with PIE support as it results
|
||||
# in a more secure binary. But it doesn't work with static or if
|
||||
# the current GCC doesn't have PIE support.
|
||||
if ! use ${static_flag} && gcc-specs-pie; then
|
||||
conf_opts="${conf_opts} --enable-pie"
|
||||
fi
|
||||
|
||||
einfo "./configure ${conf_opts}"
|
||||
cd ${builddir}
|
||||
../configure \
|
||||
--cc="$(tc-getCC)" \
|
||||
--host-cc="$(tc-getBUILD_CC)" \
|
||||
${conf_opts} \
|
||||
|| die "configure failed"
|
||||
|
||||
# FreeBSD's kernel does not support QEMU assigning/grabbing
|
||||
# host USB devices yet
|
||||
use kernel_FreeBSD && \
|
||||
sed -E -e "s|^(HOST_USB=)bsd|\1stub|" -i "${S}"/config-host.mak
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
softmmu_targets=
|
||||
user_targets=
|
||||
|
||||
for target in ${IUSE_SOFTMMU_TARGETS} ; do
|
||||
use "qemu_softmmu_targets_${target}" && \
|
||||
softmmu_targets="${softmmu_targets},${target}-softmmu"
|
||||
done
|
||||
|
||||
for target in ${IUSE_USER_TARGETS} ; do
|
||||
use "qemu_user_targets_${target}" && \
|
||||
user_targets="${user_targets},${target}-linux-user"
|
||||
done
|
||||
|
||||
[[ -n ${softmmu_targets} ]] && \
|
||||
einfo "Building the following softmmu targets: ${softmmu_targets}"
|
||||
|
||||
[[ -n ${user_targets} ]] && \
|
||||
einfo "Building the following user targets: ${user_targets}"
|
||||
|
||||
if [[ -n ${softmmu_targets} ]]; then
|
||||
mkdir "${S}/softmmu-build"
|
||||
qemu_src_configure "softmmu" "${S}/softmmu-build"
|
||||
fi
|
||||
|
||||
if [[ -n ${user_targets} ]]; then
|
||||
mkdir "${S}/user-build"
|
||||
qemu_src_configure "user" "${S}/user-build"
|
||||
fi
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
if [[ -n ${user_targets} ]]; then
|
||||
cd "${S}/user-build"
|
||||
default
|
||||
fi
|
||||
|
||||
if [[ -n ${softmmu_targets} ]]; then
|
||||
cd "${S}/softmmu-build"
|
||||
default
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
cd "${S}/softmmu-build"
|
||||
emake -j1 check
|
||||
emake -j1 check-report.html
|
||||
}
|
||||
|
||||
qemu_python_install() {
|
||||
python_domodule "${S}/QMP/qmp.py"
|
||||
|
||||
python_doscript "${S}/scripts/kvm/kvm_stat"
|
||||
python_doscript "${S}/scripts/kvm/vmxcap"
|
||||
python_doscript "${S}/QMP/qmp-shell"
|
||||
python_doscript "${S}/QMP/qemu-ga-client"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
if [[ -n ${user_targets} ]]; then
|
||||
cd "${S}/user-build"
|
||||
emake DESTDIR="${ED}" install
|
||||
|
||||
# Install binfmt handler init script for user targets
|
||||
newinitd "${FILESDIR}/qemu-binfmt.initd-r1" qemu-binfmt
|
||||
fi
|
||||
|
||||
if [[ -n ${softmmu_targets} ]]; then
|
||||
cd "${S}/softmmu-build"
|
||||
emake DESTDIR="${ED}" install
|
||||
|
||||
if use test; then
|
||||
dohtml check-report.html
|
||||
fi
|
||||
|
||||
if use kernel_linux; then
|
||||
udev_dorules "${FILESDIR}"/65-kvm.rules
|
||||
fi
|
||||
|
||||
if use qemu_softmmu_targets_x86_64 ; then
|
||||
newbin "${FILESDIR}/qemu-kvm-1.4" qemu-kvm
|
||||
ewarn "The deprecated '/usr/bin/kvm' symlink is no longer installed"
|
||||
ewarn "You should use '/usr/bin/qemu-kvm', you may need to edit"
|
||||
ewarn "your libvirt configs or other wrappers for ${PN}"
|
||||
elif use x86 || use amd64; then
|
||||
elog "You disabled QEMU_SOFTMMU_TARGETS=x86_64, this disables install"
|
||||
elog "of the /usr/bin/qemu-kvm script."
|
||||
fi
|
||||
|
||||
if use python; then
|
||||
python_foreach_impl qemu_python_install
|
||||
fi
|
||||
fi
|
||||
|
||||
# Install config file example for qemu-bridge-helper
|
||||
insinto "/etc/qemu"
|
||||
doins "${FILESDIR}/bridge.conf"
|
||||
|
||||
# Remove the docdir placed qmp-commands.txt
|
||||
mv "${ED}/usr/share/doc/${PF}/html/qmp-commands.txt" "${S}/QMP/"
|
||||
|
||||
cd "${S}"
|
||||
dodoc Changelog MAINTAINERS docs/specs/pci-ids.txt
|
||||
newdoc pc-bios/README README.pc-bios
|
||||
dodoc QMP/qmp-commands.txt QMP/qmp-events.txt QMP/qmp-spec.txt
|
||||
|
||||
# Remove SeaBIOS since we're using the SeaBIOS packaged one
|
||||
rm "${ED}/usr/share/qemu/bios.bin"
|
||||
if use qemu_softmmu_targets_x86_64 || use qemu_softmmu_targets_i386; then
|
||||
dosym ../seabios/bios.bin /usr/share/qemu/bios.bin
|
||||
fi
|
||||
|
||||
# Remove vgabios since we're using the vgabios packaged one
|
||||
rm "${ED}/usr/share/qemu/vgabios.bin"
|
||||
rm "${ED}/usr/share/qemu/vgabios-cirrus.bin"
|
||||
rm "${ED}/usr/share/qemu/vgabios-qxl.bin"
|
||||
rm "${ED}/usr/share/qemu/vgabios-stdvga.bin"
|
||||
rm "${ED}/usr/share/qemu/vgabios-vmware.bin"
|
||||
if use qemu_softmmu_targets_x86_64 || use qemu_softmmu_targets_i386; then
|
||||
dosym ../vgabios/vgabios.bin /usr/share/qemu/vgabios.bin
|
||||
dosym ../vgabios/vgabios-cirrus.bin /usr/share/qemu/vgabios-cirrus.bin
|
||||
dosym ../vgabios/vgabios-qxl.bin /usr/share/qemu/vgabios-qxl.bin
|
||||
dosym ../vgabios/vgabios-stdvga.bin /usr/share/qemu/vgabios-stdvga.bin
|
||||
dosym ../vgabios/vgabios-vmware.bin /usr/share/qemu/vgabios-vmware.bin
|
||||
fi
|
||||
|
||||
# Remove sgabios since we're using the sgabios packaged one
|
||||
rm "${ED}/usr/share/qemu/sgabios.bin"
|
||||
if use qemu_softmmu_targets_x86_64 || use qemu_softmmu_targets_i386; then
|
||||
dosym ../sgabios/sgabios.bin /usr/share/qemu/sgabios.bin
|
||||
fi
|
||||
|
||||
# Remove iPXE since we're using the iPXE packaged one
|
||||
rm "${ED}"/usr/share/qemu/pxe-*.rom
|
||||
if use qemu_softmmu_targets_x86_64 || use qemu_softmmu_targets_i386; then
|
||||
dosym ../ipxe/8086100e.rom /usr/share/qemu/pxe-e1000.rom
|
||||
dosym ../ipxe/80861209.rom /usr/share/qemu/pxe-eepro100.rom
|
||||
dosym ../ipxe/10500940.rom /usr/share/qemu/pxe-ne2k_pci.rom
|
||||
dosym ../ipxe/10222000.rom /usr/share/qemu/pxe-pcnet.rom
|
||||
dosym ../ipxe/10ec8139.rom /usr/share/qemu/pxe-rtl8139.rom
|
||||
dosym ../ipxe/1af41000.rom /usr/share/qemu/pxe-virtio.rom
|
||||
fi
|
||||
|
||||
qemu_support_kvm && readme.gentoo_create_doc
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
local virtfs_caps=
|
||||
|
||||
if qemu_support_kvm; then
|
||||
readme.gentoo_print_elog
|
||||
ewarn "Migration from qemu-kvm instances and loading qemu-kvm created"
|
||||
ewarn "save states will be removed in the next release (1.6.x)"
|
||||
ewarn
|
||||
ewarn "It is recommended that you migrate any VMs that may be running"
|
||||
ewarn "on qemu-kvm to a host with a newer qemu and regenerate"
|
||||
ewarn "any saved states with a newer qemu."
|
||||
ewarn
|
||||
ewarn "qemu-kvm was the primary qemu provider in Gentoo through 1.2.x"
|
||||
fi
|
||||
|
||||
virtfs_caps+="cap_chown,cap_dac_override,cap_fowner,cap_fsetid,"
|
||||
virtfs_caps+="cap_setgid,cap_mknod,cap_setuid"
|
||||
|
||||
fcaps cap_net_admin /usr/libexec/qemu-bridge-helper
|
||||
use virtfs && fcaps ${virtfs_caps} /usr/bin/virtfs-proxy-helper
|
||||
}
|
||||
|
||||
pkg_info() {
|
||||
echo "Using:"
|
||||
echo " $(best_version app-emulation/spice-protocol)"
|
||||
echo " $(best_version sys-firmware/ipxe)"
|
||||
echo " $(best_version sys-firmware/seabios)"
|
||||
if has_version sys-firmware/seabios[binary]; then
|
||||
echo " USE=binary"
|
||||
else
|
||||
echo " USE=''"
|
||||
fi
|
||||
echo " $(best_version sys-firmware/vgabios)"
|
||||
}
|
@ -1,6 +1,2 @@
|
||||
DIST virt-viewer-0.4.2.tar.gz 442244 SHA256 32057e115ee53d9894af05ac4659893dc7e6ff9efba8d74999147b1bfda1439c SHA512 e583ee1beacff124d5fe85671716cbd68704aa1bc3ab44105ec890fdc764cd50b644728aff04299a90357cb5fcff859820434728662dde033238c8be0c8e229d WHIRLPOOL 2797b183fa06896a8f9b51dee719ac5920315c3c5b78a0ac852a8ebd514c5f8166fcae42c8c44a858eb05bf6ff0d1e8dbfabfc2266a2edaa657f331f552aa969
|
||||
DIST virt-viewer-0.5.2.tar.gz 583436 SHA256 e7f09b5de988fd3c81568d05d2b5db97c620b547ec8f92eab8e6a88604a18009 SHA512 bde9a101e3978defac75646184b708aefc94fbaa5a620211313e4f6c93fd73d30fa2ac225760f82cc632eeaad3c3de710c4cf3965d16fe1fdfb4794faef53ae3 WHIRLPOOL e58fdf300f65b7b4fdd3a33e32f29753c22a5255af5af9f7a9ac5eb814c4885fd358df3f7266c0667b2c6c9f740d6657ad8bf5f35392b97537786a57dc77e24c
|
||||
DIST virt-viewer-0.5.3.tar.gz 638327 SHA256 944a53ab4079940d502e4e8572177fdf73357342f723e36538932556b6c2d996 SHA512 dcb047c6d38636963381fc1c10c343b3d5ae13666bdca2edcb1362421dcda204ddbfee30ca2a1bc8f82e461d2a74be7aa85a980d7476c85c6dcff6b740c1da80 WHIRLPOOL 2b3f61e2e4608a7a86107652dc6773a05ec195b29fb7bbe6ca182d0828df8e45c46f375088b542a3717fd4b31043517cdaf0cdb919d2d9bfb950b56c7bc544a8
|
||||
DIST virt-viewer-0.5.4.tar.gz 619744 SHA256 8e8ca29ac9f0ef8dc49e28fa465814e13c67f37a5fab5ceea163f9ada3735f5b SHA512 3a4b241a9e3fb47db24e2bf0acaba2f4b2e0bde5d0becdefa8b3c653abcd69683f26203e255241f17c53b7119ad87b5158877795a9dd215f467d98cfce267d5c WHIRLPOOL e0b44e859d8d5ece7e7d2523693d973daa86ffe93a07bd43e51bcdc79ab33b64756ade4d70440efa27e5b34a6932be04840c54fc1fb31f759c299f29e26f0ce2
|
||||
DIST virt-viewer-0.5.5.tar.gz 654055 SHA256 ce51e46813b312e360b57514da517e74b3d29f45b2f36e772a62e397df17eb70 SHA512 4d24a6eda7eea6ee072213c68b76484911eb031751a39688adc9a55c706c8f6c10e65172be272acbc5dbada70537a0d57a9ea6a4866d44a4e65a70444715a1a8 WHIRLPOOL 1f8a71365bbef3e19cd96c14c1befa844ebe8aaf0b10bbbf5d890a5122a3ffeba6136e8f935c094d420c09b8b12f64c943c9ea6c464a6861f77c9e681b10e5d6
|
||||
DIST virt-viewer-0.5.6.tar.gz 664421 SHA256 b397e9da15c454e8b53765cef65cdbf1b9939d4f9976965b7942ae9a9aa45857 SHA512 a4a7aa4dfe7fa9d5ae8e907831b27ad04b6337c6feaf5c5d2635ea308fa8eef8f9b138fd37ef2a574cd4b65b2f45cba5103003ee17db6430985edb8817323668 WHIRLPOOL 8843416e3b2f75e2e258f6e641b262cfd60b6e126565d6408af0ad3fc93351cd5ef1ed2eea87f2dfed4b0849ecd9ab92ec0863e81157e0e16f5adc2bf2e122df
|
||||
DIST virt-viewer-0.5.7.tar.gz 676213 SHA256 4af5e660b3d15bcd3727851af1ddc2f08805c50ad4fc30714e21b20113fe9a83 SHA512 3713fd5c80cb3a0394dea39a052d064a6b866557523345314cc4c38a757cae6c2ccb8765d08893bbe0260a3b39aae8acf5a7d1b0e09ec918a6f9d446bb4b8043 WHIRLPOOL 977fc01c148573784659d11eb29305a6c9e1880173712118befc982598afc741df316c0f5c7265d71a699ccebe054e6603d331097bc5f641dcc0a418fa043591
|
||||
|
@ -1,42 +0,0 @@
|
||||
This patch is expecting result of `pkg-config --cflags npapi-sdk nspr` passed to the compiler.
|
||||
|
||||
http://bugs.gentoo.org/383145
|
||||
|
||||
--- plugin/npshell.c
|
||||
+++ plugin/npshell.c
|
||||
@@ -83,8 +83,9 @@
|
||||
#include <string.h>
|
||||
#include <strings.h>
|
||||
|
||||
+#include <nspr.h>
|
||||
#include <npapi.h>
|
||||
-#include <npupp.h>
|
||||
+#include <npfunctions.h>
|
||||
|
||||
#include "virt-viewer-plugin.h"
|
||||
|
||||
--- plugin/npunix.c
|
||||
+++ plugin/npunix.c
|
||||
@@ -56,8 +56,9 @@
|
||||
#define XP_UNIX 1
|
||||
|
||||
#include <stdio.h>
|
||||
+#include <nspr.h>
|
||||
#include <npapi.h>
|
||||
-#include <npupp.h>
|
||||
+#include <npfunctions.h>
|
||||
|
||||
#include <glib.h> /* just for G_GNUC_UNUSED */
|
||||
|
||||
--- plugin/virt-viewer-plugin.h
|
||||
+++ plugin/virt-viewer-plugin.h
|
||||
@@ -36,7 +36,9 @@
|
||||
#ifndef VIRT_VIEWER_PLUGIN_H
|
||||
#define VIRT_VIEWER_PLUGIN_H
|
||||
|
||||
+#include <nspr.h>
|
||||
#include <npapi.h>
|
||||
+#include <npfunctions.h>
|
||||
#include <gtk/gtk.h>
|
||||
#include <X11/Xlib.h>
|
||||
#include "virt-viewer-app.h"
|
@ -1,36 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-emulation/virt-viewer/virt-viewer-0.4.2.ebuild,v 1.6 2012/05/03 18:49:06 jdhore Exp $
|
||||
|
||||
EAPI=4
|
||||
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="gtk3 sasl spice +vnc"
|
||||
|
||||
RDEPEND=">=app-emulation/libvirt-0.6
|
||||
>=dev-libs/libxml2-2.6
|
||||
gtk3? ( x11-libs/gtk+:3 )
|
||||
!gtk3? (
|
||||
>=x11-libs/gtk+-2.10:2
|
||||
>=gnome-base/libglade-2.6
|
||||
)
|
||||
spice? ( >=net-misc/spice-gtk-0.6[sasl?,gtk3?] )
|
||||
vnc? ( >=net-libs/gtk-vnc-0.4.3 )"
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig"
|
||||
|
||||
REQUIRED_USE="|| ( spice vnc )"
|
||||
|
||||
pkg_setup() {
|
||||
G2CONF="--disable-plugin $(use_with spice spice-gtk)"
|
||||
G2CONF="${G2CONF} $(use_with vnc gtk-vnc)"
|
||||
use gtk3 && G2CONF="${G2CONF} --with-gtk=3.0"
|
||||
use gtk3 || G2CONF="${G2CONF} --with-gtk=2.0"
|
||||
}
|
@ -1,57 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-emulation/virt-viewer/virt-viewer-0.5.2.ebuild,v 1.3 2012/05/03 18:49:07 jdhore Exp $
|
||||
|
||||
EAPI=4
|
||||
inherit eutils gnome2 toolchain-funcs
|
||||
|
||||
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="gtk3 nsplugin sasl +spice +vnc"
|
||||
|
||||
RDEPEND=">=app-emulation/libvirt-0.9.7
|
||||
>=dev-libs/libxml2-2.6
|
||||
gtk3? ( x11-libs/gtk+:3 )
|
||||
!gtk3? (
|
||||
>=x11-libs/gtk+-2.18:2
|
||||
>=gnome-base/libglade-2.6
|
||||
)
|
||||
nsplugin? (
|
||||
>=dev-libs/nspr-4
|
||||
>=x11-libs/gtk+-2.18:2
|
||||
>=gnome-base/libglade-2.6
|
||||
)
|
||||
spice? ( >=net-misc/spice-gtk-0.11[sasl?,gtk3?] )
|
||||
vnc? ( >=net-libs/gtk-vnc-0.4.3 )"
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig
|
||||
nsplugin? ( >=net-misc/npapi-sdk-0.27 )"
|
||||
|
||||
REQUIRED_USE="|| ( spice vnc )
|
||||
nsplugin? ( !gtk3 )
|
||||
gtk3? ( !nsplugin )"
|
||||
|
||||
pkg_setup() {
|
||||
G2CONF="$(use_enable nsplugin plugin) $(use_with spice spice-gtk)"
|
||||
G2CONF="${G2CONF} $(use_with vnc gtk-vnc)"
|
||||
use gtk3 && G2CONF="${G2CONF} --with-gtk=3.0"
|
||||
use gtk3 || G2CONF="${G2CONF} --with-gtk=2.0"
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/${PN}-0.5.x-npapi-sdk.patch
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
if use nsplugin; then
|
||||
export MOZILLA_PLUGIN_CFLAGS="$($(tc-getPKG_CONFIG) --cflags npapi-sdk nspr)"
|
||||
export MOZILLA_PLUGIN_LIBS="$($(tc-getPKG_CONFIG) --libs npapi-sdk nspr)"
|
||||
fi
|
||||
|
||||
gnome2_src_configure
|
||||
}
|
@ -1,57 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-emulation/virt-viewer/virt-viewer-0.5.3.ebuild,v 1.1 2012/05/29 20:29:09 dev-zero Exp $
|
||||
|
||||
EAPI=4
|
||||
inherit eutils gnome2 toolchain-funcs
|
||||
|
||||
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="gtk3 nsplugin sasl +spice +vnc"
|
||||
|
||||
RDEPEND=">=app-emulation/libvirt-0.9.7
|
||||
>=dev-libs/libxml2-2.6
|
||||
gtk3? ( x11-libs/gtk+:3 )
|
||||
!gtk3? (
|
||||
>=x11-libs/gtk+-2.18:2
|
||||
>=gnome-base/libglade-2.6
|
||||
)
|
||||
nsplugin? (
|
||||
>=dev-libs/nspr-4
|
||||
>=x11-libs/gtk+-2.18:2
|
||||
>=gnome-base/libglade-2.6
|
||||
)
|
||||
spice? ( >=net-misc/spice-gtk-0.12[sasl?,gtk3=] )
|
||||
vnc? ( >=net-libs/gtk-vnc-0.4.3 )"
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig
|
||||
nsplugin? ( >=net-misc/npapi-sdk-0.27 )"
|
||||
|
||||
REQUIRED_USE="|| ( spice vnc )
|
||||
nsplugin? ( !gtk3 )
|
||||
gtk3? ( !nsplugin )"
|
||||
|
||||
pkg_setup() {
|
||||
G2CONF="$(use_enable nsplugin plugin) $(use_with spice spice-gtk)"
|
||||
G2CONF="${G2CONF} $(use_with vnc gtk-vnc)"
|
||||
use gtk3 && G2CONF="${G2CONF} --with-gtk=3.0"
|
||||
use gtk3 || G2CONF="${G2CONF} --with-gtk=2.0"
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/${PN}-0.5.x-npapi-sdk.patch
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
if use nsplugin; then
|
||||
export MOZILLA_PLUGIN_CFLAGS="$($(tc-getPKG_CONFIG) --cflags npapi-sdk nspr)"
|
||||
export MOZILLA_PLUGIN_LIBS="$($(tc-getPKG_CONFIG) --libs npapi-sdk nspr)"
|
||||
fi
|
||||
|
||||
gnome2_src_configure
|
||||
}
|
@ -1,107 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-emulation/virt-viewer/virt-viewer-0.5.4-r1.ebuild,v 1.1 2012/12/04 23:10:18 cardoe Exp $
|
||||
|
||||
EAPI=5
|
||||
inherit eutils gnome2 toolchain-funcs
|
||||
|
||||
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="gtk3 nsplugin sasl +spice +vnc"
|
||||
|
||||
RDEPEND=">=app-emulation/libvirt-0.10.0[sasl?]
|
||||
>=dev-libs/libxml2-2.6
|
||||
gtk3? ( x11-libs/gtk+:3 )
|
||||
!gtk3? ( >=x11-libs/gtk+-2.18:2 )
|
||||
nsplugin? (
|
||||
>=dev-libs/nspr-4
|
||||
>=x11-libs/gtk+-2.18:2
|
||||
)
|
||||
spice? ( >=net-misc/spice-gtk-0.12.101[sasl?,gtk3=] )
|
||||
vnc? ( >=net-libs/gtk-vnc-0.5.0[sasl?,gtk3=] )"
|
||||
DEPEND="${RDEPEND}
|
||||
>=dev-util/intltool-0.35.0
|
||||
virtual/pkgconfig
|
||||
nsplugin? ( =net-misc/npapi-sdk-0.27 )
|
||||
spice? ( >=app-emulation/spice-protocol-0.10.1 )"
|
||||
|
||||
REQUIRED_USE="|| ( spice vnc )"
|
||||
|
||||
GTK2_BUILDDIR="${WORKDIR}/${P}_nsplugin"
|
||||
GTK3_BUILDDIR="${WORKDIR}/${P}_gtk"
|
||||
|
||||
pkg_setup() {
|
||||
G2CONF="$(use_with vnc gtk-vnc) $(use_with spice spice-gtk)"
|
||||
|
||||
GTK2_G2CONF="${G2CONF} $(use_enable nsplugin plugin)"
|
||||
GTK2_G2CONF="${G2CONF} --with-gtk=2.0"
|
||||
|
||||
GTK3_G2CONF="${G2CONF} --with-gtk=3.0"
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
mkdir ${GTK2_BUILDDIR} || die
|
||||
mkdir ${GTK3_BUILDDIR} || die
|
||||
|
||||
epatch "${FILESDIR}"/${PN}-0.5.x-npapi-sdk.patch
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
if use nsplugin; then
|
||||
export MOZILLA_PLUGIN_CFLAGS="$($(tc-getPKG_CONFIG) --cflags npapi-sdk nspr)"
|
||||
export MOZILLA_PLUGIN_LIBS="$($(tc-getPKG_CONFIG) --libs npapi-sdk nspr)"
|
||||
fi
|
||||
|
||||
export ECONF_SOURCE="${S}"
|
||||
|
||||
cd ${GTK2_BUILDDIR}
|
||||
echo "Running configure in ${GTK2_BUILDDIR}"
|
||||
G2CONF="${GTK2_G2CONF}" gnome2_src_configure
|
||||
|
||||
if use gtk3; then
|
||||
cd ${GTK3_BUILDDIR}
|
||||
echo "Running configure in ${GTK3_BUILDDIR}"
|
||||
G2CONF="${GTK3_G2CONF}" gnome2_src_configure
|
||||
fi
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
cd ${GTK2_BUILDDIR}
|
||||
echo "Running make in ${GTK2_BUILDDIR}"
|
||||
default
|
||||
|
||||
if use gtk3; then
|
||||
cd ${GTK3_BUILDDIR}
|
||||
echo "Running make in ${GTK3_BUILDDIR}"
|
||||
default
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
cd ${GTK2_BUILDDIR}
|
||||
echo "Running make check in ${GTK2_BUILDDIR}"
|
||||
default
|
||||
|
||||
if use gtk3; then
|
||||
cd ${GTK3_BUILDDIR}
|
||||
echo "Running make check in ${GTK3_BUILDDIR}"
|
||||
default
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cd ${GTK2_BUILDDIR}
|
||||
echo "Running make install in ${GTK2_BUILDDIR}"
|
||||
default
|
||||
|
||||
if use gtk3; then
|
||||
cd ${GTK3_BUILDDIR}
|
||||
echo "Running make install in ${GTK3_BUILDDIR}"
|
||||
default
|
||||
fi
|
||||
}
|
@ -1,58 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-emulation/virt-viewer/virt-viewer-0.5.4.ebuild,v 1.3 2012/09/21 18:02:15 cardoe Exp $
|
||||
|
||||
EAPI=4
|
||||
inherit eutils gnome2 toolchain-funcs
|
||||
|
||||
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="gtk3 nsplugin sasl +spice +vnc"
|
||||
|
||||
RDEPEND=">=app-emulation/libvirt-0.9.7
|
||||
>=dev-libs/libxml2-2.6
|
||||
gtk3? ( x11-libs/gtk+:3 )
|
||||
!gtk3? (
|
||||
>=x11-libs/gtk+-2.18:2
|
||||
>=gnome-base/libglade-2.6
|
||||
)
|
||||
nsplugin? (
|
||||
>=dev-libs/nspr-4
|
||||
>=x11-libs/gtk+-2.18:2
|
||||
>=gnome-base/libglade-2.6
|
||||
)
|
||||
spice? ( >=net-misc/spice-gtk-0.12.101[sasl?,gtk3=] )
|
||||
vnc? ( >=net-libs/gtk-vnc-0.4.3 )"
|
||||
DEPEND="${RDEPEND}
|
||||
>=dev-util/intltool-0.35.0
|
||||
virtual/pkgconfig
|
||||
nsplugin? ( >=net-misc/npapi-sdk-0.27 )"
|
||||
|
||||
REQUIRED_USE="|| ( spice vnc )
|
||||
nsplugin? ( !gtk3 )
|
||||
gtk3? ( !nsplugin )"
|
||||
|
||||
pkg_setup() {
|
||||
G2CONF="$(use_enable nsplugin plugin) $(use_with spice spice-gtk)"
|
||||
G2CONF="${G2CONF} $(use_with vnc gtk-vnc)"
|
||||
use gtk3 && G2CONF="${G2CONF} --with-gtk=3.0"
|
||||
use gtk3 || G2CONF="${G2CONF} --with-gtk=2.0"
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/${PN}-0.5.x-npapi-sdk.patch
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
if use nsplugin; then
|
||||
export MOZILLA_PLUGIN_CFLAGS="$($(tc-getPKG_CONFIG) --cflags npapi-sdk nspr)"
|
||||
export MOZILLA_PLUGIN_LIBS="$($(tc-getPKG_CONFIG) --libs npapi-sdk nspr)"
|
||||
fi
|
||||
|
||||
gnome2_src_configure
|
||||
}
|
@ -1,107 +0,0 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-emulation/virt-viewer/virt-viewer-0.5.5.ebuild,v 1.1 2013/02/17 19:13:10 cardoe Exp $
|
||||
|
||||
EAPI=5
|
||||
inherit eutils gnome2 toolchain-funcs
|
||||
|
||||
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="gtk3 nsplugin sasl +spice +vnc"
|
||||
|
||||
RDEPEND=">=app-emulation/libvirt-0.10.0[sasl?]
|
||||
>=dev-libs/libxml2-2.6
|
||||
gtk3? ( x11-libs/gtk+:3 )
|
||||
!gtk3? ( >=x11-libs/gtk+-2.18:2 )
|
||||
nsplugin? (
|
||||
>=dev-libs/nspr-4
|
||||
>=x11-libs/gtk+-2.18:2
|
||||
)
|
||||
spice? ( >=net-misc/spice-gtk-0.18[sasl?,gtk3=] )
|
||||
vnc? ( >=net-libs/gtk-vnc-0.5.0[sasl?,gtk3=] )"
|
||||
DEPEND="${RDEPEND}
|
||||
>=dev-util/intltool-0.35.0
|
||||
virtual/pkgconfig
|
||||
nsplugin? ( =net-misc/npapi-sdk-0.27 )
|
||||
spice? ( >=app-emulation/spice-protocol-0.10.1 )"
|
||||
|
||||
REQUIRED_USE="|| ( spice vnc )"
|
||||
|
||||
GTK2_BUILDDIR="${WORKDIR}/${P}_nsplugin"
|
||||
GTK3_BUILDDIR="${WORKDIR}/${P}_gtk"
|
||||
|
||||
pkg_setup() {
|
||||
G2CONF="$(use_with vnc gtk-vnc) $(use_with spice spice-gtk)"
|
||||
|
||||
GTK2_G2CONF="${G2CONF} $(use_enable nsplugin plugin)"
|
||||
GTK2_G2CONF="${G2CONF} --with-gtk=2.0"
|
||||
|
||||
GTK3_G2CONF="${G2CONF} --with-gtk=3.0"
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
mkdir ${GTK2_BUILDDIR} || die
|
||||
mkdir ${GTK3_BUILDDIR} || die
|
||||
|
||||
epatch "${FILESDIR}"/${PN}-0.5.x-npapi-sdk.patch
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
if use nsplugin; then
|
||||
export MOZILLA_PLUGIN_CFLAGS="$($(tc-getPKG_CONFIG) --cflags npapi-sdk nspr)"
|
||||
export MOZILLA_PLUGIN_LIBS="$($(tc-getPKG_CONFIG) --libs npapi-sdk nspr)"
|
||||
fi
|
||||
|
||||
export ECONF_SOURCE="${S}"
|
||||
|
||||
cd ${GTK2_BUILDDIR}
|
||||
echo "Running configure in ${GTK2_BUILDDIR}"
|
||||
G2CONF="${GTK2_G2CONF}" gnome2_src_configure
|
||||
|
||||
if use gtk3; then
|
||||
cd ${GTK3_BUILDDIR}
|
||||
echo "Running configure in ${GTK3_BUILDDIR}"
|
||||
G2CONF="${GTK3_G2CONF}" gnome2_src_configure
|
||||
fi
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
cd ${GTK2_BUILDDIR}
|
||||
echo "Running make in ${GTK2_BUILDDIR}"
|
||||
default
|
||||
|
||||
if use gtk3; then
|
||||
cd ${GTK3_BUILDDIR}
|
||||
echo "Running make in ${GTK3_BUILDDIR}"
|
||||
default
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
cd ${GTK2_BUILDDIR}
|
||||
echo "Running make check in ${GTK2_BUILDDIR}"
|
||||
default
|
||||
|
||||
if use gtk3; then
|
||||
cd ${GTK3_BUILDDIR}
|
||||
echo "Running make check in ${GTK3_BUILDDIR}"
|
||||
default
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cd ${GTK2_BUILDDIR}
|
||||
echo "Running make install in ${GTK2_BUILDDIR}"
|
||||
default
|
||||
|
||||
if use gtk3; then
|
||||
cd ${GTK3_BUILDDIR}
|
||||
echo "Running make install in ${GTK3_BUILDDIR}"
|
||||
default
|
||||
fi
|
||||
}
|
@ -0,0 +1,45 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-emulation/virt-viewer/virt-viewer-0.5.7.ebuild,v 1.1 2013/08/04 02:16:04 cardoe Exp $
|
||||
|
||||
EAPI=5
|
||||
inherit eutils gnome2 toolchain-funcs
|
||||
|
||||
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?]
|
||||
>=dev-libs/libxml2-2.6
|
||||
x11-libs/gtk+:3
|
||||
spice? ( >=net-misc/spice-gtk-0.20[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.10.1 )"
|
||||
|
||||
REQUIRED_USE="|| ( spice vnc )"
|
||||
|
||||
pkg_setup() {
|
||||
G2CONF="$(use_with vnc gtk-vnc) $(use_with spice spice-gtk)"
|
||||
G2CONF="${G2CONF} --with-gtk=3.0"
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch_user
|
||||
}
|
||||
|
||||
src_test() {
|
||||
default
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
}
|
@ -0,0 +1,335 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-emulation/wine/wine-1.7.0.ebuild,v 1.1 2013/08/04 05:08:59 tetromino Exp $
|
||||
|
||||
EAPI="5"
|
||||
|
||||
AUTOTOOLS_AUTORECONF=1
|
||||
PLOCALES="ar bg ca cs da de el en en_US eo es fa fi fr he hi hr hu it ja ko lt ml nb_NO nl or pa pl pt_BR pt_PT rm ro ru sk sl sr_RS@cyrillic sr_RS@latin sv te th tr uk wa zh_CN zh_TW"
|
||||
PLOCALE_BACKUP="en"
|
||||
|
||||
inherit autotools-multilib eutils fdo-mime flag-o-matic gnome2-utils l10n multilib pax-utils toolchain-funcs virtualx
|
||||
|
||||
if [[ ${PV} == "9999" ]] ; then
|
||||
EGIT_REPO_URI="git://source.winehq.org/git/wine.git"
|
||||
inherit git-2
|
||||
SRC_URI=""
|
||||
#KEYWORDS=""
|
||||
else
|
||||
MY_P="${PN}-${PV/_/-}"
|
||||
SRC_URI="mirror://sourceforge/${PN}/Source/${MY_P}.tar.bz2"
|
||||
KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd"
|
||||
S=${WORKDIR}/${MY_P}
|
||||
fi
|
||||
|
||||
GV="2.21"
|
||||
MV="0.0.8"
|
||||
PULSE_PATCHES="winepulse-patches-1.7.0"
|
||||
WINE_GENTOO="wine-gentoo-2013.06.24"
|
||||
DESCRIPTION="Free implementation of Windows(tm) on Unix"
|
||||
HOMEPAGE="http://www.winehq.org/"
|
||||
SRC_URI="${SRC_URI}
|
||||
gecko? (
|
||||
abi_x86_32? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86.msi )
|
||||
abi_x86_64? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86_64.msi )
|
||||
)
|
||||
mono? ( mirror://sourceforge/${PN}/Wine%20Mono/${MV}/wine-mono-${MV}.msi )
|
||||
http://dev.gentoo.org/~tetromino/distfiles/${PN}/${PULSE_PATCHES}.tar.bz2
|
||||
http://dev.gentoo.org/~tetromino/distfiles/${PN}/${WINE_GENTOO}.tar.bz2"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0"
|
||||
IUSE="+abi_x86_32 +abi_x86_64 +alsa capi cups custom-cflags dos elibc_glibc +fontconfig +gecko gphoto2 gsm gstreamer +jpeg lcms ldap +mono mp3 ncurses nls odbc openal opencl +opengl osmesa oss +perl +png +prelink +run-exes samba scanner selinux +ssl test +threads +truetype +udisks v4l +X xcomposite xinerama +xml"
|
||||
[[ ${PV} == "9999" ]] || IUSE="${IUSE} pulseaudio"
|
||||
REQUIRED_USE="|| ( abi_x86_32 abi_x86_64 )
|
||||
test? ( abi_x86_32 )
|
||||
elibc_glibc? ( threads )
|
||||
mono? ( abi_x86_32 )
|
||||
osmesa? ( opengl )" #286560
|
||||
|
||||
# FIXME: the test suite is unsuitable for us; many tests require net access
|
||||
# or fail due to Xvfb's opengl limitations.
|
||||
RESTRICT="test"
|
||||
|
||||
NATIVE_DEPEND="
|
||||
truetype? ( >=media-libs/freetype-2.0.0 )
|
||||
capi? ( net-dialup/capi4k-utils )
|
||||
ncurses? ( >=sys-libs/ncurses-5.2:= )
|
||||
udisks? ( sys-apps/dbus )
|
||||
fontconfig? ( media-libs/fontconfig:= )
|
||||
gphoto2? ( media-libs/libgphoto2:= )
|
||||
openal? ( media-libs/openal:= )
|
||||
gstreamer? ( media-libs/gstreamer:0.10 media-libs/gst-plugins-base:0.10 )
|
||||
X? (
|
||||
x11-libs/libXcursor
|
||||
x11-libs/libXext
|
||||
x11-libs/libXrandr
|
||||
x11-libs/libXi
|
||||
x11-libs/libXmu
|
||||
x11-libs/libXxf86vm
|
||||
)
|
||||
xinerama? ( x11-libs/libXinerama )
|
||||
alsa? ( media-libs/alsa-lib )
|
||||
cups? ( net-print/cups:= )
|
||||
opencl? ( virtual/opencl )
|
||||
opengl? (
|
||||
virtual/glu
|
||||
virtual/opengl
|
||||
)
|
||||
gsm? ( media-sound/gsm:= )
|
||||
jpeg? ( virtual/jpeg:= )
|
||||
ldap? ( net-nds/openldap:= )
|
||||
lcms? ( media-libs/lcms:2= )
|
||||
mp3? ( >=media-sound/mpg123-1.5.0 )
|
||||
nls? ( sys-devel/gettext )
|
||||
odbc? ( dev-db/unixODBC:= )
|
||||
osmesa? ( media-libs/mesa[osmesa] )
|
||||
xml? ( dev-libs/libxml2 dev-libs/libxslt )
|
||||
scanner? ( media-gfx/sane-backends:= )
|
||||
ssl? ( net-libs/gnutls:= )
|
||||
png? ( media-libs/libpng:0= )
|
||||
v4l? ( media-libs/libv4l )
|
||||
xcomposite? ( x11-libs/libXcomposite )"
|
||||
[[ ${PV} == "9999" ]] || NATIVE_DEPEND="${NATIVE_DEPEND}
|
||||
pulseaudio? ( media-sound/pulseaudio )"
|
||||
|
||||
COMMON_DEPEND="
|
||||
!amd64? ( ${NATIVE_DEPEND} )
|
||||
amd64? (
|
||||
abi_x86_64? ( ${NATIVE_DEPEND} )
|
||||
abi_x86_32? (
|
||||
gstreamer? (
|
||||
app-emulation/emul-linux-x86-gstplugins
|
||||
app-emulation/emul-linux-x86-medialibs[development]
|
||||
)
|
||||
truetype? ( >=app-emulation/emul-linux-x86-xlibs-2.1[development] )
|
||||
X? (
|
||||
>=app-emulation/emul-linux-x86-xlibs-2.1[development]
|
||||
>=app-emulation/emul-linux-x86-soundlibs-2.1[development]
|
||||
)
|
||||
mp3? ( app-emulation/emul-linux-x86-soundlibs[development] )
|
||||
odbc? ( app-emulation/emul-linux-x86-db[development] )
|
||||
openal? ( app-emulation/emul-linux-x86-sdl[development] )
|
||||
opengl? ( app-emulation/emul-linux-x86-opengl[development] )
|
||||
osmesa? ( >=app-emulation/emul-linux-x86-opengl-20121028[development] )
|
||||
scanner? ( app-emulation/emul-linux-x86-medialibs[development] )
|
||||
v4l? ( app-emulation/emul-linux-x86-medialibs[development] )
|
||||
>=app-emulation/emul-linux-x86-baselibs-20130224[development]
|
||||
)
|
||||
)"
|
||||
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
dos? ( games-emulation/dosbox )
|
||||
perl? ( dev-lang/perl dev-perl/XML-Simple )
|
||||
samba? ( >=net-fs/samba-3.0.25 )
|
||||
selinux? ( sec-policy/selinux-wine )
|
||||
truetype? ( media-fonts/corefonts )
|
||||
udisks? ( sys-fs/udisks:2 )"
|
||||
[[ ${PV} == "9999" ]] || RDEPEND="${RDEPEND}
|
||||
pulseaudio? ( sys-auth/rtkit )"
|
||||
|
||||
DEPEND="${COMMON_DEPEND}
|
||||
X? (
|
||||
x11-proto/inputproto
|
||||
x11-proto/xextproto
|
||||
x11-proto/xf86vidmodeproto
|
||||
)
|
||||
xinerama? ( x11-proto/xineramaproto )
|
||||
prelink? ( sys-devel/prelink )
|
||||
>=sys-kernel/linux-headers-2.6
|
||||
virtual/pkgconfig
|
||||
virtual/yacc
|
||||
sys-devel/flex"
|
||||
|
||||
# These use a non-standard "Wine" category, which is provided by
|
||||
# /etc/xdg/applications-merged/wine.menu
|
||||
QA_DESKTOP_FILE="usr/share/applications/wine-browsedrive.desktop
|
||||
usr/share/applications/wine-notepad.desktop
|
||||
usr/share/applications/wine-uninstaller.desktop
|
||||
usr/share/applications/wine-winecfg.desktop"
|
||||
|
||||
src_unpack() {
|
||||
if use abi_x86_64; then
|
||||
[[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]] \
|
||||
&& die "you need gcc-4.4+ to build 64bit wine"
|
||||
fi
|
||||
|
||||
if use abi_x86_32 && use opencl; then
|
||||
[[ x$(eselect opencl show) = "xintel" ]] &&
|
||||
die "Cannot build wine[opencl,abi_x86_32]: intel-ocl-sdk is 64-bit only" # 403947
|
||||
fi
|
||||
|
||||
if [[ ${PV} == "9999" ]] ; then
|
||||
git-2_src_unpack
|
||||
else
|
||||
unpack ${MY_P}.tar.bz2
|
||||
fi
|
||||
|
||||
unpack "${PULSE_PATCHES}.tar.bz2"
|
||||
unpack "${WINE_GENTOO}.tar.bz2"
|
||||
|
||||
l10n_find_plocales_changes "${S}/po" "" ".po"
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
local md5="$(md5sum server/protocol.def)"
|
||||
local PATCHES=(
|
||||
"${FILESDIR}"/${PN}-1.5.26-winegcc.patch #260726
|
||||
"${FILESDIR}"/${PN}-1.4_rc2-multilib-portage.patch #395615
|
||||
"${FILESDIR}"/${PN}-1.5.17-osmesa-check.patch #429386
|
||||
)
|
||||
[[ ${PV} == "9999" ]] || PATCHES+=(
|
||||
"../${PULSE_PATCHES}"/*.patch #421365
|
||||
)
|
||||
|
||||
autotools-utils_src_prepare
|
||||
|
||||
if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then
|
||||
einfo "server/protocol.def was patched; running tools/make_requests"
|
||||
tools/make_requests || die #432348
|
||||
fi
|
||||
sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die
|
||||
if ! use run-exes; then
|
||||
sed -i '/^MimeType/d' tools/wine.desktop || die #117785
|
||||
fi
|
||||
|
||||
# hi-res default icon, #472990, http://bugs.winehq.org/show_bug.cgi?id=24652
|
||||
cp "${WORKDIR}"/${WINE_GENTOO}/icons/oic_winlogo.ico dlls/user32/resources/ || die
|
||||
|
||||
l10n_get_locales > po/LINGUAS # otherwise wine doesn't respect LINGUAS
|
||||
}
|
||||
|
||||
do_configure() {
|
||||
local myeconfargs=( "${myeconfargs[@]}" )
|
||||
|
||||
if use amd64; then
|
||||
if [[ ${ABI} == amd64 ]]; then
|
||||
myeconfargs+=( --enable-win64 )
|
||||
else
|
||||
myeconfargs+=( --disable-win64 )
|
||||
fi
|
||||
|
||||
# Note: using --with-wine64 results in problems with multilib.eclass
|
||||
# CC/LD hackery. We're using separate tools instead.
|
||||
fi
|
||||
|
||||
autotools-utils_src_configure
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
export LDCONFIG=/bin/true
|
||||
use custom-cflags || strip-flags
|
||||
|
||||
local myeconfargs=( # common
|
||||
--sysconfdir=/etc/wine
|
||||
$(use_with alsa)
|
||||
$(use_with capi)
|
||||
$(use_with lcms cms)
|
||||
$(use_with cups)
|
||||
$(use_with ncurses curses)
|
||||
$(use_with udisks dbus)
|
||||
$(use_with fontconfig)
|
||||
$(use_with ssl gnutls)
|
||||
$(use_with gphoto2 gphoto)
|
||||
$(use_with gsm)
|
||||
$(use_with gstreamer)
|
||||
--without-hal
|
||||
$(use_with jpeg)
|
||||
$(use_with ldap)
|
||||
$(use_with mp3 mpg123)
|
||||
$(use_with nls gettext)
|
||||
$(use_with openal)
|
||||
$(use_with opencl)
|
||||
$(use_with opengl)
|
||||
$(use_with osmesa)
|
||||
$(use_with oss)
|
||||
$(use_with png)
|
||||
$(use_with threads pthread)
|
||||
$(use_with scanner sane)
|
||||
$(use_enable test tests)
|
||||
$(use_with truetype freetype)
|
||||
$(use_with v4l)
|
||||
$(use_with X x)
|
||||
$(use_with xcomposite)
|
||||
$(use_with xinerama)
|
||||
$(use_with xml)
|
||||
$(use_with xml xslt)
|
||||
)
|
||||
|
||||
[[ ${PV} == "9999" ]] || myeconfargs+=( $(use_with pulseaudio pulse) )
|
||||
|
||||
# Avoid crossdev's i686-pc-linux-gnu-pkg-config if building wine32 on amd64; #472038
|
||||
use amd64 && use abi_x86_32 && tc-export PKG_CONFIG
|
||||
|
||||
multilib_parallel_foreach_abi do_configure
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
autotools-multilib_src_compile depend
|
||||
autotools-multilib_src_compile all
|
||||
}
|
||||
|
||||
src_test() {
|
||||
if [[ $(id -u) == 0 ]]; then
|
||||
ewarn "Skipping tests since they cannot be run under the root user."
|
||||
ewarn "To run the test ${PN} suite, add userpriv to FEATURES in make.conf"
|
||||
return
|
||||
fi
|
||||
|
||||
# FIXME: win32-only; wine64 tests fail with "could not find the Wine loader"
|
||||
multilib_toolchain_setup x86
|
||||
local BUILD_DIR="${S}-${ABI}"
|
||||
cd "${BUILD_DIR}" || die
|
||||
WINEPREFIX="${T}/.wine-${ABI}" Xemake test
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local DOCS=( ANNOUNCE AUTHORS README )
|
||||
add_locale_docs() {
|
||||
local locale_doc="documentation/README.$1"
|
||||
[[ ! -e ${locale_doc} ]] || DOCS=( "${DOCS[@]}" ${locale_doc} )
|
||||
}
|
||||
l10n_for_each_locale_do add_locale_docs
|
||||
autotools-multilib_src_install
|
||||
|
||||
emake -C "../${WINE_GENTOO}" install DESTDIR="${D}" EPREFIX="${EPREFIX}"
|
||||
if use gecko ; then
|
||||
insinto /usr/share/wine/gecko
|
||||
use abi_x86_32 && doins "${DISTDIR}"/wine_gecko-${GV}-x86.msi
|
||||
use abi_x86_64 && doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.msi
|
||||
fi
|
||||
if use mono ; then
|
||||
insinto /usr/share/wine/mono
|
||||
doins "${DISTDIR}"/wine-mono-${MV}.msi
|
||||
fi
|
||||
if ! use perl ; then
|
||||
rm "${D}"usr/bin/{wine{dump,maker},function_grep.pl} "${D}"usr/share/man/man1/wine{dump,maker}.1 || die
|
||||
fi
|
||||
|
||||
use abi_x86_32 && pax-mark psmr "${D}"usr/bin/wine{,-preloader} #255055
|
||||
use abi_x86_64 && pax-mark psmr "${D}"usr/bin/wine64{,-preloader}
|
||||
|
||||
if use abi_x86_64 && ! use abi_x86_32; then
|
||||
dosym /usr/bin/wine{64,} # 404331
|
||||
dosym /usr/bin/wine{64,}-preloader
|
||||
fi
|
||||
|
||||
# respect LINGUAS when installing man pages, #469418
|
||||
for l in de fr pl; do
|
||||
use linguas_${l} || rm -r "${D}"usr/share/man/${l}*
|
||||
done
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
gnome2_icon_savelist
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
gnome2_icon_cache_update
|
||||
fdo-mime_desktop_database_update
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
gnome2_icon_cache_update
|
||||
fdo-mime_desktop_database_update
|
||||
}
|
@ -1,2 +1,52 @@
|
||||
# /etc/conf.d/xenstored
|
||||
XENSTORED_OPTS=""
|
||||
#!/sbin/runscript
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
is_privileged_domain() {
|
||||
# [ -e /proc/xen/capabilities ]
|
||||
! [ -z /proc/xen/capabilities ] && return 0
|
||||
return 1
|
||||
}
|
||||
|
||||
depend() {
|
||||
before xendomains xend sshd ntp-client ntpd nfs nfsmount rsyncd portmap dhcp
|
||||
}
|
||||
|
||||
start() {
|
||||
[ -x /run/xen ] || mkdir -p /run/xen
|
||||
ebegin "Starting xenstored daemon"
|
||||
|
||||
if [ -e /proc/xen/privcmd ] && is_privileged_domain
|
||||
then
|
||||
eend 1 "Not running on a privileged domain. xenstored not started"
|
||||
return 1
|
||||
fi
|
||||
|
||||
start-stop-daemon --start --exec /usr/sbin/xenstored \
|
||||
--pidfile /var/run/xenstored.pid \
|
||||
-- --pid-file=/var/run/xenstored.pid \
|
||||
$XENSTORED_OPTS || return 1
|
||||
|
||||
einfo "Waiting (upto 10 seconds) for xenstore to come up"
|
||||
|
||||
for i in {0..20}; do
|
||||
sleep .5
|
||||
! xenstore-exists / 2> /dev/null || break
|
||||
done
|
||||
|
||||
if ! xenstore-exists / 2> /dev/null; then
|
||||
eend 1 "xenstore not up within 10 seconds"
|
||||
else
|
||||
einfo "Setting domain0 name record"
|
||||
xenstore-write "/local/domain/0/name" "Domain-0"
|
||||
eend $?
|
||||
fi
|
||||
}
|
||||
|
||||
stop() {
|
||||
ebegin "Stopping xenstored daemon"
|
||||
start-stop-daemon --stop --exec /usr/sbin/xenstored \
|
||||
--pidfile /var/run/xenstored.pid
|
||||
eend $?
|
||||
}
|
||||
|
||||
|
@ -0,0 +1,2 @@
|
||||
# /etc/conf.d/xenstored
|
||||
XENSTORED_OPTS=""
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue