parent
f575562c3a
commit
6ddf2532d9
Binary file not shown.
Binary file not shown.
@ -1,4 +1,3 @@
|
|||||||
DIST consul-1.2.2.tar.gz 15789375 BLAKE2B 8a0af370568f6fcb90334b147bd84e479efb682ed6c58d63dd56f3554f9e6538d37963ac825bb8598eef8948492feec688b8266733223d1557dbce9704daef35 SHA512 715f69e7b36d0070ea4e602dc50f51aa2547dbbbbb07cce985da79d1e201c6e84dade8a7c810e3602f88cfbd30e063669076954d2541810a18a0c9e7c9ff8458
|
|
||||||
DIST consul-1.2.3.tar.gz 18428593 BLAKE2B 14582bf9668e4f2a1c8c443cb01d7b9780c9bc414ff226907335f3873c135b77566898649d16b352ef21ee9300c290338f59672c5fb2b187694aea97b8735dec SHA512 71a7dbfc031df4a96faf2ddd829f289e96adefd0e0087208bbdd26e742a24e3da05fceea4181eb915703ad3323ed5b02bf74eb3fdfbed1e9a1afa2f74acb2a34
|
|
||||||
DIST consul-1.3.0.tar.gz 19423317 BLAKE2B 1db4de2d24be31b2d889b6f49cae33f2719080cf35df15c12c09159a57b9930cbe7204f8a35bbfe0f77145f562e3fe7d224785dde1f7b0cc3f0086e95e1316ef SHA512 b05b0ed316e10f45b83839812fb3394153e8bed604d35f0a983d33fcad3012a3b1872411b3034dbba54dd0ba000e737f18f7f351ed57fe737b0f365bdfe92f2c
|
DIST consul-1.3.0.tar.gz 19423317 BLAKE2B 1db4de2d24be31b2d889b6f49cae33f2719080cf35df15c12c09159a57b9930cbe7204f8a35bbfe0f77145f562e3fe7d224785dde1f7b0cc3f0086e95e1316ef SHA512 b05b0ed316e10f45b83839812fb3394153e8bed604d35f0a983d33fcad3012a3b1872411b3034dbba54dd0ba000e737f18f7f351ed57fe737b0f365bdfe92f2c
|
||||||
DIST consul-1.4.0.tar.gz 19685523 BLAKE2B df999d29fdab59b41d8e7ea4ec977a35aa7ec5b7daa293a75a39f695e3a75b1748b5bb584be9d9d5b3e1f0adac9626613a04949ff711ac713e2741cd2f9ad127 SHA512 a9f253ef5baa4e43800a0982ecb6893bf9487775cdcbe3a17bc7c45d601b6dca4e4c398ae3b70cdc1880577dbe1504d1a1f0cb702a1dd8c98b108e059fc721a0
|
DIST consul-1.4.0.tar.gz 19685523 BLAKE2B df999d29fdab59b41d8e7ea4ec977a35aa7ec5b7daa293a75a39f695e3a75b1748b5bb584be9d9d5b3e1f0adac9626613a04949ff711ac713e2741cd2f9ad127 SHA512 a9f253ef5baa4e43800a0982ecb6893bf9487775cdcbe3a17bc7c45d601b6dca4e4c398ae3b70cdc1880577dbe1504d1a1f0cb702a1dd8c98b108e059fc721a0
|
||||||
|
DIST consul-1.4.1.tar.gz 22517128 BLAKE2B a4091ad1c2d743693ec14e364bf610479cb6c6f33caeb601698ca37a98fa0ddb6417bbca4ca30e3941bdb1c8be18f0eb31b0e515498d7fea38c553ef2d0a1f46 SHA512 e5451a414878a2a9d3591d4ae2caf8a227035017a6b65cbacf272a1a14727d33cabb1a11bd0fa3b837195309ff77aa49d4087cb6faedddb8ea002ac46412bc90
|
||||||
|
@ -1,69 +0,0 @@
|
|||||||
# Copyright 1999-2018 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=6
|
|
||||||
|
|
||||||
inherit golang-vcs-snapshot systemd user
|
|
||||||
GIT_COMMIT="48d287e"
|
|
||||||
KEYWORDS="~amd64"
|
|
||||||
EGO_PN="github.com/hashicorp/consul"
|
|
||||||
DESCRIPTION="A tool for service discovery, monitoring and configuration"
|
|
||||||
HOMEPAGE="https://www.consul.io"
|
|
||||||
SRC_URI="https://github.com/hashicorp/consul/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
|
||||||
|
|
||||||
SLOT="0"
|
|
||||||
LICENSE="MPL-2.0"
|
|
||||||
IUSE=""
|
|
||||||
|
|
||||||
RESTRICT="test"
|
|
||||||
|
|
||||||
DEPEND="dev-go/gox
|
|
||||||
>=dev-lang/go-1.9:=
|
|
||||||
>=dev-go/go-tools-0_pre20160121"
|
|
||||||
RDEPEND=""
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
enewgroup consul
|
|
||||||
enewuser consul -1 -1 /var/lib/${PN} consul
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
default
|
|
||||||
|
|
||||||
sed -e 's:go get -u -v $(GOTOOLS)::' \
|
|
||||||
-e 's:vendorfmt dev-build:dev-build:' \
|
|
||||||
-i "src/${EGO_PN}/GNUmakefile" || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
# The dev target sets causes build.sh to set appropriate XC_OS
|
|
||||||
# and XC_ARCH, and skips generation of an unused zip file,
|
|
||||||
# avoiding a dependency on app-arch/zip.
|
|
||||||
GOPATH="${S}" \
|
|
||||||
GOBIN="${S}/bin" \
|
|
||||||
GIT_DESCRIBE="v${PV}" \
|
|
||||||
GIT_DIRTY="" \
|
|
||||||
GIT_COMMIT="${GIT_COMMIT}" \
|
|
||||||
emake -C "src/${EGO_PN}" dev-build
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
local x
|
|
||||||
|
|
||||||
dobin bin/consul
|
|
||||||
|
|
||||||
keepdir /etc/consul.d
|
|
||||||
insinto /etc/consul.d
|
|
||||||
doins "${FILESDIR}/"*.json.example
|
|
||||||
|
|
||||||
for x in /var/{lib,log}/${PN}; do
|
|
||||||
keepdir "${x}"
|
|
||||||
fowners consul:consul "${x}"
|
|
||||||
done
|
|
||||||
|
|
||||||
newinitd "${FILESDIR}/consul.initd" "${PN}"
|
|
||||||
newconfd "${FILESDIR}/consul.confd" "${PN}"
|
|
||||||
insinto /etc/logrotate.d
|
|
||||||
newins "${FILESDIR}/${PN}.logrotated" "${PN}"
|
|
||||||
systemd_dounit "${FILESDIR}/consul.service"
|
|
||||||
}
|
|
@ -0,0 +1,79 @@
|
|||||||
|
# Copyright 1999-2019 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
inherit eutils systemd unpacker user
|
||||||
|
|
||||||
|
DESCRIPTION="general puppet client utils along with hiera and facter"
|
||||||
|
HOMEPAGE="https://puppetlabs.com/"
|
||||||
|
SRC_BASE="http://apt.puppetlabs.com/pool/stretch/puppet/${PN:0:1}/${PN}/${PN}_${PV}-1stretch"
|
||||||
|
SRC_URI="
|
||||||
|
amd64? ( ${SRC_BASE}_amd64.deb )
|
||||||
|
x86? ( ${SRC_BASE}_i386.deb )"
|
||||||
|
|
||||||
|
LICENSE="Apache-2.0"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
IUSE="puppetdb selinux"
|
||||||
|
RESTRICT="strip"
|
||||||
|
|
||||||
|
CDEPEND="!app-admin/augeas
|
||||||
|
!app-admin/puppet
|
||||||
|
!dev-ruby/hiera
|
||||||
|
!dev-ruby/facter
|
||||||
|
!app-emulation/virt-what"
|
||||||
|
|
||||||
|
DEPEND="
|
||||||
|
${CDEPEND}"
|
||||||
|
RDEPEND="${CDEPEND}
|
||||||
|
app-portage/eix
|
||||||
|
sys-apps/dmidecode
|
||||||
|
sys-libs/glibc
|
||||||
|
sys-libs/readline:0/7
|
||||||
|
sys-libs/ncurses:0[tinfo]
|
||||||
|
selinux? (
|
||||||
|
sys-libs/libselinux[ruby]
|
||||||
|
sec-policy/selinux-puppet
|
||||||
|
)
|
||||||
|
puppetdb? ( >=dev-ruby/puppetdb-termini-5.0.1 )"
|
||||||
|
|
||||||
|
S=${WORKDIR}
|
||||||
|
|
||||||
|
pkg_setup() {
|
||||||
|
enewgroup puppet
|
||||||
|
enewuser puppet -1 -1 /var/run/puppet puppet
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
# conf.d
|
||||||
|
doconfd etc/default/puppet
|
||||||
|
doconfd etc/default/pxp-agent
|
||||||
|
# logrotate.d
|
||||||
|
insinto /etc/logrotate.d
|
||||||
|
doins etc/logrotate.d/pxp-agent
|
||||||
|
# puppet itself
|
||||||
|
insinto /etc/puppetlabs
|
||||||
|
doins -r etc/puppetlabs/*
|
||||||
|
# logdir for systemd
|
||||||
|
dodir var/log/puppetlabs/puppet/
|
||||||
|
fperms 0750 var/log/puppetlabs/puppet/
|
||||||
|
# the rest
|
||||||
|
insinto /opt
|
||||||
|
dodir opt/puppetlabs/puppet/cache
|
||||||
|
doins -r opt/*
|
||||||
|
fperms 0750 /opt/puppetlabs/puppet/cache
|
||||||
|
# init
|
||||||
|
newinitd "${FILESDIR}/puppet.initd" puppet
|
||||||
|
systemd_dounit lib/systemd/system/puppet.service
|
||||||
|
systemd_dounit lib/systemd/system/pxp-agent.service
|
||||||
|
systemd_newtmpfilesd "${FILESDIR}/puppet-agent.conf.tmpfilesd" puppet-agent.conf
|
||||||
|
# symlinks
|
||||||
|
chmod 0755 -R "${D}/opt/puppetlabs/puppet/bin/"
|
||||||
|
chmod 0755 "${D}//opt/puppetlabs/puppet/lib/virt-what/virt-what-cpuid-helper"
|
||||||
|
dosym ../../opt/puppetlabs/bin/facter /usr/bin/facter
|
||||||
|
dosym ../../opt/puppetlabs/bin/hiera /usr/bin/hiera
|
||||||
|
dosym ../../opt/puppetlabs/bin/puppet /usr/bin/puppet
|
||||||
|
dosym ../../opt/puppetlabs/puppet/bin/virt-what /usr/bin/virt-what
|
||||||
|
dosym ../../opt/puppetlabs/puppet/bin/augparse /usr/bin/augparse
|
||||||
|
dosym ../../opt/puppetlabs/puppet/bin/augtool /usr/bin/augtool
|
||||||
|
}
|
@ -0,0 +1,138 @@
|
|||||||
|
# Copyright 1999-2019 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI="6"
|
||||||
|
|
||||||
|
USE_RUBY="ruby23 ruby24 ruby25"
|
||||||
|
|
||||||
|
RUBY_FAKEGEM_RECIPE_TEST="rspec3"
|
||||||
|
|
||||||
|
RUBY_FAKEGEM_TASK_DOC="doc:all"
|
||||||
|
|
||||||
|
RUBY_FAKEGEM_EXTRAINSTALL="locales"
|
||||||
|
|
||||||
|
inherit eutils user ruby-fakegem eapi7-ver
|
||||||
|
|
||||||
|
DESCRIPTION="A system automation and configuration management software."
|
||||||
|
HOMEPAGE="http://puppetlabs.com/"
|
||||||
|
SRC_URI="http://downloads.puppetlabs.com/puppet/${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="Apache-2.0 GPL-2"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~x86"
|
||||||
|
IUSE="augeas diff doc emacs ldap rrdtool selinux shadow sqlite vim-syntax"
|
||||||
|
RESTRICT="test"
|
||||||
|
|
||||||
|
ruby_add_rdepend "
|
||||||
|
dev-ruby/hiera
|
||||||
|
dev-ruby/json:=
|
||||||
|
dev-ruby/semantic_puppet
|
||||||
|
>=dev-ruby/facter-3.0.0
|
||||||
|
augeas? ( dev-ruby/ruby-augeas )
|
||||||
|
diff? ( dev-ruby/diff-lcs )
|
||||||
|
doc? ( dev-ruby/rdoc )
|
||||||
|
ldap? ( dev-ruby/ruby-ldap )
|
||||||
|
shadow? ( dev-ruby/ruby-shadow )
|
||||||
|
sqlite? ( dev-ruby/sqlite3 )
|
||||||
|
virtual/ruby-ssl
|
||||||
|
dev-ruby/hocon"
|
||||||
|
|
||||||
|
ruby_add_bdepend "
|
||||||
|
doc? ( dev-ruby/yard )
|
||||||
|
test? (
|
||||||
|
dev-ruby/mocha
|
||||||
|
dev-ruby/rack
|
||||||
|
dev-ruby/rspec-its
|
||||||
|
)"
|
||||||
|
# this should go in the above lists, but isn't because of test deps not being keyworded
|
||||||
|
# dev-ruby/rspec-collection_matchers
|
||||||
|
|
||||||
|
RDEPEND+=" ${RDEPEND}
|
||||||
|
rrdtool? ( >=net-analyzer/rrdtool-1.2.23[ruby] )
|
||||||
|
selinux? (
|
||||||
|
sys-libs/libselinux[ruby]
|
||||||
|
sec-policy/selinux-puppet
|
||||||
|
)
|
||||||
|
vim-syntax? ( >=app-vim/puppet-syntax-3.0.1 )
|
||||||
|
>=app-portage/eix-0.18.0"
|
||||||
|
PDEPEND="emacs? ( >=app-emacs/puppet-mode-0.3-r1 )"
|
||||||
|
|
||||||
|
pkg_setup() {
|
||||||
|
enewgroup puppet
|
||||||
|
enewuser puppet -1 -1 /var/lib/puppet puppet
|
||||||
|
}
|
||||||
|
|
||||||
|
all_ruby_prepare() {
|
||||||
|
# Avoid spec that require unpackaged json-schema.
|
||||||
|
rm spec/lib/matchers/json.rb $( grep -Rl matchers/json spec) || die
|
||||||
|
|
||||||
|
# can't be run within portage.
|
||||||
|
epatch "${FILESDIR}/puppet-fix-tests-6.0.0.patch"
|
||||||
|
|
||||||
|
# fix systemd path
|
||||||
|
epatch "${FILESDIR}/puppet-systemd.patch"
|
||||||
|
|
||||||
|
# Avoid specs that can only run in the puppet.git repository. This
|
||||||
|
# should be narrowed down to the specific specs.
|
||||||
|
rm spec/integration/parser/compiler_spec.rb || die
|
||||||
|
|
||||||
|
# Avoid failing spec that need further investigation.
|
||||||
|
rm spec/unit/module_tool/metadata_spec.rb || die
|
||||||
|
}
|
||||||
|
|
||||||
|
each_ruby_install() {
|
||||||
|
each_fakegem_install
|
||||||
|
# dosym "/usr/$(get_libdir)/ruby/gems/$(ruby_get_version)/gems/${P}" "/usr/$(get_libdir)/ruby/gems/$(ruby_get_version)/gems/${PN}"
|
||||||
|
}
|
||||||
|
|
||||||
|
all_ruby_install() {
|
||||||
|
all_fakegem_install
|
||||||
|
|
||||||
|
# systemd stuffs
|
||||||
|
insinto /usr/lib/systemd/system
|
||||||
|
doins "${WORKDIR}/all/${P}/ext/systemd/puppet.service"
|
||||||
|
|
||||||
|
# tmpfiles stuff
|
||||||
|
insinto /usr/lib/tmpfiles.d
|
||||||
|
newins "${FILESDIR}/tmpfiles.d" "puppet.conf"
|
||||||
|
|
||||||
|
# openrc init stuff
|
||||||
|
newinitd "${FILESDIR}"/puppet.init-4.x puppet
|
||||||
|
|
||||||
|
keepdir /etc/puppetlabs/puppet/ssl
|
||||||
|
|
||||||
|
keepdir /var/lib/puppet/facts
|
||||||
|
keepdir /var/lib/puppet/files
|
||||||
|
fowners -R puppet:puppet /var/lib/puppet
|
||||||
|
|
||||||
|
fperms 0750 /var/lib/puppet
|
||||||
|
|
||||||
|
fperms 0750 /etc/puppetlabs
|
||||||
|
fperms 0750 /etc/puppetlabs/puppet
|
||||||
|
fperms 0750 /etc/puppetlabs/puppet/ssl
|
||||||
|
fowners -R :puppet /etc/puppetlabs
|
||||||
|
fowners -R :puppet /var/lib/puppet
|
||||||
|
|
||||||
|
if use ldap ; then
|
||||||
|
insinto /etc/openldap/schema; doins ext/ldap/puppet.schema
|
||||||
|
fi
|
||||||
|
|
||||||
|
# ext and examples files
|
||||||
|
for f in $(find ext examples -type f) ; do
|
||||||
|
docinto "$(dirname ${f})"; dodoc "${f}"
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
elog
|
||||||
|
elog "Please, *don't* include the --ask option in EMERGE_EXTRA_OPTS as this could"
|
||||||
|
elog "cause puppet to hang while installing packages."
|
||||||
|
elog
|
||||||
|
elog "Portage Puppet module with Gentoo-specific resources:"
|
||||||
|
elog "http://forge.puppetlabs.com/gentoo/portage"
|
||||||
|
elog
|
||||||
|
elog "If updating from puppet 5 to 6, keep in mind that webrick (server/master)"
|
||||||
|
elog "suppert was removed for >=6.x, please migrate to puppetserver if you have"
|
||||||
|
elog "not already done so."
|
||||||
|
elog
|
||||||
|
}
|
@ -1,3 +1,4 @@
|
|||||||
DIST puppetdb-5.2.4.tar.gz 25438658 BLAKE2B 4e548ed018b57f68c0cc81185579234e17086985733d56030802577ab5fb8106c7c47c603aa3da65ede3e5780c89df8b2dbece12c29aa1b171ceda1de7228f56 SHA512 6979ebccaa1136d19ffd0d67bdbff9c608c649d75b56b4b041d8795fdcedf24c831553c5361f8e144fa01bbac92af88e6548f917ca00eec707d8740a99689059
|
DIST puppetdb-5.2.4.tar.gz 25438658 BLAKE2B 4e548ed018b57f68c0cc81185579234e17086985733d56030802577ab5fb8106c7c47c603aa3da65ede3e5780c89df8b2dbece12c29aa1b171ceda1de7228f56 SHA512 6979ebccaa1136d19ffd0d67bdbff9c608c649d75b56b4b041d8795fdcedf24c831553c5361f8e144fa01bbac92af88e6548f917ca00eec707d8740a99689059
|
||||||
DIST puppetdb-5.2.7.tar.gz 24353701 BLAKE2B 196b336a92031a25f7f28ca070a831857f3e0dde3ecc02e12e6884f3628c12dcc27b347c39147636addc975841f340fbf89196e86b3c10efc2ad1f16cf6f882a SHA512 989fa232d0fbd90c975fe110caca9b9c92a90167eb7b8d0384282dd8cf85111a56174c6785d7c73800e19185e879e258b8e6cefb210c1c44a229ce994336ef1d
|
DIST puppetdb-5.2.7.tar.gz 24353701 BLAKE2B 196b336a92031a25f7f28ca070a831857f3e0dde3ecc02e12e6884f3628c12dcc27b347c39147636addc975841f340fbf89196e86b3c10efc2ad1f16cf6f882a SHA512 989fa232d0fbd90c975fe110caca9b9c92a90167eb7b8d0384282dd8cf85111a56174c6785d7c73800e19185e879e258b8e6cefb210c1c44a229ce994336ef1d
|
||||||
DIST puppetdb-6.1.0.tar.gz 40448212 BLAKE2B fc12d7177eda99e755eddf33c7833b98a1567ac8675bd080720105709b44421b0293a3c8eb38c104104b0bade72f0dd8e2862a10d25f52c4ecbd0f914e66bd77 SHA512 185403b528099d6ef318cbbdd58228c31face25c540435e049585f68fabcc17f5850cc10eec342746c910ebfdcf2a1d99c7f9ca01b0baf2dd4585ccae1ede205
|
DIST puppetdb-6.1.0.tar.gz 40448212 BLAKE2B fc12d7177eda99e755eddf33c7833b98a1567ac8675bd080720105709b44421b0293a3c8eb38c104104b0bade72f0dd8e2862a10d25f52c4ecbd0f914e66bd77 SHA512 185403b528099d6ef318cbbdd58228c31face25c540435e049585f68fabcc17f5850cc10eec342746c910ebfdcf2a1d99c7f9ca01b0baf2dd4585ccae1ede205
|
||||||
|
DIST puppetdb-6.2.0.tar.gz 39922402 BLAKE2B 5d3c36bdeb902c7292d8da728ce225e3378bcb1283dbb2558f7aaa488e53351da41551606723d6c504118f5a653d92831cb55e0570dd7827c1be06f78592e0ef SHA512 33da6a7db688561d01302918cc0e85ff88f5490ac4007e4f20df6b0483aa1a7f65b2226f98966936333c7fa28060adca47f10ba7419a05d70c9c72bd8a40e8e5
|
||||||
|
@ -0,0 +1,92 @@
|
|||||||
|
# Copyright 1999-2019 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
|
||||||
|
inherit multilib systemd user
|
||||||
|
|
||||||
|
DESCRIPTION="PuppetDB collects data generated by Puppet."
|
||||||
|
HOMEPAGE="http://docs.puppetlabs.com/puppetdb/"
|
||||||
|
SRC_URI="https://downloads.puppetlabs.com/${PN}/${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="Apache-2.0"
|
||||||
|
SLOT="0"
|
||||||
|
IUSE=""
|
||||||
|
# will need the same keywords as puppet
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
|
||||||
|
RDEPEND+=">=virtual/jdk-1.8.0"
|
||||||
|
DEPEND+=""
|
||||||
|
|
||||||
|
pkg_setup() {
|
||||||
|
enewgroup puppetdb
|
||||||
|
enewuser puppetdb -1 -1 /opt/puppetlabs/server/data/puppetdb "puppetdb"
|
||||||
|
}
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
sed -i 's/sysconfig/conf\.d/g' ext/redhat/puppetdb.service || die
|
||||||
|
sed -i 's/sysconfig/conf\.d/g' ext/bin/puppetdb || die
|
||||||
|
sed -i 's/sysconfig/conf\.d/g' install.sh || die
|
||||||
|
sed -i 's/var\/run/run/g' ext/puppetdb.tmpfiles.conf || die
|
||||||
|
sed -i 's/var\/run/run/g' install.sh || die
|
||||||
|
default
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
einfo "not compiling"
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
dodir /opt/puppetlabs/server/data/puppetdb
|
||||||
|
insinto /opt/puppetlabs/server/apps/puppetdb
|
||||||
|
insopts -m0744
|
||||||
|
doins ext/ezbake-functions.sh
|
||||||
|
insopts -m0644
|
||||||
|
doins ext/ezbake.manifest
|
||||||
|
doins puppetdb.jar
|
||||||
|
insinto /etc/puppetlabs/puppetdb
|
||||||
|
doins ext/config/logback.xml
|
||||||
|
doins ext/config/bootstrap.cfg
|
||||||
|
doins ext/config/request-logging.xml
|
||||||
|
insinto /etc/puppetlabs/puppetdb/conf.d
|
||||||
|
doins ext/config/conf.d/jetty.ini
|
||||||
|
doins ext/config/conf.d/repl.ini
|
||||||
|
doins ext/config/conf.d/database.ini
|
||||||
|
doins ext/config/conf.d/config.ini
|
||||||
|
insopts -m0755
|
||||||
|
insinto /opt/puppetlabs/server/apps/puppetdb/scripts
|
||||||
|
doins install.sh
|
||||||
|
insinto /opt/puppetlabs/server/apps/puppetdb/cli/apps
|
||||||
|
doins ext/cli/foreground
|
||||||
|
doins ext/cli/ssl-setup
|
||||||
|
doins ext/cli/config-migration
|
||||||
|
doins ext/cli/foreground
|
||||||
|
doins ext/cli/anonymize
|
||||||
|
doins ext/cli/reload
|
||||||
|
doins ext/cli/start
|
||||||
|
doins ext/cli/stop
|
||||||
|
insinto /opt/puppetlabs/server/apps/puppetdb/bin
|
||||||
|
doins ext/bin/puppetdb
|
||||||
|
insopts -m0644
|
||||||
|
dodir /opt/puppetlabs/server/bin
|
||||||
|
dosym ../apps/puppetdb/bin/puppetdb /opt/puppetlabs/server/bin/puppetdb
|
||||||
|
dodir /opt/puppetlabs/bin
|
||||||
|
dosym ../server/apps/puppetdb/bin/puppetdb /opt/puppetlabs/bin/puppetdb
|
||||||
|
dosym ../../opt/puppetlabs/server/apps/puppetdb/bin/puppetdb /usr/bin/puppetdb
|
||||||
|
# init type tasks
|
||||||
|
newconfd ext/default puppetdb
|
||||||
|
systemd_dounit ext/redhat/puppetdb.service
|
||||||
|
systemd_newtmpfilesd ext/puppetdb.tmpfiles.conf puppetdb.conf
|
||||||
|
newinitd "${FILESDIR}/puppetdb.initd-r2" puppetdb
|
||||||
|
# misc
|
||||||
|
insinto /etc/logrotate.d
|
||||||
|
newins ext/puppetdb.logrotate.conf puppetdb
|
||||||
|
fowners -R puppetdb:puppetdb /opt/puppetlabs/server/data/puppetdb
|
||||||
|
fperms -R 770 /opt/puppetlabs/server/data/puppetdb
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
elog "to install please run '/opt/puppetlabs/server/bin/puppetdb ssl-setup'"
|
||||||
|
elog
|
||||||
|
elog "to upgrade please run '/opt/puppetlabs/server/bin/puppetdb config-migration'"
|
||||||
|
}
|
@ -1,3 +1,4 @@
|
|||||||
DIST puppetserver-5.3.5.tar.gz 67238513 BLAKE2B 075d6101a29b57a1693a76ba557e4cff3b5689a7bd38cc9f0f116962081ec71a29c31dbd22be9bad49897f94fe0f309d87780d2edcdd6c02e9f403e4b0a631c2 SHA512 4d7546ed845cfc9b37e2db094cb0a7340bb344dbbf52eba9cac7e54b277302449e2c9c464243c0804c8d14c00d146e74725e0e46bde0297104c394ae19f2095c
|
DIST puppetserver-5.3.5.tar.gz 67238513 BLAKE2B 075d6101a29b57a1693a76ba557e4cff3b5689a7bd38cc9f0f116962081ec71a29c31dbd22be9bad49897f94fe0f309d87780d2edcdd6c02e9f403e4b0a631c2 SHA512 4d7546ed845cfc9b37e2db094cb0a7340bb344dbbf52eba9cac7e54b277302449e2c9c464243c0804c8d14c00d146e74725e0e46bde0297104c394ae19f2095c
|
||||||
DIST puppetserver-5.3.7.tar.gz 53517572 BLAKE2B e423169b92a1638b0fef1ee5adbd10899917d89eeaa9b3bea689ce9d6f4d3e3b9d5c6cfdddea897014493373429ebba375c1a9d7b77284de46f5a0a5d6555dbd SHA512 8a58d89dc44aa8ebf82f06bdfc4f52c7a25ae3f1a48ca516425a57180c73618a1e850a595aa0e46d6e3a0b360ea38d3f050790304689bfa3b47bb0c1a4fad17b
|
DIST puppetserver-5.3.7.tar.gz 53517572 BLAKE2B e423169b92a1638b0fef1ee5adbd10899917d89eeaa9b3bea689ce9d6f4d3e3b9d5c6cfdddea897014493373429ebba375c1a9d7b77284de46f5a0a5d6555dbd SHA512 8a58d89dc44aa8ebf82f06bdfc4f52c7a25ae3f1a48ca516425a57180c73618a1e850a595aa0e46d6e3a0b360ea38d3f050790304689bfa3b47bb0c1a4fad17b
|
||||||
DIST puppetserver-6.1.0.tar.gz 74953913 BLAKE2B 0a84e64209ad313bea375bbaa22197d0216138c3714551796df0cfe99e634ef3efb0cf5378fe0db4b329df21c57359a84f249cb7fe62d9369ec7e8702c5274a1 SHA512 b3f0f2ef86550879a2eeefaf187c5be0b9e7e9bd570e77669a3f20f8b6127aa8b04b8debb10ca66a60a1858285717bdfc27f3f31c8014de2e0af51746da2f1a8
|
DIST puppetserver-6.1.0.tar.gz 74953913 BLAKE2B 0a84e64209ad313bea375bbaa22197d0216138c3714551796df0cfe99e634ef3efb0cf5378fe0db4b329df21c57359a84f249cb7fe62d9369ec7e8702c5274a1 SHA512 b3f0f2ef86550879a2eeefaf187c5be0b9e7e9bd570e77669a3f20f8b6127aa8b04b8debb10ca66a60a1858285717bdfc27f3f31c8014de2e0af51746da2f1a8
|
||||||
|
DIST puppetserver-6.2.0.tar.gz 75582622 BLAKE2B 09c651c89e7440f3c79db8ddc98fef3844a80424291cb80cd031a7a9e26faf02b5d42d4ac1ccc6c88afa062f2a23ff393c0868f0fd0af19c7061af7a811c8b3c SHA512 865b605deeb5064e51a1414f735a034cf7a0694cf74fa7d657c5da6c3da2a3b6159f251f2a71a2f956a7abfe5bb0fb6a33fe3ff43c7c9b4e743100d2edd63ed3
|
||||||
|
@ -0,0 +1,135 @@
|
|||||||
|
# Copyright 1999-2019 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
|
||||||
|
inherit multilib systemd user
|
||||||
|
|
||||||
|
DESCRIPTION="Puppet Server is the next-generation application for managing Puppet agents."
|
||||||
|
HOMEPAGE="http://docs.puppetlabs.com/puppetserver/"
|
||||||
|
SRC_URI="https://downloads.puppetlabs.com/puppet/${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="Apache-2.0"
|
||||||
|
SLOT="0"
|
||||||
|
IUSE="puppetdb"
|
||||||
|
# will need the same keywords as puppet
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
|
||||||
|
RDEPEND+="
|
||||||
|
>=virtual/jdk-1.8.0
|
||||||
|
app-admin/puppet-agent[puppetdb?]"
|
||||||
|
DEPEND+=""
|
||||||
|
|
||||||
|
pkg_setup() {
|
||||||
|
enewgroup puppet
|
||||||
|
enewuser puppet -1 -1 /opt/puppetlabs/server/data/puppetserver "puppet"
|
||||||
|
}
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
sed -i 's/sysconfig\/puppetserver/default\/puppetserver/g' ext/redhat/puppetserver.service || die
|
||||||
|
sed -i 's/sysconfig\/puppetserver/default\/puppetserver/g' ext/bin/puppetserver || die
|
||||||
|
sed -i 's/sysconfig\/puppetserver/default\/puppetserver/g' install.sh || die
|
||||||
|
sed -i 's/var\/run/run/g' ext/config/conf.d/puppetserver.conf || die
|
||||||
|
sed -i 's/var\/run/run/g' ext/redhat/puppetserver.service || die
|
||||||
|
sed -i 's/var\/run/run/g' install.sh || die
|
||||||
|
default
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
einfo "not compiling"
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
insinto /opt/puppetlabs/server/apps/puppetserver
|
||||||
|
insopts -m0774
|
||||||
|
doins ext/ezbake-functions.sh
|
||||||
|
insopts -m0644
|
||||||
|
doins ext/ezbake.manifest
|
||||||
|
doins puppet-server-release.jar
|
||||||
|
insinto /etc/puppetlabs/puppetserver
|
||||||
|
doins ext/config/logback.xml
|
||||||
|
doins ext/config/request-logging.xml
|
||||||
|
insinto /etc/puppetlabs/puppetserver/services.d
|
||||||
|
doins ext/system-config/services.d/bootstrap.cfg
|
||||||
|
doins ext/config/services.d/ca.cfg
|
||||||
|
insinto /etc/puppetlabs/puppetserver/conf.d
|
||||||
|
doins ext/config/conf.d/puppetserver.conf
|
||||||
|
doins ext/config/conf.d/auth.conf
|
||||||
|
doins ext/config/conf.d/global.conf
|
||||||
|
doins ext/config/conf.d/web-routes.conf
|
||||||
|
doins ext/config/conf.d/metrics.conf
|
||||||
|
doins ext/config/conf.d/webserver.conf
|
||||||
|
insopts -m0755
|
||||||
|
insinto /opt/puppetlabs/server/apps/puppetserver/scripts
|
||||||
|
doins install.sh
|
||||||
|
insinto /opt/puppetlabs/server/apps/puppetserver/cli/apps
|
||||||
|
doins ext/cli/ca
|
||||||
|
doins ext/cli/irb
|
||||||
|
doins ext/cli/foreground
|
||||||
|
doins ext/cli/gem
|
||||||
|
doins ext/cli/ruby
|
||||||
|
doins ext/cli/reload
|
||||||
|
doins ext/cli/start
|
||||||
|
doins ext/cli/stop
|
||||||
|
insinto /opt/puppetlabs/server/apps/puppetserver/cli
|
||||||
|
doins ext/cli_defaults/cli-defaults.sh
|
||||||
|
insinto /opt/puppetlabs/server/apps/puppetserver/bin
|
||||||
|
doins ext/bin/puppetserver
|
||||||
|
insopts -m0644
|
||||||
|
dodir /opt/puppetlabs/server/bin
|
||||||
|
dosym ../apps/puppetserver/bin/puppetserver /opt/puppetlabs/server/bin/puppetserver
|
||||||
|
dodir /opt/puppetlabs/bin
|
||||||
|
dosym ../server/apps/puppetserver/bin/puppetserver /opt/puppetlabs/bin/puppetserver
|
||||||
|
dosym ../../opt/puppetlabs/server/apps/puppetserver/bin/puppetserver /usr/bin/puppetserver
|
||||||
|
dodir /opt/puppetlabs/server/apps/puppetserver/config/services.d
|
||||||
|
# other sys stuff
|
||||||
|
dodir /etc/puppetlabs/code
|
||||||
|
# needed for systemd
|
||||||
|
dodir /var/log/puppetlabs/puppetserver
|
||||||
|
dodir /etc/puppetlabs/puppet/ssl
|
||||||
|
fowners -R puppet:puppet /etc/puppetlabs/puppet/ssl
|
||||||
|
fperms -R 771 /etc/puppetlabs/puppet/ssl
|
||||||
|
# systemd type things
|
||||||
|
insinto /etc/systemd/system/puppetserver.service.d/
|
||||||
|
systemd_dounit ext/redhat/puppetserver.service
|
||||||
|
insinto /etc/default
|
||||||
|
newins ext/default puppetserver
|
||||||
|
# normal init type tasks
|
||||||
|
dosym ../default/puppetserver /etc/conf.d/puppetserver
|
||||||
|
newinitd "${FILESDIR}/puppetserver.init" puppetserver
|
||||||
|
# misc
|
||||||
|
insinto /etc/logrotate.d
|
||||||
|
newins ext/puppetserver.logrotate.conf puppetserver
|
||||||
|
# cleanup
|
||||||
|
dodir /opt/puppetlabs/server/data/puppetserver/jruby-gems
|
||||||
|
fowners -R puppet:puppet /opt/puppetlabs/server/data
|
||||||
|
fperms -R 775 /opt/puppetlabs/server/data/puppetserver
|
||||||
|
fperms -R 700 /var/log/puppetlabs/puppetserver
|
||||||
|
insinto /opt/puppetlabs/server/data
|
||||||
|
doins ext/build-scripts/jruby-gem-list.txt
|
||||||
|
doins ext/build-scripts/mri-gem-list.txt
|
||||||
|
insopts -m 0644
|
||||||
|
insinto /usr/lib/tmpfiles.d
|
||||||
|
newins ext/puppetserver.tmpfiles.conf puppetserver.conf
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
elog "to install you may want to run the following:"
|
||||||
|
elog
|
||||||
|
elog "puppet config set --section master vardir /opt/puppetlabs/server/data/puppetserver"
|
||||||
|
elog "puppet config set --section master logdir /var/log/puppetlabs/puppetserver"
|
||||||
|
elog "puppet config set --section master rundir /run/puppetlabs/puppetserver"
|
||||||
|
elog "puppet config set --section master pidfile /run/puppetlabs/puppetserver/puppetserver.pid"
|
||||||
|
elog "puppet config set --section master codedir /etc/puppetlabs/code"
|
||||||
|
elog
|
||||||
|
elog "# install puppetserver gems"
|
||||||
|
elog "cd /opt/puppetlabs/server/apps/puppetserver"
|
||||||
|
elog "echo \"jruby-puppet: { gem-home: ${DESTDIR}/opt/puppetlabs/server/data/puppetserver/vendored-jruby-gems }\" > jruby.conf"
|
||||||
|
elog "while read LINE do"
|
||||||
|
elog " java -cp puppet-server-release.jar:jruby-9k.jar clojure.main -m puppetlabs.puppetserver.cli.gem --config jruby.conf -- install --no-ri --no-rdoc \$(echo \$LINE |awk '{print \$1}') --version \$(echo \$LINE |awk '{print \$2}')"
|
||||||
|
elog "done < /opt/puppetlabs/server/data/jruby-gem-list.txt"
|
||||||
|
elog "echo \"jruby-puppet: { gem-home: ${DESTDIR}/opt/puppetlabs/puppet/lib/ruby/vendor_gems }\" > jruby.conf"
|
||||||
|
elog "while read LINE do"
|
||||||
|
elog " java -cp puppet-server-release.jar:jruby-9k.jar clojure.main -m puppetlabs.puppetserver.cli.gem --config jruby.conf -- install --no-ri --no-rdoc \$(echo \$LINE |awk '{print \$1}') --version \$(echo \$LINE |awk '{print \$2}')"
|
||||||
|
elog "done < /opt/puppetlabs/server/data/mri-gem-list.txt"
|
||||||
|
}
|
Binary file not shown.
@ -1,4 +1,4 @@
|
|||||||
# Copyright 1999-2018 Gentoo Authors
|
# Copyright 1999-2019 Gentoo Authors
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
EAPI=7
|
EAPI=7
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,3 +1,3 @@
|
|||||||
DIST reg-0.15.7.tar.gz 4300839 BLAKE2B 67c9ca344e0a2984559c210cbdb4f5fc42f588f0c50a171c145bc63953b7540cbc166b51a5c209a2ece0c3b5647a34ffc1ac6b439b4e5a243e505c223a1a6fe5 SHA512 4c26aa0a438ac87208c4e269e16a994587ccdab38399a664638dd8c7407cf06f00c43a9c3c71cf4c88fa47a6e4466c8143ee7ee8130a8133518f5017ca34cc2d
|
DIST github.com-go-yaml-yaml-a3f3340b5840cee44f372bddb5880fcbc419b46a.tar.gz 60814 BLAKE2B a77b7d72e2937af71a0734c21bee7a1d7770157c27f1ddfa164c66fd5461f86a2ef46e002087092ef011caae572838bcc9537a8290cd54dfafb7f54423e47c48 SHA512 184a0e658a4eac3b867533cd0e494bd84db94fbe10e8df0d0b755c7ffc95bc99e2f84c0157183ca74cdc79289a85dcf7f1dea8a4c89a253565baf473b3627eae
|
||||||
DIST reg-0.15.8.tar.gz 4300575 BLAKE2B 554a6afebf0c662fa4e4076019b25aa600f327cc6d3fbd9aff3462b8d1faf0b790724bb9d66725766087f6e4a2ccf55a61f41e7aba936ed386d97cf52c54afab SHA512 23d45d061e2914818787e6837fd02ba7b4fcf5c96a511d5e6ee66689bfd925870780d7a9fcfe6ee98f2b74ce68f05eecfa9d00852ff79965f59c88684113e0d5
|
|
||||||
DIST reg-0.16.0.tar.gz 2991496 BLAKE2B e94a53c79ff062013e091d4c558870ef5c25af181cba201a44fa38b9dfe8816d6f3fd581f4e9a3dafe5b3753a3755c31f8b2f4a347da134a969fc93ac296897c SHA512 1e4d936e406998ffaa176e7834b28970b594f88a339fd8447bef2f944efa9b51c1d35bf71b384b3ed1b3e84be08db6d7fd487f4a3c65aa2de0308d6128cf0070
|
DIST reg-0.16.0.tar.gz 2991496 BLAKE2B e94a53c79ff062013e091d4c558870ef5c25af181cba201a44fa38b9dfe8816d6f3fd581f4e9a3dafe5b3753a3755c31f8b2f4a347da134a969fc93ac296897c SHA512 1e4d936e406998ffaa176e7834b28970b594f88a339fd8447bef2f944efa9b51c1d35bf71b384b3ed1b3e84be08db6d7fd487f4a3c65aa2de0308d6128cf0070
|
||||||
|
DIST reg-0.16.0_p20180102.tar.gz 2994965 BLAKE2B c7cb8a0eaa1599a5464b7a98c3df0b146dbbfea884260b7c8cbf5393a9384c8875e38ea4e45c5f888c65b9bb8c326cf9934d9b3c32a4809fe8e3b23239e8f2a8 SHA512 90e92c15b7ca4f2a5f943cb80096af0eba50acd7691963609c25f15a6795f886843776180754ab7d28477f1fc3a4b8d916bc9ac99b768368471b31564d14769c
|
||||||
|
@ -1,47 +0,0 @@
|
|||||||
From b3c826e2e48108d832cbe9fc3b630e7ff207915a Mon Sep 17 00:00:00 2001
|
|
||||||
From: =?UTF-8?q?Manuel=20R=C3=BCger?= <manuel@rueg.eu>
|
|
||||||
Date: Wed, 18 Jul 2018 19:47:12 +0200
|
|
||||||
Subject: [PATCH] server: Allow to restrict listen address (#115)
|
|
||||||
|
|
||||||
e.g. limit to listen on localhost only
|
|
||||||
---
|
|
||||||
server.go | 12 +++++++-----
|
|
||||||
2 files changed, 8 insertions(+), 5 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/server.go b/server.go
|
|
||||||
index 8866efed..a7cc2048 100644
|
|
||||||
--- a/server.go
|
|
||||||
+++ b/server.go
|
|
||||||
@@ -35,6 +35,7 @@ func (cmd *serverCommand) Register(fs *flag.FlagSet) {
|
|
||||||
|
|
||||||
fs.StringVar(&cmd.cert, "cert", "", "path to ssl cert")
|
|
||||||
fs.StringVar(&cmd.key, "key", "", "path to ssl key")
|
|
||||||
+ fs.StringVar(&cmd.listenAddress, "listen-address", "", "address to listen on")
|
|
||||||
fs.StringVar(&cmd.port, "port", "8080", "port for server to run on")
|
|
||||||
fs.StringVar(&cmd.assetPath, "asset-path", "", "Path to assets and templates")
|
|
||||||
|
|
||||||
@@ -48,10 +49,11 @@ type serverCommand struct {
|
|
||||||
|
|
||||||
generateAndExit bool
|
|
||||||
|
|
||||||
- cert string
|
|
||||||
- key string
|
|
||||||
- port string
|
|
||||||
- assetPath string
|
|
||||||
+ cert string
|
|
||||||
+ key string
|
|
||||||
+ listenAddress string
|
|
||||||
+ port string
|
|
||||||
+ assetPath string
|
|
||||||
}
|
|
||||||
|
|
||||||
func (cmd *serverCommand) Run(ctx context.Context, args []string) error {
|
|
||||||
@@ -180,7 +182,7 @@ func (cmd *serverCommand) Run(ctx context.Context, args []string) error {
|
|
||||||
|
|
||||||
// Set up the server.
|
|
||||||
server := &http.Server{
|
|
||||||
- Addr: ":" + cmd.port,
|
|
||||||
+ Addr: cmd.listenAddress + ":" + cmd.port,
|
|
||||||
Handler: mux,
|
|
||||||
}
|
|
||||||
logrus.Infof("Starting server on port %q", cmd.port)
|
|
@ -0,0 +1,254 @@
|
|||||||
|
From 0ab86b565f437b9dede5d3a7cef56690d8d19bbb Mon Sep 17 00:00:00 2001
|
||||||
|
From: =?UTF-8?q?Manuel=20R=C3=BCger?= <manuel@rueg.eu>
|
||||||
|
Date: Tue, 18 Sep 2018 15:42:24 +0200
|
||||||
|
Subject: [PATCH 2/2] server: Read config from file
|
||||||
|
|
||||||
|
---
|
||||||
|
README.md | 4 ++
|
||||||
|
config.yml.example | 37 ++++++++++++++++
|
||||||
|
server.go | 107 +++++++++++++++++++++++++++++++--------------
|
||||||
|
3 files changed, 114 insertions(+), 34 deletions(-)
|
||||||
|
create mode 100644 config.yml.example
|
||||||
|
|
||||||
|
diff --git a/README.md b/README.md
|
||||||
|
index 3b1b661f..5e0f0175 100644
|
||||||
|
--- a/README.md
|
||||||
|
+++ b/README.md
|
||||||
|
@@ -228,6 +228,7 @@ Flags:
|
||||||
|
-u, --username username for the registry (default: <none>)
|
||||||
|
--listen-address address to listen on (default: <none>)
|
||||||
|
--asset-path Path to assets and templates (default: <none>)
|
||||||
|
+ --config Path to config file (default: <none>)
|
||||||
|
-f, --force-non-ssl force allow use of non-ssl (default: false)
|
||||||
|
--once generate the templates once and then exit (default: false)
|
||||||
|
--skip-ping skip pinging the registry while establishing connection (default: false)
|
||||||
|
@@ -243,6 +244,9 @@ Flags:
|
||||||
|
-p, --password password for the registry (default: <none>)
|
||||||
|
```
|
||||||
|
|
||||||
|
+Alternatively you can provide configuration to `reg server` via a file passed to
|
||||||
|
+`reg server` via as `--config`. See also config.yml.example in this repository.
|
||||||
|
+
|
||||||
|
**Screenshots:**
|
||||||
|
|
||||||
|
![home.png](server/home.png)
|
||||||
|
diff --git a/config.yml.example b/config.yml.example
|
||||||
|
new file mode 100644
|
||||||
|
index 00000000..9d4be25f
|
||||||
|
--- /dev/null
|
||||||
|
+++ b/config.yml.example
|
||||||
|
@@ -0,0 +1,37 @@
|
||||||
|
+### Reg Server Settings
|
||||||
|
+
|
||||||
|
+## Path to server TLS certificate:
|
||||||
|
+# cert:
|
||||||
|
+## Path to server TLS key:
|
||||||
|
+# key:
|
||||||
|
+## Address to listen on:
|
||||||
|
+# listen-address: 0.0.0.0
|
||||||
|
+## Port to listen on:
|
||||||
|
+# port: 8080
|
||||||
|
+## Path Assets are stored under:
|
||||||
|
+# asset-path: /var/lib/reg
|
||||||
|
+## Generate static website and exit:
|
||||||
|
+# once: false
|
||||||
|
+## Refresh interval:
|
||||||
|
+# interval: 1h0m0s
|
||||||
|
+## Debug output
|
||||||
|
+# debug: false
|
||||||
|
+## Skip initial ping
|
||||||
|
+# skip-ping: false
|
||||||
|
+## Timeout
|
||||||
|
+# timeout: 1m0s
|
||||||
|
+
|
||||||
|
+
|
||||||
|
+### Registry and Clair Server Settings
|
||||||
|
+## Registry Server:
|
||||||
|
+# registry: r.j3ss.co
|
||||||
|
+## Username to authenticate against registry server
|
||||||
|
+# username:
|
||||||
|
+## Password to authenticate against registry server
|
||||||
|
+# password:
|
||||||
|
+## If true, do not verify TLS certificates
|
||||||
|
+# insecure: false
|
||||||
|
+## Force allow use of non-TLS connections
|
||||||
|
+# force-nonssl: false
|
||||||
|
+## Clair Server:
|
||||||
|
+# clair:
|
||||||
|
diff --git a/server.go b/server.go
|
||||||
|
index fcd4cd71..0c84d85d 100644
|
||||||
|
--- a/server.go
|
||||||
|
+++ b/server.go
|
||||||
|
@@ -4,7 +4,9 @@ import (
|
||||||
|
"context"
|
||||||
|
"flag"
|
||||||
|
"fmt"
|
||||||
|
+ "gopkg.in/yaml.v2"
|
||||||
|
"html/template"
|
||||||
|
+ "io/ioutil"
|
||||||
|
"net/http"
|
||||||
|
"os"
|
||||||
|
"path/filepath"
|
||||||
|
@@ -29,39 +31,76 @@ func (cmd *serverCommand) LongHelp() string { return serverHelp }
|
||||||
|
func (cmd *serverCommand) Hidden() bool { return false }
|
||||||
|
|
||||||
|
func (cmd *serverCommand) Register(fs *flag.FlagSet) {
|
||||||
|
- fs.DurationVar(&cmd.interval, "interval", time.Hour, "interval to generate new index.html's at")
|
||||||
|
+ fs.DurationVar(&cmd.Interval, "interval", time.Hour, "interval to generate new index.html's at")
|
||||||
|
|
||||||
|
- fs.StringVar(&cmd.registryServer, "registry", "", "URL to the private registry (ex. r.j3ss.co)")
|
||||||
|
- fs.StringVar(&cmd.registryServer, "r", "", "URL to the private registry (ex. r.j3ss.co)")
|
||||||
|
+ fs.StringVar(&cmd.RegistryServer, "registry", "", "URL to the private registry (ex. r.j3ss.co)")
|
||||||
|
+ fs.StringVar(&cmd.RegistryServer, "r", "", "URL to the private registry (ex. r.j3ss.co)")
|
||||||
|
|
||||||
|
- fs.StringVar(&cmd.clairServer, "clair", "", "url to clair instance")
|
||||||
|
+ fs.StringVar(&cmd.ClairServer, "clair", "", "url to clair instance")
|
||||||
|
|
||||||
|
- fs.StringVar(&cmd.cert, "cert", "", "path to ssl cert")
|
||||||
|
- fs.StringVar(&cmd.key, "key", "", "path to ssl key")
|
||||||
|
- fs.StringVar(&cmd.listenAddress, "listen-address", "", "address to listen on")
|
||||||
|
- fs.StringVar(&cmd.port, "port", "8080", "port for server to run on")
|
||||||
|
- fs.StringVar(&cmd.assetPath, "asset-path", "", "Path to assets and templates")
|
||||||
|
+ fs.StringVar(&cmd.Cert, "cert", "", "path to ssl cert")
|
||||||
|
+ fs.StringVar(&cmd.Key, "key", "", "path to ssl key")
|
||||||
|
+ fs.StringVar(&cmd.ListenAddress, "listen-address", "", "address to listen on")
|
||||||
|
+ fs.StringVar(&cmd.Port, "port", "8080", "port for server to run on")
|
||||||
|
|
||||||
|
- fs.BoolVar(&cmd.generateAndExit, "once", false, "generate the templates once and then exit")
|
||||||
|
+ fs.StringVar(&cmd.AssetPath, "asset-path", "", "Path to assets and templates")
|
||||||
|
+ fs.StringVar(&cmd.configPath, "config", "", "Path to config file")
|
||||||
|
+
|
||||||
|
+ fs.BoolVar(&cmd.GenerateAndExit, "once", false, "generate the templates once and then exit")
|
||||||
|
}
|
||||||
|
|
||||||
|
type serverCommand struct {
|
||||||
|
- interval time.Duration
|
||||||
|
- registryServer string
|
||||||
|
- clairServer string
|
||||||
|
-
|
||||||
|
- generateAndExit bool
|
||||||
|
-
|
||||||
|
- cert string
|
||||||
|
- key string
|
||||||
|
- listenAddress string
|
||||||
|
- port string
|
||||||
|
- assetPath string
|
||||||
|
+ Interval time.Duration `yaml:"interval"`
|
||||||
|
+ RegistryServer string `yaml:"registry"`
|
||||||
|
+ ClairServer string `yaml:"clair"`
|
||||||
|
+ GenerateAndExit bool `yaml:"once"`
|
||||||
|
+ Cert string `yaml:"cert"`
|
||||||
|
+ Key string `yaml:"key"`
|
||||||
|
+ ListenAddress string `yaml:"listen-address"`
|
||||||
|
+ Port string `yaml:"port"`
|
||||||
|
+ AssetPath string `yaml:"asset-path"`
|
||||||
|
+ configPath string
|
||||||
|
+
|
||||||
|
+ Password string `yaml:"password"`
|
||||||
|
+ Username string `yaml:"username"`
|
||||||
|
+ Insecure bool `yaml:"insecure"`
|
||||||
|
+ Debug bool `yaml:"debug"`
|
||||||
|
+ SkipPing bool `yaml:"skip-ping"`
|
||||||
|
+ ForceNonSSL bool `yaml:"force-nonssl"`
|
||||||
|
+ Timeout time.Duration `yaml:"timeout"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (cmd *serverCommand) Run(ctx context.Context, args []string) error {
|
||||||
|
// Create the registry client.
|
||||||
|
- r, err := createRegistryClient(ctx, cmd.registryServer)
|
||||||
|
+ if len(cmd.configPath) > 0 {
|
||||||
|
+ config, err := ioutil.ReadFile(cmd.configPath)
|
||||||
|
+ if err != nil {
|
||||||
|
+ return err
|
||||||
|
+ }
|
||||||
|
+ yaml.Unmarshal(config, cmd)
|
||||||
|
+ if err != nil {
|
||||||
|
+ return err
|
||||||
|
+ }
|
||||||
|
+ if len(cmd.Username) > 0 {
|
||||||
|
+ username = cmd.Username
|
||||||
|
+ }
|
||||||
|
+ if len(cmd.Password) > 0 {
|
||||||
|
+ password = cmd.Password
|
||||||
|
+ }
|
||||||
|
+ if cmd.Debug {
|
||||||
|
+ debug = cmd.Debug
|
||||||
|
+ }
|
||||||
|
+ if cmd.Insecure {
|
||||||
|
+ insecure = cmd.Insecure
|
||||||
|
+ }
|
||||||
|
+ if cmd.SkipPing {
|
||||||
|
+ skipPing = cmd.SkipPing
|
||||||
|
+ }
|
||||||
|
+ if cmd.Timeout != 0 {
|
||||||
|
+ timeout = cmd.Timeout
|
||||||
|
+ }
|
||||||
|
+ }
|
||||||
|
+ r, err := createRegistryClient(ctx, cmd.RegistryServer)
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
@@ -69,25 +108,25 @@ func (cmd *serverCommand) Run(ctx context.Context, args []string) error {
|
||||||
|
// Create the registry controller for the handlers.
|
||||||
|
rc := registryController{
|
||||||
|
reg: r,
|
||||||
|
- generateOnly: cmd.generateAndExit,
|
||||||
|
+ generateOnly: cmd.GenerateAndExit,
|
||||||
|
}
|
||||||
|
|
||||||
|
// Create a clair client if the user passed in a server address.
|
||||||
|
- if len(cmd.clairServer) > 0 {
|
||||||
|
- rc.cl, err = clair.New(cmd.clairServer, clair.Opt{
|
||||||
|
+ if len(cmd.ClairServer) > 0 {
|
||||||
|
+ rc.cl, err = clair.New(cmd.ClairServer, clair.Opt{
|
||||||
|
Insecure: insecure,
|
||||||
|
Debug: debug,
|
||||||
|
Timeout: timeout,
|
||||||
|
})
|
||||||
|
if err != nil {
|
||||||
|
- return fmt.Errorf("creation of clair client at %s failed: %v", cmd.clairServer, err)
|
||||||
|
+ return fmt.Errorf("creation of clair client at %s failed: %v", cmd.ClairServer, err)
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
rc.cl = nil
|
||||||
|
}
|
||||||
|
// Get the path to the asset directory.
|
||||||
|
- assetDir := cmd.assetPath
|
||||||
|
- if len(cmd.assetPath) <= 0 {
|
||||||
|
+ assetDir := cmd.AssetPath
|
||||||
|
+ if len(cmd.AssetPath) <= 0 {
|
||||||
|
assetDir, err = os.Getwd()
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
@@ -131,12 +170,12 @@ func (cmd *serverCommand) Run(ctx context.Context, args []string) error {
|
||||||
|
return fmt.Errorf("creating index failed: %v", err)
|
||||||
|
}
|
||||||
|
|
||||||
|
- if cmd.generateAndExit {
|
||||||
|
+ if cmd.GenerateAndExit {
|
||||||
|
logrus.Info("output generated, exiting...")
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
- rc.interval = cmd.interval
|
||||||
|
+ rc.interval = cmd.Interval
|
||||||
|
ticker := time.NewTicker(rc.interval)
|
||||||
|
go func() {
|
||||||
|
// Create more indexes every X minutes based off interval.
|
||||||
|
@@ -174,12 +213,12 @@ func (cmd *serverCommand) Run(ctx context.Context, args []string) error {
|
||||||
|
|
||||||
|
// Set up the server.
|
||||||
|
server := &http.Server{
|
||||||
|
- Addr: cmd.listenAddress + ":" + cmd.port,
|
||||||
|
+ Addr: cmd.ListenAddress + ":" + cmd.Port,
|
||||||
|
Handler: mux,
|
||||||
|
}
|
||||||
|
- logrus.Infof("Starting server on port %q", cmd.port)
|
||||||
|
- if len(cmd.cert) > 0 && len(cmd.key) > 0 {
|
||||||
|
- return server.ListenAndServeTLS(cmd.cert, cmd.key)
|
||||||
|
+ logrus.Infof("Starting server on port %q", cmd.Port)
|
||||||
|
+ if len(cmd.Cert) > 0 && len(cmd.Key) > 0 {
|
||||||
|
+ return server.ListenAndServeTLS(cmd.Cert, cmd.Key)
|
||||||
|
}
|
||||||
|
return server.ListenAndServe()
|
||||||
|
}
|
@ -1,48 +0,0 @@
|
|||||||
# Copyright 1999-2018 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=6
|
|
||||||
inherit golang-build golang-vcs-snapshot user
|
|
||||||
|
|
||||||
EGO_PN="github.com/genuinetools/reg"
|
|
||||||
GIT_COMMIT="d021aeb0b9786eac1212b5faaa70d11f56c60991"
|
|
||||||
ARCHIVE_URI="https://${EGO_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
|
||||||
KEYWORDS="~amd64"
|
|
||||||
|
|
||||||
DESCRIPTION="Docker registry v2 command line client"
|
|
||||||
HOMEPAGE="https://github.com/genuinetools/reg"
|
|
||||||
SRC_URI="${ARCHIVE_URI}"
|
|
||||||
LICENSE="MIT"
|
|
||||||
SLOT="0"
|
|
||||||
IUSE=""
|
|
||||||
|
|
||||||
RESTRICT="test"
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
enewgroup reg
|
|
||||||
enewuser reg -1 -1 /var/lib/reg reg
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
pushd src/${EGO_PN} || die
|
|
||||||
default
|
|
||||||
popd || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
pushd src/${EGO_PN} || die
|
|
||||||
GOPATH="${S}" go build -v -ldflags "-X ${EGO_PN}/version.GITCOMMIT=${GIT_COMMIT} -X ${EGO_PN}/version.VERSION=${PV}" -o "${S}"/bin/reg . || die
|
|
||||||
popd || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
dobin bin/*
|
|
||||||
dodoc src/${EGO_PN}/README.md
|
|
||||||
insinto /var/lib/${PN}
|
|
||||||
doins -r src/${EGO_PN}/server/*
|
|
||||||
newinitd "${FILESDIR}"/reg.initd reg
|
|
||||||
newconfd "${FILESDIR}"/reg.confd reg
|
|
||||||
|
|
||||||
keepdir /var/log/reg
|
|
||||||
fowners -R reg:reg /var/log/reg /var/lib/reg/static
|
|
||||||
}
|
|
@ -1,4 +1,5 @@
|
|||||||
DIST VBoxGuestAdditions_5.2.22.iso 58013696 BLAKE2B 196f0048b685200328bcf753f3df23eac6477ce863885e93a54951795368bf62bdaa497589001ec203d75809b1f74ebbaa80419406d26bc7db43a131f5b9d698 SHA512 b320174b2f2ef796ac2c9c920579be38f0cedaa037d21992863ac355ecf6e99ae2aea56c70fb2034e9e03afac2cd7297f7717b447a6981701755593110164d37
|
DIST VBoxGuestAdditions_5.2.22.iso 58013696 BLAKE2B 196f0048b685200328bcf753f3df23eac6477ce863885e93a54951795368bf62bdaa497589001ec203d75809b1f74ebbaa80419406d26bc7db43a131f5b9d698 SHA512 b320174b2f2ef796ac2c9c920579be38f0cedaa037d21992863ac355ecf6e99ae2aea56c70fb2034e9e03afac2cd7297f7717b447a6981701755593110164d37
|
||||||
DIST VBoxGuestAdditions_5.2.24.iso 58429440 BLAKE2B ee5b2751238da4372c4164c02e96c5bc6a1dbfb6670f7cd8912415680e99118e65c8f4c765c7d5f9dcf521644a011540e289357fe38e715d6264fa84b5d7ef1b SHA512 e05f75f3a5974efba6f64606d255a03ddf104deec3c300a9369c06d603aa3cbf70b73cdfeda2ce1fcd1c36da472bc190da0ed4e908bd6dbcf857104c99a61b05
|
DIST VBoxGuestAdditions_5.2.24.iso 58429440 BLAKE2B ee5b2751238da4372c4164c02e96c5bc6a1dbfb6670f7cd8912415680e99118e65c8f4c765c7d5f9dcf521644a011540e289357fe38e715d6264fa84b5d7ef1b SHA512 e05f75f3a5974efba6f64606d255a03ddf104deec3c300a9369c06d603aa3cbf70b73cdfeda2ce1fcd1c36da472bc190da0ed4e908bd6dbcf857104c99a61b05
|
||||||
DIST VBoxGuestAdditions_6.0.0.iso 79245312 BLAKE2B 413501b62bb6c8a0b1cef8255c631d4bc6c919b3a9c15e0fd780f6196e299f72ede083d51ca8f32bb83ec6d9384f1959c619bc5df67495a23bce503cf45c39e8 SHA512 4064bab634e8ebd75bc80c47ebd9a2596701505e15ebe872e1b599a42588ece307f90febfd474e429cd7e5e4ecf063bc7e37d666c6ae369f8f97b36a0e0ed81d
|
DIST VBoxGuestAdditions_5.2.26.iso 58433536 BLAKE2B 1d7bae647923a57cdcee38a1609a07cd081d593a0852dcf67b549ed178508e93f7ee4d076ac700ab7e7ec828e660eb09cc8a55a0f2400b1ff0912cc2fafdff7f SHA512 fea91c442d3f05a35435155d3a3890e2c29e2523f1106cc8c7fb6513826263ff450e72b393796e0dff99b3bd85d85d8d55309e81f68ddfd39689df8f54bca1fe
|
||||||
DIST VBoxGuestAdditions_6.0.2.iso 85905408 BLAKE2B c5ce6d2cc3c15032f5d6733df72f938f2e5b0e996d467464e0229cfd8b8a2ba57f4f3878d94f769f0dfda48b14e426815925d883add6934a2c3f72ac1a41d6cb SHA512 53e82fbec7f1e04f473f0add3a0e03e2abfb9e88b57d7501d28310c36ae26af835d52a76104b31a8a4dc69ff31b6826c7c391622cdf3977df7ab7c4181d0e7dd
|
DIST VBoxGuestAdditions_6.0.2.iso 85905408 BLAKE2B c5ce6d2cc3c15032f5d6733df72f938f2e5b0e996d467464e0229cfd8b8a2ba57f4f3878d94f769f0dfda48b14e426815925d883add6934a2c3f72ac1a41d6cb SHA512 53e82fbec7f1e04f473f0add3a0e03e2abfb9e88b57d7501d28310c36ae26af835d52a76104b31a8a4dc69ff31b6826c7c391622cdf3977df7ab7c4181d0e7dd
|
||||||
|
DIST VBoxGuestAdditions_6.0.4.iso 85917696 BLAKE2B 2fa419ef8524b46afb327bd1f5e53bec6df7fa53d6608bb25e5d986d8be9eaf2e0e7a37523beb56981380e8f4ad41ae48eb5ec23505a382c57fda737ec999caf SHA512 ad9afd9941cac771a156071df3a054225643e39059c84abc0c0c2525d0fa32d5bc5a144b1fef367f92e0216f8f9fc73ef961eeead648421ea30465650516bc88
|
||||||
|
@ -0,0 +1,33 @@
|
|||||||
|
# Copyright 1999-2019 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
|
||||||
|
MY_PN=VBoxGuestAdditions
|
||||||
|
MY_PV="${PV/beta/BETA}"
|
||||||
|
MY_PV="${MY_PV/rc/RC}"
|
||||||
|
MY_P=${MY_PN}_${MY_PV}
|
||||||
|
|
||||||
|
DESCRIPTION="CD image containing guest additions for VirtualBox"
|
||||||
|
HOMEPAGE="https://www.virtualbox.org/"
|
||||||
|
SRC_URI="https://download.virtualbox.org/virtualbox/${MY_PV}/${MY_P}.iso"
|
||||||
|
|
||||||
|
LICENSE="GPL-2+ LGPL-2.1+ MIT SGI-B-2.0 CDDL"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
IUSE=""
|
||||||
|
RESTRICT="mirror"
|
||||||
|
|
||||||
|
RDEPEND="!app-emulation/virtualbox-bin
|
||||||
|
!=app-emulation/virtualbox-9999"
|
||||||
|
|
||||||
|
S="${WORKDIR}"
|
||||||
|
|
||||||
|
src_unpack() {
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
insinto /usr/share/${PN/-additions}
|
||||||
|
newins "${DISTDIR}"/${MY_P}.iso ${MY_PN}.iso
|
||||||
|
}
|
@ -1,4 +1,4 @@
|
|||||||
# Copyright 1999-2018 Gentoo Authors
|
# Copyright 1999-2019 Gentoo Authors
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
EAPI=7
|
EAPI=7
|
@ -1,14 +1,18 @@
|
|||||||
DIST Oracle_VM_VirtualBox_Extension_Pack-5.2.22-126460.tar.gz 19640932 BLAKE2B 162ab40da6b2cd30d00e020666a1f4fb026e29af2ca9d6c36c294e5fa299b61ab8fd147f24d2b500426c768808db2c7693c30e88519e695d7759f8eedf1c52c5 SHA512 85b8552668b6580bea24f051ad861c82b9ba32177fb7fa37fe2980d8bab32a84325d02bfa9c8f55c2021a4000ef2546d8996ca8b99ca7fc19f8281a92108dfb0
|
DIST Oracle_VM_VirtualBox_Extension_Pack-5.2.22-126460.tar.gz 19640932 BLAKE2B 162ab40da6b2cd30d00e020666a1f4fb026e29af2ca9d6c36c294e5fa299b61ab8fd147f24d2b500426c768808db2c7693c30e88519e695d7759f8eedf1c52c5 SHA512 85b8552668b6580bea24f051ad861c82b9ba32177fb7fa37fe2980d8bab32a84325d02bfa9c8f55c2021a4000ef2546d8996ca8b99ca7fc19f8281a92108dfb0
|
||||||
DIST Oracle_VM_VirtualBox_Extension_Pack-5.2.24-128163.tar.gz 19683939 BLAKE2B ce05e159172e34e1d520b3783d77db06aa8f91067cc743beb1eeafaf01508e830f5fe9501cb1f3a6d99492e3046ec2dd2fec94ffd39a237ef4679352492aaa1a SHA512 035103e420d773201ad24093910d7175a5d548f19de4a58900e78e2ebfac711851c99375977ba9fd47fced234346437164d226592b7070a867a1d13fd534a3b5
|
DIST Oracle_VM_VirtualBox_Extension_Pack-5.2.24-128163.tar.gz 19683939 BLAKE2B ce05e159172e34e1d520b3783d77db06aa8f91067cc743beb1eeafaf01508e830f5fe9501cb1f3a6d99492e3046ec2dd2fec94ffd39a237ef4679352492aaa1a SHA512 035103e420d773201ad24093910d7175a5d548f19de4a58900e78e2ebfac711851c99375977ba9fd47fced234346437164d226592b7070a867a1d13fd534a3b5
|
||||||
DIST Oracle_VM_VirtualBox_Extension_Pack-6.0.0-127566.tar.gz 23284806 BLAKE2B 4b34e1640ac74be3acc4cddc6140f77a2e5456ec29c6523fc2fe27c5e7c4652dd28f523b85a6cb17aab52e3594e68ee64cbe2c4cb8edd68f7deda05ed8b9e05d SHA512 cd8cd82bf9cea29f50101c8cccd0b8f699dcc4c4e7e720fe80df82154339b787d154a6376adc9d0f4a3015ec1ee2d67d6575ac5197dfda63af3f758294c165b8
|
DIST Oracle_VM_VirtualBox_Extension_Pack-5.2.26-128414.tar.gz 19684009 BLAKE2B 81787dcf3b70211fa9c84a40c668100eda0dfd2ce3e1d35c226cb6913ef74027f3444be93069a5e881d8e60905477460a180cb98919050286978edf9c1edcdf3 SHA512 deb4c62d58e2071f4413f0ff769e9ecd756362920b29482a6a3d77566c327b075cb5ecafdc65985305b8b798dc56ca2104a0f8244651fca89c4e15ef879c121e
|
||||||
DIST Oracle_VM_VirtualBox_Extension_Pack-6.0.2-128162.tar.gz 23289693 BLAKE2B 13e1ad30b40676ed2e11cf26957377696a9f30a7a92bda0ca5f69039ffebe4abf3bb0224844609a29ac217b227e4d1906c70cd404d3967a26dc0ace3bf4d2ccd SHA512 29b682bf8130f73b25a82e97053847077d9eb48f0510db7fb0cf2e817e1e6b9a6e7ded54ede7447c56aa7b219d32a2d6ee19cb0efbe5c7e0a984c5e137fada51
|
DIST Oracle_VM_VirtualBox_Extension_Pack-6.0.2-128162.tar.gz 23289693 BLAKE2B 13e1ad30b40676ed2e11cf26957377696a9f30a7a92bda0ca5f69039ffebe4abf3bb0224844609a29ac217b227e4d1906c70cd404d3967a26dc0ace3bf4d2ccd SHA512 29b682bf8130f73b25a82e97053847077d9eb48f0510db7fb0cf2e817e1e6b9a6e7ded54ede7447c56aa7b219d32a2d6ee19cb0efbe5c7e0a984c5e137fada51
|
||||||
|
DIST Oracle_VM_VirtualBox_Extension_Pack-6.0.4-128413.tar.gz 23290549 BLAKE2B f9ac1a560d5e8b9b73efa21e3623c9f6f0d7769eb4cad7b01d8f68a135a74573659a0a9b092f7ab35beb348ed2722fcf7862aa66e47987b33038f488b88b1129 SHA512 ee54cbdf58de8d37ba84fffd2baec2c9d3915feeab715767515fd6d6ec3032dad2f02509b08cea24754cfce0974a7c1b29c6050bff466af53c1ac6589f4c0215
|
||||||
DIST VirtualBox-5.2.22-126460-Linux_amd64.run 88821201 BLAKE2B 1b0433844247ee9531af915dcbb740183fa29fb296f8c78b4165cc3b48300da71f7d329026983da581ffff0d7b8976a2e5e32d5e948861a557ddfa2437813ea0 SHA512 22b20a68884a114818fcdfe9a459a7c3b1b3598526a74cc66407f5bcdc6eb6bcbe022b820477ccdc081e22349777b73fac9d6126585ee3c8fa0d3d24624006f3
|
DIST VirtualBox-5.2.22-126460-Linux_amd64.run 88821201 BLAKE2B 1b0433844247ee9531af915dcbb740183fa29fb296f8c78b4165cc3b48300da71f7d329026983da581ffff0d7b8976a2e5e32d5e948861a557ddfa2437813ea0 SHA512 22b20a68884a114818fcdfe9a459a7c3b1b3598526a74cc66407f5bcdc6eb6bcbe022b820477ccdc081e22349777b73fac9d6126585ee3c8fa0d3d24624006f3
|
||||||
DIST VirtualBox-5.2.22-126460-Linux_x86.run 87817677 BLAKE2B 5f11e5f92386c9524869082cf1a5af413c69fe5b36b1ace58887076000c7b928267eb7c3be22282885d6871ccdcee981ec79a526c71f281f0e8ada5858194851 SHA512 32d44b6d691e33a1ee1426cb7a3cb3648722709c588d177951b8be802546faadfd612567981bbbfed3d782b18260e6e638e7879813f3b06bb5a8387b052b0227
|
DIST VirtualBox-5.2.22-126460-Linux_x86.run 87817677 BLAKE2B 5f11e5f92386c9524869082cf1a5af413c69fe5b36b1ace58887076000c7b928267eb7c3be22282885d6871ccdcee981ec79a526c71f281f0e8ada5858194851 SHA512 32d44b6d691e33a1ee1426cb7a3cb3648722709c588d177951b8be802546faadfd612567981bbbfed3d782b18260e6e638e7879813f3b06bb5a8387b052b0227
|
||||||
DIST VirtualBox-5.2.24-128163-Linux_amd64.run 89282001 BLAKE2B affd8768878cf25209b7a53dc024ff1798d2c2e007031d40b39c5245df608cc09fdb19c216075b0ec7a4fd63ff580731b1b04838d5d6dc81bd126fed005ea355 SHA512 f22e3c71e5c3f923edc14fbae0191a5d1262426166984e19c784e2b0a332296f949d2a9eeca6972c1f16a0f9573c1f9807c556d4dab2bd500d5b73e22485c7e1
|
DIST VirtualBox-5.2.24-128163-Linux_amd64.run 89282001 BLAKE2B affd8768878cf25209b7a53dc024ff1798d2c2e007031d40b39c5245df608cc09fdb19c216075b0ec7a4fd63ff580731b1b04838d5d6dc81bd126fed005ea355 SHA512 f22e3c71e5c3f923edc14fbae0191a5d1262426166984e19c784e2b0a332296f949d2a9eeca6972c1f16a0f9573c1f9807c556d4dab2bd500d5b73e22485c7e1
|
||||||
DIST VirtualBox-5.2.24-128163-Linux_x86.run 88391118 BLAKE2B ffc44c55f664e4bc2c2e8bf09d95fda3631541b4b4b1dca7735dd5fcbf12da8258065fa13466ce23229126fb84b0193eee7cd794cf09f631ce124c4fd6558f16 SHA512 a7350a8266c6b3522be91158d765ce31b69acbfd67b6056a96361e0cb48926cee115c8f3df4d1965fd7b082d3f487f9f655253620a8357dbfadfbd2320ad6a3b
|
DIST VirtualBox-5.2.24-128163-Linux_x86.run 88391118 BLAKE2B ffc44c55f664e4bc2c2e8bf09d95fda3631541b4b4b1dca7735dd5fcbf12da8258065fa13466ce23229126fb84b0193eee7cd794cf09f631ce124c4fd6558f16 SHA512 a7350a8266c6b3522be91158d765ce31b69acbfd67b6056a96361e0cb48926cee115c8f3df4d1965fd7b082d3f487f9f655253620a8357dbfadfbd2320ad6a3b
|
||||||
DIST VirtualBox-6.0.0-127566-Linux_amd64.run 148766154 BLAKE2B 2e23341dc798aabc1fd696422073516b6f2f70b9bee525ef22528b72abf38acf24599442e5c56d52c24af48f5ae6e2e6cdee981293fc644fac965cc34041a101 SHA512 19b11f7cf62288624739547755a7732b7d355ba61040c7e951ecbaf0ce75252075e8168aa41054e31fa36d45998f1ae1136b65d09981475a3052c4da7fd3021b
|
DIST VirtualBox-5.2.26-128414-Linux_amd64.run 89220562 BLAKE2B d937e3a8f622ed1afc8ab7d2479401c6b41f6b1404197b2d86933d741a209071b1bc98de14ea4f25b2b0f2a22a328393908f85955f8879dbf8b28e2b981e4d04 SHA512 c8d7741408d234e7c05709dd0ed66d30b427b0f39976f232b1fe8a17160d36c4dda7d3adda46a38cbdd6626d34570805f582ac0aae2a975385a1f1d06e97f354
|
||||||
|
DIST VirtualBox-5.2.26-128414-Linux_x86.run 88339918 BLAKE2B 0fe177a8d9ab4c4cb894151a00f9554713dee27af1fe3036591a0e7865c8869eef17368ab42270d5a9081c849e6550ebef809c3f8f09a9238e2f5a5f0c9e76e5 SHA512 6a809cf29a2cd70bddeca0443955ea10044553ef85744949b604f92a8bca96b9deb1c37f723388d1f27f903c9469e7cb853a0bf7d6928bb18ba61cb19b216fba
|
||||||
DIST VirtualBox-6.0.2-128162-Linux_amd64.run 155114954 BLAKE2B 0159383d2bd3ed0e454e03db61d7466e06b63222da364ae8c8964ac418c2a5de6b78c320c989bc497e6fc98051434d3e480d1bd16e0f92f8ac2fde8a60af088e SHA512 10b0971b81158f80de918f5ae9e0261eaec23ac7b5b3a8117c7d757a3044559648860b70d5688b58bcda1d0bdd36b1df70d5d0c8c1a65c53e1a65112beba1fff
|
DIST VirtualBox-6.0.2-128162-Linux_amd64.run 155114954 BLAKE2B 0159383d2bd3ed0e454e03db61d7466e06b63222da364ae8c8964ac418c2a5de6b78c320c989bc497e6fc98051434d3e480d1bd16e0f92f8ac2fde8a60af088e SHA512 10b0971b81158f80de918f5ae9e0261eaec23ac7b5b3a8117c7d757a3044559648860b70d5688b58bcda1d0bdd36b1df70d5d0c8c1a65c53e1a65112beba1fff
|
||||||
|
DIST VirtualBox-6.0.4-128413-Linux_amd64.run 154920406 BLAKE2B 518ef3ee6a5b8d066b9238ea3660cce5898b15471805cdcc508471a8a7b1003d5b4d894a8de5be4e70a67abe77dd05ce7d463603081749836d1e6b58aa43aa04 SHA512 a35cbc5d726acde31939d8729695cb041c8e962af3f4894153e5779af4efa1b260f0f021de9c5a3edc651271e7adfa1818d6b9c1e081155f483cb148555e52b5
|
||||||
DIST VirtualBoxSDK-5.2.22-126460.zip 10154660 BLAKE2B e0a0106f695ca7198d4b2ac5c62bb435fe7934858115dcb3aed57b40d82655bd54cbbae63b279132c23762a227c53affe68131a0bf9452c69dcaf2162b1e4ebf SHA512 1d34b8f7f32602b5656fdb6184e6c35cc54d6ecb36bc41d7df3e154f18c27ea5938635969feb69defe86a53897eee87792514967f15810224ee89e8e523d2b29
|
DIST VirtualBoxSDK-5.2.22-126460.zip 10154660 BLAKE2B e0a0106f695ca7198d4b2ac5c62bb435fe7934858115dcb3aed57b40d82655bd54cbbae63b279132c23762a227c53affe68131a0bf9452c69dcaf2162b1e4ebf SHA512 1d34b8f7f32602b5656fdb6184e6c35cc54d6ecb36bc41d7df3e154f18c27ea5938635969feb69defe86a53897eee87792514967f15810224ee89e8e523d2b29
|
||||||
DIST VirtualBoxSDK-5.2.24-128163.zip 10153218 BLAKE2B e0a86462396eaa3fb9aa475ab40ee810874f61d3e9f37050b4aba36e6b5150e3699303b7f9989e32e794b9f67de4340ff008fa67339a3c45678005d126a17c27 SHA512 fbc12076ee968a6066f6ac81ff1555e10710d10d7821be24a4b4371a4f4b0409bed2d209904daa2b3f98a7998357558ca158bd76b87c5449815843312b669627
|
DIST VirtualBoxSDK-5.2.24-128163.zip 10153218 BLAKE2B e0a86462396eaa3fb9aa475ab40ee810874f61d3e9f37050b4aba36e6b5150e3699303b7f9989e32e794b9f67de4340ff008fa67339a3c45678005d126a17c27 SHA512 fbc12076ee968a6066f6ac81ff1555e10710d10d7821be24a4b4371a4f4b0409bed2d209904daa2b3f98a7998357558ca158bd76b87c5449815843312b669627
|
||||||
DIST VirtualBoxSDK-6.0.0-127566.zip 10749531 BLAKE2B 98a9d1d85a5d835e9a6d1ed121f6650d795a695bf40fb05af235eba6454237a79487f801d6351f3c446b523001271faac8cc09880522f97cae73360c1179edf5 SHA512 1f25b9249c5e1e0a7caee867b1508f517e16afd23055decfe27a513d1199ebc72bfcd391a8e750403ddb80a4087df7cfd928604b827976d7075829c7e3d82e00
|
DIST VirtualBoxSDK-5.2.26-128414.zip 10159276 BLAKE2B 32a9e0a70cc63c8e0daa7080f8e10ac8a514837be98a66b00161cd0c9bf2cc42ef0a11f3a69a742a2f6745b4c8b8fe9e946e18f81cd5ef3ab2f68d5e3c95c568 SHA512 f3d1cc622734ecb0f56fcdf5728fcc747e3b084cb2358d420c55c1acd98d2f24870f0fd18cea430f118f34bca10199526ba195a314d6ce7fb6c4bc8281d89f09
|
||||||
DIST VirtualBoxSDK-6.0.2-128162.zip 10753904 BLAKE2B 52824830e3d816df57932d8812a959dc3590eeabe8b7ba1dc8927d7eac7bea0c4584e0f2d62b405fdb8d5833fc93792dfcd7c2cfc2714237ecb8dbf26be36f11 SHA512 d7d1d60c7ffc4022de16dccc7786bbc4d481cef26e105932158955cc4350d65a6ac5bffa01a319baee5a64f4ae7d016ba50f82128bef6e11e54e72e82e73c168
|
DIST VirtualBoxSDK-6.0.2-128162.zip 10753904 BLAKE2B 52824830e3d816df57932d8812a959dc3590eeabe8b7ba1dc8927d7eac7bea0c4584e0f2d62b405fdb8d5833fc93792dfcd7c2cfc2714237ecb8dbf26be36f11 SHA512 d7d1d60c7ffc4022de16dccc7786bbc4d481cef26e105932158955cc4350d65a6ac5bffa01a319baee5a64f4ae7d016ba50f82128bef6e11e54e72e82e73c168
|
||||||
|
DIST VirtualBoxSDK-6.0.4-128413.zip 10755635 BLAKE2B 60333b130adbacc85a84c65ee638effcb6d1a226957c48907df342853b0a9ba4d5632d93858e539fafe2ec28befaa7de584538b46ee83a05789b065a05c3107c SHA512 de2c3e979fe35cda8b433c27f4ce52d5c86e7c0bdfb061a758fce642d4aab908c7c6808c3110ec81d4967977768de95ee8be5cd330d634d3dc9711dd77f17867
|
||||||
|
@ -0,0 +1,287 @@
|
|||||||
|
# Copyright 1999-2019 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=6
|
||||||
|
|
||||||
|
PYTHON_COMPAT=( python2_7 )
|
||||||
|
|
||||||
|
inherit xdg-utils gnome2 pax-utils python-r1 udev unpacker eapi7-ver
|
||||||
|
|
||||||
|
MAIN_PV="$(ver_cut 1-3)"
|
||||||
|
if [[ ${PV} = *_beta* ]] || [[ ${PV} = *_rc* ]] ; then
|
||||||
|
MY_PV="${MAIN_PV}_$(ver_cut 5)"
|
||||||
|
MY_PV="${MY_PV/beta/BETA}"
|
||||||
|
MY_PV="${MY_PV/rc/RC}"
|
||||||
|
else
|
||||||
|
MY_PV="${MAIN_PV}"
|
||||||
|
fi
|
||||||
|
VBOX_BUILD_ID="$(ver_cut 4)"
|
||||||
|
VBOX_PV="${MY_PV}-${VBOX_BUILD_ID}"
|
||||||
|
MY_P="VirtualBox-${VBOX_PV}-Linux"
|
||||||
|
# needed as sometimes the extpack gets another build ID
|
||||||
|
EXTP_PV="${VBOX_PV}"
|
||||||
|
EXTP_PN="Oracle_VM_VirtualBox_Extension_Pack"
|
||||||
|
EXTP_P="${EXTP_PN}-${EXTP_PV}"
|
||||||
|
# needed as sometimes the SDK gets another build ID
|
||||||
|
SDK_PV="${VBOX_PV}"
|
||||||
|
SDK_P="VirtualBoxSDK-${SDK_PV}"
|
||||||
|
|
||||||
|
DESCRIPTION="Family of powerful x86 virtualization products for enterprise and home use"
|
||||||
|
HOMEPAGE="https://www.virtualbox.org/"
|
||||||
|
SRC_URI="amd64? ( https://download.virtualbox.org/virtualbox/${MY_PV}/${MY_P}_amd64.run )
|
||||||
|
x86? ( https://download.virtualbox.org/virtualbox/${MY_PV}/${MY_P}_x86.run )
|
||||||
|
https://download.virtualbox.org/virtualbox/${MY_PV}/${EXTP_P}.vbox-extpack -> ${EXTP_P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="GPL-2 PUEL"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
IUSE="+additions +chm headless python vboxwebsrv rdesktop-vrdp"
|
||||||
|
RESTRICT="mirror"
|
||||||
|
|
||||||
|
if [[ "${PV}" != *beta* ]] ; then
|
||||||
|
SRC_URI+="
|
||||||
|
sdk? ( https://download.virtualbox.org/virtualbox/${MY_PV}/${SDK_P}.zip )"
|
||||||
|
IUSE+=" sdk"
|
||||||
|
fi
|
||||||
|
|
||||||
|
DEPEND="app-arch/unzip
|
||||||
|
${PYTHON_DEPS}"
|
||||||
|
|
||||||
|
RDEPEND="!!app-emulation/virtualbox
|
||||||
|
!app-emulation/virtualbox-additions
|
||||||
|
~app-emulation/virtualbox-modules-${MAIN_PV}
|
||||||
|
!headless? (
|
||||||
|
dev-libs/glib
|
||||||
|
media-libs/fontconfig
|
||||||
|
media-libs/freetype
|
||||||
|
media-libs/libpng
|
||||||
|
media-libs/libsdl[X]
|
||||||
|
x11-libs/libXcursor
|
||||||
|
x11-libs/libXext
|
||||||
|
x11-libs/libXfixes
|
||||||
|
x11-libs/libXft
|
||||||
|
x11-libs/libXi
|
||||||
|
x11-libs/libXinerama
|
||||||
|
x11-libs/libXrandr
|
||||||
|
x11-libs/libXrender
|
||||||
|
chm? ( dev-libs/expat )
|
||||||
|
)
|
||||||
|
dev-libs/libxml2
|
||||||
|
sys-fs/lvm2
|
||||||
|
x11-libs/libXau
|
||||||
|
x11-libs/libX11
|
||||||
|
x11-libs/libXt
|
||||||
|
x11-libs/libXmu
|
||||||
|
x11-libs/libSM
|
||||||
|
x11-libs/libICE
|
||||||
|
x11-libs/libXdmcp
|
||||||
|
${PYTHON_DEPS}"
|
||||||
|
|
||||||
|
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||||
|
S="${WORKDIR}"
|
||||||
|
|
||||||
|
QA_PREBUILT="opt/VirtualBox/*"
|
||||||
|
|
||||||
|
PYTHON_UPDATER_IGNORE="1"
|
||||||
|
|
||||||
|
src_unpack() {
|
||||||
|
unpack_makeself ${MY_P}_${ARCH}.run
|
||||||
|
unpack ./VirtualBox.tar.bz2
|
||||||
|
|
||||||
|
mkdir "${S}"/${EXTP_PN} || die
|
||||||
|
pushd "${S}"/${EXTP_PN} &>/dev/null || die
|
||||||
|
unpack ${EXTP_P}.tar.gz
|
||||||
|
popd &>/dev/null || die
|
||||||
|
|
||||||
|
if [[ "${PV}" != *beta* ]] && use sdk ; then
|
||||||
|
unpack VirtualBoxSDK-${SDK_PV}.zip
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
:;
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
:;
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
# create virtualbox configurations files
|
||||||
|
insinto /etc/vbox
|
||||||
|
newins "${FILESDIR}/${PN}-config" vbox.cfg
|
||||||
|
|
||||||
|
if ! use headless ; then
|
||||||
|
newmenu "${FILESDIR}"/${PN}.desktop-2 ${PN}.desktop
|
||||||
|
|
||||||
|
# set up symlinks (bug #572012)
|
||||||
|
dosym ../../../../opt/VirtualBox/virtualbox.xml /usr/share/mime/packages/virtualbox.xml
|
||||||
|
|
||||||
|
local size ico icofile
|
||||||
|
for size in 16 24 32 48 64 72 96 128 256 ; do
|
||||||
|
pushd "${S}"/icons/${size}x${size} &>/dev/null || die
|
||||||
|
if [[ -f "virtualbox.png" ]] ; then
|
||||||
|
doicon -s ${size} virtualbox.png
|
||||||
|
fi
|
||||||
|
for ico in hdd ova ovf vbox{,-extpack} vdi vdh vmdk ; do
|
||||||
|
icofile="virtualbox-${ico}.png"
|
||||||
|
if [[ -f "${icofile}" ]] ; then
|
||||||
|
doicon -s ${size} ${icofile}
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
popd &>/dev/null || die
|
||||||
|
done
|
||||||
|
doicon -s scalable "${S}"/icons/scalable/virtualbox.svg
|
||||||
|
insinto /usr/share/pixmaps
|
||||||
|
newins "${S}"/icons/48x48/virtualbox.png ${PN}.png
|
||||||
|
fi
|
||||||
|
|
||||||
|
pushd "${S}"/${EXTP_PN} &>/dev/null || die
|
||||||
|
insinto /opt/VirtualBox/ExtensionPacks/${EXTP_PN}
|
||||||
|
doins -r linux.${ARCH}
|
||||||
|
doins ExtPack* PXE-Intel.rom
|
||||||
|
popd &>/dev/null || die
|
||||||
|
rm -rf "${S}"/${EXTP_PN}
|
||||||
|
|
||||||
|
insinto /opt/VirtualBox
|
||||||
|
dodir /opt/bin
|
||||||
|
|
||||||
|
doins UserManual.pdf
|
||||||
|
|
||||||
|
if [[ "${PV}" != *beta* ]] && use sdk ; then
|
||||||
|
doins -r sdk
|
||||||
|
fi
|
||||||
|
|
||||||
|
if use additions; then
|
||||||
|
doins -r additions
|
||||||
|
fi
|
||||||
|
|
||||||
|
if use vboxwebsrv; then
|
||||||
|
doins vboxwebsrv
|
||||||
|
fowners root:vboxusers /opt/VirtualBox/vboxwebsrv
|
||||||
|
fperms 0750 /opt/VirtualBox/vboxwebsrv
|
||||||
|
dosym ../../opt/VirtualBox/VBox.sh /opt/bin/vboxwebsrv
|
||||||
|
newinitd "${FILESDIR}"/vboxwebsrv-initd vboxwebsrv
|
||||||
|
newconfd "${FILESDIR}"/vboxwebsrv-confd vboxwebsrv
|
||||||
|
fi
|
||||||
|
|
||||||
|
if use rdesktop-vrdp; then
|
||||||
|
doins rdesktop-vrdp
|
||||||
|
doins -r rdesktop-vrdp-keymaps
|
||||||
|
fperms 0750 /opt/VirtualBox/rdesktop-vrdp
|
||||||
|
dosym ../../opt/VirtualBox/rdesktop-vrdp /opt/bin/rdesktop-vrdp
|
||||||
|
fi
|
||||||
|
|
||||||
|
if ! use headless && use chm; then
|
||||||
|
doins kchmviewer VirtualBox.chm
|
||||||
|
fowners root:vboxusers /opt/VirtualBox/kchmviewer
|
||||||
|
fperms 0750 /opt/VirtualBox/kchmviewer
|
||||||
|
fi
|
||||||
|
|
||||||
|
# This ebuild / package supports only py2.7. When py3 comes is unknown.
|
||||||
|
# The compile phase makes VBoxPython2_7.so.
|
||||||
|
# py3 support would presumably require a binary pre-compiled by py3.
|
||||||
|
use python && doins VBoxPython.so VBoxPython2_7.so
|
||||||
|
|
||||||
|
rm -rf src rdesktop* deffiles install* routines.sh runlevel.sh \
|
||||||
|
vboxdrv.sh VBox.sh VBox.png vboxnet.sh additions VirtualBox.desktop \
|
||||||
|
VirtualBox.tar.bz2 LICENSE VBoxSysInfo.sh rdesktop* vboxwebsrv \
|
||||||
|
webtest kchmviewer VirtualBox.chm vbox-create-usb-node.sh \
|
||||||
|
90-vbox-usb.fdi uninstall.sh vboxshell.py vboxdrv-pardus.py \
|
||||||
|
VBoxPython?_*.so
|
||||||
|
|
||||||
|
if use headless ; then
|
||||||
|
rm -rf VBoxSDL VirtualBox VBoxKeyboard.so
|
||||||
|
fi
|
||||||
|
|
||||||
|
doins -r * || die
|
||||||
|
|
||||||
|
# create symlinks for working around unsupported $ORIGIN/.. in VBoxC.so (setuid)
|
||||||
|
dosym ../VBoxVMM.so /opt/VirtualBox/components/VBoxVMM.so
|
||||||
|
dosym ../VBoxREM.so /opt/VirtualBox/components/VBoxREM.so
|
||||||
|
dosym ../VBoxRT.so /opt/VirtualBox/components/VBoxRT.so
|
||||||
|
dosym ../VBoxDDU.so /opt/VirtualBox/components/VBoxDDU.so
|
||||||
|
dosym ../VBoxXPCOM.so /opt/VirtualBox/components/VBoxXPCOM.so
|
||||||
|
|
||||||
|
local each
|
||||||
|
for each in VBox{Manage,SVC,XPCOMIPCD,Tunctl,NetAdpCtl,NetDHCP,NetNAT,TestOGL,ExtPackHelperApp}; do
|
||||||
|
fowners root:vboxusers /opt/VirtualBox/${each}
|
||||||
|
fperms 0750 /opt/VirtualBox/${each}
|
||||||
|
pax-mark -m "${ED%/}"/opt/VirtualBox/${each}
|
||||||
|
done
|
||||||
|
# VBoxNetAdpCtl and VBoxNetDHCP binaries need to be suid root in any case..
|
||||||
|
fperms 4750 /opt/VirtualBox/VBoxNetAdpCtl
|
||||||
|
fperms 4750 /opt/VirtualBox/VBoxNetDHCP
|
||||||
|
fperms 4750 /opt/VirtualBox/VBoxNetNAT
|
||||||
|
|
||||||
|
if ! use headless ; then
|
||||||
|
# Hardened build: Mark selected binaries set-user-ID-on-execution
|
||||||
|
for each in VBox{SDL,Headless} VirtualBox; do
|
||||||
|
fowners root:vboxusers /opt/VirtualBox/${each}
|
||||||
|
fperms 4510 /opt/VirtualBox/${each}
|
||||||
|
pax-mark -m "${ED%/}"/opt/VirtualBox/${each}
|
||||||
|
done
|
||||||
|
|
||||||
|
dosym ../VirtualBox/VBox.sh /opt/bin/VirtualBox
|
||||||
|
dosym ../VirtualBox/VBox.sh /opt/bin/VBoxSDL
|
||||||
|
else
|
||||||
|
# Hardened build: Mark selected binaries set-user-ID-on-execution
|
||||||
|
fowners root:vboxusers /opt/VirtualBox/VBoxHeadless
|
||||||
|
fperms 4510 /opt/VirtualBox/VBoxHeadless
|
||||||
|
pax-mark -m "${ED%/}"/opt/VirtualBox/VBoxHeadless
|
||||||
|
fi
|
||||||
|
|
||||||
|
exeinto /opt/VirtualBox
|
||||||
|
newexe "${FILESDIR}/${PN}-3-wrapper" "VBox.sh"
|
||||||
|
fowners root:vboxusers /opt/VirtualBox/VBox.sh
|
||||||
|
fperms 0750 /opt/VirtualBox/VBox.sh
|
||||||
|
|
||||||
|
dosym ../VirtualBox/VBox.sh /opt/bin/VBoxManage
|
||||||
|
dosym ../VirtualBox/VBox.sh /opt/bin/VBoxVRDP
|
||||||
|
dosym ../VirtualBox/VBox.sh /opt/bin/VBoxHeadless
|
||||||
|
dosym ../VirtualBox/VBoxTunctl /opt/bin/VBoxTunctl
|
||||||
|
|
||||||
|
# set an env-variable for 3rd party tools
|
||||||
|
echo -n "VBOX_APP_HOME=/opt/VirtualBox" > "${T}/90virtualbox"
|
||||||
|
doenvd "${T}/90virtualbox"
|
||||||
|
|
||||||
|
local udevdir="$(get_udevdir)"
|
||||||
|
insinto ${udevdir}/rules.d
|
||||||
|
doins "${FILESDIR}"/10-virtualbox.rules
|
||||||
|
sed "s@%UDEVDIR%@${udevdir}@" \
|
||||||
|
-i "${ED%/}"${udevdir}/rules.d/10-virtualbox.rules || die
|
||||||
|
# move udev scripts into ${udevdir} (bug #372491)
|
||||||
|
mv "${ED%/}"/opt/VirtualBox/VBoxCreateUSBNode.sh "${ED%/}"${udevdir} || die
|
||||||
|
fperms 0750 ${udevdir}/VBoxCreateUSBNode.sh
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
xdg_desktop_database_update
|
||||||
|
|
||||||
|
gnome2_icon_cache_update
|
||||||
|
|
||||||
|
udevadm control --reload-rules && udevadm trigger --subsystem-match=usb
|
||||||
|
|
||||||
|
elog ""
|
||||||
|
if ! use headless ; then
|
||||||
|
elog "To launch VirtualBox just type: \"VirtualBox\""
|
||||||
|
elog ""
|
||||||
|
fi
|
||||||
|
elog "You must be in the vboxusers group to use VirtualBox."
|
||||||
|
elog ""
|
||||||
|
elog "For advanced networking setups you should emerge:"
|
||||||
|
elog "net-misc/bridge-utils and sys-apps/usermode-utilities"
|
||||||
|
elog ""
|
||||||
|
elog "Please visit http://www.virtualbox.org/wiki/Editions for"
|
||||||
|
elog "an overview about the different features of ${PN}"
|
||||||
|
elog "and virtualbox-ose"
|
||||||
|
if [ -e "${ROOT}/etc/udev/rules.d/10-virtualbox.rules" ] ; then
|
||||||
|
elog ""
|
||||||
|
elog "Please remove \"${ROOT}/etc/udev/rules.d/10-virtualbox.rules\""
|
||||||
|
elog "or else USB in ${PN} won't work."
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postrm() {
|
||||||
|
xdg_desktop_database_update
|
||||||
|
}
|
@ -1,4 +1,5 @@
|
|||||||
DIST Oracle_VM_VirtualBox_Extension_Pack-5.2.22-126460.tar.gz 19640932 BLAKE2B 162ab40da6b2cd30d00e020666a1f4fb026e29af2ca9d6c36c294e5fa299b61ab8fd147f24d2b500426c768808db2c7693c30e88519e695d7759f8eedf1c52c5 SHA512 85b8552668b6580bea24f051ad861c82b9ba32177fb7fa37fe2980d8bab32a84325d02bfa9c8f55c2021a4000ef2546d8996ca8b99ca7fc19f8281a92108dfb0
|
DIST Oracle_VM_VirtualBox_Extension_Pack-5.2.22-126460.tar.gz 19640932 BLAKE2B 162ab40da6b2cd30d00e020666a1f4fb026e29af2ca9d6c36c294e5fa299b61ab8fd147f24d2b500426c768808db2c7693c30e88519e695d7759f8eedf1c52c5 SHA512 85b8552668b6580bea24f051ad861c82b9ba32177fb7fa37fe2980d8bab32a84325d02bfa9c8f55c2021a4000ef2546d8996ca8b99ca7fc19f8281a92108dfb0
|
||||||
DIST Oracle_VM_VirtualBox_Extension_Pack-5.2.24-128163.tar.gz 19683939 BLAKE2B ce05e159172e34e1d520b3783d77db06aa8f91067cc743beb1eeafaf01508e830f5fe9501cb1f3a6d99492e3046ec2dd2fec94ffd39a237ef4679352492aaa1a SHA512 035103e420d773201ad24093910d7175a5d548f19de4a58900e78e2ebfac711851c99375977ba9fd47fced234346437164d226592b7070a867a1d13fd534a3b5
|
DIST Oracle_VM_VirtualBox_Extension_Pack-5.2.24-128163.tar.gz 19683939 BLAKE2B ce05e159172e34e1d520b3783d77db06aa8f91067cc743beb1eeafaf01508e830f5fe9501cb1f3a6d99492e3046ec2dd2fec94ffd39a237ef4679352492aaa1a SHA512 035103e420d773201ad24093910d7175a5d548f19de4a58900e78e2ebfac711851c99375977ba9fd47fced234346437164d226592b7070a867a1d13fd534a3b5
|
||||||
DIST Oracle_VM_VirtualBox_Extension_Pack-6.0.0-127566.tar.gz 23284806 BLAKE2B 4b34e1640ac74be3acc4cddc6140f77a2e5456ec29c6523fc2fe27c5e7c4652dd28f523b85a6cb17aab52e3594e68ee64cbe2c4cb8edd68f7deda05ed8b9e05d SHA512 cd8cd82bf9cea29f50101c8cccd0b8f699dcc4c4e7e720fe80df82154339b787d154a6376adc9d0f4a3015ec1ee2d67d6575ac5197dfda63af3f758294c165b8
|
DIST Oracle_VM_VirtualBox_Extension_Pack-5.2.26-128414.tar.gz 19684009 BLAKE2B 81787dcf3b70211fa9c84a40c668100eda0dfd2ce3e1d35c226cb6913ef74027f3444be93069a5e881d8e60905477460a180cb98919050286978edf9c1edcdf3 SHA512 deb4c62d58e2071f4413f0ff769e9ecd756362920b29482a6a3d77566c327b075cb5ecafdc65985305b8b798dc56ca2104a0f8244651fca89c4e15ef879c121e
|
||||||
DIST Oracle_VM_VirtualBox_Extension_Pack-6.0.2-128162.tar.gz 23289693 BLAKE2B 13e1ad30b40676ed2e11cf26957377696a9f30a7a92bda0ca5f69039ffebe4abf3bb0224844609a29ac217b227e4d1906c70cd404d3967a26dc0ace3bf4d2ccd SHA512 29b682bf8130f73b25a82e97053847077d9eb48f0510db7fb0cf2e817e1e6b9a6e7ded54ede7447c56aa7b219d32a2d6ee19cb0efbe5c7e0a984c5e137fada51
|
DIST Oracle_VM_VirtualBox_Extension_Pack-6.0.2-128162.tar.gz 23289693 BLAKE2B 13e1ad30b40676ed2e11cf26957377696a9f30a7a92bda0ca5f69039ffebe4abf3bb0224844609a29ac217b227e4d1906c70cd404d3967a26dc0ace3bf4d2ccd SHA512 29b682bf8130f73b25a82e97053847077d9eb48f0510db7fb0cf2e817e1e6b9a6e7ded54ede7447c56aa7b219d32a2d6ee19cb0efbe5c7e0a984c5e137fada51
|
||||||
|
DIST Oracle_VM_VirtualBox_Extension_Pack-6.0.4-128413.tar.gz 23290549 BLAKE2B f9ac1a560d5e8b9b73efa21e3623c9f6f0d7769eb4cad7b01d8f68a135a74573659a0a9b092f7ab35beb348ed2722fcf7862aa66e47987b33038f488b88b1129 SHA512 ee54cbdf58de8d37ba84fffd2baec2c9d3915feeab715767515fd6d6ec3032dad2f02509b08cea24754cfce0974a7c1b29c6050bff466af53c1ac6589f4c0215
|
||||||
|
@ -0,0 +1,42 @@
|
|||||||
|
# Copyright 1999-2019 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
|
||||||
|
inherit multilib
|
||||||
|
|
||||||
|
MAIN_PV="$(ver_cut 1-3)"
|
||||||
|
if [[ ${PV} = *_beta* ]] || [[ ${PV} = *_rc* ]] ; then
|
||||||
|
MY_PV="${MAIN_PV}_$(ver_cut 5)"
|
||||||
|
DEP_PV="${MY_PV}"
|
||||||
|
MY_PV="${MY_PV/beta/BETA}"
|
||||||
|
MY_PV="${MY_PV/rc/RC}"
|
||||||
|
else
|
||||||
|
MY_PV="${MAIN_PV}"
|
||||||
|
DEP_PV="${MAIN_PV}"
|
||||||
|
fi
|
||||||
|
VBOX_BUILD_ID="$(ver_cut 4)"
|
||||||
|
MY_PN="Oracle_VM_VirtualBox_Extension_Pack"
|
||||||
|
MY_P="${MY_PN}-${MY_PV}-${VBOX_BUILD_ID}"
|
||||||
|
|
||||||
|
DESCRIPTION="PUEL extensions for VirtualBox"
|
||||||
|
HOMEPAGE="https://www.virtualbox.org/"
|
||||||
|
SRC_URI="https://download.virtualbox.org/virtualbox/${MY_PV}/${MY_P}.vbox-extpack -> ${MY_P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="PUEL"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
IUSE=""
|
||||||
|
RESTRICT="mirror strip"
|
||||||
|
|
||||||
|
RDEPEND="~app-emulation/virtualbox-${DEP_PV}"
|
||||||
|
|
||||||
|
S="${WORKDIR}"
|
||||||
|
|
||||||
|
QA_PREBUILT="/usr/lib*/virtualbox/ExtensionPacks/${MY_PN}/.*"
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
insinto /usr/$(get_libdir)/virtualbox/ExtensionPacks/${MY_PN}
|
||||||
|
doins -r linux.${ARCH}
|
||||||
|
doins ExtPack* PXE-Intel.rom
|
||||||
|
}
|
@ -1,4 +1,4 @@
|
|||||||
# Copyright 1999-2018 Gentoo Authors
|
# Copyright 1999-2019 Gentoo Authors
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
EAPI=7
|
EAPI=7
|
@ -1,6 +1,7 @@
|
|||||||
DIST VirtualBox-5.2.22.tar.bz2 118757134 BLAKE2B be795cdbfb09d3d443f63e190b63898239622f5a57aefdd90f382d9a849d09cc1abc2624071fbc60b2c04a12f33376184540cc362c19225733f99a3bcc8ff6a3 SHA512 4f6c4611a3114778f45419587dc1519ca07410c1ea6474cdb18ecd3b068639a4fdac3f25146fe9b8e006e30f19eba134ce9f665182008b033f6f78497e1ea722
|
DIST VirtualBox-5.2.22.tar.bz2 118757134 BLAKE2B be795cdbfb09d3d443f63e190b63898239622f5a57aefdd90f382d9a849d09cc1abc2624071fbc60b2c04a12f33376184540cc362c19225733f99a3bcc8ff6a3 SHA512 4f6c4611a3114778f45419587dc1519ca07410c1ea6474cdb18ecd3b068639a4fdac3f25146fe9b8e006e30f19eba134ce9f665182008b033f6f78497e1ea722
|
||||||
DIST VirtualBox-5.2.24.tar.bz2 118369194 BLAKE2B 2073ec85a641ae80113d41e8363401da5afaf6ea442c2a3c537341f39e06a03a7175463605133e642988f72c4adde4f987905c08f4ba58460953af7169cb4ca0 SHA512 2de5a19ff6aff56a4f7e7b9d7d39b3e787d2ac30d448e3313e915b1cde4b2eedccab44c7a195412efb9e9a6de3c1fb3ee96bde57af93f9ef8f317ffa8b7d4410
|
DIST VirtualBox-5.2.24.tar.bz2 118369194 BLAKE2B 2073ec85a641ae80113d41e8363401da5afaf6ea442c2a3c537341f39e06a03a7175463605133e642988f72c4adde4f987905c08f4ba58460953af7169cb4ca0 SHA512 2de5a19ff6aff56a4f7e7b9d7d39b3e787d2ac30d448e3313e915b1cde4b2eedccab44c7a195412efb9e9a6de3c1fb3ee96bde57af93f9ef8f317ffa8b7d4410
|
||||||
DIST VirtualBox-6.0.0.tar.bz2 154322106 BLAKE2B 952e857e5bd6f612272b7bc399af5596d4eb4f13c429c93be7f9e6c4b58e535fe0492806fd51fd5a3f22653f0a42abb2a25ce6b67b5b4712d7e88e34b68eb8cf SHA512 fbe193a3c4dfef943bd75e894452cc684e794e5fa2b25d0292f7fb3e84d5f1a890fe0a3a91dbae9a9b90ec87f12cb3d868457e1767a5841964568cf13a189561
|
DIST VirtualBox-5.2.26.tar.bz2 118371765 BLAKE2B 32413b72e33f2f63835a2eb2d47dc75a7b63121934bdffd51ff58e9d63d68b77b4f8dac4605916ba8bd6896240d00024ccc3d7d002d4f6f92d6d9b1dc35995e3 SHA512 aee334c74bd02772ac5e0528d84d31661f61c775d0993c00febe125810efc78a2f779db41bf66283be51b19a35540fee14445bada59a8d3b7affa6ef6645005f
|
||||||
DIST VirtualBox-6.0.2.tar.bz2 155125777 BLAKE2B 2d902fd1963305883eebba85daa03bd17fe8a9ba20e7a6482508879068a809ee80c4a5caffeb26acd0fd4ad29f6f60cf963e1d314e4b01f137ede5b589a74cb9 SHA512 9cfc03eae073ada47c050d2a5eeefa6f724ad2094f2bc3717aa010553ab0dd5af0ed0860bf120727491c7798cdff9219e53cdc3d629f61e3cd12c55068e7401b
|
DIST VirtualBox-6.0.2.tar.bz2 155125777 BLAKE2B 2d902fd1963305883eebba85daa03bd17fe8a9ba20e7a6482508879068a809ee80c4a5caffeb26acd0fd4ad29f6f60cf963e1d314e4b01f137ede5b589a74cb9 SHA512 9cfc03eae073ada47c050d2a5eeefa6f724ad2094f2bc3717aa010553ab0dd5af0ed0860bf120727491c7798cdff9219e53cdc3d629f61e3cd12c55068e7401b
|
||||||
|
DIST VirtualBox-6.0.4.tar.bz2 155233564 BLAKE2B 6bc4d450e275e8aac5dc62ab05d9ba1450e13965f3eba64819315d121bd0e515319be2ad92ab429f2e598e157e89660561de69a2aac87e14792284669bcec7e8 SHA512 c2e5418bafd5d50b46e1bc70280753c2fdfbf7248d782fc398771839950fb575eaea437e9699d56f4d8c92ea4dc9ba8bed74379565dac6114f7e9c45aecc9fdb
|
||||||
DIST virtualbox-5.2.16-patches-02.tar.xz 3152 BLAKE2B c8d8f3872f544a465c7d1aa07291599307120ac9eabfb299ddd788a11f85ca6c2d84b8e7306ee4ad436270dad0dd39f101ee68a549eac15afd1e3cdc03f23c6c SHA512 85ee8c4045de562d71ab2d761695ea48b6726a6f0c4bcaa2562bb0d147542d3f1a1b5b47cf593a7f22dac1b86f87b59a56bef421dce3e1fa8e5260cd41998450
|
DIST virtualbox-5.2.16-patches-02.tar.xz 3152 BLAKE2B c8d8f3872f544a465c7d1aa07291599307120ac9eabfb299ddd788a11f85ca6c2d84b8e7306ee4ad436270dad0dd39f101ee68a549eac15afd1e3cdc03f23c6c SHA512 85ee8c4045de562d71ab2d761695ea48b6726a6f0c4bcaa2562bb0d147542d3f1a1b5b47cf593a7f22dac1b86f87b59a56bef421dce3e1fa8e5260cd41998450
|
||||||
DIST virtualbox-6.0.0_beta2-patches-01.tar.xz 2732 BLAKE2B a138e715d99f135f16ca21c92781bf6cd8913f7f766bb598eddcd63e98280e568e646f56bbd0a3714f273457ca90db0b77ec7940ba25028506a22891f1af7b2d SHA512 954e4b40d6e272efe756ee0965adb4110d45f764433a89080fda7ebaebbc20031f86a3e0027dfdaa1c6a7d6379a1af557cea71512504e4b57b5f5adbfc86b56e
|
DIST virtualbox-6.0.0_beta2-patches-01.tar.xz 2732 BLAKE2B a138e715d99f135f16ca21c92781bf6cd8913f7f766bb598eddcd63e98280e568e646f56bbd0a3714f273457ca90db0b77ec7940ba25028506a22891f1af7b2d SHA512 954e4b40d6e272efe756ee0965adb4110d45f764433a89080fda7ebaebbc20031f86a3e0027dfdaa1c6a7d6379a1af557cea71512504e4b57b5f5adbfc86b56e
|
||||||
|
@ -0,0 +1,228 @@
|
|||||||
|
# Copyright 1999-2019 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
|
||||||
|
inherit linux-mod systemd user toolchain-funcs
|
||||||
|
|
||||||
|
MY_PV="${PV/beta/BETA}"
|
||||||
|
MY_PV="${MY_PV/rc/RC}"
|
||||||
|
MY_P="VirtualBox-${MY_PV}"
|
||||||
|
DESCRIPTION="VirtualBox kernel modules and user-space tools for Gentoo guests"
|
||||||
|
HOMEPAGE="https://www.virtualbox.org/"
|
||||||
|
SRC_URI="https://download.virtualbox.org/virtualbox/${MY_PV}/${MY_P}.tar.bz2
|
||||||
|
https://dev.gentoo.org/~polynomial-c/virtualbox/patchsets/virtualbox-5.2.16-patches-02.tar.xz"
|
||||||
|
|
||||||
|
LICENSE="GPL-2"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
IUSE="X"
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
X? ( x11-apps/xrandr
|
||||||
|
x11-apps/xrefresh
|
||||||
|
x11-libs/libXmu
|
||||||
|
x11-libs/libX11
|
||||||
|
x11-libs/libXt
|
||||||
|
x11-libs/libXext
|
||||||
|
x11-libs/libXau
|
||||||
|
x11-libs/libXdmcp
|
||||||
|
x11-libs/libSM
|
||||||
|
x11-libs/libICE )
|
||||||
|
sys-apps/dbus
|
||||||
|
"
|
||||||
|
DEPEND="
|
||||||
|
${RDEPEND}
|
||||||
|
>=dev-util/kbuild-0.1.9998.3127
|
||||||
|
>=dev-lang/yasm-0.6.2
|
||||||
|
sys-devel/bin86
|
||||||
|
sys-libs/pam
|
||||||
|
sys-power/iasl
|
||||||
|
x11-base/xorg-proto
|
||||||
|
"
|
||||||
|
PDEPEND="
|
||||||
|
X? ( x11-drivers/xf86-video-vboxvideo )
|
||||||
|
"
|
||||||
|
BUILD_TARGETS="all"
|
||||||
|
BUILD_TARGET_ARCH="${ARCH}"
|
||||||
|
|
||||||
|
S="${WORKDIR}/${MY_P}"
|
||||||
|
|
||||||
|
pkg_setup() {
|
||||||
|
MODULE_NAMES="vboxguest(misc:${WORKDIR}/vboxguest:${WORKDIR}/vboxguest)
|
||||||
|
vboxsf(misc:${WORKDIR}/vboxsf:${WORKDIR}/vboxsf)"
|
||||||
|
use X && MODULE_NAMES+=" vboxvideo(misc:${WORKDIR}/vboxvideo::${WORKDIR}/vboxvideo)"
|
||||||
|
|
||||||
|
linux-mod_pkg_setup
|
||||||
|
BUILD_PARAMS="KERN_DIR=/lib/modules/${KV_FULL}/build KERNOUT=${KV_OUT_DIR}"
|
||||||
|
}
|
||||||
|
|
||||||
|
src_unpack() {
|
||||||
|
unpack ${A}
|
||||||
|
|
||||||
|
# Create and unpack a tarball with the sources of the Linux guest
|
||||||
|
# kernel modules, to include all the needed files
|
||||||
|
"${S}"/src/VBox/Additions/linux/export_modules.sh "${WORKDIR}/vbox-kmod.tar.gz"
|
||||||
|
unpack ./vbox-kmod.tar.gz
|
||||||
|
|
||||||
|
# Remove shipped binaries (kBuild,yasm), see bug #232775
|
||||||
|
cd "${S}"
|
||||||
|
rm -rf kBuild/bin tools
|
||||||
|
}
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
# PaX fixes (see bug #298988)
|
||||||
|
pushd "${WORKDIR}" &>/dev/null || die
|
||||||
|
eapply "${FILESDIR}"/vboxguest-4.1.0-log-use-c99.patch
|
||||||
|
popd &>/dev/null || die
|
||||||
|
|
||||||
|
# Disable things unused or splitted into separate ebuilds
|
||||||
|
cp "${FILESDIR}/${PN}-5-localconfig" LocalConfig.kmk || die
|
||||||
|
use X || echo "VBOX_WITH_X11_ADDITIONS :=" >> LocalConfig.kmk
|
||||||
|
|
||||||
|
# stupid new header references...
|
||||||
|
local vboxheader mdir
|
||||||
|
for vboxheader in {product,revision,version}-generated.h ; do
|
||||||
|
for mdir in vbox{guest,sf} ; do
|
||||||
|
ln -sf "${S}"/out/linux.${ARCH}/release/${vboxheader} \
|
||||||
|
"${WORKDIR}/${mdir}/${vboxheader}"
|
||||||
|
done
|
||||||
|
done
|
||||||
|
|
||||||
|
# Remove pointless GCC version check
|
||||||
|
sed -e '/^check_gcc$/d' -i configure || die
|
||||||
|
|
||||||
|
rm "${WORKDIR}/patches/008_virtualbox-4.3.14-missing_define.patch" || die
|
||||||
|
eapply "${WORKDIR}/patches"
|
||||||
|
|
||||||
|
eapply_user
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
# build the user-space tools, warnings are harmless
|
||||||
|
local cmd=(
|
||||||
|
./configure
|
||||||
|
--nofatal
|
||||||
|
--disable-xpcom
|
||||||
|
--disable-sdl-ttf
|
||||||
|
--disable-pulse
|
||||||
|
--disable-alsa
|
||||||
|
--with-gcc="$(tc-getCC)"
|
||||||
|
--with-g++="$(tc-getCXX)"
|
||||||
|
--target-arch=${ARCH}
|
||||||
|
--with-linux="${KV_OUT_DIR}"
|
||||||
|
--build-headless
|
||||||
|
)
|
||||||
|
echo "${cmd[@]}"
|
||||||
|
"${cmd[@]}" || die "configure failed"
|
||||||
|
source ./env.sh
|
||||||
|
export VBOX_GCC_OPT="${CFLAGS} ${CPPFLAGS}"
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
MAKE="kmk" \
|
||||||
|
emake TOOL_YASM_AS=yasm \
|
||||||
|
VBOX_ONLY_ADDITIONS=1 \
|
||||||
|
KBUILD_VERBOSE=2
|
||||||
|
|
||||||
|
# Now creating the kernel modules. We must do this _after_
|
||||||
|
# we compiled the user-space tools as we need two of the
|
||||||
|
# automatically generated header files. (>=3.2.0)
|
||||||
|
linux-mod_src_compile
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
linux-mod_src_install
|
||||||
|
|
||||||
|
cd "${S}"/out/linux.${ARCH}/release/bin/additions || die
|
||||||
|
|
||||||
|
insinto /sbin
|
||||||
|
newins mount.vboxsf mount.vboxsf
|
||||||
|
fperms 4755 /sbin/mount.vboxsf
|
||||||
|
|
||||||
|
newinitd "${FILESDIR}"/${PN}-8.initd ${PN}
|
||||||
|
|
||||||
|
insinto /usr/sbin/
|
||||||
|
newins VBoxService vboxguest-service
|
||||||
|
fperms 0755 /usr/sbin/vboxguest-service
|
||||||
|
|
||||||
|
insinto /usr/bin
|
||||||
|
doins VBoxControl
|
||||||
|
fperms 0755 /usr/bin/VBoxControl
|
||||||
|
|
||||||
|
# VBoxClient user service and xrandr wrapper
|
||||||
|
if use X ; then
|
||||||
|
doins VBoxClient
|
||||||
|
fperms 0755 /usr/bin/VBoxClient
|
||||||
|
|
||||||
|
pushd "${S}"/src/VBox/Additions/x11/Installer &>/dev/null \
|
||||||
|
|| die
|
||||||
|
newins 98vboxadd-xclient VBoxClient-all
|
||||||
|
fperms 0755 /usr/bin/VBoxClient-all
|
||||||
|
popd &>/dev/null || die
|
||||||
|
fi
|
||||||
|
|
||||||
|
# udev rule for vboxdrv
|
||||||
|
local udev_rules_dir="/lib/udev/rules.d"
|
||||||
|
dodir ${udev_rules_dir}
|
||||||
|
echo 'KERNEL=="vboxguest", OWNER="vboxguest", GROUP="vboxguest", MODE="0660"' \
|
||||||
|
>> "${ED%/}/${udev_rules_dir}/60-virtualbox-guest-additions.rules" \
|
||||||
|
|| die
|
||||||
|
echo 'KERNEL=="vboxuser", OWNER="vboxguest", GROUP="vboxguest", MODE="0660"' \
|
||||||
|
>> "${ED%/}/${udev_rules_dir}/60-virtualbox-guest-additions.rules" \
|
||||||
|
|| die
|
||||||
|
|
||||||
|
# VBoxClient autostart file
|
||||||
|
insinto /etc/xdg/autostart
|
||||||
|
doins "${FILESDIR}"/vboxclient.desktop
|
||||||
|
|
||||||
|
# sample xorg.conf
|
||||||
|
insinto /usr/share/doc/${PF}
|
||||||
|
doins "${FILESDIR}"/xorg.conf.vbox
|
||||||
|
|
||||||
|
systemd_dounit "${FILESDIR}/${PN}.service"
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_preinst() {
|
||||||
|
enewgroup vboxguest
|
||||||
|
enewuser vboxguest -1 /bin/sh /dev/null vboxguest
|
||||||
|
# automount Error: VBoxServiceAutoMountWorker: Group "vboxsf" does not exist
|
||||||
|
enewgroup vboxsf
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
linux-mod_pkg_postinst
|
||||||
|
if ! use X ; then
|
||||||
|
elog "use flag X is off, enable it to install the"
|
||||||
|
elog "X Window System video driver."
|
||||||
|
fi
|
||||||
|
elog ""
|
||||||
|
elog "Please add users to the \"vboxguest\" group so they can"
|
||||||
|
elog "benefit from seamless mode, auto-resize and clipboard."
|
||||||
|
elog ""
|
||||||
|
elog "The vboxsf group has been added to make automount services work."
|
||||||
|
elog "These services are part of the shared folders support."
|
||||||
|
elog ""
|
||||||
|
elog "Please add:"
|
||||||
|
elog "/etc/init.d/${PN}"
|
||||||
|
elog "to the default runlevel in order to start"
|
||||||
|
elog "needed services."
|
||||||
|
elog "To use the VirtualBox X driver, use the following"
|
||||||
|
elog "file as your /etc/X11/xorg.conf:"
|
||||||
|
elog " /usr/share/doc/${PF}/xorg.conf.vbox"
|
||||||
|
elog ""
|
||||||
|
elog "Also make sure you use the Mesa library for OpenGL:"
|
||||||
|
elog " eselect opengl set xorg-x11"
|
||||||
|
elog ""
|
||||||
|
elog "An autostart .desktop file has been installed to start"
|
||||||
|
elog "VBoxClient in desktop sessions."
|
||||||
|
elog ""
|
||||||
|
elog "You can mount shared folders with:"
|
||||||
|
elog " mount -t vboxsf <shared_folder_name> <mount_point>"
|
||||||
|
elog ""
|
||||||
|
elog "Warning:"
|
||||||
|
elog "this ebuild is only needed if you are running gentoo"
|
||||||
|
elog "inside a VirtualBox Virtual Machine, you don't need"
|
||||||
|
elog "it to run VirtualBox itself."
|
||||||
|
elog ""
|
||||||
|
}
|
@ -1,4 +1,5 @@
|
|||||||
DIST vbox-kernel-module-src-5.2.22.tar.xz 638492 BLAKE2B 71aba29b056bb3dfeffbf4632fbf7f15d89b988267ba24c766b78b1d9c50a4d27fb1b8e699108b973af68024f9f77ca0a8ad787355d7342fe1400f14189487ff SHA512 3361bb536af8e8d490377be04d1b1b9af478538e23ec409d3e0205ad930c16e5228c57ae7d92d214ac533ae64298d9eaff3c9284ff9bb308108d1ad7d69fb507
|
DIST vbox-kernel-module-src-5.2.22.tar.xz 638492 BLAKE2B 71aba29b056bb3dfeffbf4632fbf7f15d89b988267ba24c766b78b1d9c50a4d27fb1b8e699108b973af68024f9f77ca0a8ad787355d7342fe1400f14189487ff SHA512 3361bb536af8e8d490377be04d1b1b9af478538e23ec409d3e0205ad930c16e5228c57ae7d92d214ac533ae64298d9eaff3c9284ff9bb308108d1ad7d69fb507
|
||||||
DIST vbox-kernel-module-src-5.2.24.tar.xz 642124 BLAKE2B fbf077b1d94f0b2f6ccb1a9a9f2e9b6f2b02153659f60a28bf3905bbd9aca762bcdbbe1a96ff602048a4d43eb61b8195c1c511bea7248d0593efd7972a17fc5b SHA512 ba0dc0ba4964eb17c421f624e321369a96564f08daa7e6949db9cbde2a182cd29a51f7b0a3215938789bb61e2427cbd38e318e5d909fd54d243ef764f51eb0e4
|
DIST vbox-kernel-module-src-5.2.24.tar.xz 642124 BLAKE2B fbf077b1d94f0b2f6ccb1a9a9f2e9b6f2b02153659f60a28bf3905bbd9aca762bcdbbe1a96ff602048a4d43eb61b8195c1c511bea7248d0593efd7972a17fc5b SHA512 ba0dc0ba4964eb17c421f624e321369a96564f08daa7e6949db9cbde2a182cd29a51f7b0a3215938789bb61e2427cbd38e318e5d909fd54d243ef764f51eb0e4
|
||||||
DIST vbox-kernel-module-src-6.0.0.tar.xz 666352 BLAKE2B 51309dd9fddb1e26e8fce55bae018d96569a28ce1d6850e2b13b47829d0336671d23962191ff4eda0f846c073a94a1d30fa67bb5e5b73f1fda63b6f06acc1225 SHA512 c0c26f2544580e16c525db997a5a3b2cbe1b84b0418cf099d12c67bc72ff7c79b30fe74793d10c710db6a03640ccb5935fbb9df55c2d8aea435beafe0de94385
|
DIST vbox-kernel-module-src-5.2.26.tar.xz 642096 BLAKE2B fa908b8dda4c49e880005f22d4ec159ba4e84b20d3cf8f514ec5ad0ea556499b0df25fb714bb5f9a3474e6fc1cba67f6d56fddaee748b9561bbe31a003dd0657 SHA512 7f37be1b35772d59cd3df9b61dec436450de3c038faf2cd22fb891fee7270aa7f87f146f72497ffeb63dfe869cccd3f2788562d23fc51afd83ca19159f2a6810
|
||||||
DIST vbox-kernel-module-src-6.0.2.tar.xz 665352 BLAKE2B 703291334afb8662211dfc5223d66dafa496612ca917637b2d34f6d38475287a1eed00e484965c670da236fdfcc558e0c7ebd081be1f6674603af2c0b6bda549 SHA512 c05f3e89b2fc5a504e77f0617dbe9ccde8de6d9b06e4c2f6d59d90f362b2d5a8207d64b16a8c767e63066a04236934664dfd452b23f4c5a2c4a3b301e07212c9
|
DIST vbox-kernel-module-src-6.0.2.tar.xz 665352 BLAKE2B 703291334afb8662211dfc5223d66dafa496612ca917637b2d34f6d38475287a1eed00e484965c670da236fdfcc558e0c7ebd081be1f6674603af2c0b6bda549 SHA512 c05f3e89b2fc5a504e77f0617dbe9ccde8de6d9b06e4c2f6d59d90f362b2d5a8207d64b16a8c767e63066a04236934664dfd452b23f4c5a2c4a3b301e07212c9
|
||||||
|
DIST vbox-kernel-module-src-6.0.4.tar.xz 666200 BLAKE2B b7a6911a8534ae9e7db5a90fecfaf58394bf61ff1ee925302fdea46443e603535d1508b638c7c3f2440c0fe1176ca85d2f063f99632eb1a9093a9367f2e49fdc SHA512 565d635683f8a5f32c18b1bbf41b38bcab549a019cf0977c8dfbb53310494fb261e485ac11eb48e546c3c4b6ed13b3fb1628013dbc101f042ee9a61b8168122a
|
||||||
|
@ -0,0 +1,51 @@
|
|||||||
|
# Copyright 1999-2019 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
# XXX: the tarball here is just the kernel modules split out of the binary
|
||||||
|
# package that comes from virtualbox-bin
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
|
||||||
|
inherit linux-mod user
|
||||||
|
|
||||||
|
MY_P="vbox-kernel-module-src-${PV}"
|
||||||
|
DESCRIPTION="Kernel Modules for Virtualbox"
|
||||||
|
HOMEPAGE="https://www.virtualbox.org/"
|
||||||
|
SRC_URI="https://dev.gentoo.org/~polynomial-c/virtualbox/${MY_P}.tar.xz"
|
||||||
|
|
||||||
|
LICENSE="GPL-2"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
IUSE="pax_kernel"
|
||||||
|
|
||||||
|
RDEPEND="!=app-emulation/virtualbox-9999"
|
||||||
|
|
||||||
|
S="${WORKDIR}"
|
||||||
|
|
||||||
|
BUILD_TARGETS="all"
|
||||||
|
BUILD_TARGET_ARCH="${ARCH}"
|
||||||
|
MODULE_NAMES="vboxdrv(misc:${S}) vboxnetflt(misc:${S}) vboxnetadp(misc:${S}) vboxpci(misc:${S})"
|
||||||
|
|
||||||
|
pkg_setup() {
|
||||||
|
enewgroup vboxusers
|
||||||
|
linux-mod_pkg_setup
|
||||||
|
BUILD_PARAMS="CC=$(tc-getBUILD_CC) KERN_DIR=${KV_DIR} KERN_VER=${KV_FULL} O=${KV_OUT_DIR} V=1 KBUILD_VERBOSE=1"
|
||||||
|
}
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
if use pax_kernel && kernel_is -ge 3 0 0 ; then
|
||||||
|
eapply -p0 "${FILESDIR}"/${PN}-5.2.8-pax-const.patch
|
||||||
|
fi
|
||||||
|
|
||||||
|
default
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
linux-mod_src_install
|
||||||
|
insinto /usr/lib/modules-load.d/
|
||||||
|
doins "${FILESDIR}"/virtualbox.conf
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
linux-mod_pkg_postinst
|
||||||
|
}
|
@ -1,4 +1,4 @@
|
|||||||
# Copyright 1999-2018 Gentoo Authors
|
# Copyright 1999-2019 Gentoo Authors
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
# XXX: the tarball here is just the kernel modules split out of the binary
|
# XXX: the tarball here is just the kernel modules split out of the binary
|
@ -1,6 +1,7 @@
|
|||||||
DIST VirtualBox-5.2.22.tar.bz2 118757134 BLAKE2B be795cdbfb09d3d443f63e190b63898239622f5a57aefdd90f382d9a849d09cc1abc2624071fbc60b2c04a12f33376184540cc362c19225733f99a3bcc8ff6a3 SHA512 4f6c4611a3114778f45419587dc1519ca07410c1ea6474cdb18ecd3b068639a4fdac3f25146fe9b8e006e30f19eba134ce9f665182008b033f6f78497e1ea722
|
DIST VirtualBox-5.2.22.tar.bz2 118757134 BLAKE2B be795cdbfb09d3d443f63e190b63898239622f5a57aefdd90f382d9a849d09cc1abc2624071fbc60b2c04a12f33376184540cc362c19225733f99a3bcc8ff6a3 SHA512 4f6c4611a3114778f45419587dc1519ca07410c1ea6474cdb18ecd3b068639a4fdac3f25146fe9b8e006e30f19eba134ce9f665182008b033f6f78497e1ea722
|
||||||
DIST VirtualBox-5.2.24.tar.bz2 118369194 BLAKE2B 2073ec85a641ae80113d41e8363401da5afaf6ea442c2a3c537341f39e06a03a7175463605133e642988f72c4adde4f987905c08f4ba58460953af7169cb4ca0 SHA512 2de5a19ff6aff56a4f7e7b9d7d39b3e787d2ac30d448e3313e915b1cde4b2eedccab44c7a195412efb9e9a6de3c1fb3ee96bde57af93f9ef8f317ffa8b7d4410
|
DIST VirtualBox-5.2.24.tar.bz2 118369194 BLAKE2B 2073ec85a641ae80113d41e8363401da5afaf6ea442c2a3c537341f39e06a03a7175463605133e642988f72c4adde4f987905c08f4ba58460953af7169cb4ca0 SHA512 2de5a19ff6aff56a4f7e7b9d7d39b3e787d2ac30d448e3313e915b1cde4b2eedccab44c7a195412efb9e9a6de3c1fb3ee96bde57af93f9ef8f317ffa8b7d4410
|
||||||
DIST VirtualBox-6.0.0.tar.bz2 154322106 BLAKE2B 952e857e5bd6f612272b7bc399af5596d4eb4f13c429c93be7f9e6c4b58e535fe0492806fd51fd5a3f22653f0a42abb2a25ce6b67b5b4712d7e88e34b68eb8cf SHA512 fbe193a3c4dfef943bd75e894452cc684e794e5fa2b25d0292f7fb3e84d5f1a890fe0a3a91dbae9a9b90ec87f12cb3d868457e1767a5841964568cf13a189561
|
DIST VirtualBox-5.2.26.tar.bz2 118371765 BLAKE2B 32413b72e33f2f63835a2eb2d47dc75a7b63121934bdffd51ff58e9d63d68b77b4f8dac4605916ba8bd6896240d00024ccc3d7d002d4f6f92d6d9b1dc35995e3 SHA512 aee334c74bd02772ac5e0528d84d31661f61c775d0993c00febe125810efc78a2f779db41bf66283be51b19a35540fee14445bada59a8d3b7affa6ef6645005f
|
||||||
DIST VirtualBox-6.0.2.tar.bz2 155125777 BLAKE2B 2d902fd1963305883eebba85daa03bd17fe8a9ba20e7a6482508879068a809ee80c4a5caffeb26acd0fd4ad29f6f60cf963e1d314e4b01f137ede5b589a74cb9 SHA512 9cfc03eae073ada47c050d2a5eeefa6f724ad2094f2bc3717aa010553ab0dd5af0ed0860bf120727491c7798cdff9219e53cdc3d629f61e3cd12c55068e7401b
|
DIST VirtualBox-6.0.2.tar.bz2 155125777 BLAKE2B 2d902fd1963305883eebba85daa03bd17fe8a9ba20e7a6482508879068a809ee80c4a5caffeb26acd0fd4ad29f6f60cf963e1d314e4b01f137ede5b589a74cb9 SHA512 9cfc03eae073ada47c050d2a5eeefa6f724ad2094f2bc3717aa010553ab0dd5af0ed0860bf120727491c7798cdff9219e53cdc3d629f61e3cd12c55068e7401b
|
||||||
|
DIST VirtualBox-6.0.4.tar.bz2 155233564 BLAKE2B 6bc4d450e275e8aac5dc62ab05d9ba1450e13965f3eba64819315d121bd0e515319be2ad92ab429f2e598e157e89660561de69a2aac87e14792284669bcec7e8 SHA512 c2e5418bafd5d50b46e1bc70280753c2fdfbf7248d782fc398771839950fb575eaea437e9699d56f4d8c92ea4dc9ba8bed74379565dac6114f7e9c45aecc9fdb
|
||||||
DIST virtualbox-5.2.16-patches-02.tar.xz 3152 BLAKE2B c8d8f3872f544a465c7d1aa07291599307120ac9eabfb299ddd788a11f85ca6c2d84b8e7306ee4ad436270dad0dd39f101ee68a549eac15afd1e3cdc03f23c6c SHA512 85ee8c4045de562d71ab2d761695ea48b6726a6f0c4bcaa2562bb0d147542d3f1a1b5b47cf593a7f22dac1b86f87b59a56bef421dce3e1fa8e5260cd41998450
|
DIST virtualbox-5.2.16-patches-02.tar.xz 3152 BLAKE2B c8d8f3872f544a465c7d1aa07291599307120ac9eabfb299ddd788a11f85ca6c2d84b8e7306ee4ad436270dad0dd39f101ee68a549eac15afd1e3cdc03f23c6c SHA512 85ee8c4045de562d71ab2d761695ea48b6726a6f0c4bcaa2562bb0d147542d3f1a1b5b47cf593a7f22dac1b86f87b59a56bef421dce3e1fa8e5260cd41998450
|
||||||
DIST virtualbox-6.0.0_beta2-patches-01.tar.xz 2732 BLAKE2B a138e715d99f135f16ca21c92781bf6cd8913f7f766bb598eddcd63e98280e568e646f56bbd0a3714f273457ca90db0b77ec7940ba25028506a22891f1af7b2d SHA512 954e4b40d6e272efe756ee0965adb4110d45f764433a89080fda7ebaebbc20031f86a3e0027dfdaa1c6a7d6379a1af557cea71512504e4b57b5f5adbfc86b56e
|
DIST virtualbox-6.0.0_beta2-patches-01.tar.xz 2732 BLAKE2B a138e715d99f135f16ca21c92781bf6cd8913f7f766bb598eddcd63e98280e568e646f56bbd0a3714f273457ca90db0b77ec7940ba25028506a22891f1af7b2d SHA512 954e4b40d6e272efe756ee0965adb4110d45f764433a89080fda7ebaebbc20031f86a3e0027dfdaa1c6a7d6379a1af557cea71512504e4b57b5f5adbfc86b56e
|
||||||
|
@ -0,0 +1,480 @@
|
|||||||
|
# Copyright 1999-2019 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=6
|
||||||
|
|
||||||
|
PYTHON_COMPAT=( python2_7 )
|
||||||
|
inherit flag-o-matic gnome2-utils java-pkg-opt-2 linux-info pax-utils python-single-r1 tmpfiles toolchain-funcs udev xdg-utils
|
||||||
|
|
||||||
|
MY_PV="${PV/beta/BETA}"
|
||||||
|
MY_PV="${MY_PV/rc/RC}"
|
||||||
|
MY_P=VirtualBox-${MY_PV}
|
||||||
|
|
||||||
|
DESCRIPTION="Family of powerful x86 virtualization products for enterprise and home use"
|
||||||
|
HOMEPAGE="https://www.virtualbox.org/"
|
||||||
|
SRC_URI="https://download.virtualbox.org/virtualbox/${MY_PV}/${MY_P}.tar.bz2
|
||||||
|
https://dev.gentoo.org/~polynomial-c/${PN}/patchsets/${PN}-5.2.16-patches-02.tar.xz"
|
||||||
|
|
||||||
|
LICENSE="GPL-2"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
IUSE="alsa debug doc headless java libressl lvm +opus pam pax_kernel pulseaudio +opengl python +qt5 +sdk +udev vboxwebsrv vnc"
|
||||||
|
|
||||||
|
RDEPEND="!app-emulation/virtualbox-bin
|
||||||
|
~app-emulation/virtualbox-modules-${PV}
|
||||||
|
dev-libs/libIDL
|
||||||
|
>=dev-libs/libxslt-1.1.19
|
||||||
|
net-misc/curl
|
||||||
|
dev-libs/libxml2
|
||||||
|
media-libs/libpng:0=
|
||||||
|
media-libs/libvpx:0=
|
||||||
|
sys-libs/zlib:=
|
||||||
|
!headless? (
|
||||||
|
media-libs/libsdl:0[X,video]
|
||||||
|
x11-libs/libX11
|
||||||
|
x11-libs/libxcb:=
|
||||||
|
x11-libs/libXcursor
|
||||||
|
x11-libs/libXext
|
||||||
|
x11-libs/libXmu
|
||||||
|
x11-libs/libXt
|
||||||
|
opengl? ( virtual/opengl media-libs/freeglut )
|
||||||
|
qt5? (
|
||||||
|
dev-qt/qtcore:5
|
||||||
|
dev-qt/qtgui:5
|
||||||
|
dev-qt/qtprintsupport:5
|
||||||
|
dev-qt/qtwidgets:5
|
||||||
|
dev-qt/qtx11extras:5
|
||||||
|
opengl? ( dev-qt/qtopengl:5 )
|
||||||
|
x11-libs/libXinerama
|
||||||
|
)
|
||||||
|
)
|
||||||
|
libressl? ( dev-libs/libressl:= )
|
||||||
|
!libressl? ( dev-libs/openssl:0= )
|
||||||
|
lvm? ( sys-fs/lvm2 )
|
||||||
|
opus? ( media-libs/opus )
|
||||||
|
udev? ( >=virtual/udev-171 )
|
||||||
|
vnc? ( >=net-libs/libvncserver-0.9.9 )"
|
||||||
|
DEPEND="${RDEPEND}
|
||||||
|
>=dev-util/kbuild-0.1.9998.3127
|
||||||
|
>=dev-lang/yasm-0.6.2
|
||||||
|
sys-devel/bin86
|
||||||
|
sys-libs/libcap
|
||||||
|
sys-power/iasl
|
||||||
|
virtual/pkgconfig
|
||||||
|
alsa? ( >=media-libs/alsa-lib-1.0.13 )
|
||||||
|
doc? (
|
||||||
|
app-text/docbook-sgml-dtd:4.4
|
||||||
|
dev-texlive/texlive-basic
|
||||||
|
dev-texlive/texlive-latex
|
||||||
|
dev-texlive/texlive-latexrecommended
|
||||||
|
dev-texlive/texlive-latexextra
|
||||||
|
dev-texlive/texlive-fontsrecommended
|
||||||
|
dev-texlive/texlive-fontsextra
|
||||||
|
)
|
||||||
|
!headless? ( x11-libs/libXinerama )
|
||||||
|
java? ( >=virtual/jdk-1.6 )
|
||||||
|
pam? ( sys-libs/pam )
|
||||||
|
pax_kernel? ( sys-apps/elfix )
|
||||||
|
pulseaudio? ( media-sound/pulseaudio )
|
||||||
|
qt5? ( dev-qt/linguist-tools:5 )
|
||||||
|
vboxwebsrv? ( net-libs/gsoap[-gnutls(-)] )
|
||||||
|
${PYTHON_DEPS}"
|
||||||
|
RDEPEND="${RDEPEND}
|
||||||
|
java? ( >=virtual/jre-1.6 )"
|
||||||
|
|
||||||
|
QA_TEXTRELS_x86="usr/lib/virtualbox-ose/VBoxGuestPropSvc.so
|
||||||
|
usr/lib/virtualbox/VBoxSDL.so
|
||||||
|
usr/lib/virtualbox/VBoxSharedFolders.so
|
||||||
|
usr/lib/virtualbox/VBoxDD2.so
|
||||||
|
usr/lib/virtualbox/VBoxOGLrenderspu.so
|
||||||
|
usr/lib/virtualbox/VBoxPython.so
|
||||||
|
usr/lib/virtualbox/VBoxDD.so
|
||||||
|
usr/lib/virtualbox/VBoxDDU.so
|
||||||
|
usr/lib/virtualbox/VBoxREM64.so
|
||||||
|
usr/lib/virtualbox/VBoxSharedClipboard.so
|
||||||
|
usr/lib/virtualbox/VBoxHeadless.so
|
||||||
|
usr/lib/virtualbox/VBoxRT.so
|
||||||
|
usr/lib/virtualbox/VBoxREM.so
|
||||||
|
usr/lib/virtualbox/VBoxSettings.so
|
||||||
|
usr/lib/virtualbox/VBoxKeyboard.so
|
||||||
|
usr/lib/virtualbox/VBoxSharedCrOpenGL.so
|
||||||
|
usr/lib/virtualbox/VBoxVMM.so
|
||||||
|
usr/lib/virtualbox/VirtualBox.so
|
||||||
|
usr/lib/virtualbox/VBoxOGLhosterrorspu.so
|
||||||
|
usr/lib/virtualbox/components/VBoxC.so
|
||||||
|
usr/lib/virtualbox/components/VBoxSVCM.so
|
||||||
|
usr/lib/virtualbox/components/VBoxDDU.so
|
||||||
|
usr/lib/virtualbox/components/VBoxRT.so
|
||||||
|
usr/lib/virtualbox/components/VBoxREM.so
|
||||||
|
usr/lib/virtualbox/components/VBoxVMM.so
|
||||||
|
usr/lib/virtualbox/VBoxREM32.so
|
||||||
|
usr/lib/virtualbox/VBoxPython2_7.so
|
||||||
|
usr/lib/virtualbox/VBoxXPCOMC.so
|
||||||
|
usr/lib/virtualbox/VBoxOGLhostcrutil.so
|
||||||
|
usr/lib/virtualbox/VBoxNetDHCP.so
|
||||||
|
usr/lib/virtualbox/VBoxNetNAT.so"
|
||||||
|
|
||||||
|
S="${WORKDIR}/${MY_P}"
|
||||||
|
|
||||||
|
REQUIRED_USE="
|
||||||
|
java? ( sdk )
|
||||||
|
python? ( sdk )
|
||||||
|
vboxwebsrv? ( java )
|
||||||
|
${PYTHON_REQUIRED_USE}
|
||||||
|
"
|
||||||
|
|
||||||
|
pkg_pretend() {
|
||||||
|
if ! use headless && ! use qt5 ; then
|
||||||
|
einfo "No USE=\"qt5\" selected, this build will not include any Qt frontend."
|
||||||
|
elif use headless && use qt5 ; then
|
||||||
|
einfo "You selected USE=\"headless qt5\", defaulting to"
|
||||||
|
einfo "USE=\"headless\", this build will not include any X11/Qt frontend."
|
||||||
|
fi
|
||||||
|
|
||||||
|
if ! use opengl ; then
|
||||||
|
einfo "No USE=\"opengl\" selected, this build will lack"
|
||||||
|
einfo "the OpenGL feature."
|
||||||
|
fi
|
||||||
|
if ! use python ; then
|
||||||
|
einfo "You have disabled the \"python\" USE flag. This will only"
|
||||||
|
einfo "disable the python bindings being installed."
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_setup() {
|
||||||
|
java-pkg-opt-2_pkg_setup
|
||||||
|
python-single-r1_pkg_setup
|
||||||
|
|
||||||
|
tc-ld-disable-gold #bug 488176
|
||||||
|
tc-export CC CXX LD AR RANLIB
|
||||||
|
export HOST_CC="$(tc-getBUILD_CC)"
|
||||||
|
}
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
# Remove shipped binaries (kBuild,yasm), see bug #232775
|
||||||
|
rm -r kBuild/bin tools || die
|
||||||
|
|
||||||
|
# Replace pointless GCC version check with something less stupid.
|
||||||
|
# This is needed for the qt5 version check.
|
||||||
|
sed -e 's@^check_gcc$@cc_maj="$(gcc -dumpversion | cut -d. -f1)" ; cc_min="$(gcc -dumpversion | cut -d. -f2)"@' \
|
||||||
|
-i configure || die
|
||||||
|
|
||||||
|
# Disable things unused or split into separate ebuilds
|
||||||
|
sed -e "s@MY_LIBDIR@$(get_libdir)@" \
|
||||||
|
"${FILESDIR}"/${PN}-5-localconfig > LocalConfig.kmk || die
|
||||||
|
|
||||||
|
# Respect LDFLAGS
|
||||||
|
sed -e "s@_LDFLAGS\.${ARCH}*.*=@& ${LDFLAGS}@g" \
|
||||||
|
-i Config.kmk src/libs/xpcom18a4/Config.kmk || die
|
||||||
|
|
||||||
|
# Do not use hard-coded ld (related to bug #488176)
|
||||||
|
sed -e '/QUIET)ld /s@ld @$(LD) @' \
|
||||||
|
-i src/VBox/Devices/PC/ipxe/Makefile.kmk || die
|
||||||
|
|
||||||
|
# Use PAM only when pam USE flag is enbaled (bug #376531)
|
||||||
|
if ! use pam ; then
|
||||||
|
elog "Disabling PAM removes the possibility to use the VRDP features."
|
||||||
|
sed -i 's@^.*VBOX_WITH_PAM@#VBOX_WITH_PAM@' Config.kmk || die
|
||||||
|
sed -i 's@\(.*/auth/Makefile.kmk.*\)@#\1@' \
|
||||||
|
src/VBox/HostServices/Makefile.kmk || die
|
||||||
|
fi
|
||||||
|
|
||||||
|
# add correct java path
|
||||||
|
if use java ; then
|
||||||
|
sed "s@/usr/lib/jvm/java-6-sun@$(java-config -O)@" \
|
||||||
|
-i "${S}"/Config.kmk || die
|
||||||
|
java-pkg-opt-2_src_prepare
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Only add nopie patch when we're on hardened
|
||||||
|
if gcc-specs-pie ; then
|
||||||
|
eapply "${FILESDIR}/050_virtualbox-5.2.8-nopie.patch"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Only add paxmark patch when we're on pax_kernel
|
||||||
|
if use pax_kernel ; then
|
||||||
|
eapply "${FILESDIR}"/virtualbox-5.2.8-paxmark-bldprogs.patch
|
||||||
|
fi
|
||||||
|
|
||||||
|
rm "${WORKDIR}/patches/008_virtualbox-4.3.14-missing_define.patch" || die
|
||||||
|
eapply "${WORKDIR}/patches"
|
||||||
|
|
||||||
|
eapply_user
|
||||||
|
}
|
||||||
|
|
||||||
|
doecho() {
|
||||||
|
echo "$@"
|
||||||
|
"$@" || die
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
local myconf=(
|
||||||
|
--with-gcc="$(tc-getCC)"
|
||||||
|
--with-g++="$(tc-getCXX)"
|
||||||
|
--disable-dbus
|
||||||
|
--disable-kmods
|
||||||
|
$(usex alsa '' --disable-alsa)
|
||||||
|
$(usex debug --build-debug '')
|
||||||
|
$(usex doc '' --disable-docs)
|
||||||
|
$(usex java '' --disable-java)
|
||||||
|
$(usex lvm '' --disable-devmapper)
|
||||||
|
$(usex opus --build-libopus '')
|
||||||
|
$(usex pulseaudio '' --disable-pulse)
|
||||||
|
$(usex python '' --disable-python)
|
||||||
|
$(usex vboxwebsrv --enable-webservice '')
|
||||||
|
$(usex vnc --enable-vnc '')
|
||||||
|
)
|
||||||
|
if ! use headless ; then
|
||||||
|
myconf+=(
|
||||||
|
$(usex opengl '' --disable-opengl)
|
||||||
|
$(usex qt5 '' --disable-qt)
|
||||||
|
)
|
||||||
|
else
|
||||||
|
myconf+=(
|
||||||
|
--build-headless
|
||||||
|
--disable-opengl
|
||||||
|
)
|
||||||
|
fi
|
||||||
|
if use amd64 && ! has_multilib_profile ; then
|
||||||
|
myconf+=( --disable-vmmraw )
|
||||||
|
fi
|
||||||
|
# not an autoconf script
|
||||||
|
doecho ./configure ${myconf[@]}
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
source ./env.sh || die
|
||||||
|
|
||||||
|
# Force kBuild to respect C[XX]FLAGS and MAKEOPTS (bug #178529)
|
||||||
|
MAKEJOBS=$(grep -Eo '(\-j|\-\-jobs)(=?|[[:space:]]*)[[:digit:]]+' <<< ${MAKEOPTS}) #'
|
||||||
|
MAKELOAD=$(grep -Eo '(\-l|\-\-load-average)(=?|[[:space:]]*)[[:digit:]]+' <<< ${MAKEOPTS}) #'
|
||||||
|
MAKEOPTS="${MAKEJOBS} ${MAKELOAD}"
|
||||||
|
MAKE="kmk" emake \
|
||||||
|
VBOX_BUILD_PUBLISHER=_Gentoo \
|
||||||
|
TOOL_GCC3_CC="$(tc-getCC)" TOOL_GCC3_CXX="$(tc-getCXX)" \
|
||||||
|
TOOL_GCC3_AS="$(tc-getCC)" TOOL_GCC3_AR="$(tc-getAR)" \
|
||||||
|
TOOL_GCC3_LD="$(tc-getCXX)" TOOL_GCC3_LD_SYSMOD="$(tc-getLD)" \
|
||||||
|
TOOL_GCC3_CFLAGS="${CFLAGS}" TOOL_GCC3_CXXFLAGS="${CXXFLAGS}" \
|
||||||
|
VBOX_GCC_OPT="${CXXFLAGS}" \
|
||||||
|
TOOL_YASM_AS=yasm KBUILD_VERBOSE=2 \
|
||||||
|
all
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
local binpath="release"
|
||||||
|
use debug && binpath="debug"
|
||||||
|
cd "${S}"/out/linux.${ARCH}/${binpath}/bin || die
|
||||||
|
|
||||||
|
local vbox_inst_path="/usr/$(get_libdir)/${PN}" each fwfile size ico icofile
|
||||||
|
|
||||||
|
vbox_inst() {
|
||||||
|
local binary="${1}"
|
||||||
|
local perms="${2:-0750}"
|
||||||
|
local path="${3:-${vbox_inst_path}}"
|
||||||
|
|
||||||
|
[[ -n "${binary}" ]] || die "vbox_inst: No binray given!"
|
||||||
|
[[ ${perms} =~ ^[[:digit:]]+{4}$ ]] || die "vbox_inst: perms must consist of four digits."
|
||||||
|
|
||||||
|
insinto ${path}
|
||||||
|
doins ${binary}
|
||||||
|
fowners root:vboxusers ${path}/${binary}
|
||||||
|
fperms ${perms} ${path}/${binary}
|
||||||
|
}
|
||||||
|
|
||||||
|
# Create configuration files
|
||||||
|
insinto /etc/vbox
|
||||||
|
newins "${FILESDIR}/${PN}-4-config" vbox.cfg
|
||||||
|
|
||||||
|
# Set the correct libdir
|
||||||
|
sed \
|
||||||
|
-e "s@MY_LIBDIR@$(get_libdir)@" \
|
||||||
|
-i "${ED%/}"/etc/vbox/vbox.cfg || die "vbox.cfg sed failed"
|
||||||
|
|
||||||
|
# Install the wrapper script
|
||||||
|
exeinto ${vbox_inst_path}
|
||||||
|
newexe "${FILESDIR}/${PN}-ose-5-wrapper" "VBox"
|
||||||
|
fowners root:vboxusers ${vbox_inst_path}/VBox
|
||||||
|
fperms 0750 ${vbox_inst_path}/VBox
|
||||||
|
|
||||||
|
# Install binaries and libraries
|
||||||
|
insinto ${vbox_inst_path}
|
||||||
|
doins -r components
|
||||||
|
|
||||||
|
# *.rc files for x86_64 are only available on multilib systems
|
||||||
|
local rcfiles="*.rc"
|
||||||
|
if use amd64 && ! has_multilib_profile ; then
|
||||||
|
rcfiles=""
|
||||||
|
fi
|
||||||
|
for each in VBox{ExtPackHelperApp,Manage,SVC,Tunctl,XPCOMIPCD} *so *r0 ${rcfiles} ; do
|
||||||
|
vbox_inst ${each}
|
||||||
|
done
|
||||||
|
|
||||||
|
# These binaries need to be suid root.
|
||||||
|
for each in VBox{Headless,Net{AdpCtl,DHCP,NAT}} ; do
|
||||||
|
vbox_inst ${each} 4750
|
||||||
|
done
|
||||||
|
|
||||||
|
# Install EFI Firmware files (bug #320757)
|
||||||
|
pushd "${S}"/src/VBox/Devices/EFI/FirmwareBin &>/dev/null || die
|
||||||
|
for fwfile in VBoxEFI{32,64}.fd ; do
|
||||||
|
vbox_inst ${fwfile} 0644
|
||||||
|
done
|
||||||
|
popd &>/dev/null || die
|
||||||
|
|
||||||
|
# VBoxSVC and VBoxManage need to be pax-marked (bug #403453)
|
||||||
|
# VBoxXPCOMIPCD (bug #524202)
|
||||||
|
for each in VBox{Headless,Manage,SVC,XPCOMIPCD} ; do
|
||||||
|
pax-mark -m "${ED%/}"${vbox_inst_path}/${each}
|
||||||
|
done
|
||||||
|
|
||||||
|
# Symlink binaries to the shipped wrapper
|
||||||
|
for each in vbox{headless,manage} VBox{Headless,Manage,VRDP} ; do
|
||||||
|
dosym ${vbox_inst_path}/VBox /usr/bin/${each}
|
||||||
|
done
|
||||||
|
dosym ${vbox_inst_path}/VBoxTunctl /usr/bin/VBoxTunctl
|
||||||
|
|
||||||
|
if use pam ; then
|
||||||
|
# VRDPAuth only works with this (bug #351949)
|
||||||
|
dosym VBoxAuth.so ${vbox_inst_path}/VRDPAuth.so
|
||||||
|
fi
|
||||||
|
|
||||||
|
# set an env-variable for 3rd party tools
|
||||||
|
echo -n "VBOX_APP_HOME=${vbox_inst_path}" > "${T}/90virtualbox"
|
||||||
|
doenvd "${T}/90virtualbox"
|
||||||
|
|
||||||
|
if ! use headless ; then
|
||||||
|
vbox_inst VBoxSDL 4750
|
||||||
|
pax-mark -m "${ED%/}"${vbox_inst_path}/VBoxSDL
|
||||||
|
|
||||||
|
for each in vboxsdl VBoxSDL ; do
|
||||||
|
dosym ${vbox_inst_path}/VBox /usr/bin/${each}
|
||||||
|
done
|
||||||
|
|
||||||
|
if use qt5 ; then
|
||||||
|
vbox_inst VirtualBox 4750
|
||||||
|
pax-mark -m "${ED%/}"${vbox_inst_path}/VirtualBox
|
||||||
|
|
||||||
|
if use opengl ; then
|
||||||
|
vbox_inst VBoxTestOGL
|
||||||
|
pax-mark -m "${ED%/}"${vbox_inst_path}/VBoxTestOGL
|
||||||
|
fi
|
||||||
|
|
||||||
|
for each in virtualbox VirtualBox ; do
|
||||||
|
dosym ${vbox_inst_path}/VBox /usr/bin/${each}
|
||||||
|
done
|
||||||
|
|
||||||
|
insinto /usr/share/${PN}
|
||||||
|
doins -r nls
|
||||||
|
doins -r UnattendedTemplates
|
||||||
|
|
||||||
|
newmenu "${FILESDIR}"/${PN}-ose.desktop-2 ${PN}.desktop
|
||||||
|
fi
|
||||||
|
|
||||||
|
pushd "${S}"/src/VBox/Artwork/OSE &>/dev/null || die
|
||||||
|
for size in 16 32 48 64 128 ; do
|
||||||
|
newicon -s ${size} ${PN}-${size}px.png ${PN}.png
|
||||||
|
done
|
||||||
|
newicon ${PN}-48px.png ${PN}.png
|
||||||
|
doicon -s scalable ${PN}.svg
|
||||||
|
popd &>/dev/null || die
|
||||||
|
pushd "${S}"/src/VBox/Artwork/other &>/dev/null || die
|
||||||
|
for size in 16 24 32 48 64 72 96 128 256 512 ; do
|
||||||
|
for ico in hdd ova ovf vbox{,-extpack} vdi vdh vmdk ; do
|
||||||
|
icofile="${PN}-${ico}-${size}px.png"
|
||||||
|
if [[ -f "${icofile}" ]] ; then
|
||||||
|
newicon -s ${size} ${icofile} ${PN}-${ico}.png
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
done
|
||||||
|
popd &>/dev/null || die
|
||||||
|
fi
|
||||||
|
|
||||||
|
if use lvm ; then
|
||||||
|
vbox_inst VBoxVolInfo 4750
|
||||||
|
dosym ${vbox_inst_path}/VBoxVolInfo /usr/bin/VBoxVolInfo
|
||||||
|
fi
|
||||||
|
|
||||||
|
if use sdk ; then
|
||||||
|
insinto ${vbox_inst_path}
|
||||||
|
doins -r sdk
|
||||||
|
|
||||||
|
if use java ; then
|
||||||
|
java-pkg_regjar "${ED%/}/${vbox_inst_path}/sdk/bindings/xpcom/java/vboxjxpcom.jar"
|
||||||
|
java-pkg_regso "${ED%/}/${vbox_inst_path}/libvboxjxpcom.so"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
if use udev ; then
|
||||||
|
# New way of handling USB device nodes for VBox (bug #356215)
|
||||||
|
local udevdir="$(get_udevdir)"
|
||||||
|
insinto ${udevdir}
|
||||||
|
doins VBoxCreateUSBNode.sh
|
||||||
|
fowners root:vboxusers ${udevdir}/VBoxCreateUSBNode.sh
|
||||||
|
fperms 0750 ${udevdir}/VBoxCreateUSBNode.sh
|
||||||
|
insinto ${udevdir}/rules.d
|
||||||
|
sed "s@%UDEVDIR%@${udevdir}@" "${FILESDIR}"/10-virtualbox.rules \
|
||||||
|
> "${T}"/10-virtualbox.rules || die
|
||||||
|
doins "${T}"/10-virtualbox.rules
|
||||||
|
fi
|
||||||
|
|
||||||
|
if use vboxwebsrv ; then
|
||||||
|
vbox_inst vboxwebsrv
|
||||||
|
dosym ${vbox_inst_path}/VBox /usr/bin/vboxwebsrv
|
||||||
|
newinitd "${FILESDIR}"/vboxwebsrv-initd vboxwebsrv
|
||||||
|
newconfd "${FILESDIR}"/vboxwebsrv-confd vboxwebsrv
|
||||||
|
fi
|
||||||
|
|
||||||
|
if use doc ; then
|
||||||
|
dodoc UserManual.pdf
|
||||||
|
fi
|
||||||
|
|
||||||
|
newtmpfiles "${FILESDIR}"/${PN}-vboxusb_tmpfilesd ${PN}-vboxusb.conf
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
gnome2_icon_cache_update
|
||||||
|
xdg_desktop_database_update
|
||||||
|
|
||||||
|
if use udev ; then
|
||||||
|
udevadm control --reload-rules \
|
||||||
|
&& udevadm trigger --subsystem-match=usb
|
||||||
|
fi
|
||||||
|
|
||||||
|
tmpfiles_process /usr/lib/tmpfiles.d/virtualbox-vboxusb.conf
|
||||||
|
|
||||||
|
if ! use headless && use qt5 ; then
|
||||||
|
elog "To launch VirtualBox just type: \"virtualbox\"."
|
||||||
|
fi
|
||||||
|
elog "You must be in the vboxusers group to use VirtualBox."
|
||||||
|
elog ""
|
||||||
|
elog "The latest user manual is available for download at:"
|
||||||
|
elog "http://download.virtualbox.org/virtualbox/${PV}/UserManual.pdf"
|
||||||
|
elog ""
|
||||||
|
elog "For advanced networking setups you should emerge:"
|
||||||
|
elog "net-misc/bridge-utils and sys-apps/usermode-utilities"
|
||||||
|
elog ""
|
||||||
|
elog "Starting with version 4.0.0, ${PN} has USB-1 support."
|
||||||
|
elog "For USB-2 support, PXE-boot ability and VRDP support please emerge"
|
||||||
|
elog " app-emulation/virtualbox-extpack-oracle"
|
||||||
|
elog "package."
|
||||||
|
elog "Starting with version 5.0.0, ${PN} no longer has the \"additions\" and"
|
||||||
|
elog "the \"extension\" USE flag. For installation of the guest additions ISO"
|
||||||
|
elog "image, please emerge"
|
||||||
|
elog " app-emulation/virtualbox-additions"
|
||||||
|
elog "and for the USB2, USB3, VRDP and PXE boot ROM modules, please emerge"
|
||||||
|
elog " app-emulation/virtualbox-extpack-oracle"
|
||||||
|
if ! use udev ; then
|
||||||
|
elog ""
|
||||||
|
elog "WARNING!"
|
||||||
|
elog "Without USE=udev, USB devices will likely not work in ${PN}."
|
||||||
|
elif [ -e "${ROOT%/}/etc/udev/rules.d/10-virtualbox.rules" ] ; then
|
||||||
|
elog ""
|
||||||
|
elog "Please remove \"${ROOT%/}/etc/udev/rules.d/10-virtualbox.rules\""
|
||||||
|
elog "or else USB in ${PN} won't work."
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postrm() {
|
||||||
|
gnome2_icon_cache_update
|
||||||
|
xdg_desktop_database_update
|
||||||
|
}
|
Binary file not shown.
@ -0,0 +1,70 @@
|
|||||||
|
# Copyright 1999-2019 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=6
|
||||||
|
inherit user golang-build golang-vcs-snapshot
|
||||||
|
|
||||||
|
EGO_PN="github.com/prometheus/prometheus"
|
||||||
|
MY_PV=${PV/_rc/-rc.}
|
||||||
|
EGIT_COMMIT="v${MY_PV}"
|
||||||
|
PROMETHEUS_COMMIT="410ee9e"
|
||||||
|
ARCHIVE_URI="https://${EGO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
|
||||||
|
KEYWORDS="~amd64"
|
||||||
|
|
||||||
|
DESCRIPTION="Prometheus monitoring system and time series database"
|
||||||
|
HOMEPAGE="https://github.com/prometheus/prometheus"
|
||||||
|
SRC_URI="${ARCHIVE_URI}"
|
||||||
|
LICENSE="Apache-2.0"
|
||||||
|
SLOT="0"
|
||||||
|
IUSE=""
|
||||||
|
|
||||||
|
DEPEND="
|
||||||
|
>=dev-lang/go-1.10
|
||||||
|
dev-util/promu"
|
||||||
|
|
||||||
|
PROMETHEUS_HOME="/var/lib/prometheus"
|
||||||
|
|
||||||
|
RESTRICT="test"
|
||||||
|
|
||||||
|
pkg_setup() {
|
||||||
|
enewgroup prometheus
|
||||||
|
enewuser prometheus -1 -1 "${PROMETHEUS_HOME}" prometheus
|
||||||
|
}
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
default
|
||||||
|
sed -i -e "s/{{.Revision}}/${PROMETHEUS_COMMIT}/" src/${EGO_PN}/.promu.yml || die
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
pushd src/${EGO_PN} || die
|
||||||
|
GO111MODULE=on GOPATH="${S}" GOCACHE="${T}/go-cache" promu build -v || die
|
||||||
|
popd || die
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
pushd src/${EGO_PN} || die
|
||||||
|
dobin promtool prometheus
|
||||||
|
dodoc -r {documentation,{README,CHANGELOG,CONTRIBUTING}.md}
|
||||||
|
insinto /etc/prometheus
|
||||||
|
doins documentation/examples/prometheus.yml
|
||||||
|
insinto /usr/share/prometheus
|
||||||
|
doins -r console_libraries consoles
|
||||||
|
dosym ../../usr/share/prometheus/console_libraries /etc/prometheus/console_libraries
|
||||||
|
dosym ../../usr/share/prometheus/consoles /etc/prometheus/consoles
|
||||||
|
popd || die
|
||||||
|
|
||||||
|
newinitd "${FILESDIR}"/prometheus-3.initd prometheus
|
||||||
|
newconfd "${FILESDIR}"/prometheus.confd prometheus
|
||||||
|
keepdir /var/log/prometheus /var/lib/prometheus
|
||||||
|
fowners prometheus:prometheus /var/log/prometheus /var/lib/prometheus
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
if has_version '<net-analyzer/prometheus-2.0.0_rc0'; then
|
||||||
|
ewarn "Old prometheus 1.x TSDB won't be converted to the new prometheus 2.0 format"
|
||||||
|
ewarn "Be aware that the old data currently cannot be accessed with prometheus 2.0"
|
||||||
|
ewarn "This release requires a clean storage directory and is not compatible with"
|
||||||
|
ewarn "files created by previous beta releases"
|
||||||
|
fi
|
||||||
|
}
|
Binary file not shown.
@ -1,2 +1 @@
|
|||||||
DIST fhem-5.8.tar.gz 22139481 BLAKE2B 444b041b591d3c960036a262e6eb3fda026d4b229a21df16d7817c32a1fd57282a7fbe5559164b760bd9cfad314c2977e7d6f611320d35be090cdb9df66fb8fd SHA512 6cfaa14288ce553a2418db4cb47c719f2d5edbccbde9e76f221cd47cf8a175a67125031c4971f9f9972b218fc709a267757c2abefe6a33be47eb4bb45e23be57
|
|
||||||
DIST fhem-5.9.tar.gz 23267499 BLAKE2B c2c2e4ab21f82fbe67c9e99aed4d1edd6db889aedac0611b5ba2873667520c4aa63d8553e014563f6f6ee58c5792ae1735853f58c8f4ef0599583b2ed23a9efe SHA512 9f75058e698fc33ec64081695db3eb2511f686dedc3107c87d4377f655c8b204892c6f61141de28970f2ed3f8cef5d24124d17ee20ee71a9eb9318bb17335bb8
|
DIST fhem-5.9.tar.gz 23267499 BLAKE2B c2c2e4ab21f82fbe67c9e99aed4d1edd6db889aedac0611b5ba2873667520c4aa63d8553e014563f6f6ee58c5792ae1735853f58c8f4ef0599583b2ed23a9efe SHA512 9f75058e698fc33ec64081695db3eb2511f686dedc3107c87d4377f655c8b204892c6f61141de28970f2ed3f8cef5d24124d17ee20ee71a9eb9318bb17335bb8
|
||||||
|
@ -1,99 +0,0 @@
|
|||||||
# Copyright 1999-2018 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=6
|
|
||||||
|
|
||||||
inherit user
|
|
||||||
|
|
||||||
DESCRIPTION="A GPL'd perl server for house automation"
|
|
||||||
HOMEPAGE="https://www.fhem.de/"
|
|
||||||
SRC_URI="https://www.fhem.de/${P}.tar.gz"
|
|
||||||
|
|
||||||
KEYWORDS="~amd64 ~x86"
|
|
||||||
LICENSE="GPL-2+"
|
|
||||||
SLOT="0"
|
|
||||||
IUSE="doc"
|
|
||||||
|
|
||||||
RDEPEND="dev-perl/Crypt-CBC
|
|
||||||
dev-perl/Device-SerialPort
|
|
||||||
dev-perl/Digest-CRC
|
|
||||||
dev-perl/JSON"
|
|
||||||
|
|
||||||
DEPEND="media-gfx/pngcrush"
|
|
||||||
|
|
||||||
QA_PREBUILT="opt/fhem/contrib/lcd4linux/fritzbox_dpf/lcd4linux
|
|
||||||
opt/fhem/contrib/lcd4linux/rpi_dpf/lcd4linux"
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
enewgroup fhem
|
|
||||||
enewuser fhem -1 -1 /opt/fhem fhem
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
default
|
|
||||||
|
|
||||||
# Allow install path to be set by DESTDIR in Makefile
|
|
||||||
sed -i -e 's,^\(BINDIR=\),\1'\$\(DESTDIR\)',' Makefile || die
|
|
||||||
|
|
||||||
# Remove docs in Makefile, as they will be installed manually
|
|
||||||
sed -i -e 's/docs//g' Makefile || die
|
|
||||||
sed -i -e '/README_DEMO.txt/d' Makefile || die
|
|
||||||
|
|
||||||
# Remove manpage in Makefile, as it will be installed manually
|
|
||||||
sed -i -e '/fhem.pl.1/d' Makefile || die
|
|
||||||
|
|
||||||
# Remove log dir, as it will be replaced with a symlink
|
|
||||||
rm -r log || die
|
|
||||||
|
|
||||||
# Fix fhemicon_darksmall.png, as it reports "broken IDAT window length"
|
|
||||||
# Reported to Upstream: https://forum.fhem.de/index.php/topic,86238.0.html
|
|
||||||
pngcrush -fix -force -ow www/images/default/fhemicon_darksmall.png || die
|
|
||||||
|
|
||||||
cp "${FILESDIR}"/fhem.cfg fhem.cfg || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
:
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
local DOCS=(
|
|
||||||
"CHANGED"
|
|
||||||
"HISTORY"
|
|
||||||
"README.SVN"
|
|
||||||
"README_DEMO.txt"
|
|
||||||
"docs"/*.txt
|
|
||||||
"docs"/*.patch
|
|
||||||
"docs"/*.pdf
|
|
||||||
"docs/changelog"
|
|
||||||
"docs/copyright"
|
|
||||||
"docs/dotconfig"
|
|
||||||
"docs/fhem.odg.readme"
|
|
||||||
"docs/LIESMICH.update-thirdparty"
|
|
||||||
"docs"/README*
|
|
||||||
"docs/X10"
|
|
||||||
)
|
|
||||||
|
|
||||||
if use doc; then
|
|
||||||
local DOCS+=( "docs/X10" )
|
|
||||||
local HTML_DOCS=( "docs/"*.eps "docs/"*.html "docs"/*.jpg "docs"/*.js "docs"/*.odg "docs/"*.png "docs/km271" )
|
|
||||||
fi
|
|
||||||
|
|
||||||
diropts -o fhem -g fhem
|
|
||||||
keepdir "/var/lib/fhem"
|
|
||||||
keepdir "/var/log/fhem"
|
|
||||||
|
|
||||||
dosym ../../var/lib/fhem /opt/fhem/data
|
|
||||||
dosym ../../var/log/fhem /opt/fhem/log
|
|
||||||
|
|
||||||
default
|
|
||||||
|
|
||||||
newinitd "${FILESDIR}"/fhem.initd fhem
|
|
||||||
|
|
||||||
newman docs/fhem.man fhem.pl.1
|
|
||||||
|
|
||||||
echo 'CONFIG_PROTECT="/opt/fhem /var/lib/fhem"' > "${T}"/99fhem || die
|
|
||||||
doenvd "${T}"/99fhem
|
|
||||||
|
|
||||||
fowners fhem:fhem /opt/fhem/fhem.cfg
|
|
||||||
}
|
|
Binary file not shown.
@ -1 +1,2 @@
|
|||||||
DIST kmymoney-5.0.2.tar.xz 11682108 BLAKE2B 310ec19938950f05654555be1c1f0091233e1c3e497c9481ff0a199ad8f34efe517fb5f2c54cf6e521b03bddf9aec89976e346f1dba72b1f245c4d8af349864a SHA512 a2d6e28a68a7d8bf05e4a0c88b398ff8d9b644384d7113e6abeea4572df8b054a31edaaddd6cad7dc5aaddef492c0477df3a92a4e2d4efdfba7722f54453ca47
|
DIST kmymoney-5.0.2.tar.xz 11682108 BLAKE2B 310ec19938950f05654555be1c1f0091233e1c3e497c9481ff0a199ad8f34efe517fb5f2c54cf6e521b03bddf9aec89976e346f1dba72b1f245c4d8af349864a SHA512 a2d6e28a68a7d8bf05e4a0c88b398ff8d9b644384d7113e6abeea4572df8b054a31edaaddd6cad7dc5aaddef492c0477df3a92a4e2d4efdfba7722f54453ca47
|
||||||
|
DIST kmymoney-5.0.3.tar.xz 11690060 BLAKE2B beb836c4753caa81ee3a06f12fce65fd584fbeaa228cba087b77284e0f3ecce8b88b030466198db62fdf23af26cee5caad59eb845653006d700cf68a0793231f SHA512 9f8aaa26a3cb3f5eb2a61936ecc54f97096f98d4f0ffbfbfb6adbe099a559f797d997b1d23bb7f18d31d76182f8fa8601a70176a4bc16f5cdf2fac0af8903fc0
|
||||||
|
@ -0,0 +1,125 @@
|
|||||||
|
# Copyright 1999-2019 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=6
|
||||||
|
|
||||||
|
EGIT_BRANCH="5.0"
|
||||||
|
PYTHON_COMPAT=( python2_7 )
|
||||||
|
|
||||||
|
KDE_GCC_MINIMAL="6.4"
|
||||||
|
KDE_HANDBOOK="optional"
|
||||||
|
KDE_TEST="forceoptional"
|
||||||
|
VIRTUALX_REQUIRED="test"
|
||||||
|
VIRTUALDBUS_TEST="true"
|
||||||
|
inherit kde5 python-single-r1
|
||||||
|
|
||||||
|
DESCRIPTION="Personal finance manager based on KDE Frameworks"
|
||||||
|
HOMEPAGE="https://kmymoney.org"
|
||||||
|
if [[ ${KDE_BUILD_TYPE} = release ]]; then
|
||||||
|
SRC_URI="mirror://kde/stable/${PN}/${PV}/src/${P}.tar.xz"
|
||||||
|
fi
|
||||||
|
|
||||||
|
LICENSE="GPL-2"
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
IUSE="activities addressbook calendar hbci holidays ofx quotes webkit weboob"
|
||||||
|
|
||||||
|
REQUIRED_USE="weboob? ( ${PYTHON_REQUIRED_USE} )"
|
||||||
|
|
||||||
|
COMMON_DEPEND="
|
||||||
|
$(add_frameworks_dep karchive)
|
||||||
|
$(add_frameworks_dep kcmutils)
|
||||||
|
$(add_frameworks_dep kcompletion)
|
||||||
|
$(add_frameworks_dep kcodecs)
|
||||||
|
$(add_frameworks_dep kconfig)
|
||||||
|
$(add_frameworks_dep kconfigwidgets)
|
||||||
|
$(add_frameworks_dep kcoreaddons)
|
||||||
|
$(add_frameworks_dep ki18n)
|
||||||
|
$(add_frameworks_dep kio)
|
||||||
|
$(add_frameworks_dep kiconthemes)
|
||||||
|
$(add_frameworks_dep kitemmodels)
|
||||||
|
$(add_frameworks_dep kitemviews)
|
||||||
|
$(add_frameworks_dep kjobwidgets)
|
||||||
|
$(add_frameworks_dep knotifications)
|
||||||
|
$(add_frameworks_dep kservice)
|
||||||
|
$(add_frameworks_dep ktextwidgets)
|
||||||
|
$(add_frameworks_dep kwallet)
|
||||||
|
$(add_frameworks_dep kwidgetsaddons)
|
||||||
|
$(add_frameworks_dep kxmlgui)
|
||||||
|
$(add_frameworks_dep sonnet)
|
||||||
|
$(add_qt_dep qtdbus)
|
||||||
|
$(add_qt_dep qtgui)
|
||||||
|
$(add_qt_dep qtnetwork)
|
||||||
|
$(add_qt_dep qtprintsupport)
|
||||||
|
$(add_qt_dep qtsql)
|
||||||
|
$(add_qt_dep qtsvg)
|
||||||
|
$(add_qt_dep qtwidgets)
|
||||||
|
$(add_qt_dep qtxml)
|
||||||
|
>=app-crypt/gpgme-1.7.1-r1[cxx]
|
||||||
|
>=app-office/libalkimia-6.0.0
|
||||||
|
dev-libs/gmp:0=
|
||||||
|
dev-libs/kdiagram:5
|
||||||
|
dev-libs/libgpg-error
|
||||||
|
activities? ( $(add_frameworks_dep kactivities) )
|
||||||
|
addressbook? (
|
||||||
|
$(add_kdeapps_dep akonadi)
|
||||||
|
$(add_kdeapps_dep kcontacts)
|
||||||
|
$(add_kdeapps_dep kidentitymanagement)
|
||||||
|
)
|
||||||
|
calendar? ( dev-libs/libical:= )
|
||||||
|
hbci? (
|
||||||
|
>=net-libs/aqbanking-5.6.5
|
||||||
|
>=sys-libs/gwenhywfar-4.15.3-r1[qt5]
|
||||||
|
)
|
||||||
|
holidays? ( $(add_frameworks_dep kholidays) )
|
||||||
|
ofx? ( dev-libs/libofx )
|
||||||
|
webkit? (
|
||||||
|
$(add_frameworks_dep kdewebkit)
|
||||||
|
$(add_qt_dep qtwebkit)
|
||||||
|
)
|
||||||
|
!webkit? ( $(add_qt_dep qtwebengine 'widgets') )
|
||||||
|
weboob? (
|
||||||
|
${PYTHON_DEPS}
|
||||||
|
$(add_qt_dep qtconcurrent)
|
||||||
|
www-client/weboob[${PYTHON_USEDEP}]
|
||||||
|
)
|
||||||
|
"
|
||||||
|
DEPEND="${COMMON_DEPEND}
|
||||||
|
dev-libs/boost
|
||||||
|
virtual/pkgconfig
|
||||||
|
"
|
||||||
|
RDEPEND="${COMMON_DEPEND}
|
||||||
|
!app-office/kmymoney:4
|
||||||
|
quotes? ( dev-perl/Finance-Quote )
|
||||||
|
"
|
||||||
|
|
||||||
|
pkg_setup() {
|
||||||
|
use weboob && python_setup
|
||||||
|
kde5_pkg_setup
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
local mycmakeargs=(
|
||||||
|
-DUSE_QT_DESIGNER=OFF
|
||||||
|
$(cmake-utils_use_find_package activities KF5Activities)
|
||||||
|
$(cmake-utils_use_find_package addressbook KF5Akonadi)
|
||||||
|
$(cmake-utils_use_find_package addressbook KF5Contacts)
|
||||||
|
$(cmake-utils_use_find_package addressbook KF5IdentityManagement)
|
||||||
|
-DENABLE_KBANKING=$(usex hbci)
|
||||||
|
-DENABLE_LIBICAL=$(usex calendar)
|
||||||
|
$(cmake-utils_use_find_package holidays KF5Holidays)
|
||||||
|
-DENABLE_OFXIMPORTER=$(usex ofx)
|
||||||
|
-DENABLE_WEBENGINE=$(usex !webkit)
|
||||||
|
-DENABLE_WEBOOB=$(usex weboob)
|
||||||
|
$(cmake-utils_use_find_package weboob PythonLibs)
|
||||||
|
)
|
||||||
|
kde5_src_configure
|
||||||
|
}
|
||||||
|
|
||||||
|
src_test() {
|
||||||
|
# bug: 652636
|
||||||
|
local myctestargs=(
|
||||||
|
-E "(reports-chart-test)"
|
||||||
|
)
|
||||||
|
|
||||||
|
kde5_src_test
|
||||||
|
}
|
Binary file not shown.
@ -1,20 +0,0 @@
|
|||||||
# Copyright 1999-2018 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=0
|
|
||||||
|
|
||||||
DESCRIPTION="A helper package for sgml docbook"
|
|
||||||
|
|
||||||
LICENSE="GPL-2"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 ~s390 sh sparc x86"
|
|
||||||
HOMEPAGE="http://www.docbook.org/sgml/"
|
|
||||||
IUSE=""
|
|
||||||
|
|
||||||
RDEPEND="app-text/sgml-common app-text/openjade
|
|
||||||
>=app-text/docbook-dsssl-stylesheets-1.64
|
|
||||||
>=app-text/docbook-sgml-utils-0.6.6
|
|
||||||
~app-text/docbook-sgml-dtd-3.0
|
|
||||||
~app-text/docbook-sgml-dtd-3.1
|
|
||||||
~app-text/docbook-sgml-dtd-4.0
|
|
||||||
~app-text/docbook-sgml-dtd-4.1"
|
|
@ -0,0 +1,45 @@
|
|||||||
|
# Copyright 1999-2019 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=6
|
||||||
|
|
||||||
|
DESCRIPTION="Spellchecker wrapping library"
|
||||||
|
HOMEPAGE="https://abiword.github.io/enchant/"
|
||||||
|
SRC_URI="https://github.com/AbiWord/enchant/releases/download/v${PV}/${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="LGPL-2.1"
|
||||||
|
SLOT="0/2"
|
||||||
|
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x86-solaris"
|
||||||
|
|
||||||
|
IUSE="aspell +hunspell static-libs test"
|
||||||
|
REQUIRED_USE="|| ( hunspell aspell )"
|
||||||
|
|
||||||
|
# FIXME: depends on unittest++ but through pkgconfig which is a Debian hack, bug #629742
|
||||||
|
COMMON_DEPENDS="
|
||||||
|
>=dev-libs/glib-2.6:2
|
||||||
|
aspell? ( app-text/aspell )
|
||||||
|
hunspell? ( >=app-text/hunspell-1.2.1:0= )"
|
||||||
|
|
||||||
|
RDEPEND="${COMMON_DEPENDS}"
|
||||||
|
|
||||||
|
DEPEND="${COMMON_DEPENDS}
|
||||||
|
virtual/pkgconfig
|
||||||
|
"
|
||||||
|
# test? ( dev-libs/unittest++ )
|
||||||
|
|
||||||
|
RESTRICT="test"
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
econf \
|
||||||
|
$(use_with aspell) \
|
||||||
|
$(use_with hunspell) \
|
||||||
|
$(use_enable static-libs static) \
|
||||||
|
--without-hspell \
|
||||||
|
--without-voikko \
|
||||||
|
--with-hunspell-dir="${EPREFIX}"/usr/share/hunspell/
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
default
|
||||||
|
find "${D}" -name '*.la' -delete || die
|
||||||
|
}
|
@ -1 +1,2 @@
|
|||||||
DIST gspell-1.6.1.tar.xz 416704 BLAKE2B 2a180bc52d3f09813d8de362e5bf900f831663c09530c8a9b993baf55f852a3939447a71c9c9dc0caafba7e8b74a2a5aad4443cf248eb87da4e15e0481e74262 SHA512 f1ffbd0d23d9743bcf924c25b3a3d7bf93c6a5e4ea5e362fb7300f657d8c1d0117e847f3dec29de377947f850e003b24a3231e88e99b313c955dd94ce358c23e
|
DIST gspell-1.6.1.tar.xz 416704 BLAKE2B 2a180bc52d3f09813d8de362e5bf900f831663c09530c8a9b993baf55f852a3939447a71c9c9dc0caafba7e8b74a2a5aad4443cf248eb87da4e15e0481e74262 SHA512 f1ffbd0d23d9743bcf924c25b3a3d7bf93c6a5e4ea5e362fb7300f657d8c1d0117e847f3dec29de377947f850e003b24a3231e88e99b313c955dd94ce358c23e
|
||||||
|
DIST gspell-1.8.1.tar.xz 419268 BLAKE2B f32c9c518c23f8f560d65eb6fb122703561cc09e385eefa99d0761e8aa5b5bf3a8cec3cab7071043134314262979de56d08ee2929973b7968016b123e53d8f16 SHA512 ae94f46c7bdcdeefa0279cd4ac3c50e53b63092016e298ef6b502c40c2574a2135c503ab322f5a3a7b8b4422fdec291a6ed0c937683a8c0f32d7ad474cc1569b
|
||||||
|
@ -0,0 +1,48 @@
|
|||||||
|
# Copyright 1999-2018 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI="6"
|
||||||
|
VALA_USE_DEPEND="vapigen"
|
||||||
|
|
||||||
|
inherit gnome2 vala virtualx
|
||||||
|
|
||||||
|
DESCRIPTION="Spell check library for GTK+ applications"
|
||||||
|
HOMEPAGE="https://wiki.gnome.org/Projects/gspell"
|
||||||
|
|
||||||
|
LICENSE="LGPL-2.1+"
|
||||||
|
SLOT="0/1" # subslot = libgspell-1 soname version
|
||||||
|
KEYWORDS="~alpha ~amd64 ~arm ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd"
|
||||||
|
|
||||||
|
IUSE="+introspection vala"
|
||||||
|
REQUIRED_USE="vala? ( introspection )"
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
app-text/iso-codes
|
||||||
|
>=app-text/enchant-2.1.3
|
||||||
|
>=dev-libs/glib-2.44:2
|
||||||
|
>=x11-libs/gtk+-3.20:3[introspection?]
|
||||||
|
introspection? ( >=dev-libs/gobject-introspection-1.42.0:= )
|
||||||
|
vala? ( $(vala_depend) )
|
||||||
|
"
|
||||||
|
DEPEND="${RDEPEND}
|
||||||
|
dev-libs/libxml2:2
|
||||||
|
dev-util/glib-utils
|
||||||
|
>=dev-util/gtk-doc-am-1.25
|
||||||
|
>=sys-devel/gettext-0.19.4
|
||||||
|
virtual/pkgconfig
|
||||||
|
"
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
use vala && vala_src_prepare
|
||||||
|
gnome2_src_prepare
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
gnome2_src_configure \
|
||||||
|
$(use_enable introspection) \
|
||||||
|
$(use_enable vala)
|
||||||
|
}
|
||||||
|
|
||||||
|
src_test() {
|
||||||
|
virtx emake check
|
||||||
|
}
|
@ -1,2 +1,3 @@
|
|||||||
DIST gtkspell-2.0.16.tar.gz 351277 BLAKE2B ccb49b99c4f9059ed4461bb5ffda4dbeb691c5a062184ba7b51d8464d2461c5be0d648e4f69dbc36fe345be2addbc271af9701a0a387975265585dd3a7926e99 SHA512 7d3afb327c2e15608194e6ee6110107a0ce082e483788d831d636b2e579472304137373c09a966d8e5c0cd2f830bf2e0ee477c9b5fca7da6ee27fd1498915b9d
|
DIST gtkspell-2.0.16.tar.gz 351277 BLAKE2B ccb49b99c4f9059ed4461bb5ffda4dbeb691c5a062184ba7b51d8464d2461c5be0d648e4f69dbc36fe345be2addbc271af9701a0a387975265585dd3a7926e99 SHA512 7d3afb327c2e15608194e6ee6110107a0ce082e483788d831d636b2e579472304137373c09a966d8e5c0cd2f830bf2e0ee477c9b5fca7da6ee27fd1498915b9d
|
||||||
|
DIST gtkspell3-3.0.10.tar.xz 300968 BLAKE2B aa167e9e5068e9c6c5fcf6933a28246de0be8386be43ab3af80a45dfbc092e1381503822d09742d20dde2e0b8dae77210001c955e37a8dab263b832ee52675a1 SHA512 3b1ceaa9ffa06bd3f6dae39c95db951588e5cf2edf4f551cac6972822ba230af3415c5045fa24f7a4dfe05c2e386ab3f67cb80cb779576b4e54293b7b9fbc28e
|
||||||
DIST gtkspell3-3.0.9.tar.xz 298988 BLAKE2B 01a824ba91fff1739046134ef0025cf894ed3f524dcc96a11ba6b23def3b1d84ef66fc5dbf37c1a047d23b276b944b25e89ff6a84ebfe19a1189ccc59d230250 SHA512 de6cc24ca092067a101996142bf2b3cfb6a5af2170ea4b0185a997e5c88adead7ba53c5a297c3110b3a66dc87d37e429720f972895bb2931f9a033fc006e2eab
|
DIST gtkspell3-3.0.9.tar.xz 298988 BLAKE2B 01a824ba91fff1739046134ef0025cf894ed3f524dcc96a11ba6b23def3b1d84ef66fc5dbf37c1a047d23b276b944b25e89ff6a84ebfe19a1189ccc59d230250 SHA512 de6cc24ca092067a101996142bf2b3cfb6a5af2170ea4b0185a997e5c88adead7ba53c5a297c3110b3a66dc87d37e429720f972895bb2931f9a033fc006e2eab
|
||||||
|
@ -0,0 +1,46 @@
|
|||||||
|
# Copyright 1999-2018 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=6
|
||||||
|
|
||||||
|
inherit gnome2 vala
|
||||||
|
|
||||||
|
DESCRIPTION="Spell checking widget for GTK"
|
||||||
|
HOMEPAGE="http://gtkspell.sourceforge.net/"
|
||||||
|
MY_P="${PN}3-${PV}"
|
||||||
|
SRC_URI="mirror://sourceforge/project/${PN}/${PV}/${MY_P}.tar.xz"
|
||||||
|
|
||||||
|
LICENSE="GPL-2+"
|
||||||
|
SLOT="3/0"
|
||||||
|
KEYWORDS="~alpha amd64 ~arm hppa ~ia64 ~mips ppc ppc64 sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~x86-macos ~x86-solaris"
|
||||||
|
IUSE="+introspection vala"
|
||||||
|
REQUIRED_USE="vala? ( introspection )"
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
>=app-text/enchant-2.0.0
|
||||||
|
app-text/iso-codes
|
||||||
|
dev-libs/glib:2
|
||||||
|
x11-libs/gtk+:3[introspection?]
|
||||||
|
>=x11-libs/pango-1.8.0[introspection?]
|
||||||
|
introspection? ( >=dev-libs/gobject-introspection-1.30:= )
|
||||||
|
"
|
||||||
|
DEPEND="${RDEPEND}
|
||||||
|
>=dev-util/gtk-doc-am-1.17
|
||||||
|
>=dev-util/intltool-0.35.0
|
||||||
|
virtual/pkgconfig
|
||||||
|
vala? ( $(vala_depend) )
|
||||||
|
"
|
||||||
|
|
||||||
|
S="${WORKDIR}/${MY_P}"
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
use vala && vala_src_prepare
|
||||||
|
gnome2_src_prepare
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
gnome2_src_configure \
|
||||||
|
--disable-static \
|
||||||
|
$(use_enable introspection) \
|
||||||
|
$(use_enable vala)
|
||||||
|
}
|
Binary file not shown.
Binary file not shown.
@ -1,227 +0,0 @@
|
|||||||
# Copyright 1999-2018 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=6
|
|
||||||
WX_GTK_VER="3.0"
|
|
||||||
|
|
||||||
inherit autotools elisp-common java-pkg-opt-2 systemd versionator wxwidgets
|
|
||||||
|
|
||||||
# NOTE: If you need symlinks for binaries please tell maintainers or
|
|
||||||
# open up a bug to let it be created.
|
|
||||||
|
|
||||||
UPSTREAM_V="$(get_version_component_range 1-2)"
|
|
||||||
|
|
||||||
DESCRIPTION="Erlang programming language, runtime environment and libraries (OTP)"
|
|
||||||
HOMEPAGE="https://www.erlang.org/"
|
|
||||||
SRC_URI="https://github.com/erlang/otp/archive/OTP-${PV}.tar.gz -> ${P}.tar.gz
|
|
||||||
http://erlang.org/download/otp_doc_man_${UPSTREAM_V}.tar.gz -> ${PN}_doc_man_${UPSTREAM_V}.tar.gz
|
|
||||||
doc? ( http://erlang.org/download/otp_doc_html_${UPSTREAM_V}.tar.gz -> ${PN}_doc_html_${UPSTREAM_V}.tar.gz )"
|
|
||||||
|
|
||||||
LICENSE="Apache-2.0"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris"
|
|
||||||
|
|
||||||
IUSE="dirty-schedulers doc emacs hipe java kpoll libressl odbc smp sctp ssl systemd tk wxwidgets"
|
|
||||||
REQUIRED_USE="dirty-schedulers? ( smp )" #621610
|
|
||||||
|
|
||||||
RDEPEND="
|
|
||||||
ssl? (
|
|
||||||
!libressl? ( >=dev-libs/openssl-0.9.7d:0= )
|
|
||||||
libressl? ( dev-libs/libressl:0= )
|
|
||||||
)
|
|
||||||
emacs? ( virtual/emacs )
|
|
||||||
java? ( >=virtual/jdk-1.2:* )
|
|
||||||
odbc? ( dev-db/unixODBC )
|
|
||||||
systemd? ( sys-apps/systemd )
|
|
||||||
"
|
|
||||||
DEPEND="${RDEPEND}
|
|
||||||
dev-lang/perl
|
|
||||||
sctp? ( net-misc/lksctp-tools )
|
|
||||||
sys-libs/zlib
|
|
||||||
tk? ( dev-lang/tk )
|
|
||||||
wxwidgets? ( x11-libs/wxGTK:${WX_GTK_VER}[X,opengl]
|
|
||||||
virtual/glu )
|
|
||||||
"
|
|
||||||
|
|
||||||
S="${WORKDIR}/otp-OTP-${PV}"
|
|
||||||
|
|
||||||
PATCHES=(
|
|
||||||
"${FILESDIR}/18.2.1-wx3.0.patch"
|
|
||||||
"${FILESDIR}/${PN}-20.3.2-dont-ignore-LDFLAGS.patch"
|
|
||||||
"${FILESDIR}/${PN}-add-epmd-pid-file-creation-for-openrc.patch"
|
|
||||||
)
|
|
||||||
|
|
||||||
SITEFILE=50"${PN}"-gentoo.el
|
|
||||||
|
|
||||||
# Taken from the upstream build script, build_otp
|
|
||||||
erlang_create_lib_configure_in() {
|
|
||||||
local bootstrap_apps="erts lib/asn1 lib/compiler lib/hipelib/ic lib/kernel
|
|
||||||
lib/parsetools lib/sasl lib/snmp lib/stdlib lib/syntax_tools"
|
|
||||||
local sdirs=
|
|
||||||
for lib_app in ${bootstrap_apps}; do
|
|
||||||
case "${lib_app}" in
|
|
||||||
lib/*)
|
|
||||||
if [[ -f "${lib_app}/configure.in" ]]; then
|
|
||||||
mv "${lib_app}/configure.in" "${lib_app}/configure.ac" || die
|
|
||||||
app=`echo "${lib_app}" | sed "s|lib/\(.*\)|\1|"`
|
|
||||||
sdirs="${sdirs}test ! -f ${app}/configure || AC_CONFIG_SUBDIRS(${app}/.)\n" || die
|
|
||||||
fi;;
|
|
||||||
*)
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
|
|
||||||
local sed_bootstrap="s%@BOOTSTRAP_CONFIGURE_APPS@%$sdirs%g"
|
|
||||||
|
|
||||||
sdirs=
|
|
||||||
for lib_app in lib/*; do
|
|
||||||
local is_bapp=false
|
|
||||||
for bapp in ${bootstrap_apps}; do
|
|
||||||
test "${bapp} != ${lib_app}" || { "${is_bapp}"=true; break; }
|
|
||||||
done
|
|
||||||
if [[ "${is_bapp}" = false ]] && [[ -f "${lib_app}/configure.in" ]]; then
|
|
||||||
mv "${lib_app}/configure.in" "${lib_app}/configure.ac" || die
|
|
||||||
app=`echo "${lib_app}" | sed "s|lib/\(.*\)|\1|"` || die
|
|
||||||
sdirs="${sdirs} test ! -f ${app}/configure || AC_CONFIG_SUBDIRS(${app}/.)\n"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
local sed_non_bootstrap="s%@NON_BOOTSTRAP_CONFIGURE_APPS@%$sdirs%g"
|
|
||||||
|
|
||||||
rm -f lib/configure.in || die
|
|
||||||
sed "$sed_bootstrap;$sed_non_bootstrap" > lib/configure.ac < lib/configure.in.src || die "Failed to create lib/configure.ac"
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
# Taken from the upstream build script, build_otp
|
|
||||||
erlang_distribute_config_helpers() {
|
|
||||||
local aclocal_dirs=". ./lib/erl_interface ./lib/odbc ./lib/wx ./lib/megaco"
|
|
||||||
local autoconf_aux_dirs="./lib/common_test/priv/auxdir ./lib/erl_interface/src/auxdir ./lib/common_test/test_server ./lib/wx/autoconf"
|
|
||||||
|
|
||||||
local aclocal_master="./erts/aclocal.m4"
|
|
||||||
local install_sh_master="./erts/autoconf/install-sh"
|
|
||||||
local config_guess_master="./erts/autoconf/config.guess"
|
|
||||||
local config_sub_master="./erts/autoconf/config.sub"
|
|
||||||
|
|
||||||
for dir in ${aclocal_dirs}; do
|
|
||||||
"${install_sh_master}" -m 644 -t "${dir}" "${aclocal_master}" || die
|
|
||||||
done
|
|
||||||
|
|
||||||
for dir in ${autoconf_aux_dirs}; do
|
|
||||||
"${install_sh_master}" -d "${dir}" || die
|
|
||||||
"${install_sh_master}" -t "${dir}" "${install_sh_master}" || die
|
|
||||||
"${install_sh_master}" -t "${dir}" "${config_guess_master}" || die
|
|
||||||
"${install_sh_master}" -t "${dir}" "${config_sub_master}" || die
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
default
|
|
||||||
|
|
||||||
# Determines which directories to recurse into with autoconf
|
|
||||||
erlang_create_lib_configure_in
|
|
||||||
|
|
||||||
# Move local autoconf files into the neccessary directories
|
|
||||||
erlang_distribute_config_helpers
|
|
||||||
|
|
||||||
java-pkg-opt-2_src_prepare
|
|
||||||
|
|
||||||
eautoreconf
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
use wxwidgets && need-wxwidgets unicode
|
|
||||||
|
|
||||||
econf \
|
|
||||||
--disable-builtin-zlib \
|
|
||||||
$(use_enable dirty-schedulers) \
|
|
||||||
$(use_enable hipe) \
|
|
||||||
$(use_enable kpoll kernel-poll) \
|
|
||||||
$(use_with java javac) \
|
|
||||||
$(use_with odbc) \
|
|
||||||
$(use_enable sctp) \
|
|
||||||
$(use_enable smp smp-support) \
|
|
||||||
$(use_with ssl) \
|
|
||||||
$(use_with ssl ssl-rpath "no") \
|
|
||||||
$(use_enable ssl dynamic-ssl-lib) \
|
|
||||||
$(use_enable systemd) \
|
|
||||||
--enable-threads
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
emake
|
|
||||||
|
|
||||||
if use emacs ; then
|
|
||||||
pushd lib/tools/emacs &>/dev/null || die
|
|
||||||
elisp-compile *.el
|
|
||||||
popd &>/dev/null || die
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
extract_version() {
|
|
||||||
sed -n -e "/^$2 = \(.*\)$/s::\1:p" "${S}/$1/vsn.mk"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
local ERL_LIBDIR="/usr/$(get_libdir)/erlang"
|
|
||||||
local ERL_INTERFACE_VER="$(extract_version lib/erl_interface EI_VSN)"
|
|
||||||
local ERL_ERTS_VER="$(extract_version erts VSN)"
|
|
||||||
local MY_MANPATH="/usr/share/${PN}/man"
|
|
||||||
|
|
||||||
[[ -z "${ERL_ERTS_VER}" ]] && die "Couldn't determine erts version"
|
|
||||||
[[ -z "${ERL_INTERFACE_VER}" ]] && die "Couldn't determine interface version"
|
|
||||||
|
|
||||||
emake INSTALL_PREFIX="${D}" install
|
|
||||||
|
|
||||||
if use doc ; then
|
|
||||||
local DOCS=( "AUTHORS" "HOWTO"/* "README.md" "CONTRIBUTING.md" "${WORKDIR}"/doc/. "${WORKDIR}"/lib/. "${WORKDIR}"/erts-* )
|
|
||||||
docompress -x /usr/share/doc/${PF}
|
|
||||||
fi
|
|
||||||
|
|
||||||
einstalldocs
|
|
||||||
|
|
||||||
dosym "${ERL_LIBDIR}/bin/erl" /usr/bin/erl
|
|
||||||
dosym "${ERL_LIBDIR}/bin/erlc" /usr/bin/erlc
|
|
||||||
dosym "${ERL_LIBDIR}/bin/escript" /usr/bin/escript
|
|
||||||
dosym \
|
|
||||||
"${ERL_LIBDIR}/lib/erl_interface-${ERL_INTERFACE_VER}/bin/erl_call" \
|
|
||||||
/usr/bin/erl_call
|
|
||||||
|
|
||||||
if use smp; then
|
|
||||||
dosym "${ERL_LIBDIR}/erts-${ERL_ERTS_VER}/bin/beam.smp" /usr/bin/beam.smp
|
|
||||||
else
|
|
||||||
dosym "${ERL_LIBDIR}/erts-${ERL_ERTS_VER}/bin/beam" /usr/bin/beam
|
|
||||||
fi
|
|
||||||
|
|
||||||
## Clean up the no longer needed files
|
|
||||||
rm "${ED}/${ERL_LIBDIR}/Install" || die
|
|
||||||
|
|
||||||
insinto "${MY_MANPATH}"
|
|
||||||
|
|
||||||
doins -r "${WORKDIR}"/man/*
|
|
||||||
|
|
||||||
# extend MANPATH, so the normal man command can find it
|
|
||||||
# see bug 189639
|
|
||||||
echo "MANPATH=\"${MY_MANPATH}\"" > "${T}/90erlang" || die
|
|
||||||
doenvd "${T}/90erlang"
|
|
||||||
|
|
||||||
if use emacs ; then
|
|
||||||
pushd "${S}" &>/dev/null || die
|
|
||||||
elisp-install erlang lib/tools/emacs/*.{el,elc}
|
|
||||||
sed -e "s:/usr/share:${EPREFIX}/usr/share:g" \
|
|
||||||
"${FILESDIR}/${SITEFILE}" > "${T}/${SITEFILE}" || die
|
|
||||||
elisp-site-file-install "${T}/${SITEFILE}"
|
|
||||||
popd &>/dev/null || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
newinitd "${FILESDIR}"/epmd.init epmd
|
|
||||||
systemd_dounit "${FILESDIR}"/epmd.service
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
use emacs && elisp-site-regen
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postrm() {
|
|
||||||
use emacs && elisp-site-regen
|
|
||||||
}
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,4 +1,2 @@
|
|||||||
DIST PyICU-2.0.2.tar.gz 194525 BLAKE2B 9ef0c5defdebfd65760c6de5782308eac5433fd8474b9802ed1a79db494a259c88f22286b0a98b25bdcec22cbf78a3a7e411d8a9a7a81b07a2112204d6b44141 SHA512 b3715a0f88227a41b56988ee98e795fe398867c2788b2929e0d4f83bfe9519ff01648eb23cfe8d1d9073930a4d7220c0ad5ebcf2652d8fa3ec43e4c4a4bcf091
|
DIST PyICU-2.0.2.tar.gz 194525 BLAKE2B 9ef0c5defdebfd65760c6de5782308eac5433fd8474b9802ed1a79db494a259c88f22286b0a98b25bdcec22cbf78a3a7e411d8a9a7a81b07a2112204d6b44141 SHA512 b3715a0f88227a41b56988ee98e795fe398867c2788b2929e0d4f83bfe9519ff01648eb23cfe8d1d9073930a4d7220c0ad5ebcf2652d8fa3ec43e4c4a4bcf091
|
||||||
DIST PyICU-2.0.3.tar.gz 201076 BLAKE2B cb388e4e6d6df2417312820cbe8482a8b02c5cfd639950b32d5ab5e1b1815f85e8fc870a2808042f085bee6ec93c6cb6dbea4466e745e93166714421d7d4ef25 SHA512 a08a34772fc8205660320d7ea1bea52cd9c21ff9edf0aef1059c9439406d4b69ab434b35347dce8928cff8051600d55cb71bcc74eb89f203037be629d83e044e
|
|
||||||
DIST PyICU-2.1.tar.gz 203402 BLAKE2B 47541bd2f59553cc577b726b41585df6a639deff79c0c48d9ec2388bc8c9d69b9eef2cad642418961c255a36c7b43e255c5487a9dcac2a695267f29a790bb630 SHA512 35477cd960828d6ce853286e2de8e14a3b4cdc8d6975fd7eaf7e262f252c298f235d569d02a3844432e19dccffed13395c80074623ad196fab6c87f55f3d560d
|
|
||||||
DIST PyICU-2.2.tar.gz 211135 BLAKE2B f56e590ec4aefb61b6d3b37c807a018698ee97a632ccdd08f5f879cdccc576a6da1d31bb0ede54813be640ebdf600fe522a5c35ff417ac8e157c516a1b3bd7cc SHA512 30cce676fa502040e20fd4303baeebf0d83730abfedf79fdf3b69c1a3b52032a3337168b6e8902286dd4b46dda5bf894795995c6f1ef2a237fdabc374bb5ffcf
|
DIST PyICU-2.2.tar.gz 211135 BLAKE2B f56e590ec4aefb61b6d3b37c807a018698ee97a632ccdd08f5f879cdccc576a6da1d31bb0ede54813be640ebdf600fe522a5c35ff417ac8e157c516a1b3bd7cc SHA512 30cce676fa502040e20fd4303baeebf0d83730abfedf79fdf3b69c1a3b52032a3337168b6e8902286dd4b46dda5bf894795995c6f1ef2a237fdabc374bb5ffcf
|
||||||
|
@ -1,48 +0,0 @@
|
|||||||
# Copyright 1999-2018 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=7
|
|
||||||
|
|
||||||
PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
|
|
||||||
|
|
||||||
inherit distutils-r1 flag-o-matic
|
|
||||||
|
|
||||||
MY_PN="PyICU"
|
|
||||||
MY_P="${MY_PN}-${PV}"
|
|
||||||
|
|
||||||
DESCRIPTION="Python bindings for dev-libs/icu"
|
|
||||||
HOMEPAGE="https://github.com/ovalhub/pyicu"
|
|
||||||
SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="MIT"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~amd64 ~x86"
|
|
||||||
IUSE="test"
|
|
||||||
|
|
||||||
RDEPEND="${PYTHON_DEPS}
|
|
||||||
dev-libs/icu"
|
|
||||||
DEPEND="${RDEPEND}
|
|
||||||
test? ( dev-python/pytest
|
|
||||||
dev-python/six )"
|
|
||||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
|
||||||
|
|
||||||
S="${WORKDIR}/${MY_P}"
|
|
||||||
|
|
||||||
DOCS=(CHANGES CREDITS README.md)
|
|
||||||
|
|
||||||
python_prepare_all() {
|
|
||||||
# bug 651748
|
|
||||||
# due to ICU 59 requiring C++11 now
|
|
||||||
append-cxxflags -std=c++11
|
|
||||||
|
|
||||||
distutils-r1_python_prepare_all
|
|
||||||
}
|
|
||||||
|
|
||||||
python_test() {
|
|
||||||
if [[ ${EPYTHON} == python2* ]]; then
|
|
||||||
# See Bug #644226
|
|
||||||
ewarn "Skipping tests for ${EPYTHON} because they are known to fail"
|
|
||||||
else
|
|
||||||
esetup.py test
|
|
||||||
fi
|
|
||||||
}
|
|
@ -1,48 +0,0 @@
|
|||||||
# Copyright 1999-2018 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=7
|
|
||||||
|
|
||||||
PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
|
|
||||||
|
|
||||||
inherit distutils-r1 flag-o-matic
|
|
||||||
|
|
||||||
MY_PN="PyICU"
|
|
||||||
MY_P="${MY_PN}-${PV}"
|
|
||||||
|
|
||||||
DESCRIPTION="Python bindings for dev-libs/icu"
|
|
||||||
HOMEPAGE="https://github.com/ovalhub/pyicu"
|
|
||||||
SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="MIT"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~amd64 ~x86"
|
|
||||||
IUSE="test"
|
|
||||||
|
|
||||||
RDEPEND="${PYTHON_DEPS}
|
|
||||||
dev-libs/icu"
|
|
||||||
DEPEND="${RDEPEND}
|
|
||||||
test? ( dev-python/pytest
|
|
||||||
dev-python/six )"
|
|
||||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
|
||||||
|
|
||||||
S="${WORKDIR}/${MY_P}"
|
|
||||||
|
|
||||||
DOCS=(CHANGES CREDITS README.md)
|
|
||||||
|
|
||||||
python_prepare_all() {
|
|
||||||
# bug 651748
|
|
||||||
# due to ICU 59 requiring C++11 now
|
|
||||||
append-cxxflags -std=c++11
|
|
||||||
|
|
||||||
distutils-r1_python_prepare_all
|
|
||||||
}
|
|
||||||
|
|
||||||
python_test() {
|
|
||||||
if [[ ${EPYTHON} == python2* ]]; then
|
|
||||||
# See Bug #644226
|
|
||||||
ewarn "Skipping tests for ${EPYTHON} because they are known to fail"
|
|
||||||
else
|
|
||||||
esetup.py test
|
|
||||||
fi
|
|
||||||
}
|
|
@ -1,2 +1,3 @@
|
|||||||
DIST setuptools-36.7.2.zip 726758 BLAKE2B 8821d3142f2149fbdea4d231052c3990fa7a14c57c421309683c6a65102ce4911850acd5d492087aa0f14a0026da732e47eb9bf971030443fc1b57f9f909aaaa SHA512 746dce135dbacb65565787a20a2611388605e2371c94f0f8803e7712e515e69c270751d16a21f381bf6e8ddc0a1b39494db7d0c67bb32e6230a90c5d517e78f9
|
DIST setuptools-36.7.2.zip 726758 BLAKE2B 8821d3142f2149fbdea4d231052c3990fa7a14c57c421309683c6a65102ce4911850acd5d492087aa0f14a0026da732e47eb9bf971030443fc1b57f9f909aaaa SHA512 746dce135dbacb65565787a20a2611388605e2371c94f0f8803e7712e515e69c270751d16a21f381bf6e8ddc0a1b39494db7d0c67bb32e6230a90c5d517e78f9
|
||||||
DIST setuptools-40.6.3.zip 839328 BLAKE2B ddc87213439ce2ad96ba54218bd5b3e41a7c31d670bddb9e4ea058b8ee7dffbe6fcb0e5fd24baf3fb38f5e824fde36aa8dc1e09d7ac37f9375ee351406389cd6 SHA512 6c628b8fc67645bca96ddcd016ec9a685e91690bf98dff077e842cfbd0d8d24de76ac51b3ff238d31551a48819d8f694fee6e9bb422ca954e54c22b4bda0038c
|
DIST setuptools-40.6.3.zip 839328 BLAKE2B ddc87213439ce2ad96ba54218bd5b3e41a7c31d670bddb9e4ea058b8ee7dffbe6fcb0e5fd24baf3fb38f5e824fde36aa8dc1e09d7ac37f9375ee351406389cd6 SHA512 6c628b8fc67645bca96ddcd016ec9a685e91690bf98dff077e842cfbd0d8d24de76ac51b3ff238d31551a48819d8f694fee6e9bb422ca954e54c22b4bda0038c
|
||||||
|
DIST setuptools-40.7.1.zip 842768 BLAKE2B 1065487540517c1cac6332c0c089b572e04b22dff5308676be2e97a949ff2a85251ecf862284d09718dc69ad611cf1cca6b70c425f210f870a5d1ec1c583fe75 SHA512 384d38afa56409f828cf26443271514feaf82b1d9d99a4a0bb4a9004f9b7a262a0d5ae48905e808381074e948988417e3f7e81a84dcd09359f9185a2305f8cac
|
||||||
|
@ -0,0 +1,71 @@
|
|||||||
|
# Copyright 1999-2019 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
PYTHON_COMPAT=( python2_7 python3_{4,5,6,7} pypy{,3} )
|
||||||
|
PYTHON_REQ_USE="xml(+)"
|
||||||
|
|
||||||
|
inherit distutils-r1
|
||||||
|
|
||||||
|
if [[ ${PV} == "9999" ]]; then
|
||||||
|
EGIT_REPO_URI="https://github.com/pypa/setuptools.git"
|
||||||
|
inherit git-r3
|
||||||
|
else
|
||||||
|
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.zip"
|
||||||
|
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x64-cygwin ~amd64-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||||
|
fi
|
||||||
|
|
||||||
|
DESCRIPTION="Collection of extensions to Distutils"
|
||||||
|
HOMEPAGE="https://github.com/pypa/setuptools https://pypi.org/project/setuptools/"
|
||||||
|
|
||||||
|
LICENSE="MIT"
|
||||||
|
SLOT="0"
|
||||||
|
IUSE="test"
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
"
|
||||||
|
DEPEND="${RDEPEND}
|
||||||
|
app-arch/unzip
|
||||||
|
test? (
|
||||||
|
dev-python/mock[${PYTHON_USEDEP}]
|
||||||
|
dev-python/pip[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/pytest-3.7.0[${PYTHON_USEDEP}]
|
||||||
|
<dev-python/pytest-4
|
||||||
|
dev-python/pytest-virtualenv[${PYTHON_USEDEP}]
|
||||||
|
dev-python/wheel[${PYTHON_USEDEP}]
|
||||||
|
virtual/python-futures[${PYTHON_USEDEP}]
|
||||||
|
)
|
||||||
|
"
|
||||||
|
PDEPEND="
|
||||||
|
>=dev-python/certifi-2016.9.26[${PYTHON_USEDEP}]"
|
||||||
|
|
||||||
|
# Force in-source build because build system modifies sources.
|
||||||
|
DISTUTILS_IN_SOURCE_BUILD=1
|
||||||
|
|
||||||
|
DOCS=( {CHANGES,README}.rst docs/{easy_install.txt,pkg_resources.txt,setuptools.txt} )
|
||||||
|
|
||||||
|
python_prepare_all() {
|
||||||
|
if [[ ${PV} == "9999" ]]; then
|
||||||
|
python_setup
|
||||||
|
${EPYTHON} bootstrap.py || die
|
||||||
|
fi
|
||||||
|
|
||||||
|
# disable tests requiring a network connection
|
||||||
|
rm setuptools/tests/test_packageindex.py || die
|
||||||
|
|
||||||
|
# don't run integration tests
|
||||||
|
rm setuptools/tests/test_integration.py || die
|
||||||
|
|
||||||
|
distutils-r1_python_prepare_all
|
||||||
|
}
|
||||||
|
|
||||||
|
python_test() {
|
||||||
|
# test_easy_install raises a SandboxViolation due to ${HOME}/.pydistutils.cfg
|
||||||
|
# It tries to sandbox the test in a tempdir
|
||||||
|
HOME="${PWD}" pytest -vv ${PN} || die "Tests failed under ${EPYTHON}"
|
||||||
|
}
|
||||||
|
|
||||||
|
python_install() {
|
||||||
|
export DISTRIBUTE_DISABLE_VERSIONED_EASY_INSTALL_SCRIPT=1
|
||||||
|
distutils-r1_python_install
|
||||||
|
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue