parent
cfa2ed0fa2
commit
83a65db11e
Binary file not shown.
Binary file not shown.
@ -1,2 +1 @@
|
|||||||
DIST SphinxTrain-0.9.1-beta.tar.gz 469617 BLAKE2B ad1e4456501a46a51c169468e1f29e15eaf40eeea08474e0c786cc4dafbf4d504c91e65644e61939cac96526cba678d025487f736eb99b1ca186ebc822e64dd1 SHA512 1b33a58a6e05069369fe1ba668609e5a25d6a49fbf2fed1f5d86bdc1fc43d4544627c438e61d46003c2dbd8d7fa6f41c686b57cbca215f73b6c4ba0d7682076d
|
|
||||||
DIST sphinxtrain-1.0.8.tar.gz 8925803 BLAKE2B e268c00843445cb69ae2a88f93fb4aa640556179417d44f6297d87f7e509418778b4808885bb19ab163efbd71565a3b6d75d269b420e9e366c0c6553a04b3053 SHA512 465d2c4ade9acc7b49c1d975449c38ac01d5a3ff332f9841be66cd8ca9d2f0b68fd36cc8a46384c8b510042efa91c3887a080481e84f2d0deb9775a598835f2b
|
DIST sphinxtrain-1.0.8.tar.gz 8925803 BLAKE2B e268c00843445cb69ae2a88f93fb4aa640556179417d44f6297d87f7e509418778b4808885bb19ab163efbd71565a3b6d75d269b420e9e366c0c6553a04b3053 SHA512 465d2c4ade9acc7b49c1d975449c38ac01d5a3ff332f9841be66cd8ca9d2f0b68fd36cc8a46384c8b510042efa91c3887a080481e84f2d0deb9775a598835f2b
|
||||||
|
@ -1,40 +0,0 @@
|
|||||||
# Copyright 1999-2012 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=4
|
|
||||||
|
|
||||||
inherit eutils toolchain-funcs
|
|
||||||
|
|
||||||
DESCRIPTION="Speech Recognition (Training Module)"
|
|
||||||
HOMEPAGE="http://cmusphinx.sourceforge.net/html/cmusphinx.php"
|
|
||||||
SRC_URI="http://www.speech.cs.cmu.edu/${PN}/${P}-beta.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="BSD-with-attribution"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~amd64 x86"
|
|
||||||
IUSE=""
|
|
||||||
|
|
||||||
DEPEND="app-accessibility/sphinx2
|
|
||||||
app-accessibility/festival"
|
|
||||||
RDEPEND="${DEPEND}"
|
|
||||||
|
|
||||||
S=${WORKDIR}/${PN}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
epatch "${FILESDIR}"/gcc.patch
|
|
||||||
epatch "${FILESDIR}"/gcc34.patch
|
|
||||||
tc-export CC AR RANLIB
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
# dobin bin.*/* fails ... see bug #73586
|
|
||||||
find bin.* -mindepth 1 -maxdepth 1 -type f -exec dobin '{}' \; || die
|
|
||||||
|
|
||||||
dodoc README etc/*cfg
|
|
||||||
dohtml doc/*{txt,html,sgml}
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
elog "Detailed usage and training instructions can be found at"
|
|
||||||
elog "http://www.speech.cs.cmu.edu/SphinxTrain/"
|
|
||||||
}
|
|
@ -1,34 +0,0 @@
|
|||||||
--- src/programs/count_3phone/wrec.h.orig 2003-09-28 18:51:49.000000000 +0900
|
|
||||||
+++ src/programs/count_3phone/wrec.h 2003-09-28 18:52:23.000000000 +0900
|
|
||||||
@@ -44,7 +44,7 @@
|
|
||||||
#define WREC_H
|
|
||||||
|
|
||||||
#include "phrec.h"
|
|
||||||
-#include <varargs.h>
|
|
||||||
+#include <stdarg.h>
|
|
||||||
|
|
||||||
int quit (int status, char *fmt, ...);
|
|
||||||
|
|
||||||
--- src/programs/count_3phone/quit.c.orig 2003-09-28 19:12:56.000000000 +0900
|
|
||||||
+++ src/programs/count_3phone/quit.c 2003-09-28 19:13:12.000000000 +0900
|
|
||||||
@@ -74,17 +74,14 @@
|
|
||||||
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <stdlib.h>
|
|
||||||
-#include <varargs.h>
|
|
||||||
+#include <stdarg.h>
|
|
||||||
|
|
||||||
-int quit (status,fmt,va_alist)
|
|
||||||
- int status;
|
|
||||||
- char *fmt;
|
|
||||||
- va_dcl
|
|
||||||
+int quit (int status,char *fmt,...)
|
|
||||||
{
|
|
||||||
va_list args;
|
|
||||||
|
|
||||||
fflush(stdout);
|
|
||||||
- va_start(args);
|
|
||||||
+ va_start(args, fmt);
|
|
||||||
(void) vfprintf(stderr, fmt, args);
|
|
||||||
va_end(args);
|
|
||||||
exit(status);
|
|
@ -1,11 +0,0 @@
|
|||||||
--- SphinxTrain/src/programs/count_3phone/phone_word_io.c~ 2001-04-05 16:00:33.000000000 -0400
|
|
||||||
+++ SphinxTrain/src/programs/count_3phone/phone_word_io.c 2005-05-01 12:48:42.000000000 -0400
|
|
||||||
@@ -71,7 +71,7 @@
|
|
||||||
#ifdef __alpha
|
|
||||||
void *malloc();
|
|
||||||
#else
|
|
||||||
-char *malloc();
|
|
||||||
+//char *malloc();
|
|
||||||
#endif
|
|
||||||
|
|
||||||
extern int Num_Phones, Num_Words;
|
|
Binary file not shown.
@ -0,0 +1,56 @@
|
|||||||
|
# Copyright 1999-2018 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=6
|
||||||
|
|
||||||
|
PYTHON_COMPAT=( python2_7 python3_{5,6} )
|
||||||
|
|
||||||
|
inherit distutils-r1 eutils versionator
|
||||||
|
|
||||||
|
DESCRIPTION="Model-driven deployment, config management, and command execution framework"
|
||||||
|
HOMEPAGE="https://ansible.com/"
|
||||||
|
SRC_URI="https://releases.ansible.com/${PN}/${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="GPL-3"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~x86 ~x64-macos"
|
||||||
|
IUSE="test"
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
dev-python/paramiko[${PYTHON_USEDEP}]
|
||||||
|
dev-python/jinja[${PYTHON_USEDEP}]
|
||||||
|
dev-python/pyyaml[${PYTHON_USEDEP}]
|
||||||
|
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||||
|
dev-python/cryptography[${PYTHON_USEDEP}]
|
||||||
|
dev-python/httplib2[${PYTHON_USEDEP}]
|
||||||
|
dev-python/six[${PYTHON_USEDEP}]
|
||||||
|
dev-python/netaddr[${PYTHON_USEDEP}]
|
||||||
|
net-misc/sshpass
|
||||||
|
virtual/ssh
|
||||||
|
"
|
||||||
|
DEPEND="
|
||||||
|
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/packaging-16.6[${PYTHON_USEDEP}]
|
||||||
|
test? (
|
||||||
|
${RDEPEND}
|
||||||
|
dev-python/nose[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/mock-1.0.1[${PYTHON_USEDEP}]
|
||||||
|
dev-python/passlib[${PYTHON_USEDEP}]
|
||||||
|
dev-python/coverage[${PYTHON_USEDEP}]
|
||||||
|
dev-python/unittest2[${PYTHON_USEDEP}]
|
||||||
|
dev-vcs/git
|
||||||
|
)"
|
||||||
|
|
||||||
|
# not included in release tarball
|
||||||
|
RESTRICT="test"
|
||||||
|
|
||||||
|
python_test() {
|
||||||
|
nosetests -d -w test/units -v --with-coverage --cover-package=ansible --cover-branches || die
|
||||||
|
}
|
||||||
|
|
||||||
|
python_install_all() {
|
||||||
|
distutils-r1_python_install_all
|
||||||
|
|
||||||
|
doman docs/man/man1/*.1
|
||||||
|
dodoc -r examples
|
||||||
|
}
|
@ -1,2 +1,3 @@
|
|||||||
DIST mcollective-2.11.4.tar.gz 1517194 BLAKE2B 8723d433e4b8e07b4aecd8c9d13c322ba3e3b6cb7153dbcbbc2e2463fe0ddf48c7b1c1d659e8a28278bb2fa4ec6b3da2f148117b3633b8148f9ba5a0aaabc4b4 SHA512 56af0a8b64ff75351f3448396f8a7cbba603869cdbfa7a97dde5a820e2e287c84e410a77469a3ce01f398858f5c6570c9e3542e372eaa00e3f54e68e3c1ce63b
|
DIST mcollective-2.11.4.tar.gz 1517194 BLAKE2B 8723d433e4b8e07b4aecd8c9d13c322ba3e3b6cb7153dbcbbc2e2463fe0ddf48c7b1c1d659e8a28278bb2fa4ec6b3da2f148117b3633b8148f9ba5a0aaabc4b4 SHA512 56af0a8b64ff75351f3448396f8a7cbba603869cdbfa7a97dde5a820e2e287c84e410a77469a3ce01f398858f5c6570c9e3542e372eaa00e3f54e68e3c1ce63b
|
||||||
DIST mcollective-2.12.0.tar.gz 1517498 BLAKE2B 0395cf027ad09e493387d6722112871ebd58def45a5a333dac801c643b989d0bb209489806123bb15a557fb6d690e0084dda2799512079ac1a599ddc664189b4 SHA512 ca3e3c6d58f7887e9564fce2ecb05b3c105f58401761082e7e7da5235166d722be9d3dc871cb8de14b7c9126fbc6e63f968c5cd1fd65701347323398fb1c56fd
|
DIST mcollective-2.12.0.tar.gz 1517498 BLAKE2B 0395cf027ad09e493387d6722112871ebd58def45a5a333dac801c643b989d0bb209489806123bb15a557fb6d690e0084dda2799512079ac1a599ddc664189b4 SHA512 ca3e3c6d58f7887e9564fce2ecb05b3c105f58401761082e7e7da5235166d722be9d3dc871cb8de14b7c9126fbc6e63f968c5cd1fd65701347323398fb1c56fd
|
||||||
|
DIST mcollective-2.12.1.tar.gz 1517946 BLAKE2B 785acc53a4854f47caebe1d6a5f9cc850c3c33fd21e1b6e57d0d9761b2a7a3bbab2f2df398aa5344d90bc11397a545c8663d60ff3b2f6ff835fdc619d874928e SHA512 2398fb0202d8d5669a6efa81d96a87ee7e9221c1bc1b2e5be1917f2fec2527879b34be8df8c3052acf0ed58074b2da185f0837889d9300bde190bc95e8237d9a
|
||||||
|
@ -0,0 +1,60 @@
|
|||||||
|
# Copyright 1999-2018 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI="6"
|
||||||
|
|
||||||
|
USE_RUBY="ruby21 ruby22 ruby23"
|
||||||
|
|
||||||
|
inherit ruby-ng
|
||||||
|
|
||||||
|
DESCRIPTION="Framework to build server orchestration or parallel job execution
|
||||||
|
systems"
|
||||||
|
HOMEPAGE="https://docs.puppet.com/mcollective/"
|
||||||
|
SRC_URI="https://github.com/puppetlabs/marionette-collective/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||||
|
S="${WORKDIR}/all/marionette-collective-${PV}"
|
||||||
|
|
||||||
|
LICENSE="Apache-2.0"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
IUSE="doc +client"
|
||||||
|
|
||||||
|
DEPEND=""
|
||||||
|
RDEPEND=">=dev-ruby/stomp-1.4.4"
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
einfo "nothing to compile"
|
||||||
|
}
|
||||||
|
|
||||||
|
each_ruby_install() {
|
||||||
|
cd "marionette-collective-${PV}"
|
||||||
|
doruby -r lib/*
|
||||||
|
insinto /usr/share/mcollective
|
||||||
|
use client && dosbin bin/mco
|
||||||
|
dosbin bin/mcollectived
|
||||||
|
if use doc ; then
|
||||||
|
dohtml -r doc/*
|
||||||
|
insinto /usr/share/doc/${P}/ext
|
||||||
|
doins -r ext/*
|
||||||
|
fi
|
||||||
|
newinitd "${FILESDIR}"/mcollectived.initd mcollectived
|
||||||
|
insinto /etc/mcollective
|
||||||
|
cd etc
|
||||||
|
for cfg in *.dist ; do
|
||||||
|
newins "${cfg}" "${cfg%%.dist}"
|
||||||
|
sed -i -e "s:^libdir.*:libdir = /usr/share/mcollective/plugins:" \
|
||||||
|
"${D}"/etc/mcollective/${cfg%%.dist} || die "sed failed"
|
||||||
|
done
|
||||||
|
insinto /etc/mcollective/plugin.d
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
einfo "Mcollective requires a stomp server installed and functioning before"
|
||||||
|
einfo "you can use it. The recommended server to use is ActiveMQ [1] but"
|
||||||
|
einfo "any other stomp compatible server should work."
|
||||||
|
einfo
|
||||||
|
einfo "It is recommended you read the \'getting started\' guide [2] if this"
|
||||||
|
einfo "is a new installation"
|
||||||
|
einfo
|
||||||
|
einfo "[1] https://activemq.apache.org/"
|
||||||
|
einfo "[2] https://code.google.com/p/mcollective/wiki/GettingStarted"
|
||||||
|
}
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,109 @@
|
|||||||
|
# Copyright 1999-2018 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=6
|
||||||
|
|
||||||
|
inherit autotools systemd user versionator
|
||||||
|
|
||||||
|
DESCRIPTION="Network backup and restore client and server for Unix and Windows"
|
||||||
|
HOMEPAGE="http://burp.grke.org/"
|
||||||
|
SRC_URI="https://github.com/grke/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="AGPL-3"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~arm ~x86"
|
||||||
|
IUSE="acl ipv6 libressl test xattr"
|
||||||
|
|
||||||
|
CDEPEND="dev-libs/uthash
|
||||||
|
net-libs/librsync
|
||||||
|
sys-libs/ncurses:0=
|
||||||
|
sys-libs/zlib
|
||||||
|
!libressl? ( dev-libs/openssl:0= )
|
||||||
|
libressl? ( dev-libs/libressl:0= )
|
||||||
|
acl? ( sys-apps/acl )
|
||||||
|
xattr? ( sys-apps/attr )"
|
||||||
|
DEPEND="${CDEPEND}
|
||||||
|
virtual/pkgconfig
|
||||||
|
test? ( dev-libs/check )"
|
||||||
|
RDEPEND="${CDEPEND}
|
||||||
|
virtual/logger"
|
||||||
|
|
||||||
|
PATCHES=(
|
||||||
|
"${FILESDIR}"/${PN}-2.1.20-no_mkdir_run.patch
|
||||||
|
"${FILESDIR}"/${PN}-2.1.20-protocol1_by_default.patch
|
||||||
|
"${FILESDIR}"/${PN}-2.0.54-server_user.patch
|
||||||
|
)
|
||||||
|
|
||||||
|
pkg_setup() {
|
||||||
|
enewgroup "${PN}"
|
||||||
|
enewuser "${PN}" -1 "" "" "${PN}"
|
||||||
|
}
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
default
|
||||||
|
|
||||||
|
eautoreconf
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
local myeconfargs=(
|
||||||
|
--localstatedir=/var
|
||||||
|
--sysconfdir=/etc/burp
|
||||||
|
--enable-largefile
|
||||||
|
$(use_enable acl)
|
||||||
|
$(use_enable ipv6)
|
||||||
|
$(use_enable xattr)
|
||||||
|
)
|
||||||
|
# --runstatedir option will only work from autoconf-2.70 onwards
|
||||||
|
runstatedir='/run' \
|
||||||
|
econf "${myeconfargs[@]}"
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
default
|
||||||
|
fowners -R root:${PN} /var/spool/burp
|
||||||
|
fperms 0770 /var/spool/burp
|
||||||
|
|
||||||
|
emake DESTDIR="${D}" install-configs
|
||||||
|
fowners -R root:${PN} /etc/burp
|
||||||
|
fperms 0750 /etc/burp
|
||||||
|
fperms 0640 /etc/burp/burp-server.conf
|
||||||
|
fperms 0750 /etc/burp/clientconfdir
|
||||||
|
|
||||||
|
newinitd "${FILESDIR}"/${PN}.initd ${PN}
|
||||||
|
systemd_dounit "${FILESDIR}"/${PN}.service
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
elog "Burp ebuilds now support the autoupgrade mechanism in both"
|
||||||
|
elog "client and server mode. In both cases it is disabled by"
|
||||||
|
elog "default. You almost certainly do NOT want to enable it in"
|
||||||
|
elog "client mode because upgrades obtained this way will not be"
|
||||||
|
elog "managed by Portage."
|
||||||
|
|
||||||
|
if [[ ! -e /etc/burp/CA/index.txt ]]; then
|
||||||
|
elog ""
|
||||||
|
elog "At first run burp server will generate DH parameters and SSL"
|
||||||
|
elog "certificates. You should adjust configuration before."
|
||||||
|
elog "Server configuration is located at"
|
||||||
|
elog ""
|
||||||
|
elog " /etc/burp/burp-server.conf"
|
||||||
|
elog ""
|
||||||
|
fi
|
||||||
|
|
||||||
|
# According to PMS this can be a space-separated list of version
|
||||||
|
# numbers, even though in practice it is typically just one.
|
||||||
|
local oldver
|
||||||
|
for oldver in ${REPLACING_VERSIONS}; do
|
||||||
|
if [[ $(get_major_version ${oldver}) -lt 2 ]]; then
|
||||||
|
ewarn "Starting with version 2.0.54 we no longer patch bedup to use"
|
||||||
|
ewarn "the server config file by default. If you use bedup, please"
|
||||||
|
ewarn "update your scripts to invoke it as"
|
||||||
|
ewarn ""
|
||||||
|
ewarn " bedup -c /etc/burp/burp-server.conf"
|
||||||
|
ewarn ""
|
||||||
|
ewarn "Otherwise deduplication will not work!"
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
}
|
Binary file not shown.
@ -1,2 +1,3 @@
|
|||||||
DIST gpgme-1.10.0.tar.bz2 1370162 BLAKE2B b421d91a4fcd2e8887dc1a5c276fe1cce66f379741d86dfca751f4863039c39ccaf492c7683d6f6a0de407d2a6056e3496e45e3d472eef36a879e8b903e58c57 SHA512 8ffa348ef4775ed3209486444d54411e28c9a0ff1d7a4315feb0b2856ccd5d110b219100ea41262ca0016af69a1936d79fee0eadf2599c7c5bbeed05d11f7ab5
|
DIST gpgme-1.10.0.tar.bz2 1370162 BLAKE2B b421d91a4fcd2e8887dc1a5c276fe1cce66f379741d86dfca751f4863039c39ccaf492c7683d6f6a0de407d2a6056e3496e45e3d472eef36a879e8b903e58c57 SHA512 8ffa348ef4775ed3209486444d54411e28c9a0ff1d7a4315feb0b2856ccd5d110b219100ea41262ca0016af69a1936d79fee0eadf2599c7c5bbeed05d11f7ab5
|
||||||
|
DIST gpgme-1.11.0.tar.bz2 1414991 BLAKE2B 2ef78b9b6f1017f821d83c2a91775b19ff2a0705d3441105d4f6d2fce4edaec9b26a6ea6a79e94f623f2ed064dd311846f1c3b92a94fcb3e1c11c8d2bc90c80b SHA512 79d1e4bb7a0a15ae107dae8aab29aa0b62c47ea93b228429332bb7ed24fc742afcc7abf537319d5466dee5a3b83b3fba3cf90a8bad8c97c64d7215c6573eabb5
|
||||||
DIST gpgme-1.8.0.tar.bz2 1298407 BLAKE2B b510651d0df12091489bccf6a432420db63337cfe5149d0449cef9071cbb671a52f7837d900b4d2e40deaa47688b1ea19a025ce8c930027a14620410228bff52 SHA512 9f214a44ddc4d602c2a0befc66aa6be9f2c90a24e153b873475867e30eec30e074826b98c11d20b0a2e4cd04e2625ce2545220481225fceb6ca9c51d3208e3de
|
DIST gpgme-1.8.0.tar.bz2 1298407 BLAKE2B b510651d0df12091489bccf6a432420db63337cfe5149d0449cef9071cbb671a52f7837d900b4d2e40deaa47688b1ea19a025ce8c930027a14620410228bff52 SHA512 9f214a44ddc4d602c2a0befc66aa6be9f2c90a24e153b873475867e30eec30e074826b98c11d20b0a2e4cd04e2625ce2545220481225fceb6ca9c51d3208e3de
|
||||||
|
@ -0,0 +1,34 @@
|
|||||||
|
From 8b4fd18c98eab1287836c79ae4efc77541e7dc30 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Alon Bar-Lev <alon.barlev@gmail.com>
|
||||||
|
Date: Wed, 18 Apr 2018 23:53:01 +0300
|
||||||
|
Subject: [PATCH GPGME] build: gpgme-json: install properly
|
||||||
|
|
||||||
|
not installing properly using libtool result in:
|
||||||
|
|
||||||
|
* QA Notice: The following files contain insecure RUNPATHs
|
||||||
|
* Please file a bug about this at https://bugs.gentoo.org/
|
||||||
|
* with the maintainer of the package.
|
||||||
|
* /var/tmp/portage/app-crypt/gpgme-1.11.0/image/usr/bin/gpgme-json
|
||||||
|
* RPATH: /var/tmp/portage/app-crypt/gpgme-1.11.0/work/b/src/.libs
|
||||||
|
---
|
||||||
|
src/Makefile.am | 4 +---
|
||||||
|
1 file changed, 1 insertion(+), 3 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/src/Makefile.am b/src/Makefile.am
|
||||||
|
index c2d4a843..3d638b23 100644
|
||||||
|
--- a/src/Makefile.am
|
||||||
|
+++ b/src/Makefile.am
|
||||||
|
@@ -103,9 +103,7 @@ gpgme_tool_SOURCES = gpgme-tool.c argparse.c argparse.h
|
||||||
|
gpgme_tool_LDADD = libgpgme.la @LIBASSUAN_LIBS@
|
||||||
|
|
||||||
|
gpgme_json_SOURCES = gpgme-json.c cJSON.c cJSON.h
|
||||||
|
-gpgme_json_LDADD = -lm libgpgme.la $(GPG_ERROR_LIBS)
|
||||||
|
-# We use -no-install temporary during development.
|
||||||
|
-gpgme_json_LDFLAGS = -no-install
|
||||||
|
+gpgme_json_LDADD = -lm libgpgme.la @GPG_ERROR_LIBS@
|
||||||
|
|
||||||
|
|
||||||
|
if HAVE_W32_SYSTEM
|
||||||
|
--
|
||||||
|
2.16.1
|
||||||
|
|
@ -0,0 +1,25 @@
|
|||||||
|
From 82b2b2da2bf6f50fbc5481e106c010567665575d Mon Sep 17 00:00:00 2001
|
||||||
|
From: Alon Bar-Lev <alon.barlev@gmail.com>
|
||||||
|
Date: Wed, 18 Apr 2018 23:59:20 +0300
|
||||||
|
Subject: [PATCH] tests: gpg: disable t-verify
|
||||||
|
|
||||||
|
---
|
||||||
|
tests/gpg/t-verify.c | 2 ++
|
||||||
|
1 file changed, 2 insertions(+)
|
||||||
|
|
||||||
|
diff --git a/tests/gpg/t-verify.c b/tests/gpg/t-verify.c
|
||||||
|
index 7c23406f..315040e8 100644
|
||||||
|
--- a/tests/gpg/t-verify.c
|
||||||
|
+++ b/tests/gpg/t-verify.c
|
||||||
|
@@ -225,6 +225,8 @@ main (int argc, char *argv[])
|
||||||
|
gpgme_verify_result_t result;
|
||||||
|
const char *s;
|
||||||
|
|
||||||
|
+ exit(0);
|
||||||
|
+
|
||||||
|
(void)argc;
|
||||||
|
(void)argv;
|
||||||
|
|
||||||
|
--
|
||||||
|
2.16.1
|
||||||
|
|
@ -0,0 +1,124 @@
|
|||||||
|
# Copyright 1999-2018 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI="6"
|
||||||
|
|
||||||
|
PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
|
||||||
|
DISTUTILS_OPTIONAL=1
|
||||||
|
|
||||||
|
inherit distutils-r1 flag-o-matic libtool ltprune qmake-utils toolchain-funcs
|
||||||
|
inherit autotools
|
||||||
|
|
||||||
|
DESCRIPTION="GnuPG Made Easy is a library for making GnuPG easier to use"
|
||||||
|
HOMEPAGE="http://www.gnupg.org/related_software/gpgme"
|
||||||
|
SRC_URI="mirror://gnupg/gpgme/${P}.tar.bz2"
|
||||||
|
|
||||||
|
LICENSE="GPL-2 LGPL-2.1"
|
||||||
|
SLOT="1/11" # subslot = soname major version
|
||||||
|
KEYWORDS=""
|
||||||
|
IUSE="common-lisp static-libs cxx python qt5"
|
||||||
|
|
||||||
|
COMMON_DEPEND=">=app-crypt/gnupg-2
|
||||||
|
>=dev-libs/libassuan-2.0.2:=
|
||||||
|
>=dev-libs/libgpg-error-1.29:=
|
||||||
|
python? ( ${PYTHON_DEPS} )
|
||||||
|
qt5? ( dev-qt/qtcore:5 )"
|
||||||
|
#doc? ( app-doc/doxygen[dot] )
|
||||||
|
DEPEND="${COMMON_DEPEND}
|
||||||
|
python? ( dev-lang/swig )
|
||||||
|
qt5? ( dev-qt/qttest:5 )"
|
||||||
|
RDEPEND="${COMMON_DEPEND}
|
||||||
|
cxx? (
|
||||||
|
!<kde-apps/gpgmepp-4.14.11_pre20160611:4
|
||||||
|
!kde-apps/gpgmepp:5
|
||||||
|
!<kde-apps/kdepimlibs-4.14.10_p20160611:4
|
||||||
|
!=kde-apps/kdepimlibs-4.14.11_pre20160211*:4
|
||||||
|
)"
|
||||||
|
|
||||||
|
REQUIRED_USE="qt5? ( cxx ) python? ( ${PYTHON_REQUIRED_USE} )"
|
||||||
|
|
||||||
|
PATCHES=(
|
||||||
|
"${FILESDIR}/${P}-build.patch"
|
||||||
|
"${FILESDIR}/${P}-tests.patch"
|
||||||
|
)
|
||||||
|
|
||||||
|
do_python() {
|
||||||
|
if use python; then
|
||||||
|
pushd "lang/python" > /dev/null || die
|
||||||
|
top_builddir="../.." srcdir="." CPP=$(tc-getCPP) distutils-r1_src_${EBUILD_PHASE}
|
||||||
|
popd > /dev/null
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_setup() {
|
||||||
|
addpredict /run/user/$(id -u)/gnupg
|
||||||
|
|
||||||
|
local MAX_WORKDIR=66
|
||||||
|
if [[ "${#WORKDIR}" -gt "${MAX_WORKDIR}" ]]; then
|
||||||
|
ewarn "Disabling tests as WORKDIR '${WORKDIR}' is longer than ${MAX_WORKDIR} which will fail tests"
|
||||||
|
SKIP_TESTS=1
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
default
|
||||||
|
eautoreconf
|
||||||
|
elibtoolize
|
||||||
|
|
||||||
|
# Make best effort to allow longer PORTAGE_TMPDIR
|
||||||
|
# as usock limitation fails build/tests
|
||||||
|
ln -s "${P}" "${WORKDIR}/b"
|
||||||
|
S="${WORKDIR}/b"
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
local languages=()
|
||||||
|
use common-lisp && languages+=( "cl" )
|
||||||
|
use cxx && languages+=( "cpp" )
|
||||||
|
if use qt5; then
|
||||||
|
languages+=( "qt" )
|
||||||
|
#use doc ||
|
||||||
|
export DOXYGEN=true
|
||||||
|
export MOC="$(qt5_get_bindir)/moc"
|
||||||
|
fi
|
||||||
|
|
||||||
|
econf \
|
||||||
|
$([[ -n "${SKIP_TESTS}" ]] && echo "--disable-gpg-test --disable-gpgsm-test") \
|
||||||
|
--enable-languages="${languages[*]}" \
|
||||||
|
$(use_enable static-libs static)
|
||||||
|
|
||||||
|
use python && make -C lang/python prepare
|
||||||
|
|
||||||
|
do_python
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
default
|
||||||
|
do_python
|
||||||
|
}
|
||||||
|
|
||||||
|
src_test() {
|
||||||
|
[[ -z "${SKIP_TESTS}" ]] || return
|
||||||
|
|
||||||
|
default
|
||||||
|
if use python; then
|
||||||
|
test_python() {
|
||||||
|
emake -C lang/python/tests check \
|
||||||
|
PYTHON=${EPYTHON} \
|
||||||
|
PYTHONS=${EPYTHON} \
|
||||||
|
TESTFLAGS="--python-libdir=${BUILD_DIR}/lib"
|
||||||
|
}
|
||||||
|
python_foreach_impl test_python
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
default
|
||||||
|
do_python
|
||||||
|
prune_libtool_files
|
||||||
|
|
||||||
|
# backward compatibility for gentoo
|
||||||
|
# in the past we had slots
|
||||||
|
dodir /usr/include/gpgme
|
||||||
|
dosym ../gpgme.h /usr/include/gpgme/gpgme.h
|
||||||
|
}
|
Binary file not shown.
Binary file not shown.
@ -0,0 +1,37 @@
|
|||||||
|
# Copyright 1999-2018 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=6
|
||||||
|
PYTHON_COMPAT=( python2_7 )
|
||||||
|
|
||||||
|
inherit distutils-r1
|
||||||
|
|
||||||
|
DESCRIPTION="Golden Disk Image builder."
|
||||||
|
HOMEPAGE="http://docs.openstack.org/developer/diskimage-builder/"
|
||||||
|
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="Apache-2.0"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~arm64 ~x86 ~amd64-linux ~x86-linux"
|
||||||
|
IUSE=""
|
||||||
|
|
||||||
|
CDEPEND=">=dev-python/pbr-2.0.0[${PYTHON_USEDEP}]
|
||||||
|
!~dev-python/pbr-2.1.0[${PYTHON_USEDEP}]"
|
||||||
|
DEPEND="${CDEPEND}
|
||||||
|
dev-python/setuptools[${PYTHON_USEDEP}]"
|
||||||
|
RDEPEND="${CDEPEND}
|
||||||
|
>=dev-python/Babel-2.3.4[${PYTHON_USEDEP}]
|
||||||
|
!~dev-python/Babel-2.4.0[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/networkx-1.10[${PYTHON_USEDEP}]
|
||||||
|
<dev-python/networkx-2.0[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/pyyaml-3.12[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/flake8-2.5.4[${PYTHON_USEDEP}]
|
||||||
|
<dev-python/flake8-2.6.0[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/six-1.10.0[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/stevedore-1.20.0[${PYTHON_USEDEP}]
|
||||||
|
app-emulation/qemu
|
||||||
|
sys-block/parted
|
||||||
|
sys-fs/multipath-tools
|
||||||
|
sys-fs/dosfstools
|
||||||
|
sys-apps/gptfdisk
|
||||||
|
!dev-python/dib-utils[${PYTHON_USEDEP}]"
|
@ -1,4 +1,5 @@
|
|||||||
DIST VBoxGuestAdditions_5.1.32.iso 59512832 BLAKE2B 73fcbb3d1db1056970a86e9c1c1efe1f8ddc3566c327df5bb8e14b22b827fc603dcba580a6db60c75f3dff00f268313ac196d49355e184395793363c6d16df68 SHA512 073b103308f7cab18ca096bbb863d8cdea8efd8aa4896b2ab2a6326f549f1cf6afb70ccb55baa1dab85485879e522584a9f91adb4434c5f8bd649e73dae65900
|
DIST VBoxGuestAdditions_5.1.32.iso 59512832 BLAKE2B 73fcbb3d1db1056970a86e9c1c1efe1f8ddc3566c327df5bb8e14b22b827fc603dcba580a6db60c75f3dff00f268313ac196d49355e184395793363c6d16df68 SHA512 073b103308f7cab18ca096bbb863d8cdea8efd8aa4896b2ab2a6326f549f1cf6afb70ccb55baa1dab85485879e522584a9f91adb4434c5f8bd649e73dae65900
|
||||||
DIST VBoxGuestAdditions_5.1.34.iso 59619328 BLAKE2B e8e7786a82785c4d58c2206c3ede4119c435c2884eba470128cd12ad968077eea7a7850fb05c20ef18ec01fb27919ae29a706d4b059203a7a55dba94f7680564 SHA512 e8c376a558991d603fbb6554969d27c510621bfd8f53542126f57c3604d68f6da7f7732361369b6144794575f40c22e0df0a9b2b4190d3462d80c035b7f0451f
|
DIST VBoxGuestAdditions_5.1.34.iso 59619328 BLAKE2B e8e7786a82785c4d58c2206c3ede4119c435c2884eba470128cd12ad968077eea7a7850fb05c20ef18ec01fb27919ae29a706d4b059203a7a55dba94f7680564 SHA512 e8c376a558991d603fbb6554969d27c510621bfd8f53542126f57c3604d68f6da7f7732361369b6144794575f40c22e0df0a9b2b4190d3462d80c035b7f0451f
|
||||||
DIST VBoxGuestAdditions_5.2.6.iso 57866240 BLAKE2B a9028dc084eaf8e2a759112a2dfcc9f15486a1479fbb0c3ab77484e2775b8ed8df3759d265b73bea18cf20e02d82c022c8af1f23e9a640b89f69d2a6bd8c3e26 SHA512 23fe9512455d77b4cade7f731c9244439882ae54068158384e96c988ba7b4e2721ba2414189f6366f7c2d13f6e5355a0fa0bff501db6087705b8d1242e9d0f2a
|
DIST VBoxGuestAdditions_5.1.36.iso 59592704 BLAKE2B eda12e74481c995eb868fdd4d4589bed365cfac1403f97b47947549e602a108297cb4fc22c6115d0496dd82f79291a40833dd29e1a7a0e6b9d08754faa6d01a0 SHA512 af1b97771f6e49a3ec3e917bad2c9386593cd5281371d271cb8fa903eb534c95c9862ce71690fa5ca49c5a2c17cdce80606b572bb7e6fd5f5e3b69f648bb3111
|
||||||
|
DIST VBoxGuestAdditions_5.2.10.iso 57978880 BLAKE2B 5278fbd6abc5d8ebf985387c605e4840b50b4f69f858723b62d58e7f1551fa1ea3aa74d1e78bab04e8da9a4f83aac39dbf0866037ddf1f2f22b8b54a3c9094b0 SHA512 4d69e16055763b6f3a92cf0ab1bb6ac4a034cb2c79aea70d29466b6588d7aa900be9055226052d97d4e5b13ae50ebfc2afd247464c1482bf48cedbb716bc7965
|
||||||
DIST VBoxGuestAdditions_5.2.8.iso 57972736 BLAKE2B 4f78b5faa8379777f88be98af1c6e023863395004d5326a698801141ed939edbb04f5109967179e8777bdfae39a77ffa724c9f08f54a14a8898a074512318816 SHA512 29d1bd00e6f5f5ceb7fa50719dde6e05b17111583a0ada16f47cd1e38e9302a3d5d4d7708cef9c8c3f9c4eb2d5ccc276c792700e0733cec2dc611ba1e5bed098
|
DIST VBoxGuestAdditions_5.2.8.iso 57972736 BLAKE2B 4f78b5faa8379777f88be98af1c6e023863395004d5326a698801141ed939edbb04f5109967179e8777bdfae39a77ffa724c9f08f54a14a8898a074512318816 SHA512 29d1bd00e6f5f5ceb7fa50719dde6e05b17111583a0ada16f47cd1e38e9302a3d5d4d7708cef9c8c3f9c4eb2d5ccc276c792700e0733cec2dc611ba1e5bed098
|
||||||
|
@ -0,0 +1,35 @@
|
|||||||
|
# Copyright 1999-2018 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=6
|
||||||
|
|
||||||
|
inherit eutils
|
||||||
|
|
||||||
|
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,16 +1,20 @@
|
|||||||
DIST Oracle_VM_VirtualBox_Extension_Pack-5.1.32-120294.tar.gz 19589163 BLAKE2B b35d9bb90216a77706fe5f0de624affaff4177d4b6e561f7c76003efd1a386a1f5b5f6b1c6b559cddde6ffb55ab5f7eba3e4c9b2135f31c09313b473ba6579e5 SHA512 c1e13fc59b9556f980bec02bb2860e717f752d42c3d810f70267e5c07898bb1aba9d3f3403fa5aa388478aa609397da49dcf10311836d68093101715a6ae200d
|
DIST Oracle_VM_VirtualBox_Extension_Pack-5.1.32-120294.tar.gz 19589163 BLAKE2B b35d9bb90216a77706fe5f0de624affaff4177d4b6e561f7c76003efd1a386a1f5b5f6b1c6b559cddde6ffb55ab5f7eba3e4c9b2135f31c09313b473ba6579e5 SHA512 c1e13fc59b9556f980bec02bb2860e717f752d42c3d810f70267e5c07898bb1aba9d3f3403fa5aa388478aa609397da49dcf10311836d68093101715a6ae200d
|
||||||
DIST Oracle_VM_VirtualBox_Extension_Pack-5.1.34-121010.tar.gz 19591849 BLAKE2B 573afe3624a3eace4272a067f472e32dbe344755814aefaa8d6685da0ff31e04faa7f6a22a58974938067fce3a0ea3d66a0c5d02db999105029cc7c5c8fea24b SHA512 4f05bc7abe989fbc0928aba259ad60b09f5b085859c0ddc3e24c052fdb4becb055795c8f0038fc4dd95be7b9954a3034afd499798bb58fe16522602cfe91e7fa
|
DIST Oracle_VM_VirtualBox_Extension_Pack-5.1.34-121010.tar.gz 19591849 BLAKE2B 573afe3624a3eace4272a067f472e32dbe344755814aefaa8d6685da0ff31e04faa7f6a22a58974938067fce3a0ea3d66a0c5d02db999105029cc7c5c8fea24b SHA512 4f05bc7abe989fbc0928aba259ad60b09f5b085859c0ddc3e24c052fdb4becb055795c8f0038fc4dd95be7b9954a3034afd499798bb58fe16522602cfe91e7fa
|
||||||
DIST Oracle_VM_VirtualBox_Extension_Pack-5.2.6-120293.tar.gz 19468503 BLAKE2B 5e1e490352fb06ceee868171583e50f8ca634a53799237cd1a3632566b6ca14d526e714156ccbeae48bf01aa4372a89d8926601cf5c1d8d34127d2d1e6a53edb SHA512 f81715b5e89ae21080d9a1b23cfd9be30bc35b32963c1b710262c1ee88bedc405dd9d2ff96761b8725716bd98625eea58fc076de6d42a4728078ebe303e195af
|
DIST Oracle_VM_VirtualBox_Extension_Pack-5.1.36-122089.tar.gz 19605234 BLAKE2B 4b263b27b130e5b5d7917f15f0dc782f28f7708cc10e22028ee27b33be6541df5211c4fb36951a6b293d19b8933182097cd0575da8c1d00b6a96e747c1962762 SHA512 e11b294da83b4605c40132f2ea5f95f2820f901d2ed1d438c22c4cc9f779baa3112b9334036717d1593d5f9ec8374d7d7bc826012e2019ef0ba79bacb1deb7b8
|
||||||
|
DIST Oracle_VM_VirtualBox_Extension_Pack-5.2.10-122088.tar.gz 19482093 BLAKE2B ca02e9226b774340ecd31688f296304d7c963f20177d523058a1a2997cc287c59fc6e4df8bcc5024ec55cc7b79b1319f61bc9f3697cdb9c4c36423a77221cb82 SHA512 90e9d1c0235d14df9a305fa48102528b839c266abe18f97dcb945729cb9a0136cbf0686b69b82fcc76508cf7674c5b5dcb6563319af9ca0c294218802eaa9173
|
||||||
DIST Oracle_VM_VirtualBox_Extension_Pack-5.2.8-121009.tar.gz 19469421 BLAKE2B 81651876802ad767339f3984a26375118f01e4b99b4247398e0cea8d749905431b40945f8a72d0c7802b2743080f01d3044aafd21600c4927773994c5a114a1f SHA512 2b69e2acab91ce95e9807006c79862fc0d1d10fdd269bd9cdf8f11b6704821823b103c7a4a76ad99c10e0868bd397ffe0e72b2eb2aa4fc2bd81ff968c71c2280
|
DIST Oracle_VM_VirtualBox_Extension_Pack-5.2.8-121009.tar.gz 19469421 BLAKE2B 81651876802ad767339f3984a26375118f01e4b99b4247398e0cea8d749905431b40945f8a72d0c7802b2743080f01d3044aafd21600c4927773994c5a114a1f SHA512 2b69e2acab91ce95e9807006c79862fc0d1d10fdd269bd9cdf8f11b6704821823b103c7a4a76ad99c10e0868bd397ffe0e72b2eb2aa4fc2bd81ff968c71c2280
|
||||||
DIST VirtualBox-5.1.32-120294-Linux_amd64.run 88360402 BLAKE2B f548855260467be536f2e5ff95ae110636b1fa824a78058cf9318b21592d9643bd780691984ff803c7b0ec998f8e1720d81731fb26df42718cfe3c7b56ad09e4 SHA512 3b7e722ee231ad087b4d2419406e46b6b33a7947d6dcc8ecc0456f04925fb551810c5f27a54d9c99b0d729c1bb0d5d79d17bb8720291c8210ab88c15215244ec
|
DIST VirtualBox-5.1.32-120294-Linux_amd64.run 88360402 BLAKE2B f548855260467be536f2e5ff95ae110636b1fa824a78058cf9318b21592d9643bd780691984ff803c7b0ec998f8e1720d81731fb26df42718cfe3c7b56ad09e4 SHA512 3b7e722ee231ad087b4d2419406e46b6b33a7947d6dcc8ecc0456f04925fb551810c5f27a54d9c99b0d729c1bb0d5d79d17bb8720291c8210ab88c15215244ec
|
||||||
DIST VirtualBox-5.1.32-120294-Linux_x86.run 87387598 BLAKE2B 657842740d52f046c969196ca776e5572e3bfde55587575bdcc2a957863bb890a40954c9fa014e9184ee77e1e5a81388eadbc5fcfcd22a21c0485e25074bb900 SHA512 38cb01d89edb1fcb44940bdd94c69af824577ebc9fa30a5a2c7c837142fc70848326325b9ee131ad878a9dce71e10b9762854ef0aa66c9060c159abc40c89241
|
DIST VirtualBox-5.1.32-120294-Linux_x86.run 87387598 BLAKE2B 657842740d52f046c969196ca776e5572e3bfde55587575bdcc2a957863bb890a40954c9fa014e9184ee77e1e5a81388eadbc5fcfcd22a21c0485e25074bb900 SHA512 38cb01d89edb1fcb44940bdd94c69af824577ebc9fa30a5a2c7c837142fc70848326325b9ee131ad878a9dce71e10b9762854ef0aa66c9060c159abc40c89241
|
||||||
DIST VirtualBox-5.1.34-121010-Linux_amd64.run 88309202 BLAKE2B 77b906e52f54926a3d6a41ec54de906b4beca3c7ae817d3db20a480352ba4804d28cc41d8b501e89893b4ba153e8c62c7d9d106acd771c35431a1c841e964cdb SHA512 28b0b9cd58e1deba8b008bd0a2f611400de426701d9256cad58527761cfaed52949bb817a7b2cc101e15f524c79a605972349d87b637b7497ada0816421ecf4c
|
DIST VirtualBox-5.1.34-121010-Linux_amd64.run 88309202 BLAKE2B 77b906e52f54926a3d6a41ec54de906b4beca3c7ae817d3db20a480352ba4804d28cc41d8b501e89893b4ba153e8c62c7d9d106acd771c35431a1c841e964cdb SHA512 28b0b9cd58e1deba8b008bd0a2f611400de426701d9256cad58527761cfaed52949bb817a7b2cc101e15f524c79a605972349d87b637b7497ada0816421ecf4c
|
||||||
DIST VirtualBox-5.1.34-121010-Linux_x86.run 87377358 BLAKE2B 48a0011a8fe80604a660eeb833b5b406f19827d9e22a0ae1f7a1394951b554a3d141d2150640107ebbb3d381b783084b7f7a2c4265302727524b98ced947c756 SHA512 7866f35f315ad9207fe85e0cfdbff7e5fb19f55ec1bff07606cadf68a9f7f965169b7c95713599952db4c9ba346f0813169f944e0d69702c4f2c43f35ff6c61f
|
DIST VirtualBox-5.1.34-121010-Linux_x86.run 87377358 BLAKE2B 48a0011a8fe80604a660eeb833b5b406f19827d9e22a0ae1f7a1394951b554a3d141d2150640107ebbb3d381b783084b7f7a2c4265302727524b98ced947c756 SHA512 7866f35f315ad9207fe85e0cfdbff7e5fb19f55ec1bff07606cadf68a9f7f965169b7c95713599952db4c9ba346f0813169f944e0d69702c4f2c43f35ff6c61f
|
||||||
DIST VirtualBox-5.2.6-120293-Linux_amd64.run 88554959 BLAKE2B ca35ed89b47a65c82abdc5268ec2b85fc78f405981e0919198effb99ca307fa74e2329d3901fcae9a18fada1dbefc2c39feec78609b818acf89ed09036f3693a SHA512 501e3de48553e3664242303c6f403784ffa71cb064de36c141a2be67aebe1d44161aab62af2101ada277cc02d98678fffbabbeb3aee69a5f97dca5dddb3ea553
|
DIST VirtualBox-5.1.36-122089-Linux_amd64.run 88329683 BLAKE2B 96e0296243056ebaecde4435fe68f82dacfc66a0d23b70365c7495112672b60be7682ef794851b68198d0d0f01ec84cb314f06b434726e5f75e47751771cbd3b SHA512 6c62c642da78561ec5130e18ebac24d52871b4c518ce507f1deb0a279c58dfc1b87c4afecf63236e7274da65d5d784575779ad39e17a4f8b1f05c29a3ca95d55
|
||||||
DIST VirtualBox-5.2.6-120293-Linux_x86.run 87725517 BLAKE2B 301a44c5086377cff6e8cce794238661bebd6417a645de64227cfd5dccda5091d2bd88c33beaf393ceba61d912aed672eeba6ca084dd56553e042dfb0709a1f2 SHA512 f44753fdaad115aea5a576ac0b04463b7c25958c5c0a2cb20de76ef24045addbbd6fdfee60b0070149f78add2225f3384a523abd7938ee83f2fd9e79414b0742
|
DIST VirtualBox-5.1.36-122089-Linux_x86.run 87449039 BLAKE2B 826071838fdb7567ec7064eb6db216d9d695f3504b0c37b2db637df5757ece58b8c1c0b430cef1c1e6657bd9dc556c074891732cd4481243af72051f66ec6bec SHA512 c593483949a5389cddbe47fb3d07e7acc55868671d72ccd696e1c039ace24e7b88be9cf088c32b419c5f4ba76ceada6e388b63dbeac6376b13627543c472afe8
|
||||||
|
DIST VirtualBox-5.2.10-122088-Linux_amd64.run 88544723 BLAKE2B b460f2eb04854773a2cc908eed3e01bf3245f0273c94bb4a7a69b11b2e1506a8a4db81649e13ce94fa3771540cadf597f3c2d957fc873213ef734e6b4e1d932d SHA512 244dcb2c875d4d0bf37552a478074b052268973954e4ba81e2a82ebc8ffe40da74de484032a37f21291574a997ee67dd4057f75eef4d7ac77c4e0f0d7cfa12ce
|
||||||
|
DIST VirtualBox-5.2.10-122088-Linux_x86.run 87684559 BLAKE2B 840efab030b66d561ada6bf999c076bdce0d064399e904f8ad0fffd3fbb72be1ed7131b77a4a79f56643d22e2029e9005b7e0d80ffdf941b4df2fee375ee3e81 SHA512 738b2d6810f056c0c6b7828e3f14746e2ed64d7169e7959f9022857a451476637ebcf628b5f6b3d4ab86ce9834fe87bf8f8c92dcb3fdd80a703ff5ec93adfc77
|
||||||
DIST VirtualBox-5.2.8-121009-Linux_amd64.run 88493520 BLAKE2B 2986918bb2eda12447468fb642d3760d999d3af3e5595bf7260e94572f15a811655cd3f1348e1cf23a827011b1eebf84f07f13185f4eab3c353a957c58c105d4 SHA512 211f94910ef50a00b178482c0600be48ecddb48086846515b7705b111a36f81346efd4cbeb39255d85f3a0e778509e0dd7676e4c9bcbea49014988be8635910f
|
DIST VirtualBox-5.2.8-121009-Linux_amd64.run 88493520 BLAKE2B 2986918bb2eda12447468fb642d3760d999d3af3e5595bf7260e94572f15a811655cd3f1348e1cf23a827011b1eebf84f07f13185f4eab3c353a957c58c105d4 SHA512 211f94910ef50a00b178482c0600be48ecddb48086846515b7705b111a36f81346efd4cbeb39255d85f3a0e778509e0dd7676e4c9bcbea49014988be8635910f
|
||||||
DIST VirtualBox-5.2.8-121009-Linux_x86.run 87705037 BLAKE2B 8d6774d0be3a3e12cd258bb6799e6f3eb84a3cff670277c0b910671879014b513d1e2958ebf60f5aaa1ee4ef56be52cc0908b3cb5fa25fa78db77023fbbb3660 SHA512 ee75f64332a8d1df61b60a28661d7b7ef760c789dabca61b749f5cf33ffbe5ef09d64bde6da4255e659b1bf86d947eca8d18d697738e4de9f6b0b423ea647e9b
|
DIST VirtualBox-5.2.8-121009-Linux_x86.run 87705037 BLAKE2B 8d6774d0be3a3e12cd258bb6799e6f3eb84a3cff670277c0b910671879014b513d1e2958ebf60f5aaa1ee4ef56be52cc0908b3cb5fa25fa78db77023fbbb3660 SHA512 ee75f64332a8d1df61b60a28661d7b7ef760c789dabca61b749f5cf33ffbe5ef09d64bde6da4255e659b1bf86d947eca8d18d697738e4de9f6b0b423ea647e9b
|
||||||
DIST VirtualBoxSDK-5.1.32-120294.zip 9860157 BLAKE2B c9222bc865bdd70cc2ac516b27d1a1c91e0c05b04129a0c9793701ca8080c184ae2d8157bf687995c074aa03b8242e931164b03c5942e4d57589def16aa21b57 SHA512 aa2f0b647e177f95543c41beca64546a5d9b68f2081365ceb9a4494e500747de55fc71e899f31d65b96a9b5a1c8bfeaf8518ddb45791fb25e0ad992776c4c186
|
DIST VirtualBoxSDK-5.1.32-120294.zip 9860157 BLAKE2B c9222bc865bdd70cc2ac516b27d1a1c91e0c05b04129a0c9793701ca8080c184ae2d8157bf687995c074aa03b8242e931164b03c5942e4d57589def16aa21b57 SHA512 aa2f0b647e177f95543c41beca64546a5d9b68f2081365ceb9a4494e500747de55fc71e899f31d65b96a9b5a1c8bfeaf8518ddb45791fb25e0ad992776c4c186
|
||||||
DIST VirtualBoxSDK-5.1.34-121010.zip 9863604 BLAKE2B 63c7a28d509a910d4b63e7784a85a2cb125c6d5f6b6bf311c971235c706c4279266f40853f4c735ad41b483fd4febbf36bf9f07477e73675d39846b20e9105d7 SHA512 8a3931132e4eaffbcd82d64e9b34d6c2cce0c2971731b10af97f4e79e926baecd3ba3ead4b454512115e59c3f186d466ddbc9b13c83230f2b80743f5e0d0578c
|
DIST VirtualBoxSDK-5.1.34-121010.zip 9863604 BLAKE2B 63c7a28d509a910d4b63e7784a85a2cb125c6d5f6b6bf311c971235c706c4279266f40853f4c735ad41b483fd4febbf36bf9f07477e73675d39846b20e9105d7 SHA512 8a3931132e4eaffbcd82d64e9b34d6c2cce0c2971731b10af97f4e79e926baecd3ba3ead4b454512115e59c3f186d466ddbc9b13c83230f2b80743f5e0d0578c
|
||||||
DIST VirtualBoxSDK-5.2.6-120293.zip 10149320 BLAKE2B cc42df0d5e6a3f100fe5b205c6ab930f5537a9671c69ade26f60fe0922dd57ee2e82354e142acfcf08da3a5bd89ae796fa17a02b672185a7d7a78685df93f4b3 SHA512 73c50891df9094e4a894fe6a39026f2fc267f4cf6be9ce3130a8e20650ca7787c76cdf456c3d0035111ec3110d8300b5a9d15a4de3f2bdaa583980a4b83d5d6f
|
DIST VirtualBoxSDK-5.1.36-122089.zip 9864160 BLAKE2B 0db3d44c44f93a80607791f2ff5cbdf6aed2b324c207bb9bbc808b5cc836f01ade9c48ed3474c4f174a43b29969fe632b5ccd2b3ad0af197894d63887144bf0c SHA512 98f6e59a5e344bf23f6af6c0e791f28920940de907721981c99b66b8e7c20cb06a7e1211b2029a1279e583fb4ed456019005c2bf3a91b3d8b3fbd61e6e44c914
|
||||||
|
DIST VirtualBoxSDK-5.2.10-122088.zip 10152815 BLAKE2B af856ffaeca244b2bfd14ef89ca10b4d607386c77aad3e8e0ce7a40291f6a74dfd12f3b33671d07a151e4bc75bbb05699a9845a3ae5ca7c16f4e1d3c49edcf9d SHA512 0e153b7b05fdc4ce18cf4dc7c110b0b9f05536df17f92b61417af9b497cdec5c2ad3ecd341bbdc43969d811b28f12dcdaaecd72bc5c33842cc1fdde25376c725
|
||||||
DIST VirtualBoxSDK-5.2.8-121009.zip 10153749 BLAKE2B 0534f568f83d73f70f4192389e0f602bc4184d45a4a1aa82983692bf4e35fac0589eef21f5aa561c88c736aaa398986de0077dcdf3aa211df655788f5592b423 SHA512 386e38ee6e584ff8b0444b9285a67d259bb93f53d6e6b6e082cefd4121578da91ea56e2eb329b6848ff5476a14ad3055287b806cd25a21155aa6f708c58244a5
|
DIST VirtualBoxSDK-5.2.8-121009.zip 10153749 BLAKE2B 0534f568f83d73f70f4192389e0f602bc4184d45a4a1aa82983692bf4e35fac0589eef21f5aa561c88c736aaa398986de0077dcdf3aa211df655788f5592b423 SHA512 386e38ee6e584ff8b0444b9285a67d259bb93f53d6e6b6e082cefd4121578da91ea56e2eb329b6848ff5476a14ad3055287b806cd25a21155aa6f708c58244a5
|
||||||
|
@ -0,0 +1,287 @@
|
|||||||
|
# Copyright 1999-2018 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=5
|
||||||
|
|
||||||
|
PYTHON_COMPAT=( python2_7 )
|
||||||
|
|
||||||
|
inherit eutils xdg-utils gnome2 pax-utils python-r1 udev unpacker versionator
|
||||||
|
|
||||||
|
MAIN_PV="$(get_version_component_range 1-3)"
|
||||||
|
if [[ ${PV} = *_beta* ]] || [[ ${PV} = *_rc* ]] ; then
|
||||||
|
MY_PV="${MAIN_PV}_$(get_version_component_range 5)"
|
||||||
|
MY_PV="${MY_PV/beta/BETA}"
|
||||||
|
MY_PV="${MY_PV/rc/RC}"
|
||||||
|
else
|
||||||
|
MY_PV="${MAIN_PV}"
|
||||||
|
fi
|
||||||
|
VBOX_BUILD_ID="$(get_version_component_range 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 "${D}"/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 "${D}"/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 "${D}"/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 "${D}"${udevdir}/rules.d/10-virtualbox.rules || die
|
||||||
|
# move udev scripts into ${udevdir} (bug #372491)
|
||||||
|
mv "${D}"/opt/VirtualBox/VBoxCreateUSBNode.sh "${D}"${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.1.32-120294.tar.gz 19589163 BLAKE2B b35d9bb90216a77706fe5f0de624affaff4177d4b6e561f7c76003efd1a386a1f5b5f6b1c6b559cddde6ffb55ab5f7eba3e4c9b2135f31c09313b473ba6579e5 SHA512 c1e13fc59b9556f980bec02bb2860e717f752d42c3d810f70267e5c07898bb1aba9d3f3403fa5aa388478aa609397da49dcf10311836d68093101715a6ae200d
|
DIST Oracle_VM_VirtualBox_Extension_Pack-5.1.32-120294.tar.gz 19589163 BLAKE2B b35d9bb90216a77706fe5f0de624affaff4177d4b6e561f7c76003efd1a386a1f5b5f6b1c6b559cddde6ffb55ab5f7eba3e4c9b2135f31c09313b473ba6579e5 SHA512 c1e13fc59b9556f980bec02bb2860e717f752d42c3d810f70267e5c07898bb1aba9d3f3403fa5aa388478aa609397da49dcf10311836d68093101715a6ae200d
|
||||||
DIST Oracle_VM_VirtualBox_Extension_Pack-5.1.34-121010.tar.gz 19591849 BLAKE2B 573afe3624a3eace4272a067f472e32dbe344755814aefaa8d6685da0ff31e04faa7f6a22a58974938067fce3a0ea3d66a0c5d02db999105029cc7c5c8fea24b SHA512 4f05bc7abe989fbc0928aba259ad60b09f5b085859c0ddc3e24c052fdb4becb055795c8f0038fc4dd95be7b9954a3034afd499798bb58fe16522602cfe91e7fa
|
DIST Oracle_VM_VirtualBox_Extension_Pack-5.1.34-121010.tar.gz 19591849 BLAKE2B 573afe3624a3eace4272a067f472e32dbe344755814aefaa8d6685da0ff31e04faa7f6a22a58974938067fce3a0ea3d66a0c5d02db999105029cc7c5c8fea24b SHA512 4f05bc7abe989fbc0928aba259ad60b09f5b085859c0ddc3e24c052fdb4becb055795c8f0038fc4dd95be7b9954a3034afd499798bb58fe16522602cfe91e7fa
|
||||||
DIST Oracle_VM_VirtualBox_Extension_Pack-5.2.6-120293.tar.gz 19468503 BLAKE2B 5e1e490352fb06ceee868171583e50f8ca634a53799237cd1a3632566b6ca14d526e714156ccbeae48bf01aa4372a89d8926601cf5c1d8d34127d2d1e6a53edb SHA512 f81715b5e89ae21080d9a1b23cfd9be30bc35b32963c1b710262c1ee88bedc405dd9d2ff96761b8725716bd98625eea58fc076de6d42a4728078ebe303e195af
|
DIST Oracle_VM_VirtualBox_Extension_Pack-5.1.36-122089.tar.gz 19605234 BLAKE2B 4b263b27b130e5b5d7917f15f0dc782f28f7708cc10e22028ee27b33be6541df5211c4fb36951a6b293d19b8933182097cd0575da8c1d00b6a96e747c1962762 SHA512 e11b294da83b4605c40132f2ea5f95f2820f901d2ed1d438c22c4cc9f779baa3112b9334036717d1593d5f9ec8374d7d7bc826012e2019ef0ba79bacb1deb7b8
|
||||||
|
DIST Oracle_VM_VirtualBox_Extension_Pack-5.2.10-122088.tar.gz 19482093 BLAKE2B ca02e9226b774340ecd31688f296304d7c963f20177d523058a1a2997cc287c59fc6e4df8bcc5024ec55cc7b79b1319f61bc9f3697cdb9c4c36423a77221cb82 SHA512 90e9d1c0235d14df9a305fa48102528b839c266abe18f97dcb945729cb9a0136cbf0686b69b82fcc76508cf7674c5b5dcb6563319af9ca0c294218802eaa9173
|
||||||
DIST Oracle_VM_VirtualBox_Extension_Pack-5.2.8-121009.tar.gz 19469421 BLAKE2B 81651876802ad767339f3984a26375118f01e4b99b4247398e0cea8d749905431b40945f8a72d0c7802b2743080f01d3044aafd21600c4927773994c5a114a1f SHA512 2b69e2acab91ce95e9807006c79862fc0d1d10fdd269bd9cdf8f11b6704821823b103c7a4a76ad99c10e0868bd397ffe0e72b2eb2aa4fc2bd81ff968c71c2280
|
DIST Oracle_VM_VirtualBox_Extension_Pack-5.2.8-121009.tar.gz 19469421 BLAKE2B 81651876802ad767339f3984a26375118f01e4b99b4247398e0cea8d749905431b40945f8a72d0c7802b2743080f01d3044aafd21600c4927773994c5a114a1f SHA512 2b69e2acab91ce95e9807006c79862fc0d1d10fdd269bd9cdf8f11b6704821823b103c7a4a76ad99c10e0868bd397ffe0e72b2eb2aa4fc2bd81ff968c71c2280
|
||||||
|
@ -0,0 +1,42 @@
|
|||||||
|
# Copyright 1999-2018 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=6
|
||||||
|
|
||||||
|
inherit eutils multilib versionator
|
||||||
|
|
||||||
|
MAIN_PV="$(get_version_component_range 1-3)"
|
||||||
|
if [[ ${PV} = *_beta* ]] || [[ ${PV} = *_rc* ]] ; then
|
||||||
|
MY_PV="${MAIN_PV}_$(get_version_component_range 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="$(get_version_component_range 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,6 +1,7 @@
|
|||||||
DIST VirtualBox-5.1.32.tar.bz2 117268301 BLAKE2B 336df054e3407d7e701d6719258cfcba9beec1439cbe94f137570cfcbdea02df3e34374ac36d3b4387c47ebafd17a0f05c2fb710eb4f140d8200117b505aba98 SHA512 052ac1672515a36c4138e2d52672a466d4c768f219f52eefe98e747a292ebebe04e7de35547eae6803654be5dc937b8e6f4d358a65fd4f49a8333eac8862d138
|
DIST VirtualBox-5.1.32.tar.bz2 117268301 BLAKE2B 336df054e3407d7e701d6719258cfcba9beec1439cbe94f137570cfcbdea02df3e34374ac36d3b4387c47ebafd17a0f05c2fb710eb4f140d8200117b505aba98 SHA512 052ac1672515a36c4138e2d52672a466d4c768f219f52eefe98e747a292ebebe04e7de35547eae6803654be5dc937b8e6f4d358a65fd4f49a8333eac8862d138
|
||||||
DIST VirtualBox-5.1.34.tar.bz2 117291269 BLAKE2B 0eb9b3f778f2d677ac3635fa59dfa6861d0fec3c0331582e5961b78ab55b5ab26bbf286de05a3e87e8a64e2b54861613a8d2c93f70736a07c551dca834786abd SHA512 0f828e58d68678a0a94a39c12313425105f9255ca207d40dd04065d0072857cdc4fc886f944b852c3fb63fed04d70a3449aecd2aab9e27af7f13b506143a4b6f
|
DIST VirtualBox-5.1.34.tar.bz2 117291269 BLAKE2B 0eb9b3f778f2d677ac3635fa59dfa6861d0fec3c0331582e5961b78ab55b5ab26bbf286de05a3e87e8a64e2b54861613a8d2c93f70736a07c551dca834786abd SHA512 0f828e58d68678a0a94a39c12313425105f9255ca207d40dd04065d0072857cdc4fc886f944b852c3fb63fed04d70a3449aecd2aab9e27af7f13b506143a4b6f
|
||||||
DIST VirtualBox-5.2.6.tar.bz2 118530572 BLAKE2B 19d32a9252e9594a4c09828bc2bc739c46daf409745c01f764fb54bc17faa667081a27534ac11666cbf1b417057cb99a416faa42e3986ce4d2c08378e7e7240c SHA512 ed6f801c055e9b8e152118a1ebfecdc15c310fac2b007ea3cd4a404d17cbbbc83782a3baa76b979c72b9399616844291576846d820f8aefb7c4b4ec2eaf36482
|
DIST VirtualBox-5.1.36.tar.bz2 117244376 BLAKE2B 141048f4fcbb3ce63d236a4127b4bce377e87876c23dc3ff6437b2c0cca5b468bc6a5737899b308bc1ff3252d4e61f7d053ff7574c33c85b56fdd986c31f2af3 SHA512 d1a9322c97c68cc9c21247c3df8ce2084911aded66a63adf5510f9e0f4558b1304dfe924a0c44243adc1ae8f7c45c47782e882baac1bfe995ea6c0a1370fcbd1
|
||||||
|
DIST VirtualBox-5.2.10.tar.bz2 118575607 BLAKE2B 46360d63cf6d1b8744016cbb2c1eee1d57ebafc45f8b32782c7216fc547f24af4c7205b4e7c34d24cd7faf7e8ce4ea8373ad4a310040a6ef9b043a8ce2300f94 SHA512 1e6d5e5c6ce45d9a3864860819f6301c192c83be154c674cfb37c98506db88a8f70526ec05d115c53e40c4c91d243513f0a3196261c7dee244a18091b2e5717e
|
||||||
DIST VirtualBox-5.2.8.tar.bz2 118500065 BLAKE2B 64d0cc0f928d224332f59e7966ee1bed8adcf097d27c577b6ecea5cbf203e170e38acca9f2371d6d7aa11f63b73e705b43a0516ccbe5993171f928406b8a3876 SHA512 49a3bd1c60d2c4cbd3799ece5fbfe15d9b6a00c5af9692478a1365a8eb4975228410e17dba24a388c0cf5387cb79fb7492feb4e6b2f531bc17322c3d61de7887
|
DIST VirtualBox-5.2.8.tar.bz2 118500065 BLAKE2B 64d0cc0f928d224332f59e7966ee1bed8adcf097d27c577b6ecea5cbf203e170e38acca9f2371d6d7aa11f63b73e705b43a0516ccbe5993171f928406b8a3876 SHA512 49a3bd1c60d2c4cbd3799ece5fbfe15d9b6a00c5af9692478a1365a8eb4975228410e17dba24a388c0cf5387cb79fb7492feb4e6b2f531bc17322c3d61de7887
|
||||||
DIST virtualbox-5.1.30-patches-02.tar.xz 2608 BLAKE2B 08b05a26622a7acec455f6d0dc72858f5f2758488e50d219f83c3d12606419d48e9d99302cde5a275929fe79af900c1b3ea3957fe9dfdaa952aaa0da9933291a SHA512 8a490f7cc44e40262fc47819736251c177adb635256794e9500f52729197c85211d5b0c0d000268089953a4c185872a8ba03c5d42df6b80f05eac8b81335320a
|
DIST virtualbox-5.1.30-patches-02.tar.xz 2608 BLAKE2B 08b05a26622a7acec455f6d0dc72858f5f2758488e50d219f83c3d12606419d48e9d99302cde5a275929fe79af900c1b3ea3957fe9dfdaa952aaa0da9933291a SHA512 8a490f7cc44e40262fc47819736251c177adb635256794e9500f52729197c85211d5b0c0d000268089953a4c185872a8ba03c5d42df6b80f05eac8b81335320a
|
||||||
DIST virtualbox-5.1.32-patches-01.tar.xz 2464 BLAKE2B 28f461634ac7f200b74d961e56f56aea486445bdb8d1490000bd34393b4873ee058d1dc9db6c32084921bd7d51a92be1e38b1b098385f443f41b9231c1489829 SHA512 08782c8eecc0cbb370f21fb3951af449ed1c8174a7184210de376a7d4ca5d64b14b2619d121aacef1c85982c8b485e545e260d3c0fc1f95769093efa23cd2cd2
|
DIST virtualbox-5.1.32-patches-01.tar.xz 2464 BLAKE2B 28f461634ac7f200b74d961e56f56aea486445bdb8d1490000bd34393b4873ee058d1dc9db6c32084921bd7d51a92be1e38b1b098385f443f41b9231c1489829 SHA512 08782c8eecc0cbb370f21fb3951af449ed1c8174a7184210de376a7d4ca5d64b14b2619d121aacef1c85982c8b485e545e260d3c0fc1f95769093efa23cd2cd2
|
||||||
|
@ -0,0 +1,221 @@
|
|||||||
|
# Copyright 1999-2018 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=6
|
||||||
|
|
||||||
|
inherit eutils 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.1.32-patches-01.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
|
||||||
|
x11-proto/glproto )
|
||||||
|
sys-apps/dbus
|
||||||
|
!!x11-drivers/xf86-input-virtualbox"
|
||||||
|
DEPEND="${RDEPEND}
|
||||||
|
>=dev-util/kbuild-0.1.9998_pre20131130
|
||||||
|
>=dev-lang/yasm-0.6.2
|
||||||
|
sys-devel/bin86
|
||||||
|
sys-libs/pam
|
||||||
|
sys-power/iasl
|
||||||
|
X? ( x11-proto/renderproto )
|
||||||
|
!X? ( x11-proto/xproto )"
|
||||||
|
PDEPEND="X? ( ~x11-drivers/xf86-video-virtualbox-${PV} )"
|
||||||
|
|
||||||
|
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=${KV_OUT_DIR} KERNOUT=${KV_OUT_DIR}"
|
||||||
|
enewgroup vboxguest
|
||||||
|
enewuser vboxguest -1 /bin/sh /dev/null vboxguest
|
||||||
|
# automount Error: VBoxServiceAutoMountWorker: Group "vboxsf" does not exist
|
||||||
|
enewgroup vboxsf
|
||||||
|
}
|
||||||
|
|
||||||
|
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 "${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...
|
||||||
|
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
|
||||||
|
|
||||||
|
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"' \
|
||||||
|
>> "${D}/${udev_rules_dir}/60-virtualbox-guest-additions.rules" \
|
||||||
|
|| die
|
||||||
|
echo 'KERNEL=="vboxuser", OWNER="vboxguest", GROUP="vboxguest", MODE="0660"' \
|
||||||
|
>> "${D}/${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_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.1.32.tar.xz 626600 BLAKE2B eb3243d62d1a22f41f5ea2307b13a3f5ce17a19edcecb0340f94d34995e557b016195443a53edc9d68a313d064008e5af04c7fff28540ec513c6e9a5955e02e0 SHA512 10ead68e53ae6bd72e39b31d536fc36e0999fe506a6d7fd6a6f9e462d539213ad65deb56e2b926baa5cc4b16fb4071d89e105889e873fda0e4a1f20387a7cd39
|
DIST vbox-kernel-module-src-5.1.32.tar.xz 626600 BLAKE2B eb3243d62d1a22f41f5ea2307b13a3f5ce17a19edcecb0340f94d34995e557b016195443a53edc9d68a313d064008e5af04c7fff28540ec513c6e9a5955e02e0 SHA512 10ead68e53ae6bd72e39b31d536fc36e0999fe506a6d7fd6a6f9e462d539213ad65deb56e2b926baa5cc4b16fb4071d89e105889e873fda0e4a1f20387a7cd39
|
||||||
DIST vbox-kernel-module-src-5.1.34.tar.xz 627576 BLAKE2B c1bd2af511824e5a74c3b85b73b7bc1664dd3651db3c17bbcba06b5ef8d9ba11c1a5c92bf28f443fb17aee1d057310f20a62c1a4608ce84eb087de61cbe67c25 SHA512 6176036a22d316e15c6560c124cfce9e93c6508a78e189bbe8e431ccf006b74d5f34ea747c9ca307bbd90e0c6fa414056ae0b56a5aa8124c2263de3d0dbf97d1
|
DIST vbox-kernel-module-src-5.1.34.tar.xz 627576 BLAKE2B c1bd2af511824e5a74c3b85b73b7bc1664dd3651db3c17bbcba06b5ef8d9ba11c1a5c92bf28f443fb17aee1d057310f20a62c1a4608ce84eb087de61cbe67c25 SHA512 6176036a22d316e15c6560c124cfce9e93c6508a78e189bbe8e431ccf006b74d5f34ea747c9ca307bbd90e0c6fa414056ae0b56a5aa8124c2263de3d0dbf97d1
|
||||||
DIST vbox-kernel-module-src-5.2.6.tar.xz 635096 BLAKE2B 8c168b9e1d3de395ef663ca81edf63939cb7670f769995c20f9d4cb4f87194b22812707bfd62d52dd85e19de2562c27c182aad22f40928358cf07a0c5ac15d79 SHA512 c85f94e08357a11574af306b00e71c445b80ef6dea6c47d9cf1003c0d9f36d265ebadd2ae27b3dd96f41cc544e501d3eb0551559bebf25d35b9861a282f489bc
|
DIST vbox-kernel-module-src-5.1.36.tar.xz 628368 BLAKE2B 49a3dfc4ff573f793eefcfd9b645af6fa6fc63b54475921064be146d3d4bf4db61f48d82f62d65811597fa12b88331153f7491890527fde76f41426355552abb SHA512 c69739c72a5555fc3bca90186129fa4eeb5bd930c4396b416a8a88e6f84bcd9e7498a9bbc9381da648cf87d601d98249feac2e4de6d93d8b7aba46b22d3ec40f
|
||||||
|
DIST vbox-kernel-module-src-5.2.10.tar.xz 637080 BLAKE2B 303fd6191247df0560f161b12665b95f372de1a18755b937f7af8fecab6669337ccaf22f635219080953795cb9bc4c80bc21a8273e28b5cf8ba3ba9cf930e2cd SHA512 56e837f19a63856dbd57379dd78bf46b90ddeb3a60df9d18a46a6480c7021040b7674599fd0b48a9c3db241756539bfaa88becf6e42acf8725e2bc89e3879773
|
||||||
DIST vbox-kernel-module-src-5.2.8.tar.xz 636172 BLAKE2B 0a0be16ee830dbf60e9bd8e0aa977ad020374d65c4ea19689bd20f7399da87633ac9ef57e2297963937e4d5eb82173a50beacd8ddd1b54943fe8d24fe723e3f4 SHA512 8875048d827ebbedec37864e219033305a228903b01d7ca22b371b02de9b23099d3bc76ddef4887b633f1215e73daa5db6e35c8d2e21f90200f439b15792d05f
|
DIST vbox-kernel-module-src-5.2.8.tar.xz 636172 BLAKE2B 0a0be16ee830dbf60e9bd8e0aa977ad020374d65c4ea19689bd20f7399da87633ac9ef57e2297963937e4d5eb82173a50beacd8ddd1b54943fe8d24fe723e3f4 SHA512 8875048d827ebbedec37864e219033305a228903b01d7ca22b371b02de9b23099d3bc76ddef4887b633f1215e73daa5db6e35c8d2e21f90200f439b15792d05f
|
||||||
|
@ -0,0 +1,65 @@
|
|||||||
|
# Copyright 1999-2018 Gentoo Foundation
|
||||||
|
# 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=6
|
||||||
|
|
||||||
|
inherit eutils 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
|
||||||
|
|
||||||
|
CONFIG_CHECK="!TRIM_UNUSED_KSYMS"
|
||||||
|
ERROR_TRIM_UNUSED_KSYMS="The kernel option CONFIG_TRIM_UNUSED_KSYMS removed kernel symbols that are needed by ${PN} to load correctly."
|
||||||
|
|
||||||
|
linux-mod_pkg_setup
|
||||||
|
|
||||||
|
BUILD_PARAMS="KERN_DIR=${KV_DIR} O=${KV_OUT_DIR} V=1 KBUILD_VERBOSE=1"
|
||||||
|
}
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
if kernel_is -ge 2 6 33 ; then
|
||||||
|
# evil patch for new kernels - header moved
|
||||||
|
grep -lR linux/autoconf.h * | xargs sed -i -e 's:<linux/autoconf.h>:<generated/autoconf.h>:'
|
||||||
|
fi
|
||||||
|
|
||||||
|
if use pax_kernel && kernel_is -ge 3 0 0 ; then
|
||||||
|
eapply "${FILESDIR}"/${PN}-4.1.4-pax-const.patch
|
||||||
|
fi
|
||||||
|
|
||||||
|
if kernel_is -ge 4 14 0 ; then
|
||||||
|
eapply "${FILESDIR}"/${PN}-5.1.30-udp.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,6 +1,7 @@
|
|||||||
DIST VirtualBox-5.1.32.tar.bz2 117268301 BLAKE2B 336df054e3407d7e701d6719258cfcba9beec1439cbe94f137570cfcbdea02df3e34374ac36d3b4387c47ebafd17a0f05c2fb710eb4f140d8200117b505aba98 SHA512 052ac1672515a36c4138e2d52672a466d4c768f219f52eefe98e747a292ebebe04e7de35547eae6803654be5dc937b8e6f4d358a65fd4f49a8333eac8862d138
|
DIST VirtualBox-5.1.32.tar.bz2 117268301 BLAKE2B 336df054e3407d7e701d6719258cfcba9beec1439cbe94f137570cfcbdea02df3e34374ac36d3b4387c47ebafd17a0f05c2fb710eb4f140d8200117b505aba98 SHA512 052ac1672515a36c4138e2d52672a466d4c768f219f52eefe98e747a292ebebe04e7de35547eae6803654be5dc937b8e6f4d358a65fd4f49a8333eac8862d138
|
||||||
DIST VirtualBox-5.1.34.tar.bz2 117291269 BLAKE2B 0eb9b3f778f2d677ac3635fa59dfa6861d0fec3c0331582e5961b78ab55b5ab26bbf286de05a3e87e8a64e2b54861613a8d2c93f70736a07c551dca834786abd SHA512 0f828e58d68678a0a94a39c12313425105f9255ca207d40dd04065d0072857cdc4fc886f944b852c3fb63fed04d70a3449aecd2aab9e27af7f13b506143a4b6f
|
DIST VirtualBox-5.1.34.tar.bz2 117291269 BLAKE2B 0eb9b3f778f2d677ac3635fa59dfa6861d0fec3c0331582e5961b78ab55b5ab26bbf286de05a3e87e8a64e2b54861613a8d2c93f70736a07c551dca834786abd SHA512 0f828e58d68678a0a94a39c12313425105f9255ca207d40dd04065d0072857cdc4fc886f944b852c3fb63fed04d70a3449aecd2aab9e27af7f13b506143a4b6f
|
||||||
DIST VirtualBox-5.2.6.tar.bz2 118530572 BLAKE2B 19d32a9252e9594a4c09828bc2bc739c46daf409745c01f764fb54bc17faa667081a27534ac11666cbf1b417057cb99a416faa42e3986ce4d2c08378e7e7240c SHA512 ed6f801c055e9b8e152118a1ebfecdc15c310fac2b007ea3cd4a404d17cbbbc83782a3baa76b979c72b9399616844291576846d820f8aefb7c4b4ec2eaf36482
|
DIST VirtualBox-5.1.36.tar.bz2 117244376 BLAKE2B 141048f4fcbb3ce63d236a4127b4bce377e87876c23dc3ff6437b2c0cca5b468bc6a5737899b308bc1ff3252d4e61f7d053ff7574c33c85b56fdd986c31f2af3 SHA512 d1a9322c97c68cc9c21247c3df8ce2084911aded66a63adf5510f9e0f4558b1304dfe924a0c44243adc1ae8f7c45c47782e882baac1bfe995ea6c0a1370fcbd1
|
||||||
|
DIST VirtualBox-5.2.10.tar.bz2 118575607 BLAKE2B 46360d63cf6d1b8744016cbb2c1eee1d57ebafc45f8b32782c7216fc547f24af4c7205b4e7c34d24cd7faf7e8ce4ea8373ad4a310040a6ef9b043a8ce2300f94 SHA512 1e6d5e5c6ce45d9a3864860819f6301c192c83be154c674cfb37c98506db88a8f70526ec05d115c53e40c4c91d243513f0a3196261c7dee244a18091b2e5717e
|
||||||
DIST VirtualBox-5.2.8.tar.bz2 118500065 BLAKE2B 64d0cc0f928d224332f59e7966ee1bed8adcf097d27c577b6ecea5cbf203e170e38acca9f2371d6d7aa11f63b73e705b43a0516ccbe5993171f928406b8a3876 SHA512 49a3bd1c60d2c4cbd3799ece5fbfe15d9b6a00c5af9692478a1365a8eb4975228410e17dba24a388c0cf5387cb79fb7492feb4e6b2f531bc17322c3d61de7887
|
DIST VirtualBox-5.2.8.tar.bz2 118500065 BLAKE2B 64d0cc0f928d224332f59e7966ee1bed8adcf097d27c577b6ecea5cbf203e170e38acca9f2371d6d7aa11f63b73e705b43a0516ccbe5993171f928406b8a3876 SHA512 49a3bd1c60d2c4cbd3799ece5fbfe15d9b6a00c5af9692478a1365a8eb4975228410e17dba24a388c0cf5387cb79fb7492feb4e6b2f531bc17322c3d61de7887
|
||||||
DIST virtualbox-5.1.32-patches-01.tar.xz 2464 BLAKE2B 28f461634ac7f200b74d961e56f56aea486445bdb8d1490000bd34393b4873ee058d1dc9db6c32084921bd7d51a92be1e38b1b098385f443f41b9231c1489829 SHA512 08782c8eecc0cbb370f21fb3951af449ed1c8174a7184210de376a7d4ca5d64b14b2619d121aacef1c85982c8b485e545e260d3c0fc1f95769093efa23cd2cd2
|
DIST virtualbox-5.1.32-patches-01.tar.xz 2464 BLAKE2B 28f461634ac7f200b74d961e56f56aea486445bdb8d1490000bd34393b4873ee058d1dc9db6c32084921bd7d51a92be1e38b1b098385f443f41b9231c1489829 SHA512 08782c8eecc0cbb370f21fb3951af449ed1c8174a7184210de376a7d4ca5d64b14b2619d121aacef1c85982c8b485e545e260d3c0fc1f95769093efa23cd2cd2
|
||||||
DIST virtualbox-5.2.0-patches-01.tar.xz 2460 BLAKE2B d3f973dc7ee0557c360f801c3bf84065a7e7bc9960984398b8f86d71fab32c59774e970c6cf873be07bcb9666af168570e8a78705a5999b1fc5d863dbbc6e538 SHA512 b91278dd81a50e412f5a281c72949f591a1c53303080549b74b28763cab9e3948948afb0256e0453d17736683cca3372a8e9c6d63f02f3eff3ef92c2a1ea332b
|
DIST virtualbox-5.2.0-patches-01.tar.xz 2460 BLAKE2B d3f973dc7ee0557c360f801c3bf84065a7e7bc9960984398b8f86d71fab32c59774e970c6cf873be07bcb9666af168570e8a78705a5999b1fc5d863dbbc6e538 SHA512 b91278dd81a50e412f5a281c72949f591a1c53303080549b74b28763cab9e3948948afb0256e0453d17736683cca3372a8e9c6d63f02f3eff3ef92c2a1ea332b
|
||||||
|
@ -0,0 +1,468 @@
|
|||||||
|
# Copyright 1999-2018 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=6
|
||||||
|
|
||||||
|
PYTHON_COMPAT=( python2_7 )
|
||||||
|
inherit flag-o-matic java-pkg-opt-2 linux-info multilib 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.0-patches-01.tar.xz"
|
||||||
|
|
||||||
|
LICENSE="GPL-2"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
IUSE="alsa debug doc headless java libressl lvm 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/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 )
|
||||||
|
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_setup() {
|
||||||
|
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
|
||||||
|
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
|
||||||
|
|
||||||
|
# Don't use "echo -n"
|
||||||
|
sed 's@ECHO_N="echo -n"@ECHO_N="printf"@' -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
|
||||||
|
|
||||||
|
eapply "${WORKDIR}/patches"
|
||||||
|
|
||||||
|
eapply_user
|
||||||
|
}
|
||||||
|
|
||||||
|
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 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
|
||||||
|
./configure ${myconf[@]} || die "configure failed"
|
||||||
|
}
|
||||||
|
|
||||||
|
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 "${D}"/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 "${D}"${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 "${D}"${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 "${D}"${vbox_inst_path}/VirtualBox
|
||||||
|
|
||||||
|
if use opengl ; then
|
||||||
|
vbox_inst VBoxTestOGL
|
||||||
|
pax-mark -m "${D}"${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
|
||||||
|
|
||||||
|
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 "${D}${vbox_inst_path}/sdk/bindings/xpcom/java/vboxjxpcom.jar"
|
||||||
|
java-pkg_regso "${D}${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() {
|
||||||
|
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() {
|
||||||
|
xdg_desktop_database_update
|
||||||
|
}
|
Binary file not shown.
@ -1 +0,0 @@
|
|||||||
DIST lphdisk-0.9.1.tar.bz2 26343 BLAKE2B 4e75da917ff733d5f5dae188b301373bbed8f7772a48d0cfd6fa006987531c8124bcce8752216a49018c6a6db081b78d870d3588219c05435a6db9d9da861f76 SHA512 28bd93acd854e79009722e83f063c3704333ae97d7fadff194101f24bd9fdc81c98464a3c0e7bbaf6097a56bed19fc7798e108ec7872cc85f3e327fbfb942521
|
|
@ -1,252 +0,0 @@
|
|||||||
diff -ur lphdisk-0.9.1.orig/lphdisk.c lphdisk-0.9.1/lphdisk.c
|
|
||||||
--- lphdisk-0.9.1.orig/lphdisk.c 2002-02-12 13:04:27.000000000 +0200
|
|
||||||
+++ lphdisk-0.9.1/lphdisk.c 2008-12-08 12:21:29.000000000 +0200
|
|
||||||
@@ -19,8 +19,10 @@
|
|
||||||
Be careful!
|
|
||||||
*/
|
|
||||||
|
|
||||||
+#define _LARGEFILE64_SOURCE
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <stdlib.h>
|
|
||||||
+#include <sys/types.h>
|
|
||||||
#include <unistd.h>
|
|
||||||
#include <string.h>
|
|
||||||
#include <stdarg.h>
|
|
||||||
@@ -29,8 +31,8 @@
|
|
||||||
#include <fcntl.h>
|
|
||||||
#include <sys/stat.h>
|
|
||||||
#include <sys/io.h>
|
|
||||||
-#include "lrmi.h"
|
|
||||||
-#include "vbe.h"
|
|
||||||
+#include <lrmi.h>
|
|
||||||
+#include <vbe.h>
|
|
||||||
|
|
||||||
/* General Program Defines: */
|
|
||||||
|
|
||||||
@@ -100,58 +102,6 @@
|
|
||||||
/* General Purpose Utility Routines */
|
|
||||||
/*****************************************************************************/
|
|
||||||
|
|
||||||
-/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
|
||||||
-/* The following is a hack to take advantage of the ext2 "_llseek" system */
|
|
||||||
-/* call to do seeks to "long long" offsets under linux (this is needed to */
|
|
||||||
-/* seek to sectors beyond 4194303 (2GB)). This isn't directly supported by */
|
|
||||||
-/* glibc, so we need to make our own interface function for it. We should */
|
|
||||||
-/* be able to get the _NR__llseek define from linux/unistd.h. From this we */
|
|
||||||
-/* can construct a wrapper to perform the right system call. */
|
|
||||||
-
|
|
||||||
-#include <linux/unistd.h> /* for __NR__llseek */
|
|
||||||
-
|
|
||||||
-typedef long long lloff_t;
|
|
||||||
-
|
|
||||||
-#ifdef __NR__llseek
|
|
||||||
-
|
|
||||||
-static _syscall5(int,_llseek, unsigned int,fd, unsigned long,offset_high,
|
|
||||||
- unsigned long,offset_low, lloff_t *,result,
|
|
||||||
- unsigned int,origin)
|
|
||||||
-
|
|
||||||
-lloff_t llseek (unsigned int fd, lloff_t offset, unsigned int origin) {
|
|
||||||
- lloff_t result;
|
|
||||||
- int retval;
|
|
||||||
-
|
|
||||||
- retval = _llseek (fd, ((unsigned long long) offset) >> 32,
|
|
||||||
- ((unsigned long long) offset) & 0xffffffff,
|
|
||||||
- &result, origin);
|
|
||||||
- return (retval == -1 ? (lloff_t) retval : result);
|
|
||||||
-}
|
|
||||||
-
|
|
||||||
-#else /* __NR__llseek */
|
|
||||||
-
|
|
||||||
-/* Somehow, __NR__llseek wasn't in linux/unistd.h. This shouldn't ever */
|
|
||||||
-/* happen, but better safe than sorry.. The best we can do is emulate it */
|
|
||||||
-/* with lseek, and hope we don't get an offset that's too large (throw an */
|
|
||||||
-/* error if we do) */
|
|
||||||
-
|
|
||||||
-lloff_t llseek (unsigned int fd, lloff_t offset, unsigned int origin) {
|
|
||||||
- off_t offt_offset = (off_t) offset;
|
|
||||||
-
|
|
||||||
- if ((lloff_t)offt_offset != offset) {
|
|
||||||
- /* converting to off_t and back yields different result, indicating an */
|
|
||||||
- /* overflow.. */
|
|
||||||
- errno = EINVAL;
|
|
||||||
- return -1;
|
|
||||||
- } else {
|
|
||||||
- return lseek(fd, offt_offset, origin);
|
|
||||||
- }
|
|
||||||
-}
|
|
||||||
-
|
|
||||||
-#endif /* __NR__llseek */
|
|
||||||
-
|
|
||||||
-/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
|
||||||
-
|
|
||||||
#define get16(p) get_int_le(p,2)
|
|
||||||
#define get32(p) get_int_le(p,4)
|
|
||||||
|
|
||||||
@@ -189,9 +139,9 @@
|
|
||||||
/* success, nonzero on error. */
|
|
||||||
|
|
||||||
int seek_sector (int fd, size_t secno) {
|
|
||||||
- lloff_t offset = (lloff_t) secno * SECTOR_SIZE;
|
|
||||||
+ off64_t offset = (off64_t) secno * SECTOR_SIZE;
|
|
||||||
|
|
||||||
- if (llseek(fd, offset, SEEK_SET) == (lloff_t) -1)
|
|
||||||
+ if (lseek64(fd, offset, SEEK_SET) == (off64_t) -1)
|
|
||||||
return -1;
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
@@ -556,25 +506,29 @@
|
|
||||||
|
|
||||||
int meminfo_physmem(void) {
|
|
||||||
FILE *f;
|
|
||||||
- unsigned int size;
|
|
||||||
+ unsigned int size = 0;
|
|
||||||
int ramsize;
|
|
||||||
+ char s[128];
|
|
||||||
|
|
||||||
if (!(f = fopen(meminfo_filename, "r"))) {
|
|
||||||
debug("Unable to open %s: %s\n", meminfo_filename, strerror(errno));
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
- fscanf(f, "%*[^\n]\n"); /* Read the header line and discard it */
|
|
||||||
|
|
||||||
- if (fscanf(f, "Mem: %u", &size) != 1) {
|
|
||||||
+ while (fgets(s, sizeof(s), f)) {
|
|
||||||
+ if (sscanf(s, "MemTotal: %u", &size) == 1) {
|
|
||||||
+ break;
|
|
||||||
+ }
|
|
||||||
+ }
|
|
||||||
+ if (size == 0) {
|
|
||||||
debug("Parse of %s failed.\n", meminfo_filename);
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
fclose(f);
|
|
||||||
|
|
||||||
- /* convert to KB and then round up to the next power of 2 (since RAM */
|
|
||||||
+ /* size is in KB and then round up to the next power of 2 (since RAM */
|
|
||||||
/* sizes don't come in anything else, so this should correct for the */
|
|
||||||
/* kernel size, etc) */
|
|
||||||
- size >>= 10;
|
|
||||||
debug("%s reports memory size of %d KB", meminfo_filename, size);
|
|
||||||
for (ramsize = 1; size; size >>= 1) ramsize <<= 1;
|
|
||||||
|
|
||||||
@@ -718,22 +672,22 @@
|
|
||||||
{"force", 0, 0, 'f'},
|
|
||||||
{0,0,0,0}};
|
|
||||||
|
|
||||||
-const char usage_string[] = "\
|
|
||||||
-Usage: %1$s [options] [device]
|
|
||||||
-Prepare a hibernation partition for APM suspend-to-disk.
|
|
||||||
-
|
|
||||||
-options:
|
|
||||||
- -h, --help Display brief usage and option information (this screen)
|
|
||||||
- -p, --probeonly Only calculate and display required size, do not format
|
|
||||||
- -q, --quiet Turn off informational messages, useful for scripts
|
|
||||||
- -d, --debug Turn on (verbose) debugging messages
|
|
||||||
- -n, --nowrite Do not actually write to the disk
|
|
||||||
- -f, --force **DANGEROUS** Format without regard to potential problems
|
|
||||||
-
|
|
||||||
-'device' should be a raw disk device (not a partition). The default device
|
|
||||||
-is /dev/hda.
|
|
||||||
-
|
|
||||||
-(%2$s)\n\n";
|
|
||||||
+const char usage_string[] = ""
|
|
||||||
+"Usage: %1$s [options] [device]\n"
|
|
||||||
+"Prepare a hibernation partition for APM suspend-to-disk.\n"
|
|
||||||
+"\n"
|
|
||||||
+"options:\n"
|
|
||||||
+" -h, --help Display brief usage and option information (this screen)\n"
|
|
||||||
+" -p, --probeonly Only calculate and display required size, do not format\n"
|
|
||||||
+" -q, --quiet Turn off informational messages, useful for scripts\n"
|
|
||||||
+" -d, --debug Turn on (verbose) debugging messages\n"
|
|
||||||
+" -n, --nowrite Do not actually write to the disk\n"
|
|
||||||
+" -f, --force **DANGEROUS** Format without regard to potential problems\n"
|
|
||||||
+"\n"
|
|
||||||
+"'device' should be a raw disk device (not a partition). The default device\n"
|
|
||||||
+"is /dev/hda.\n"
|
|
||||||
+"\n"
|
|
||||||
+"(%2$s)\n\n";
|
|
||||||
|
|
||||||
void print_usage (void) {
|
|
||||||
char *progname = rindex(argv0, '/');
|
|
||||||
@@ -750,7 +704,7 @@
|
|
||||||
dev_t dev;
|
|
||||||
int partition;
|
|
||||||
int ramsize, vramsize, required_size;
|
|
||||||
- size_t required_sectors;
|
|
||||||
+ size_t required_sectors = 0;
|
|
||||||
|
|
||||||
argv0 = argv[0];
|
|
||||||
|
|
||||||
@@ -821,9 +775,9 @@
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!required_size) {
|
|
||||||
- if (!quiet_flag) printf("Reccomended partition size is unknown.\n");
|
|
||||||
+ if (!quiet_flag) printf("Recommended partition size is unknown.\n");
|
|
||||||
} else {
|
|
||||||
- if (!quiet_flag) printf("Reccomended partition size is %d MB"
|
|
||||||
+ if (!quiet_flag) printf("Recommended partition size is %d MB"
|
|
||||||
" (%d sectors)\n", ((required_size+1023) >> 10),
|
|
||||||
required_sectors);
|
|
||||||
}
|
|
||||||
@@ -923,7 +877,7 @@
|
|
||||||
|
|
||||||
if ((pi[partition-1].size < required_sectors) && !quiet_flag) {
|
|
||||||
fprintf(stderr, "Warning: hibernate partition size (%d) is smaller than"
|
|
||||||
- " reccomended size (%d).\n", pi[partition-1].size,
|
|
||||||
+ " recommended size (%d).\n", pi[partition-1].size,
|
|
||||||
required_sectors);
|
|
||||||
}
|
|
||||||
|
|
||||||
diff -ur lphdisk-0.9.1.orig/Makefile lphdisk-0.9.1/Makefile
|
|
||||||
--- lphdisk-0.9.1.orig/Makefile 2002-02-12 11:06:46.000000000 +0200
|
|
||||||
+++ lphdisk-0.9.1/Makefile 2008-12-08 12:26:49.000000000 +0200
|
|
||||||
@@ -4,37 +4,28 @@
|
|
||||||
# lphdisk 0.9.1
|
|
||||||
#
|
|
||||||
|
|
||||||
-INSTALL_PREFIX = /usr/local
|
|
||||||
+INSTALL_PREFIX = /usr
|
|
||||||
|
|
||||||
-CFLAGS = -g -Wall
|
|
||||||
-LIBS =
|
|
||||||
-
|
|
||||||
-LRMIDIR = lrmi-0.6m
|
|
||||||
+CFLAGS += -Wall
|
|
||||||
+LIBS = -llrmi
|
|
||||||
|
|
||||||
all: lphdisk
|
|
||||||
|
|
||||||
-lphdisk: lphdisk.o lrmi.o
|
|
||||||
- $(CC) $(CFLAGS) -o lphdisk lphdisk.o lrmi.o $(LIBS)
|
|
||||||
-
|
|
||||||
-lphdisk.o: lphdisk.c lrmi.h vbe.h
|
|
||||||
-
|
|
||||||
-lrmi.o:
|
|
||||||
- cd $(LRMIDIR) && $(MAKE) $@
|
|
||||||
- cp $(LRMIDIR)/lrmi.o .
|
|
||||||
+lphdisk: lphdisk.o
|
|
||||||
+ $(CC) $(LDFLAGS) $(CFLAGS) -o lphdisk lphdisk.o $(LIBS)
|
|
||||||
|
|
||||||
-%.h: $(LRMIDIR)/%.h
|
|
||||||
- cp $^ $@
|
|
||||||
+lphdisk.o: lphdisk.c
|
|
||||||
|
|
||||||
install: all
|
|
||||||
- install -m 755 lphdisk $(INSTALL_PREFIX)/sbin
|
|
||||||
- install -m 644 lphdisk.8 $(INSTALL_PREFIX)/man/man8
|
|
||||||
+ mkdir -p $(DESTDIR)$(INSTALL_PREFIX)/sbin
|
|
||||||
+ install -m 755 lphdisk $(DESTDIR)$(INSTALL_PREFIX)/sbin
|
|
||||||
+ mkdir -p $(DESTDIR)$(INSTALL_PREFIX)/share/man/man8
|
|
||||||
+ install -m 644 lphdisk.8 $(DESTDIR)$(INSTALL_PREFIX)/share/man/man8
|
|
||||||
|
|
||||||
clean:
|
|
||||||
- cd $(LRMIDIR) && $(MAKE) $@
|
|
||||||
- rm -f *.o lrmi.h vbe.h
|
|
||||||
+ rm -f *.o
|
|
||||||
|
|
||||||
distclean: clean
|
|
||||||
- cd $(LRMIDIR) && $(MAKE) $@
|
|
||||||
rm -f lphdisk
|
|
||||||
|
|
||||||
.PHONY: all install clean distclean
|
|
@ -1,29 +0,0 @@
|
|||||||
# Copyright 1999-2010 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=2
|
|
||||||
inherit eutils toolchain-funcs
|
|
||||||
|
|
||||||
DESCRIPTION="utility for preparing a hibernation partition for APM Suspend-To-Disk"
|
|
||||||
HOMEPAGE="http://www.procyon.com/~pda/lphdisk/"
|
|
||||||
SRC_URI="http://www.procyon.com/~pda/lphdisk/${P}.tar.bz2"
|
|
||||||
|
|
||||||
LICENSE="Artistic"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="x86"
|
|
||||||
IUSE=""
|
|
||||||
|
|
||||||
DEPEND="sys-libs/lrmi"
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
epatch "${FILESDIR}"/${P}-gentoo.patch
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
tc-export CC
|
|
||||||
emake || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
emake DESTDIR="${D}" install || die
|
|
||||||
}
|
|
Binary file not shown.
@ -1,2 +1,3 @@
|
|||||||
DIST node_exporter-0.15.2.tar.gz 1327204 BLAKE2B ee694771ed6d736fd4bb6a10f713f31becc930fb8225499d4b3a2a2cc7416c1816605cd8f4205dc37a2264af8d9f85e3519bc01844d252b6a70d4ee5f6308ece SHA512 b39ce0801a5bf5a2a70c4034659d047d70b3763af3f18925b65c2b5f72832e261362aaeb9ce4c68cb7bf52e790d3fc710a6c8550ad7876e89fd9f5a055200a52
|
DIST node_exporter-0.15.2.tar.gz 1327204 BLAKE2B ee694771ed6d736fd4bb6a10f713f31becc930fb8225499d4b3a2a2cc7416c1816605cd8f4205dc37a2264af8d9f85e3519bc01844d252b6a70d4ee5f6308ece SHA512 b39ce0801a5bf5a2a70c4034659d047d70b3763af3f18925b65c2b5f72832e261362aaeb9ce4c68cb7bf52e790d3fc710a6c8550ad7876e89fd9f5a055200a52
|
||||||
DIST node_exporter-0.16.0_rc1.tar.gz 1414955 BLAKE2B 6a05e3ca934e59f292133c09f3e6a1d0babaf184f8daa2861fe04192e4fd6d978ea8a7b8530dbe777f81ab762cc7b0899aed39cb7dbd49eae635acd25a957772 SHA512 65a39d15a6645b9a5c5e1650a929229e3ef780fe0d047792f003581322497a6e9ecacfb26af7c22a8d4a7034fd5ce886913e9ec4bfd049d521f01db463573aa8
|
DIST node_exporter-0.16.0_rc1.tar.gz 1414955 BLAKE2B 6a05e3ca934e59f292133c09f3e6a1d0babaf184f8daa2861fe04192e4fd6d978ea8a7b8530dbe777f81ab762cc7b0899aed39cb7dbd49eae635acd25a957772 SHA512 65a39d15a6645b9a5c5e1650a929229e3ef780fe0d047792f003581322497a6e9ecacfb26af7c22a8d4a7034fd5ce886913e9ec4bfd049d521f01db463573aa8
|
||||||
|
DIST node_exporter-0.16.0_rc2.tar.gz 1412646 BLAKE2B b73ea3ff38886f88ca64cc1cb137ea2153af93ad5a62c8d409062c23d837c4ee004518782368af45c3d78a8b61ad540f9468256786d75b3d630b27eb250f30cd SHA512 4c4c0c41bc7c91d31fc14e591b9c206a358eddcb0ebf4e057aeb3a2e85486a3b7d4b18e7a9f0e1d27fd1a3ee92e6692f401da2fdd443080962698adca2befc52
|
||||||
|
@ -0,0 +1,48 @@
|
|||||||
|
# Copyright 1999-2018 Gentoo Foundation
|
||||||
|
# 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/node_exporter"
|
||||||
|
EGIT_COMMIT="v${PV/_rc/-rc.}"
|
||||||
|
NODE_EXPORTER_COMMIT="7cbfa88"
|
||||||
|
ARCHIVE_URI="https://${EGO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
|
||||||
|
KEYWORDS="~amd64"
|
||||||
|
|
||||||
|
DESCRIPTION="Prometheus exporter for machine metrics"
|
||||||
|
HOMEPAGE="https://github.com/prometheus/node_exporter"
|
||||||
|
SRC_URI="${ARCHIVE_URI}"
|
||||||
|
LICENSE="Apache-2.0"
|
||||||
|
SLOT="0"
|
||||||
|
IUSE=""
|
||||||
|
|
||||||
|
DEPEND="dev-util/promu"
|
||||||
|
|
||||||
|
pkg_setup() {
|
||||||
|
enewgroup ${PN}
|
||||||
|
enewuser ${PN} -1 -1 -1 ${PN}
|
||||||
|
}
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
default
|
||||||
|
sed -i -e "s/{{.Revision}}/${NODE_EXPORTER_COMMIT}/" src/${EGO_PN}/.promu.yml || die
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
pushd src/${EGO_PN} || die
|
||||||
|
mkdir -p bin || die
|
||||||
|
GOPATH="${S}" promu build -v --prefix node_exporter || die
|
||||||
|
popd || die
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
pushd src/${EGO_PN} || die
|
||||||
|
dobin node_exporter/node_exporter
|
||||||
|
dodoc {README,CHANGELOG,CONTRIBUTING}.md
|
||||||
|
popd || die
|
||||||
|
keepdir /var/lib/node_exporter /var/log/node_exporter
|
||||||
|
fowners ${PN}:${PN} /var/lib/node_exporter /var/log/node_exporter
|
||||||
|
newinitd "${FILESDIR}"/${PN}-1.initd ${PN}
|
||||||
|
newconfd "${FILESDIR}"/${PN}.confd ${PN}
|
||||||
|
}
|
Binary file not shown.
@ -1,190 +0,0 @@
|
|||||||
# Copyright 1999-2018 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
# The Debian ca-certificates package merely takes the CA database as it exists
|
|
||||||
# in the nss package and repackages it for use by openssl.
|
|
||||||
#
|
|
||||||
# The issue with using the compiled debs directly is two fold:
|
|
||||||
# - they do not update frequently enough for us to rely on them
|
|
||||||
# - they pull the CA database from nss tip of tree rather than the release
|
|
||||||
#
|
|
||||||
# So we take the Debian source tools and combine them with the latest nss
|
|
||||||
# release to produce (largely) the same end result. The difference is that
|
|
||||||
# now we know our cert database is kept in sync with nss and, if need be,
|
|
||||||
# can be sync with nss tip of tree more frequently to respond to bugs.
|
|
||||||
|
|
||||||
# When triaging bugs from users, here's some handy tips:
|
|
||||||
# - To see what cert is hitting errors, use openssl:
|
|
||||||
# openssl s_client -port 443 -CApath /etc/ssl/certs/ -host $HOSTNAME
|
|
||||||
# Focus on the errors written to stderr.
|
|
||||||
#
|
|
||||||
# - Look at the upstream log as to why certs were added/removed:
|
|
||||||
# https://hg.mozilla.org/projects/nss/log/tip/lib/ckfw/builtins/certdata.txt
|
|
||||||
#
|
|
||||||
# - If people want to add/remove certs, tell them to file w/mozilla:
|
|
||||||
# https://bugzilla.mozilla.org/enter_bug.cgi?product=NSS&component=CA%20Certificates&version=trunk
|
|
||||||
|
|
||||||
EAPI=6
|
|
||||||
|
|
||||||
PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
|
|
||||||
|
|
||||||
inherit eutils python-any-r1
|
|
||||||
|
|
||||||
if [[ ${PV} == *.* ]] ; then
|
|
||||||
# Compile from source ourselves.
|
|
||||||
PRECOMPILED=false
|
|
||||||
inherit versionator
|
|
||||||
|
|
||||||
DEB_VER=$(get_version_component_range 1)
|
|
||||||
NSS_VER=$(get_version_component_range 2-)
|
|
||||||
RTM_NAME="NSS_${NSS_VER//./_}_RTM"
|
|
||||||
else
|
|
||||||
# Debian precompiled version.
|
|
||||||
PRECOMPILED=true
|
|
||||||
inherit unpacker
|
|
||||||
fi
|
|
||||||
|
|
||||||
DESCRIPTION="Common CA Certificates PEM files"
|
|
||||||
HOMEPAGE="https://packages.debian.org/sid/ca-certificates"
|
|
||||||
NMU_PR=""
|
|
||||||
if ${PRECOMPILED} ; then
|
|
||||||
SRC_URI="mirror://debian/pool/main/c/${PN}/${PN}_${PV}${NMU_PR:++nmu}${NMU_PR}_all.deb"
|
|
||||||
else
|
|
||||||
SRC_URI="mirror://debian/pool/main/c/${PN}/${PN}_${DEB_VER}${NMU_PR:++nmu}${NMU_PR}.tar.xz
|
|
||||||
https://archive.mozilla.org/pub/security/nss/releases/${RTM_NAME}/src/nss-${NSS_VER}.tar.gz
|
|
||||||
cacert? (
|
|
||||||
https://dev.gentoo.org/~axs/distfiles/nss-cacert-class1-class3.patch
|
|
||||||
)"
|
|
||||||
fi
|
|
||||||
|
|
||||||
LICENSE="MPL-1.1"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris ~x86-winnt"
|
|
||||||
IUSE="insecure_certs"
|
|
||||||
${PRECOMPILED} || IUSE+=" cacert"
|
|
||||||
|
|
||||||
DEPEND=""
|
|
||||||
if ${PRECOMPILED} ; then
|
|
||||||
DEPEND+=" !<sys-apps/portage-2.1.10.41"
|
|
||||||
fi
|
|
||||||
# c_rehash: we run `c_rehash`
|
|
||||||
# debianutils: we run `run-parts`
|
|
||||||
RDEPEND="${DEPEND}
|
|
||||||
app-misc/c_rehash
|
|
||||||
sys-apps/debianutils"
|
|
||||||
|
|
||||||
if ! ${PRECOMPILED}; then
|
|
||||||
DEPEND+=" ${PYTHON_DEPS}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
S=${WORKDIR}
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
# For the conversion to having it in CONFIG_PROTECT_MASK,
|
|
||||||
# we need to tell users about it once manually first.
|
|
||||||
[[ -f "${EPREFIX}"/etc/env.d/98ca-certificates ]] \
|
|
||||||
|| ewarn "You should run update-ca-certificates manually after etc-update"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_unpack() {
|
|
||||||
${PRECOMPILED} || default
|
|
||||||
|
|
||||||
# Do all the work in the image subdir to avoid conflicting with source
|
|
||||||
# dirs in $WORKDIR. Need to perform everything in the offset #381937
|
|
||||||
mkdir -p "image/${EPREFIX}"
|
|
||||||
cd "image/${EPREFIX}" || die
|
|
||||||
|
|
||||||
${PRECOMPILED} && unpacker_src_unpack
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
cd "image/${EPREFIX}" || die
|
|
||||||
if ! ${PRECOMPILED} ; then
|
|
||||||
mkdir -p usr/sbin
|
|
||||||
cp -p "${S}"/${PN}/sbin/update-ca-certificates usr/sbin/ || die
|
|
||||||
|
|
||||||
if use cacert ; then
|
|
||||||
pushd "${S}"/nss-${NSS_VER} >/dev/null
|
|
||||||
epatch "${DISTDIR}"/nss-cacert-class1-class3.patch
|
|
||||||
popd >/dev/null
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
default
|
|
||||||
eapply -p2 "${FILESDIR}"/${PN}-20150426-root.patch
|
|
||||||
local relp=$(echo "${EPREFIX}" | sed -e 's:[^/]\+:..:g')
|
|
||||||
sed -i \
|
|
||||||
-e '/="$ROOT/s:ROOT:ROOT'"${EPREFIX}"':' \
|
|
||||||
-e '/RELPATH="\.\./s:"$:'"${relp}"'":' \
|
|
||||||
usr/sbin/update-ca-certificates || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
cd "image/${EPREFIX}" || die
|
|
||||||
if ! ${PRECOMPILED} ; then
|
|
||||||
python_setup
|
|
||||||
local d="${S}/${PN}/mozilla" c="usr/share/${PN}"
|
|
||||||
# Grab the database from the nss sources.
|
|
||||||
cp "${S}"/nss-${NSS_VER}/nss/lib/ckfw/builtins/{certdata.txt,nssckbi.h} "${d}" || die
|
|
||||||
emake -C "${d}"
|
|
||||||
|
|
||||||
# Now move the files to the same places that the precompiled would.
|
|
||||||
mkdir -p etc/ssl/certs etc/ca-certificates/update.d "${c}"/mozilla
|
|
||||||
if use cacert ; then
|
|
||||||
mkdir -p "${c}"/cacert.org
|
|
||||||
mv "${d}"/CAcert_Inc..crt "${c}"/cacert.org/cacert.org_root.crt || die
|
|
||||||
fi
|
|
||||||
mv "${d}"/*.crt "${c}"/mozilla/ || die
|
|
||||||
else
|
|
||||||
mv usr/share/doc/{ca-certificates,${PF}} || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
if ! use insecure_certs ; then
|
|
||||||
elog "To prevent applications relying on system's trusted root certificate store"
|
|
||||||
elog "from using CAs where at least one major browser vendor Gentoo is following"
|
|
||||||
elog "has decided to apply trust level restrictions, the following"
|
|
||||||
elog "certificate(s) were removed:"
|
|
||||||
# Remove untrusted certs from StartCom and WoSign (bug #598072)
|
|
||||||
elog "$(find "${c}" -type f \( \
|
|
||||||
-iname '*startcom*' \
|
|
||||||
-o -iname '*wosign*' \
|
|
||||||
\) -printf '%P removed; see https://bugs.gentoo.org/598072 for details\n' -delete)"
|
|
||||||
fi
|
|
||||||
|
|
||||||
(
|
|
||||||
echo "# Automatically generated by ${CATEGORY}/${PF}"
|
|
||||||
echo "# $(date -u)"
|
|
||||||
echo "# Do not edit."
|
|
||||||
cd "${c}"
|
|
||||||
find * -name '*.crt' | LC_ALL=C sort
|
|
||||||
) > etc/ca-certificates.conf
|
|
||||||
|
|
||||||
sh usr/sbin/update-ca-certificates --root "${S}/image" || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
cp -pPR image/* "${D}"/ || die
|
|
||||||
if ! ${PRECOMPILED} ; then
|
|
||||||
cd ca-certificates
|
|
||||||
doman sbin/*.8
|
|
||||||
dodoc debian/README.* examples/ca-certificates-local/README
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo 'CONFIG_PROTECT_MASK="/etc/ca-certificates.conf"' > 98ca-certificates
|
|
||||||
doenvd 98ca-certificates
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
if [ -d "${EROOT}/usr/local/share/ca-certificates" ] ; then
|
|
||||||
# if the user has local certs, we need to rebuild again
|
|
||||||
# to include their stuff in the db.
|
|
||||||
# However it's too overzealous when the user has custom certs in place.
|
|
||||||
# --fresh is to clean up dangling symlinks
|
|
||||||
"${EROOT}"/usr/sbin/update-ca-certificates --root "${ROOT}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -n "$(find -L "${EROOT}"etc/ssl/certs/ -type l)" ] ; then
|
|
||||||
ewarn "Removing the following broken symlinks:"
|
|
||||||
ewarn "$(find -L "${EROOT}"/etc/ssl/certs/ -type l -printf '%p -> %l\n' -delete)"
|
|
||||||
fi
|
|
||||||
}
|
|
@ -1,190 +0,0 @@
|
|||||||
# Copyright 1999-2018 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
# The Debian ca-certificates package merely takes the CA database as it exists
|
|
||||||
# in the nss package and repackages it for use by openssl.
|
|
||||||
#
|
|
||||||
# The issue with using the compiled debs directly is two fold:
|
|
||||||
# - they do not update frequently enough for us to rely on them
|
|
||||||
# - they pull the CA database from nss tip of tree rather than the release
|
|
||||||
#
|
|
||||||
# So we take the Debian source tools and combine them with the latest nss
|
|
||||||
# release to produce (largely) the same end result. The difference is that
|
|
||||||
# now we know our cert database is kept in sync with nss and, if need be,
|
|
||||||
# can be sync with nss tip of tree more frequently to respond to bugs.
|
|
||||||
|
|
||||||
# When triaging bugs from users, here's some handy tips:
|
|
||||||
# - To see what cert is hitting errors, use openssl:
|
|
||||||
# openssl s_client -port 443 -CApath /etc/ssl/certs/ -host $HOSTNAME
|
|
||||||
# Focus on the errors written to stderr.
|
|
||||||
#
|
|
||||||
# - Look at the upstream log as to why certs were added/removed:
|
|
||||||
# https://hg.mozilla.org/projects/nss/log/tip/lib/ckfw/builtins/certdata.txt
|
|
||||||
#
|
|
||||||
# - If people want to add/remove certs, tell them to file w/mozilla:
|
|
||||||
# https://bugzilla.mozilla.org/enter_bug.cgi?product=NSS&component=CA%20Certificates&version=trunk
|
|
||||||
|
|
||||||
EAPI=6
|
|
||||||
|
|
||||||
PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
|
|
||||||
|
|
||||||
inherit eutils python-any-r1
|
|
||||||
|
|
||||||
if [[ ${PV} == *.* ]] ; then
|
|
||||||
# Compile from source ourselves.
|
|
||||||
PRECOMPILED=false
|
|
||||||
inherit versionator
|
|
||||||
|
|
||||||
DEB_VER=$(get_version_component_range 1)
|
|
||||||
NSS_VER=$(get_version_component_range 2-)
|
|
||||||
RTM_NAME="NSS_${NSS_VER//./_}_RTM"
|
|
||||||
else
|
|
||||||
# Debian precompiled version.
|
|
||||||
PRECOMPILED=true
|
|
||||||
inherit unpacker
|
|
||||||
fi
|
|
||||||
|
|
||||||
DESCRIPTION="Common CA Certificates PEM files"
|
|
||||||
HOMEPAGE="https://packages.debian.org/sid/ca-certificates"
|
|
||||||
NMU_PR=""
|
|
||||||
if ${PRECOMPILED} ; then
|
|
||||||
SRC_URI="mirror://debian/pool/main/c/${PN}/${PN}_${PV}${NMU_PR:++nmu}${NMU_PR}_all.deb"
|
|
||||||
else
|
|
||||||
SRC_URI="mirror://debian/pool/main/c/${PN}/${PN}_${DEB_VER}${NMU_PR:++nmu}${NMU_PR}.tar.xz
|
|
||||||
https://archive.mozilla.org/pub/security/nss/releases/${RTM_NAME}/src/nss-${NSS_VER}.tar.gz
|
|
||||||
cacert? (
|
|
||||||
https://dev.gentoo.org/~axs/distfiles/nss-cacert-class1-class3.patch
|
|
||||||
)"
|
|
||||||
fi
|
|
||||||
|
|
||||||
LICENSE="MPL-1.1"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris ~x86-winnt"
|
|
||||||
IUSE="insecure_certs"
|
|
||||||
${PRECOMPILED} || IUSE+=" cacert"
|
|
||||||
|
|
||||||
DEPEND=""
|
|
||||||
if ${PRECOMPILED} ; then
|
|
||||||
DEPEND+=" !<sys-apps/portage-2.1.10.41"
|
|
||||||
fi
|
|
||||||
# c_rehash: we run `c_rehash`
|
|
||||||
# debianutils: we run `run-parts`
|
|
||||||
RDEPEND="${DEPEND}
|
|
||||||
app-misc/c_rehash
|
|
||||||
sys-apps/debianutils"
|
|
||||||
|
|
||||||
if ! ${PRECOMPILED}; then
|
|
||||||
DEPEND+=" ${PYTHON_DEPS}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
S=${WORKDIR}
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
# For the conversion to having it in CONFIG_PROTECT_MASK,
|
|
||||||
# we need to tell users about it once manually first.
|
|
||||||
[[ -f "${EPREFIX}"/etc/env.d/98ca-certificates ]] \
|
|
||||||
|| ewarn "You should run update-ca-certificates manually after etc-update"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_unpack() {
|
|
||||||
${PRECOMPILED} || default
|
|
||||||
|
|
||||||
# Do all the work in the image subdir to avoid conflicting with source
|
|
||||||
# dirs in $WORKDIR. Need to perform everything in the offset #381937
|
|
||||||
mkdir -p "image/${EPREFIX}"
|
|
||||||
cd "image/${EPREFIX}" || die
|
|
||||||
|
|
||||||
${PRECOMPILED} && unpacker_src_unpack
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
cd "image/${EPREFIX}" || die
|
|
||||||
if ! ${PRECOMPILED} ; then
|
|
||||||
mkdir -p usr/sbin
|
|
||||||
cp -p "${S}"/${PN}/sbin/update-ca-certificates usr/sbin/ || die
|
|
||||||
|
|
||||||
if use cacert ; then
|
|
||||||
pushd "${S}"/nss-${NSS_VER} >/dev/null
|
|
||||||
epatch "${DISTDIR}"/nss-cacert-class1-class3.patch
|
|
||||||
popd >/dev/null
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
default
|
|
||||||
eapply -p2 "${FILESDIR}"/${PN}-20150426-root.patch
|
|
||||||
local relp=$(echo "${EPREFIX}" | sed -e 's:[^/]\+:..:g')
|
|
||||||
sed -i \
|
|
||||||
-e '/="$ROOT/s:ROOT:ROOT'"${EPREFIX}"':' \
|
|
||||||
-e '/RELPATH="\.\./s:"$:'"${relp}"'":' \
|
|
||||||
usr/sbin/update-ca-certificates || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
cd "image/${EPREFIX}" || die
|
|
||||||
if ! ${PRECOMPILED} ; then
|
|
||||||
python_setup
|
|
||||||
local d="${S}/${PN}/mozilla" c="usr/share/${PN}"
|
|
||||||
# Grab the database from the nss sources.
|
|
||||||
cp "${S}"/nss-${NSS_VER}/nss/lib/ckfw/builtins/{certdata.txt,nssckbi.h} "${d}" || die
|
|
||||||
emake -C "${d}"
|
|
||||||
|
|
||||||
# Now move the files to the same places that the precompiled would.
|
|
||||||
mkdir -p etc/ssl/certs etc/ca-certificates/update.d "${c}"/mozilla
|
|
||||||
if use cacert ; then
|
|
||||||
mkdir -p "${c}"/cacert.org
|
|
||||||
mv "${d}"/CAcert_Inc..crt "${c}"/cacert.org/cacert.org_root.crt || die
|
|
||||||
fi
|
|
||||||
mv "${d}"/*.crt "${c}"/mozilla/ || die
|
|
||||||
else
|
|
||||||
mv usr/share/doc/{ca-certificates,${PF}} || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
if ! use insecure_certs ; then
|
|
||||||
elog "To prevent applications relying on system's trusted root certificate store"
|
|
||||||
elog "from using CAs where at least one major browser vendor Gentoo is following"
|
|
||||||
elog "has decided to apply trust level restrictions, the following"
|
|
||||||
elog "certificate(s) were removed:"
|
|
||||||
# Remove untrusted certs from StartCom and WoSign (bug #598072)
|
|
||||||
elog "$(find "${c}" -type f \( \
|
|
||||||
-iname '*startcom*' \
|
|
||||||
-o -iname '*wosign*' \
|
|
||||||
\) -printf '%P removed; see https://bugs.gentoo.org/598072 for details\n' -delete)"
|
|
||||||
fi
|
|
||||||
|
|
||||||
(
|
|
||||||
echo "# Automatically generated by ${CATEGORY}/${PF}"
|
|
||||||
echo "# $(date -u)"
|
|
||||||
echo "# Do not edit."
|
|
||||||
cd "${c}"
|
|
||||||
find * -name '*.crt' | LC_ALL=C sort
|
|
||||||
) > etc/ca-certificates.conf
|
|
||||||
|
|
||||||
sh usr/sbin/update-ca-certificates --root "${S}/image" || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
cp -pPR image/* "${D}"/ || die
|
|
||||||
if ! ${PRECOMPILED} ; then
|
|
||||||
cd ca-certificates
|
|
||||||
doman sbin/*.8
|
|
||||||
dodoc debian/README.* examples/ca-certificates-local/README
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo 'CONFIG_PROTECT_MASK="/etc/ca-certificates.conf"' > 98ca-certificates
|
|
||||||
doenvd 98ca-certificates
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
if [ -d "${EROOT}/usr/local/share/ca-certificates" ] ; then
|
|
||||||
# if the user has local certs, we need to rebuild again
|
|
||||||
# to include their stuff in the db.
|
|
||||||
# However it's too overzealous when the user has custom certs in place.
|
|
||||||
# --fresh is to clean up dangling symlinks
|
|
||||||
"${EROOT}"/usr/sbin/update-ca-certificates --root "${ROOT}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -n "$(find -L "${EROOT}"etc/ssl/certs/ -type l)" ] ; then
|
|
||||||
ewarn "Removing the following broken symlinks:"
|
|
||||||
ewarn "$(find -L "${EROOT}"/etc/ssl/certs/ -type l -printf '%p -> %l\n' -delete)"
|
|
||||||
fi
|
|
||||||
}
|
|
Binary file not shown.
@ -1,41 +0,0 @@
|
|||||||
See also http://finkproject.org/doc/porting/libtool.php
|
|
||||||
(Section 3.3) Fixing 1.4.x (Subsection 1) The flat_namespace bug
|
|
||||||
--- configure~ 2007-10-08 01:55:00 +0200
|
|
||||||
+++ configure 2007-10-08 01:55:27 +0200
|
|
||||||
@@ -3063,9 +3063,6 @@
|
|
||||||
|
|
||||||
|
|
||||||
case "${host}" in
|
|
||||||
- *-*-darwin*)
|
|
||||||
- LINKFLAGS="-no-undefined"
|
|
||||||
- ;;
|
|
||||||
*)
|
|
||||||
if test "$GXX"
|
|
||||||
then
|
|
||||||
@@ -7907,7 +7904,7 @@
|
|
||||||
;;
|
|
||||||
|
|
||||||
darwin* | rhapsody*)
|
|
||||||
- allow_undefined_flag='-undefined suppress'
|
|
||||||
+ allow_undefined_flag='-undefined suppress -flat_namespace'
|
|
||||||
# FIXME: Relying on posixy $() will cause problems for
|
|
||||||
# cross-compilation, but unfortunately the echo tests do not
|
|
||||||
# yet detect zsh echo's removal of \ escapes.
|
|
||||||
--- config/ltmain.sh~ 2002-01-17 14:45:52 +0100
|
|
||||||
+++ config/ltmain.sh 2007-10-08 03:08:26 +0200
|
|
||||||
@@ -3913,10 +3913,15 @@
|
|
||||||
|
|
||||||
# Directory that this library needs to be installed in:
|
|
||||||
libdir='$install_libdir'"
|
|
||||||
+case "${host}" in
|
|
||||||
+ *-*-darwin*)
|
|
||||||
+ ;;
|
|
||||||
+ *)
|
|
||||||
if test "$installed" = no && test $need_relink = yes; then
|
|
||||||
$echo >> $output "\
|
|
||||||
relink_command=\"$relink_command\""
|
|
||||||
fi
|
|
||||||
+esac
|
|
||||||
done
|
|
||||||
fi
|
|
||||||
|
|
@ -1,2 +1,3 @@
|
|||||||
DIST poppler-0.62.0.tar.xz 1423372 BLAKE2B 01c8745d0c1fa5b412ec92295a8784f5c1deff8b9fa709d09a3236d630f78fecc6af23fe3302964478d6356562712726db422ef51fe59a8b42e13e08370a77ac SHA512 91f7eae7b05965ae97a34e658bed2a676be8a6e4d34f82148ece6eb58932632dcf9a34d50c66412f93f560ce575abf5c608ed6b1e5184604b96024801886c706
|
DIST poppler-0.62.0.tar.xz 1423372 BLAKE2B 01c8745d0c1fa5b412ec92295a8784f5c1deff8b9fa709d09a3236d630f78fecc6af23fe3302964478d6356562712726db422ef51fe59a8b42e13e08370a77ac SHA512 91f7eae7b05965ae97a34e658bed2a676be8a6e4d34f82148ece6eb58932632dcf9a34d50c66412f93f560ce575abf5c608ed6b1e5184604b96024801886c706
|
||||||
DIST poppler-0.63.0.tar.xz 1439552 BLAKE2B 9bf5cff7f5fec93ec7d49d1745aadb2b03a68d38216003e4bff54a5d264c9dda10265da79a755af1f31b582602d034cfefb16b807185d674a2cfe0d20e5de277 SHA512 a151d08480e9940a02191355ef5e7499d6494cff05f22f49de2bb8223512f5e5c9bb9b33651943ded30b4cd7096a2423fb7a01fa62228fbcd1d3a221b885cfe9
|
DIST poppler-0.63.0.tar.xz 1439552 BLAKE2B 9bf5cff7f5fec93ec7d49d1745aadb2b03a68d38216003e4bff54a5d264c9dda10265da79a755af1f31b582602d034cfefb16b807185d674a2cfe0d20e5de277 SHA512 a151d08480e9940a02191355ef5e7499d6494cff05f22f49de2bb8223512f5e5c9bb9b33651943ded30b4cd7096a2423fb7a01fa62228fbcd1d3a221b885cfe9
|
||||||
|
DIST poppler-0.64.0.tar.xz 1449904 BLAKE2B 260bcc9c1b109b58b66057665d11c0685b525803206497ad0516998d93c132befd6b0ae28f187afd77dace6b35af6c08b8210ad05143d6d068109dc57caf5a4a SHA512 2799c3f628e63803eb11a25e54798a136aad91ea843d4bc1fb284af478f4a8cde87b7f95fc28cf23baf25975fbde6ca93f6ac91befb87af42e642c7650053f1c
|
||||||
|
@ -0,0 +1,126 @@
|
|||||||
|
# Copyright 1999-2018 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=6
|
||||||
|
|
||||||
|
inherit cmake-utils flag-o-matic toolchain-funcs xdg-utils
|
||||||
|
|
||||||
|
if [[ "${PV}" == "9999" ]] ; then
|
||||||
|
inherit git-r3
|
||||||
|
EGIT_REPO_URI="https://anongit.freedesktop.org/git/poppler/poppler.git"
|
||||||
|
SLOT="0/9999"
|
||||||
|
else
|
||||||
|
SRC_URI="https://poppler.freedesktop.org/${P}.tar.xz"
|
||||||
|
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||||
|
SLOT="0/75" # CHECK THIS WHEN BUMPING!!! SUBSLOT IS libpoppler.so SOVERSION
|
||||||
|
fi
|
||||||
|
|
||||||
|
DESCRIPTION="PDF rendering library based on the xpdf-3.0 code base"
|
||||||
|
HOMEPAGE="https://poppler.freedesktop.org/"
|
||||||
|
|
||||||
|
LICENSE="GPL-2"
|
||||||
|
IUSE="cairo cjk curl cxx debug doc +introspection +jpeg +jpeg2k +lcms nss png qt5 tiff +utils"
|
||||||
|
|
||||||
|
# No test data provided
|
||||||
|
RESTRICT="test"
|
||||||
|
|
||||||
|
COMMON_DEPEND="
|
||||||
|
>=media-libs/fontconfig-2.6.0
|
||||||
|
>=media-libs/freetype-2.3.9
|
||||||
|
sys-libs/zlib
|
||||||
|
cairo? (
|
||||||
|
dev-libs/glib:2
|
||||||
|
>=x11-libs/cairo-1.10.0
|
||||||
|
introspection? ( >=dev-libs/gobject-introspection-1.32.1:= )
|
||||||
|
)
|
||||||
|
curl? ( net-misc/curl )
|
||||||
|
jpeg? ( virtual/jpeg:0 )
|
||||||
|
jpeg2k? ( media-libs/openjpeg:2= )
|
||||||
|
lcms? ( media-libs/lcms:2 )
|
||||||
|
nss? ( >=dev-libs/nss-3.19:0 )
|
||||||
|
png? ( media-libs/libpng:0= )
|
||||||
|
qt5? (
|
||||||
|
dev-qt/qtcore:5
|
||||||
|
dev-qt/qtgui:5
|
||||||
|
dev-qt/qtxml:5
|
||||||
|
)
|
||||||
|
tiff? ( media-libs/tiff:0 )
|
||||||
|
"
|
||||||
|
DEPEND="${COMMON_DEPEND}
|
||||||
|
virtual/pkgconfig
|
||||||
|
"
|
||||||
|
RDEPEND="${COMMON_DEPEND}
|
||||||
|
cjk? ( >=app-text/poppler-data-0.4.7 )
|
||||||
|
"
|
||||||
|
|
||||||
|
DOCS=(AUTHORS NEWS README README-XPDF)
|
||||||
|
|
||||||
|
PATCHES=(
|
||||||
|
"${FILESDIR}/${PN}-0.60.1-qt5-dependencies.patch"
|
||||||
|
"${FILESDIR}/${PN}-0.28.1-fix-multilib-configuration.patch"
|
||||||
|
"${FILESDIR}/${PN}-0.61.0-respect-cflags.patch"
|
||||||
|
"${FILESDIR}/${PN}-0.62.0-openjpeg2.patch"
|
||||||
|
"${FILESDIR}/${PN}-0.57.0-disable-internal-jpx.patch"
|
||||||
|
)
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
cmake-utils_src_prepare
|
||||||
|
|
||||||
|
# Clang doesn't grok this flag, the configure nicely tests that, but
|
||||||
|
# cmake just uses it, so remove it if we use clang
|
||||||
|
if [[ ${CC} == clang ]] ; then
|
||||||
|
sed -i -e 's/-fno-check-new//' cmake/modules/PopplerMacros.cmake || die
|
||||||
|
fi
|
||||||
|
|
||||||
|
if ! grep -Fq 'cmake_policy(SET CMP0002 OLD)' CMakeLists.txt ; then
|
||||||
|
sed '/^cmake_minimum_required/acmake_policy(SET CMP0002 OLD)' \
|
||||||
|
-i CMakeLists.txt || die
|
||||||
|
else
|
||||||
|
einfo "policy(SET CMP0002 OLD) - workaround can be removed"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# we need to up the C++ version, bug #622526, #643278
|
||||||
|
append-cxxflags -std=c++11
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
xdg_environment_reset
|
||||||
|
local mycmakeargs=(
|
||||||
|
-DBUILD_GTK_TESTS=OFF
|
||||||
|
-DBUILD_QT5_TESTS=OFF
|
||||||
|
-DBUILD_CPP_TESTS=OFF
|
||||||
|
-DENABLE_SPLASH=ON
|
||||||
|
-DENABLE_ZLIB=ON
|
||||||
|
-DENABLE_ZLIB_UNCOMPRESS=OFF
|
||||||
|
-DENABLE_XPDF_HEADERS=ON
|
||||||
|
-DSPLASH_CMYK=OFF
|
||||||
|
-DUSE_FIXEDPOINT=OFF
|
||||||
|
-DUSE_FLOAT=OFF
|
||||||
|
-DWITH_Cairo=$(usex cairo)
|
||||||
|
-DENABLE_LIBCURL=$(usex curl)
|
||||||
|
-DENABLE_CPP=$(usex cxx)
|
||||||
|
-DWITH_GObjectIntrospection=$(usex introspection)
|
||||||
|
-DWITH_JPEG=$(usex jpeg)
|
||||||
|
-DENABLE_DCTDECODER=$(usex jpeg libjpeg none)
|
||||||
|
-DENABLE_LIBOPENJPEG=$(usex jpeg2k openjpeg2 none)
|
||||||
|
-DENABLE_CMS=$(usex lcms lcms2 none)
|
||||||
|
-DWITH_NSS3=$(usex nss)
|
||||||
|
-DWITH_PNG=$(usex png)
|
||||||
|
$(cmake-utils_use_find_package qt5 Qt5Core)
|
||||||
|
-DWITH_TIFF=$(usex tiff)
|
||||||
|
-DENABLE_UTILS=$(usex utils)
|
||||||
|
)
|
||||||
|
|
||||||
|
cmake-utils_src_configure
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
cmake-utils_src_install
|
||||||
|
|
||||||
|
# live version doesn't provide html documentation
|
||||||
|
if use cairo && use doc && [[ ${PV} != 9999 ]]; then
|
||||||
|
# For now install gtk-doc there
|
||||||
|
insinto /usr/share/gtk-doc/html/poppler
|
||||||
|
doins -r "${S}"/glib/reference/html/*
|
||||||
|
fi
|
||||||
|
}
|
Binary file not shown.
Binary file not shown.
@ -0,0 +1,33 @@
|
|||||||
|
Description: Simple fixes
|
||||||
|
* Fix freeing unmalloced memory
|
||||||
|
The memory of 'in_file' is not malloced, but points to argv[].
|
||||||
|
It is wrong to free it.
|
||||||
|
* When there is no input file specified by argv, it causes error
|
||||||
|
and fp_in == NULL. Check is needed to call fclose for fp_in.
|
||||||
|
Author: NIIBE Yutaka
|
||||||
|
|
||||||
|
## Fixes the issue reported at:
|
||||||
|
## http://www.forallsecure.com/bug-reports/6b11b6fccda17cc467e055ccf7fec3fa2d89ec00/
|
||||||
|
|
||||||
|
Index: mcpp-2.7.2/src/main.c
|
||||||
|
===================================================================
|
||||||
|
--- mcpp-2.7.2.orig/src/main.c 2013-07-09 03:03:05.610947658 +0000
|
||||||
|
+++ mcpp-2.7.2/src/main.c 2013-07-09 03:03:05.534947624 +0000
|
||||||
|
@@ -428,16 +428,11 @@
|
||||||
|
|
||||||
|
fatal_error_exit:
|
||||||
|
#if MCPP_LIB
|
||||||
|
- /* Free malloced memory */
|
||||||
|
- if (mcpp_debug & MACRO_CALL) {
|
||||||
|
- if (in_file != stdin_name)
|
||||||
|
- free( in_file);
|
||||||
|
- }
|
||||||
|
clear_filelist();
|
||||||
|
clear_symtable();
|
||||||
|
#endif
|
||||||
|
|
||||||
|
- if (fp_in != stdin)
|
||||||
|
+ if (fp_in && fp_in != stdin)
|
||||||
|
fclose( fp_in);
|
||||||
|
if (fp_out != stdout)
|
||||||
|
fclose( fp_out);
|
@ -0,0 +1,75 @@
|
|||||||
|
Description: Fixes by ZeroC, Inc.
|
||||||
|
Author: ZeroC, Inc.
|
||||||
|
Bug-Debian: http://bugs.debian.org/611749
|
||||||
|
|
||||||
|
--- mcpp-2.7.2.orig/src/main.c
|
||||||
|
+++ mcpp-2.7.2/src/main.c
|
||||||
|
@@ -326,6 +326,8 @@ static void init_main( void)
|
||||||
|
= FALSE;
|
||||||
|
option_flags.trig = TRIGRAPHS_INIT;
|
||||||
|
option_flags.dig = DIGRAPHS_INIT;
|
||||||
|
+ sh_file = NULL;
|
||||||
|
+ sh_line = 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
int mcpp_lib_main
|
||||||
|
--- mcpp-2.7.2.orig/src/support.c
|
||||||
|
+++ mcpp-2.7.2/src/support.c
|
||||||
|
@@ -188,7 +188,7 @@ static char * append_to_buffer(
|
||||||
|
size_t length
|
||||||
|
)
|
||||||
|
{
|
||||||
|
- if (mem_buf_p->bytes_avail < length) { /* Need to allocate more memory */
|
||||||
|
+ if (mem_buf_p->bytes_avail < length + 1) { /* Need to allocate more memory */
|
||||||
|
size_t size = MAX( BUF_INCR_SIZE, length);
|
||||||
|
|
||||||
|
if (mem_buf_p->buffer == NULL) { /* 1st append */
|
||||||
|
@@ -1722,6 +1722,8 @@ com_start:
|
||||||
|
sp -= 2;
|
||||||
|
while (*sp != '\n') /* Until end of line */
|
||||||
|
mcpp_fputc( *sp++, OUT);
|
||||||
|
+ mcpp_fputc( '\n', OUT);
|
||||||
|
+ wrong_line = TRUE;
|
||||||
|
}
|
||||||
|
goto end_line;
|
||||||
|
default: /* Not a comment */
|
||||||
|
--- mcpp-2.7.2.orig/src/internal.H
|
||||||
|
+++ mcpp-2.7.2/src/internal.H
|
||||||
|
@@ -390,6 +390,8 @@ extern char * const work_end; /* E
|
||||||
|
extern char identifier[]; /* Lastly scanned name */
|
||||||
|
extern IFINFO ifstack[]; /* Information of #if nesting */
|
||||||
|
extern char work_buf[];
|
||||||
|
+extern FILEINFO * sh_file;
|
||||||
|
+extern int sh_line;
|
||||||
|
/* Temporary buffer for directive line and macro expansion */
|
||||||
|
|
||||||
|
/* main.c */
|
||||||
|
@@ -557,6 +559,6 @@ extern void init_system( void);
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
-#if HOST_HAVE_STPCPY
|
||||||
|
+#if HOST_HAVE_STPCPY && !defined(stpcpy)
|
||||||
|
extern char * stpcpy( char * dest, const char * src);
|
||||||
|
#endif
|
||||||
|
--- mcpp-2.7.2.orig/src/system.c
|
||||||
|
+++ mcpp-2.7.2/src/system.c
|
||||||
|
@@ -3858,6 +3858,9 @@ static int chk_dirp(
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
+FILEINFO* sh_file;
|
||||||
|
+int sh_line;
|
||||||
|
+
|
||||||
|
void sharp(
|
||||||
|
FILEINFO * sharp_file,
|
||||||
|
int flag /* Flag to append to the line for GCC */
|
||||||
|
@@ -3868,8 +3871,6 @@ void sharp(
|
||||||
|
* else (i.e. 'sharp_file' is NULL) 'infile'.
|
||||||
|
*/
|
||||||
|
{
|
||||||
|
- static FILEINFO * sh_file;
|
||||||
|
- static int sh_line;
|
||||||
|
FILEINFO * file;
|
||||||
|
int line;
|
||||||
|
|
@ -0,0 +1,44 @@
|
|||||||
|
# Copyright 1999-2018 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=6
|
||||||
|
|
||||||
|
inherit autotools
|
||||||
|
|
||||||
|
MY_P=${P/lib/}
|
||||||
|
|
||||||
|
DESCRIPTION="A portable C++ preprocessor"
|
||||||
|
HOMEPAGE="http://mcpp.sourceforge.net"
|
||||||
|
SRC_URI="mirror://sourceforge/mcpp/${MY_P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="BSD"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~arm ~ia64 ~x86 ~x86-linux ~x64-macos"
|
||||||
|
IUSE="static-libs"
|
||||||
|
|
||||||
|
S=${WORKDIR}/${MY_P}
|
||||||
|
|
||||||
|
PATCHES=(
|
||||||
|
"${FILESDIR}"/${PN}-2.7.2-fix-build-system.patch
|
||||||
|
"${FILESDIR}"/${PN}-2.7.2-zeroc.patch
|
||||||
|
"${FILESDIR}"/${PN}-2.7.2-gniibe.patch
|
||||||
|
)
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
default
|
||||||
|
eautoreconf
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
econf \
|
||||||
|
--enable-mcpplib \
|
||||||
|
$(use_enable static-libs static)
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
default
|
||||||
|
|
||||||
|
if ! use static-libs; then
|
||||||
|
find "${D}" -name '*.la' -delete || die
|
||||||
|
fi
|
||||||
|
}
|
Binary file not shown.
@ -0,0 +1,141 @@
|
|||||||
|
# Copyright 1999-2018 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=6
|
||||||
|
|
||||||
|
inherit autotools eutils flag-o-matic systemd toolchain-funcs user
|
||||||
|
|
||||||
|
DESCRIPTION="A persistent caching system, key-value and data structures database"
|
||||||
|
HOMEPAGE="https://redis.io"
|
||||||
|
SRC_URI="http://download.redis.io/releases/${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="BSD"
|
||||||
|
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~x86-macos ~x86-solaris"
|
||||||
|
IUSE="+jemalloc tcmalloc luajit test"
|
||||||
|
SLOT="0"
|
||||||
|
|
||||||
|
# Redis does NOT build with Lua 5.2 or newer at this time.
|
||||||
|
# This should link correctly with both unslotted & slotted Lua, without
|
||||||
|
# changes.
|
||||||
|
RDEPEND="
|
||||||
|
luajit? ( dev-lang/luajit:2 )
|
||||||
|
!luajit? ( || ( dev-lang/lua:5.1 =dev-lang/lua-5.1*:0 ) )
|
||||||
|
tcmalloc? ( dev-util/google-perftools )
|
||||||
|
jemalloc? ( >=dev-libs/jemalloc-3.2 )"
|
||||||
|
|
||||||
|
DEPEND="
|
||||||
|
${RDEPEND}
|
||||||
|
virtual/pkgconfig
|
||||||
|
>=sys-devel/autoconf-2.63
|
||||||
|
test? ( dev-lang/tcl:0= )"
|
||||||
|
|
||||||
|
REQUIRED_USE="?? ( tcmalloc jemalloc )"
|
||||||
|
|
||||||
|
S="${WORKDIR}/${PN}-${PV/_/-}"
|
||||||
|
|
||||||
|
pkg_setup() {
|
||||||
|
enewgroup redis 75
|
||||||
|
enewuser redis 75 -1 /var/lib/redis redis
|
||||||
|
}
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
eapply \
|
||||||
|
"${FILESDIR}"/${PN}-3.2.3-config.patch \
|
||||||
|
"${FILESDIR}"/${PN}-4.0.1-shared.patch \
|
||||||
|
"${FILESDIR}"/${PN}-4.0.1-sharedlua.patch \
|
||||||
|
"${FILESDIR}"/${PN}-sentinel-4.0.6-config.patch
|
||||||
|
eapply_user
|
||||||
|
|
||||||
|
# Copy lua modules into build dir
|
||||||
|
cp "${S}"/deps/lua/src/{fpconv,lua_bit,lua_cjson,lua_cmsgpack,lua_struct,strbuf}.c "${S}"/src || die
|
||||||
|
cp "${S}"/deps/lua/src/{fpconv,strbuf}.h "${S}"/src || die
|
||||||
|
# Append cflag for lua_cjson
|
||||||
|
# https://github.com/antirez/redis/commit/4fdcd213#diff-3ba529ae517f6b57803af0502f52a40bL61
|
||||||
|
append-cflags "-DENABLE_CJSON_GLOBAL"
|
||||||
|
|
||||||
|
# now we will rewrite present Makefiles
|
||||||
|
local makefiles="" MKF
|
||||||
|
for MKF in $(find -name 'Makefile' | cut -b 3-); do
|
||||||
|
mv "${MKF}" "${MKF}.in"
|
||||||
|
sed -i -e 's:$(CC):@CC@:g' \
|
||||||
|
-e 's:$(CFLAGS):@AM_CFLAGS@:g' \
|
||||||
|
-e 's: $(DEBUG)::g' \
|
||||||
|
-e 's:$(OBJARCH)::g' \
|
||||||
|
-e 's:ARCH:TARCH:g' \
|
||||||
|
-e '/^CCOPT=/s:$: $(LDFLAGS):g' \
|
||||||
|
"${MKF}.in" \
|
||||||
|
|| die "Sed failed for ${MKF}"
|
||||||
|
makefiles+=" ${MKF}"
|
||||||
|
done
|
||||||
|
# autodetection of compiler and settings; generates the modified Makefiles
|
||||||
|
cp "${FILESDIR}"/configure.ac-3.2 configure.ac || die
|
||||||
|
|
||||||
|
# Use the correct pkgconfig name for Lua
|
||||||
|
has_version 'dev-lang/lua:5.1' \
|
||||||
|
&& LUAPKGCONFIG=lua5.1 \
|
||||||
|
|| LUAPKGCONFIG=lua
|
||||||
|
sed -i \
|
||||||
|
-e "/^AC_INIT/s|, [0-9].+, |, $PV, |" \
|
||||||
|
-e "s:AC_CONFIG_FILES(\[Makefile\]):AC_CONFIG_FILES([${makefiles}]):g" \
|
||||||
|
-e "/PKG_CHECK_MODULES.*\<LUA\>/s,lua5.1,${LUAPKGCONFIG},g" \
|
||||||
|
configure.ac || die "Sed failed for configure.ac"
|
||||||
|
eautoreconf
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
econf \
|
||||||
|
$(use_with luajit)
|
||||||
|
|
||||||
|
# Linenoise can't be built with -std=c99, see https://bugs.gentoo.org/451164
|
||||||
|
# also, don't define ANSI/c99 for lua twice
|
||||||
|
sed -i -e "s:-std=c99::g" deps/linenoise/Makefile deps/Makefile || die
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
tc-export CC AR RANLIB
|
||||||
|
|
||||||
|
local myconf=""
|
||||||
|
|
||||||
|
if use tcmalloc; then
|
||||||
|
myconf="${myconf} USE_TCMALLOC=yes"
|
||||||
|
elif use jemalloc; then
|
||||||
|
myconf="${myconf} JEMALLOC_SHARED=yes"
|
||||||
|
else
|
||||||
|
myconf="${myconf} MALLOC=yes"
|
||||||
|
fi
|
||||||
|
|
||||||
|
emake ${myconf} V=1 CC="${CC}" AR="${AR} rcu" RANLIB="${RANLIB}"
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
insinto /etc/
|
||||||
|
doins redis.conf sentinel.conf
|
||||||
|
use prefix || fowners redis:redis /etc/{redis,sentinel}.conf
|
||||||
|
fperms 0644 /etc/{redis,sentinel}.conf
|
||||||
|
|
||||||
|
newconfd "${FILESDIR}/redis.confd-r1" redis
|
||||||
|
newinitd "${FILESDIR}/redis.initd-5" redis
|
||||||
|
|
||||||
|
systemd_newunit "${FILESDIR}/redis.service-2" redis.service
|
||||||
|
systemd_newtmpfilesd "${FILESDIR}/redis.tmpfiles" redis.conf
|
||||||
|
|
||||||
|
newconfd "${FILESDIR}/redis-sentinel.confd" redis-sentinel
|
||||||
|
newinitd "${FILESDIR}/redis-sentinel.initd" redis-sentinel
|
||||||
|
|
||||||
|
insinto /etc/logrotate.d/
|
||||||
|
newins "${FILESDIR}/${PN}.logrotate" ${PN}
|
||||||
|
|
||||||
|
dodoc 00-RELEASENOTES BUGS CONTRIBUTING MANIFESTO README.md
|
||||||
|
|
||||||
|
dobin src/redis-cli
|
||||||
|
dosbin src/redis-benchmark src/redis-server src/redis-check-aof src/redis-check-rdb
|
||||||
|
fperms 0750 /usr/sbin/redis-benchmark
|
||||||
|
dosym redis-server /usr/sbin/redis-sentinel
|
||||||
|
|
||||||
|
if use prefix; then
|
||||||
|
diropts -m0750
|
||||||
|
else
|
||||||
|
diropts -m0750 -o redis -g redis
|
||||||
|
fi
|
||||||
|
keepdir /var/{log,lib}/redis
|
||||||
|
}
|
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue