parent
1337c7eead
commit
a7b87f2b7c
@ -0,0 +1 @@
|
||||
DIST gentoo-perl-helpers-0.1.0.tar.xz 6692 SHA256 e2c0e3eabbdba194460547d4b2beb2b632ff12833bff2454fc7e8a1f57772158 SHA512 929921c4584d990b53163413b58d4fd7a8868073c03095e90914c3565e65d5ee3e86e2c5269079b4c683c9db6fe5e035358539f62091fbc24af818e6330d414b WHIRLPOOL 372f38e18e2c386ad535df36c686597cb9db51fe166d9946a3d10750d85052fd08c242a5c1c781722b63cb4d79d15bd1b6de8d9ce54553511f505d3ca29ade85
|
@ -0,0 +1,48 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
DESCRIPTION="Introspection and Upgrade Assistance tools for Gentoo Perl"
|
||||
HOMEPAGE="https://github.com/gentoo-perl/gentoo-perl-helpers"
|
||||
SRC_URI="https://github.com/gentoo-perl/${PN}/releases/download/${PV}/${P}.tar.xz"
|
||||
|
||||
LICENSE="GPL-2+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
# Assumed System:
|
||||
# sys-apps/coreutils
|
||||
# sys-apps/grep
|
||||
# sys-apps/findutils
|
||||
# sys-apps/sed
|
||||
# app-shells/bash
|
||||
|
||||
RDEPEND="
|
||||
app-portage/portage-utils
|
||||
sys-apps/portage
|
||||
"
|
||||
DEPEND=""
|
||||
|
||||
S="${WORKDIR}"
|
||||
src_prepare() {
|
||||
sed -i -e "s^@@LIBDIR@@^${EPREFIX}/usr/lib/gentoo-perl-helpers^g" \
|
||||
-e "s^@@LIBEXECDIR@@^${EPREFIX}/usr/libexec/gentoo-perl-helpers^g" \
|
||||
"${S}/bin/gentoo-perl" || die "Can't patch bin/gentoo-perl"
|
||||
default
|
||||
}
|
||||
src_compile() { :; }
|
||||
src_install() {
|
||||
exeinto /usr/bin
|
||||
doexe "${S}/bin/"*
|
||||
|
||||
exeinto /usr/libexec/gentoo-perl-helpers
|
||||
doexe "${S}/libexec/"*
|
||||
|
||||
insinto /usr/lib/gentoo-perl-helpers
|
||||
doins "${S}/lib/"*
|
||||
|
||||
dodoc "${S}/README.mkdn"
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>kentnl@gentoo.org</email>
|
||||
<name>Kent Fredric</name>
|
||||
</maintainer>
|
||||
<maintainer type="project">
|
||||
<email>perl@gentoo.org</email>
|
||||
<name>Gentoo Perl Project</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">gentoo-perl/gentoo-perl-helpers</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
@ -1,4 +1,4 @@
|
||||
DIST salt-2015.5.10.tar.gz 5693422 SHA256 863a96e70f8521af35fe11b10d25b3205a0bfbba9a8aee02e2842aa7106496fd SHA512 78a4cbe5c771208e957360689a25ae4e44566987e07e7fda54e6db9028485eacc6ad016c65c981090f9b5d95331e46048a094aecc27703b3956c06ab6ebad95d WHIRLPOOL 805b48df07707d85d8338251f26c72164a5421731fc11f5c933b72af97348a2f11ee35889f72ec032acbea275e98575d35786b56fd84a7917f8fdbc30567ae86
|
||||
DIST salt-2015.8.12.tar.gz 7033938 SHA256 712f72b30a9555ea46a51bc677e05ffa2eefaeefa6b48d4f7ae45dbcb1073c69 SHA512 8ce940a413c740bd82c6c96103d48b376a47cb8161a5d72ece3f4bf6b39134bd722787a427249726dc137064d032fa913c7f6c6db22d0808ba1a829d4f25e9ec WHIRLPOOL 723660eac1346c3ba29b88c7db1a4485a194aebbdf33ea6dc411c420059767a3feb5c863941d772b504cede4a78a57e3ce696601872d21d29f4def373db697d4
|
||||
DIST salt-2016.11.0.tar.gz 9044879 SHA256 b516285926ee95cedc64ecddab05d14422b7c8819c9f6d046a431c41d608e6bc SHA512 0cddebe9fda1f7d08aa7ee5d4e49e182c67e7bc179136da30d20c991bc10d7299034198f6721b89eda2604480aa2cfe6960f37fadde4d72adf166a065a9f6443 WHIRLPOOL 595ab7c7e50cafdfc7d69a1e24964a88092e93416dc23b295e1ab59f1ce3ae8fa10b24c4e9fe45c1d2d8557290aceae66f93d3da81a1f1be62c98e537cb8ad6a
|
||||
DIST salt-2016.3.4.tar.gz 8354090 SHA256 5d4c822719d7fb2d79b0103cd9b015d251300890f8aa174e16b73fcfd6eb22f9 SHA512 ca17c5607d23d09e95fb4b6afbcf1b4f0be6bab47ff3eee883c1464e13b5271b71f0e7bedfa8afe05f32bf3a0a6f4050a91afb9285b52aa0f3da6105221397e0 WHIRLPOOL 95347b1f8447e8701074727430ef0a232e92aa9e961451c445890552c6d9533569e470dfa4864f673c6c3b3eccb16ec9c3615cfcab6d29e74756861afe43fcac
|
||||
DIST salt-2015.8.13.tar.gz 7036243 SHA256 cca82c9a4f267692660b098c1f76e54ab6a24131391893719bde0eb3a1ed2959 SHA512 ec8626f7360542bfeea90fc3d6fd9d9d015da4c2a6adf9957c22501ed9531b0a44d2cbc4853c41856b4cd46c142d2441884ec99700f3c0a5310cc428f9f1ec2a WHIRLPOOL c21f3bdc5fd674ea664c7e8fd58ef6685328a6ee3679850f3e9a085b1e604e1224a3323b906b47075fb8dd39f373583fb549e7b0f3f725d44928bcf716955a10
|
||||
DIST salt-2016.11.2.tar.gz 9114042 SHA256 f5c3d3cf4293d5b80a93790c76dec61421991c9c54222abd7327b3437ad13a43 SHA512 0dbc861424643af664edd2d9cb8bcbde7e9bcf7c1d202a5e844af83c21dc2d75fd7034db27dffc58dc2a6e47cfe2ea2c42e2a9af867c7ca78f93166eb4fd03ad WHIRLPOOL e1757de32d41e356a423ca347f59fdce05b574bb7bd9dbeffd34e7f6e90e8f0a2afb48ac209736fa6b7da86525c85e7ac5c7539dde621c533fa1e5b3475c5392
|
||||
DIST salt-2016.3.5.tar.gz 8405980 SHA256 fec215dfdec33ca6826453e5437656f9ed5e4a121ef3db6341f91f799cd3e751 SHA512 ca9ae85f8174aa55fefeaef70d65981d581f25f14f219f437ad4dc0db08e5944f356564c92aee46e796547db38312efedc8db5080576d578982f963a742635e6 WHIRLPOOL 72b504dd669adf4ffc6818083f40b07b78914c8f168ab496d628a3f5cd136d7c4266906007e095aff4c18e123dfcf03391f577fb09b841eb71bc30ea6a46de07
|
||||
|
@ -0,0 +1,69 @@
|
||||
diff --git a/tests/unit/states/boto_vpc_test.py b/tests/unit/states/boto_vpc_test.py
|
||||
index 53b6a24e4d..96b5630627 100644
|
||||
--- a/tests/unit/states/boto_vpc_test.py
|
||||
+++ b/tests/unit/states/boto_vpc_test.py
|
||||
@@ -179,16 +179,6 @@ class BotoVpcResourceTestCaseMixin(BotoVpcTestCaseMixin):
|
||||
self.assertTrue(exists)
|
||||
|
||||
@mock_ec2
|
||||
- def test_present_when_resource_exists(self):
|
||||
- vpc = self._create_vpc(name='test')
|
||||
- resource = self._create_resource(vpc_id=vpc.id, name='test')
|
||||
- with patch.dict('salt.utils.boto.__salt__', funcs):
|
||||
- resource_present_result = salt_states['boto_vpc.{0}_present'.format(self.resource_type)](
|
||||
- name='test', vpc_name='test', **self.extra_kwargs)
|
||||
- self.assertTrue(resource_present_result['result'])
|
||||
- self.assertEqual(resource_present_result['changes'], {})
|
||||
-
|
||||
- @mock_ec2
|
||||
@skipIf(True, 'Disabled pending https://github.com/spulec/moto/issues/493')
|
||||
def test_present_with_failure(self):
|
||||
vpc = self._create_vpc(name='test')
|
||||
@@ -210,18 +200,6 @@ class BotoVpcResourceTestCaseMixin(BotoVpcTestCaseMixin):
|
||||
self.assertEqual(resource_absent_result['changes'], {})
|
||||
|
||||
@mock_ec2
|
||||
- def test_absent_when_resource_exists(self):
|
||||
- vpc = self._create_vpc(name='test')
|
||||
- self._create_resource(vpc_id=vpc.id, name='test')
|
||||
-
|
||||
- with patch.dict('salt.utils.boto.__salt__', funcs):
|
||||
- resource_absent_result = salt_states['boto_vpc.{0}_absent'.format(self.resource_type)]('test')
|
||||
- self.assertTrue(resource_absent_result['result'])
|
||||
- self.assertEqual(resource_absent_result['changes']['new'][self.resource_type], None)
|
||||
- exists = funcs['boto_vpc.resource_exists'](self.resource_type, 'test').get('exists')
|
||||
- self.assertFalse(exists)
|
||||
-
|
||||
- @mock_ec2
|
||||
@skipIf(True, 'Disabled pending https://github.com/spulec/moto/issues/493')
|
||||
def test_absent_with_failure(self):
|
||||
vpc = self._create_vpc(name='test')
|
||||
@@ -293,28 +271,3 @@ class BotoVpcRouteTableTestCase(BotoVpcStateTestCaseBase, BotoVpcResourceTestCas
|
||||
|
||||
new_subnets = changes['new']['subnets_associations']
|
||||
self.assertEqual(new_subnets[0]['subnet_id'], subnet2.id)
|
||||
-
|
||||
- @mock_ec2
|
||||
- def test_present_with_routes(self):
|
||||
- vpc = self._create_vpc(name='test')
|
||||
- igw = self._create_internet_gateway(name='test', vpc_id=vpc.id)
|
||||
-
|
||||
- route_table_present_result = salt_states['boto_vpc.route_table_present'](
|
||||
- name='test', vpc_name='test', routes=[{'destination_cidr_block': '0.0.0.0/0',
|
||||
- 'gateway_id': igw.id},
|
||||
- {'destination_cidr_block': '10.0.0.0/24',
|
||||
- 'gateway_id': 'local'}])
|
||||
- routes = [x['gateway_id'] for x in route_table_present_result['changes']['new']['routes']]
|
||||
-
|
||||
- self.assertEqual(set(routes), set(['local', igw.id]))
|
||||
-
|
||||
- route_table_present_result = salt_states['boto_vpc.route_table_present'](
|
||||
- name='test', vpc_name='test', routes=[{'destination_cidr_block': '10.0.0.0/24',
|
||||
- 'gateway_id': 'local'}])
|
||||
-
|
||||
- changes = route_table_present_result['changes']
|
||||
-
|
||||
- old_routes = [x['gateway_id'] for x in changes['old']['routes']]
|
||||
- self.assertEqual(set(routes), set(old_routes))
|
||||
-
|
||||
- self.assertEqual(changes['new']['routes'][0]['gateway_id'], 'local')
|
@ -0,0 +1,47 @@
|
||||
diff --git a/tests/unit/modules/qemu_nbd_test.py b/tests/unit/modules/qemu_nbd_test.py
|
||||
index 615e6b5670..fbd24aab86 100644
|
||||
--- a/tests/unit/modules/qemu_nbd_test.py
|
||||
+++ b/tests/unit/modules/qemu_nbd_test.py
|
||||
@@ -77,6 +77,7 @@ class QemuNbdTestCase(TestCase):
|
||||
Test if it mount the named image via qemu-nbd
|
||||
and return the mounted roots
|
||||
'''
|
||||
+ tmpdir = os.environ.get('TMPDIR', '/tmp')
|
||||
mock = MagicMock(return_value=True)
|
||||
with patch.dict(qemu_nbd.__salt__, {'cmd.run': mock}):
|
||||
self.assertEqual(qemu_nbd.init('/srv/image.qcow2'), '')
|
||||
@@ -89,7 +90,7 @@ class QemuNbdTestCase(TestCase):
|
||||
'mount.mount': mock,
|
||||
'cmd.retcode': MagicMock(side_effect=[1, 0])}):
|
||||
self.assertDictEqual(qemu_nbd.init('/srv/image.qcow2'),
|
||||
- {'/tmp/nbd/nbd0/nbd0': '/dev/nbd0'})
|
||||
+ {os.path.join(tmpdir, 'nbd/nbd0/nbd0'): '/dev/nbd0'})
|
||||
|
||||
# 'clear' function tests: 1
|
||||
|
||||
diff --git a/tests/unit/states/archive_test.py b/tests/unit/states/archive_test.py
|
||||
index e699362d8a..c7c7e8a965 100644
|
||||
--- a/tests/unit/states/archive_test.py
|
||||
+++ b/tests/unit/states/archive_test.py
|
||||
@@ -25,7 +25,7 @@ from salt.ext.six.moves import zip # pylint: disable=import-error,redefined-bui
|
||||
|
||||
# Globals
|
||||
archive.__salt__ = {}
|
||||
-archive.__opts__ = {"cachedir": "/tmp", "test": False}
|
||||
+archive.__opts__ = {"cachedir": os.environ.get('TMPDIR', "/tmp"), "test": False}
|
||||
archive.__env__ = 'test'
|
||||
|
||||
|
||||
diff --git a/tests/unit/utils/context_test.py b/tests/unit/utils/context_test.py
|
||||
index 5249d56747..a27ee9ab61 100644
|
||||
--- a/tests/unit/utils/context_test.py
|
||||
+++ b/tests/unit/utils/context_test.py
|
||||
@@ -18,7 +18,7 @@ import salt.payload
|
||||
import salt.utils
|
||||
|
||||
__context__ = {'a': 'b'}
|
||||
-__opts__ = {'cachedir': '/tmp'}
|
||||
+__opts__ = {'cachedir': os.environ.get('TMPDIR', '/tmp')}
|
||||
|
||||
|
||||
@skipIf(NO_MOCK, NO_MOCK_REASON)
|
@ -0,0 +1,483 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
inherit autotools perl-module user systemd
|
||||
|
||||
DESCRIPTION="The Advanced Maryland Automatic Network Disk Archiver"
|
||||
HOMEPAGE="http://www.amanda.org/"
|
||||
SRC_URI="mirror://sourceforge/amanda/${P}.tar.gz"
|
||||
|
||||
LICENSE="HPND BSD BSD-2 GPL-2+ GPL-3+"
|
||||
SLOT="0"
|
||||
IUSE="curl gnuplot ipv6 kerberos minimal nls readline s3 samba systemd xfs"
|
||||
|
||||
KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86"
|
||||
RDEPEND="sys-libs/readline:=
|
||||
virtual/awk
|
||||
app-arch/tar
|
||||
dev-lang/perl:=
|
||||
app-arch/dump
|
||||
net-misc/openssh
|
||||
>=dev-libs/glib-2.26.0
|
||||
dev-perl/JSON
|
||||
dev-perl/Encode-Locale
|
||||
nls? ( virtual/libintl )
|
||||
s3? ( >=net-misc/curl-7.10.0 )
|
||||
!s3? ( curl? ( >=net-misc/curl-7.10.0 ) )
|
||||
samba? ( net-fs/samba:= )
|
||||
kerberos? ( app-crypt/mit-krb5 )
|
||||
xfs? ( sys-fs/xfsdump )
|
||||
!minimal? (
|
||||
dev-perl/XML-Simple
|
||||
virtual/mailx
|
||||
app-arch/mt-st:=
|
||||
sys-block/mtx
|
||||
gnuplot? ( sci-visualization/gnuplot )
|
||||
app-crypt/aespipe
|
||||
app-crypt/gnupg
|
||||
)"
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig
|
||||
nls? ( sys-devel/gettext )
|
||||
>=app-text/docbook-xsl-stylesheets-1.72.0
|
||||
app-text/docbook-xml-dtd
|
||||
dev-libs/libxslt
|
||||
dev-lang/swig
|
||||
"
|
||||
|
||||
MYFILESDIR="${T}/files"
|
||||
ENVDIR="/etc/env.d"
|
||||
ENVDFILE="97amanda"
|
||||
TMPENVFILE="${T}/${ENVDFILE}"
|
||||
|
||||
# This is a complete list of Amanda settings that the ebuild takes from the
|
||||
# build environment. This allows users to alter the behavior of the package as
|
||||
# upstream intended, but keeping with Gentoo style. We store a copy of them in
|
||||
# /etc/env.d/97amanda during the install, so that they are preserved for future
|
||||
# installed. This variable name must not start with AMANDA_, as we do not want
|
||||
# it captured into the env file.
|
||||
ENV_SETTINGS_AMANDA="
|
||||
AMANDA_GROUP_GID AMANDA_GROUP_NAME
|
||||
AMANDA_USER_NAME AMANDA_USER_UID AMANDA_USER_SH AMANDA_USER_HOMEDIR AMANDA_USER_GROUPS
|
||||
AMANDA_SERVER AMANDA_SERVER_TAPE AMANDA_SERVER_TAPE_DEVICE AMANDA_SERVER_INDEX
|
||||
AMANDA_TAR_LISTDIR AMANDA_TAR
|
||||
AMANDA_PORTS_UDP AMANDA_PORTS_TCP AMANDA_PORTS_BOTH AMANDA_PORTS
|
||||
AMANDA_CONFIG_NAME AMANDA_TMPDIR"
|
||||
|
||||
amanda_variable_setup() {
|
||||
|
||||
# Setting vars
|
||||
local currentamanda
|
||||
|
||||
# Grab the current settings
|
||||
currentamanda="$(set | egrep "^AMANDA_" | grep -v '^AMANDA_ENV_SETTINGS' | xargs)"
|
||||
|
||||
# First we set the defaults
|
||||
[[ -z "${AMANDA_GROUP_GID}" ]] && AMANDA_GROUP_GID=87
|
||||
[[ -z "${AMANDA_GROUP_NAME}" ]] && AMANDA_GROUP_NAME=amanda
|
||||
[[ -z "${AMANDA_USER_NAME}" ]] && AMANDA_USER_NAME=amanda
|
||||
[[ -z "${AMANDA_USER_UID}" ]] && AMANDA_USER_UID=87
|
||||
[[ -z "${AMANDA_USER_SH}" ]] && AMANDA_USER_SH=/bin/bash
|
||||
[[ -z "${AMANDA_USER_HOMEDIR}" ]] && AMANDA_USER_HOMEDIR=/var/spool/amanda
|
||||
[[ -z "${AMANDA_USER_GROUPS}" ]] && AMANDA_USER_GROUPS="${AMANDA_GROUP_NAME}"
|
||||
|
||||
# This installs Amanda, with the server. However, it could be a client,
|
||||
# just specify an alternate server name in AMANDA_SERVER.
|
||||
[[ -z "${AMANDA_SERVER}" ]] && AMANDA_SERVER="${HOSTNAME}"
|
||||
[[ -z "${AMANDA_SERVER_TAPE}" ]] && AMANDA_SERVER_TAPE="${AMANDA_SERVER}"
|
||||
[[ -z "${AMANDA_SERVER_TAPE_DEVICE}" ]] && AMANDA_SERVER_TAPE_DEVICE="/dev/nst0"
|
||||
[[ -z "${AMANDA_SERVER_INDEX}" ]] && AMANDA_SERVER_INDEX="${AMANDA_SERVER}"
|
||||
[[ -z "${AMANDA_TAR_LISTDIR}" ]] && AMANDA_TAR_LISTDIR=${AMANDA_USER_HOMEDIR}/tar-lists
|
||||
[[ -z "${AMANDA_CONFIG_NAME}" ]] && AMANDA_CONFIG_NAME=DailySet1
|
||||
[[ -z "${AMANDA_TMPDIR}" ]] && AMANDA_TMPDIR=/var/tmp/amanda
|
||||
[[ -z "${AMANDA_DBGDIR}" ]] && AMANDA_DBGDIR="$AMANDA_TMPDIR"
|
||||
# These are left empty by default
|
||||
[[ -z "${AMANDA_PORTS_UDP}" ]] && AMANDA_PORTS_UDP=
|
||||
[[ -z "${AMANDA_PORTS_TCP}" ]] && AMANDA_PORTS_TCP=
|
||||
[[ -z "${AMANDA_PORTS_BOTH}" ]] && AMANDA_PORTS_BOTH=
|
||||
[[ -z "${AMANDA_PORTS}" ]] && AMANDA_PORTS=
|
||||
|
||||
# What tar to use
|
||||
[[ -z "${AMANDA_TAR}" ]] && AMANDA_TAR=/bin/tar
|
||||
|
||||
# Now pull in the old stuff
|
||||
if [[ -f "${EROOT}${ENVDIR}/${ENVDFILE}" ]]; then
|
||||
# We don't just source it as we don't want everything in there.
|
||||
eval $(egrep "^AMANDA_" "${EROOT}${ENVDIR}/${ENVDFILE}" | grep -v '^AMANDA_ENV_SETTINGS')
|
||||
fi
|
||||
|
||||
# Re-apply the new settings if any
|
||||
[ -n "${currentamanda}" ] && eval $(echo "${currentamanda}")
|
||||
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
amanda_variable_setup
|
||||
|
||||
# If USE=minimal, give out a warning, if AMANDA_SERVER is not set to
|
||||
# another host than HOSTNAME.
|
||||
if use minimal && [ "${AMANDA_SERVER}" = "${HOSTNAME}" ] ; then
|
||||
elog "You are installing a client-only version of Amanda."
|
||||
elog "You should set the variable \$AMANDA_SERVER to point at your"
|
||||
elog "Amanda-tape-server, otherwise you will have to specify its name"
|
||||
elog "when using amrecover on the client."
|
||||
elog "For example: Use something like"
|
||||
elog "AMANDA_SERVER=\"myserver\" emerge amanda"
|
||||
elog
|
||||
fi
|
||||
|
||||
enewgroup "${AMANDA_GROUP_NAME}" "${AMANDA_GROUP_GID}"
|
||||
enewuser "${AMANDA_USER_NAME}" "${AMANDA_USER_UID}" "${AMANDA_USER_SH}" "${AMANDA_USER_HOMEDIR}" "${AMANDA_USER_GROUPS}"
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
# we do not want the perl src_unpack
|
||||
default_src_unpack
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# gentoo bug #331111
|
||||
sed -i '/^check-local: check-perl$/d' "${S}"/config/automake/scripts.am || die
|
||||
sed -i '/^check-local:/s,syntax-check,,g' "${S}"/perl/Makefile.am || die
|
||||
|
||||
# bug with glibc-2.16.0
|
||||
sed -i -e '/gets is a security/d' "${S}"/gnulib/stdio.in.h || die
|
||||
|
||||
eautoreconf
|
||||
|
||||
# places for us to work in
|
||||
mkdir -p "${MYFILESDIR}" || die
|
||||
# Now we store the settings we just created
|
||||
set | egrep "^AMANDA_" | grep -v '^AMANDA_ENV_SETTINGS' > "${TMPENVFILE}" || die
|
||||
|
||||
# Prepare our custom files
|
||||
einfo "Building custom configuration files"
|
||||
local i # our iterator
|
||||
local sedexpr # var for sed expr
|
||||
sedexpr=''
|
||||
for i in ${ENV_SETTINGS_AMANDA} ; do
|
||||
local val
|
||||
eval "val=\"\${${i}}\""
|
||||
sedexpr="${sedexpr}s|__${i}__|${val}|g;"
|
||||
done
|
||||
|
||||
# now apply the sed expr
|
||||
for i in "${FILESDIR}"/amanda-* ; do
|
||||
sed -re "${sedexpr}" <"${i}" >"${MYFILESDIR}/`basename ${i}`" || die
|
||||
done
|
||||
|
||||
if use minimal; then
|
||||
cat "${MYFILESDIR}"/amanda-amandahosts-server.5.1_p3-r1 > "${T}"/amandahosts || die
|
||||
else
|
||||
sed -i -e 's:^\(my $amandahomedir\)=.*:\1 = $localstatedir;:' \
|
||||
server-src/am{addclient,serverconfig}.pl || die
|
||||
cat "${MYFILESDIR}"/amanda-amandahosts-client-2.5.1_p3-r1 > "${T}"/amandahosts || die
|
||||
fi
|
||||
|
||||
eapply "${FILESDIR}"/${P}-slots.patch || die
|
||||
eapply "${FILESDIR}"/${P}-labelstr.patch || die
|
||||
|
||||
eapply_user
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# fix bug #36316
|
||||
addpredict /var/cache/samba/gencache.tdb
|
||||
# fix bug #376169
|
||||
addpredict /run/blkid
|
||||
addpredict /etc/blkid.tab
|
||||
|
||||
[ ! -f "${TMPENVFILE}" ] && die "Variable setting file (${TMPENVFILE}) should exist!"
|
||||
source "${TMPENVFILE}"
|
||||
local myconf
|
||||
|
||||
einfo "Using ${AMANDA_SERVER_TAPE} for tape server."
|
||||
myconf="${myconf} --with-tape-server=${AMANDA_SERVER_TAPE}"
|
||||
einfo "Using ${AMANDA_SERVER_TAPE_DEVICE} for tape server."
|
||||
myconf="${myconf} --with-tape-device=${AMANDA_SERVER_TAPE_DEVICE}"
|
||||
einfo "Using ${AMANDA_SERVER_INDEX} for index server."
|
||||
myconf="${myconf} --with-index-server=${AMANDA_SERVER_INDEX}"
|
||||
einfo "Using ${AMANDA_USER_NAME} for amanda user."
|
||||
myconf="${myconf} --with-user=${AMANDA_USER_NAME}"
|
||||
einfo "Using ${AMANDA_GROUP_NAME} for amanda group."
|
||||
myconf="${myconf} --with-group=${AMANDA_GROUP_NAME}"
|
||||
einfo "Using ${AMANDA_TAR} as Tar implementation."
|
||||
myconf="${myconf} --with-gnutar=${AMANDA_TAR}"
|
||||
einfo "Using ${AMANDA_TAR_LISTDIR} as tar listdir."
|
||||
myconf="${myconf} --with-gnutar-listdir=${AMANDA_TAR_LISTDIR}"
|
||||
einfo "Using ${AMANDA_CONFIG_NAME} as default config name."
|
||||
myconf="${myconf} --with-config=${AMANDA_CONFIG_NAME}"
|
||||
einfo "Using ${AMANDA_TMPDIR} as Amanda temporary directory."
|
||||
myconf="${myconf} --with-tmpdir=${AMANDA_TMPDIR}"
|
||||
|
||||
if [ -n "${AMANDA_PORTS_UDP}" ] && [ -n "${AMANDA_PORTS_TCP}" ] && [ -z "${AMANDA_PORTS_BOTH}" ] ; then
|
||||
eerror "If you want _both_ UDP and TCP ports, please use only the"
|
||||
eerror "AMANDA_PORTS environment variable for identical ports, or set"
|
||||
eerror "AMANDA_PORTS_BOTH."
|
||||
die "Bad port setup!"
|
||||
fi
|
||||
if [ -n "${AMANDA_PORTS_UDP}" ]; then
|
||||
einfo "Using UDP ports ${AMANDA_PORTS_UDP/,/-}"
|
||||
myconf="${myconf} --with-udpportrange=${AMANDA_PORTS_UDP}"
|
||||
fi
|
||||
if [ -n "${AMANDA_PORTS_TCP}" ]; then
|
||||
einfo "Using TCP ports ${AMANDA_PORTS_TCP/,/-}"
|
||||
myconf="${myconf} --with-tcpportrange=${AMANDA_PORTS_TCP}"
|
||||
fi
|
||||
if [ -n "${AMANDA_PORTS}" ]; then
|
||||
einfo "Using ports ${AMANDA_PORTS/,/-}"
|
||||
myconf="${myconf} --with-portrange=${AMANDA_PORTS}"
|
||||
fi
|
||||
|
||||
# Extras
|
||||
# Speed option
|
||||
myconf="${myconf} --with-buffered-dump"
|
||||
# "debugging" in the configuration is NOT debug in the conventional sense.
|
||||
# It is actually just useful output in the application, and should remain
|
||||
# enabled. There are some cases of breakage with MTX tape changers as of
|
||||
# 2.5.1p2 that it exposes when turned off as well.
|
||||
myconf="${myconf} --with-debugging"
|
||||
# Where to put our files
|
||||
myconf="${myconf} --localstatedir=${AMANDA_USER_HOMEDIR}"
|
||||
|
||||
# Samba support
|
||||
myconf="${myconf} $(use_with samba smbclient /usr/bin/smbclient)"
|
||||
|
||||
# Support for BSD, SSH, BSDUDP, BSDTCP security methods all compiled in by
|
||||
# default
|
||||
myconf="${myconf} --with-bsd-security"
|
||||
myconf="${myconf} --with-ssh-security"
|
||||
myconf="${myconf} --with-bsdudp-security"
|
||||
myconf="${myconf} --with-bsdtcp-security"
|
||||
|
||||
# kerberos-security mechanism version 5
|
||||
myconf="${myconf} $(use_with kerberos krb5-security)"
|
||||
|
||||
# Amazon S3 support
|
||||
myconf="${myconf} `use_enable s3 s3-device`"
|
||||
|
||||
# libcurl is required for S3 but otherwise optional
|
||||
if ! use s3; then
|
||||
myconf="${myconf} $(use_with curl libcurl)"
|
||||
fi
|
||||
|
||||
# Client only, as requested in bug #127725
|
||||
if use minimal ; then
|
||||
myconf="${myconf} --without-server"
|
||||
else
|
||||
# amplot
|
||||
myconf="${myconf} $(use_with gnuplot)"
|
||||
fi
|
||||
|
||||
# IPv6 fun.
|
||||
myconf="${myconf} `use_with ipv6`"
|
||||
# This is to prevent the IPv6-is-working test
|
||||
# As the test fails on binpkg build hosts with no IPv6.
|
||||
use ipv6 && export amanda_cv_working_ipv6=yes
|
||||
|
||||
# I18N
|
||||
myconf="${myconf} `use_enable nls`"
|
||||
|
||||
# Bug #296634: Perl location
|
||||
perl_set_version
|
||||
myconf="${myconf} --with-amperldir=${VENDOR_LIB}"
|
||||
|
||||
# Bug 296633: --disable-syntax-checks
|
||||
# Some tests are not safe for production systems
|
||||
myconf="${myconf} --disable-syntax-checks"
|
||||
|
||||
# build manpages
|
||||
myconf="${myconf} --enable-manpage-build"
|
||||
|
||||
# bug #483120
|
||||
tc-export AR
|
||||
|
||||
econf \
|
||||
$(use_with readline) \
|
||||
${myconf}
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# Again, do not want the perl-module src_compile
|
||||
default_src_compile
|
||||
}
|
||||
|
||||
src_install() {
|
||||
[ ! -f "${TMPENVFILE}" ] && die "Variable setting file (${TMPENVFILE}) should exist!"
|
||||
source ${TMPENVFILE}
|
||||
|
||||
einfo "Doing stock install"
|
||||
emake DESTDIR="${D}" install || die
|
||||
|
||||
# Build the envdir file
|
||||
# Don't forget this..
|
||||
einfo "Building environment file"
|
||||
(
|
||||
echo "# These settings are what was present in the environment when this"
|
||||
echo "# Amanda was compiled. Changing anything below this comment will"
|
||||
echo "# have no effect on your application, but it merely exists to"
|
||||
echo "# preserve them for your next emerge of Amanda"
|
||||
cat "${TMPENVFILE}" | sed "s,=\$,='',g"
|
||||
) >> "${MYFILESDIR}/${ENVDFILE}"
|
||||
|
||||
# Env.d
|
||||
einfo "Installing environment config file"
|
||||
doenvd "${MYFILESDIR}/${ENVDFILE}"
|
||||
|
||||
# Lock down next section (up until docs).
|
||||
insopts -m0640
|
||||
# Installing Amanda Xinetd Services Definition
|
||||
einfo "Installing xinetd service file"
|
||||
insinto /etc/xinetd.d
|
||||
if use minimal ; then
|
||||
newins "${MYFILESDIR}"/amanda-xinetd-2.6.1_p1-client amanda
|
||||
else
|
||||
newins "${MYFILESDIR}"/amanda-xinetd-2.6.1_p1-server amanda
|
||||
fi
|
||||
|
||||
if ! use minimal; then
|
||||
einfo "Installing Sample Daily Cron Job for Amanda"
|
||||
insinto /etc/cron.daily
|
||||
newins "${MYFILESDIR}/amanda-cron" amanda
|
||||
fi
|
||||
|
||||
einfo "Installing systemd service and socket files for Amanda"
|
||||
systemd_dounit "${FILESDIR}"/amanda.socket || die
|
||||
systemd_newunit "${FILESDIR}"/amanda.service 'amanda@.service' || die
|
||||
|
||||
insinto /etc/amanda
|
||||
einfo "Installing .amandahosts File for ${AMANDA_USER_NAME} user"
|
||||
doins "${T}/amandahosts"
|
||||
fperms 600 /etc/amanda/amandahosts
|
||||
|
||||
dosym /etc/amanda/amandahosts "${AMANDA_USER_HOMEDIR}/.amandahosts"
|
||||
insinto "${AMANDA_USER_HOMEDIR}"
|
||||
einfo "Installing .profile for ${AMANDA_USER_NAME} user"
|
||||
newins "${MYFILESDIR}/amanda-profile" .profile
|
||||
|
||||
insinto /etc/amanda
|
||||
doins "${S}/example/amanda-client.conf"
|
||||
if ! use minimal ; then
|
||||
insinto "/etc/amanda/${AMANDA_CONFIG_NAME}"
|
||||
doins "${S}/example/amanda.conf"
|
||||
doins "${S}/example/disklist"
|
||||
keepdir "${AMANDA_USER_HOMEDIR}/${AMANDA_CONFIG_NAME}/index"
|
||||
fi
|
||||
|
||||
keepdir "${AMANDA_TAR_LISTDIR}"
|
||||
keepdir "${AMANDA_USER_HOMEDIR}/amanda"
|
||||
keepdir "${AMANDA_TMPDIR}/dumps"
|
||||
# Just make sure it exists for XFS to work...
|
||||
use xfs && keepdir /var/xfsdump/inventory
|
||||
|
||||
local i
|
||||
for i in "${AMANDA_USER_HOMEDIR}" "${AMANDA_TAR_LISTDIR}" \
|
||||
"${AMANDA_TMPDIR}" /etc/amanda; do
|
||||
einfo "Securing directory (${i})"
|
||||
fowners -R ${AMANDA_USER_NAME}:${AMANDA_GROUP_NAME} ${i}
|
||||
done
|
||||
# Do NOT use -R
|
||||
fperms 0700 \
|
||||
"${AMANDA_USER_HOMEDIR}" "${AMANDA_TAR_LISTDIR}" \
|
||||
"${AMANDA_TMPDIR}" "${AMANDA_TMPDIR}/dumps" \
|
||||
"${AMANDA_USER_HOMEDIR}/amanda" \
|
||||
/etc/amanda
|
||||
|
||||
if ! use minimal ; then
|
||||
fperms 0700 \
|
||||
"${AMANDA_USER_HOMEDIR}/${AMANDA_CONFIG_NAME}" \
|
||||
/etc/amanda/${AMANDA_CONFIG_NAME}
|
||||
fi
|
||||
|
||||
einfo "Setting setuid permissions"
|
||||
amanda_permissions_fix "${D}"
|
||||
|
||||
# Relax permissions again
|
||||
insopts -m0644
|
||||
|
||||
# docs
|
||||
einfo "Installing documentation"
|
||||
dodoc AUTHORS ChangeLog DEVELOPING NEWS README ReleaseNotes UPGRADING
|
||||
# our inetd sample
|
||||
einfo "Installing standard inetd sample"
|
||||
newdoc "${MYFILESDIR}/amanda-inetd.amanda.sample-2.6.0_p2-r2" amanda-inetd.amanda.sample
|
||||
# Amanda example configs
|
||||
einfo "Installing example configurations"
|
||||
rm "${D}"/usr/share/amanda/{COPYRIGHT,ChangeLog,NEWS,ReleaseNotes}
|
||||
mv "${D}/usr/share/amanda/example" "${D}/usr/share/doc/${PF}/"
|
||||
docinto example1
|
||||
newdoc "${FILESDIR}/example_amanda.conf" amanda.conf
|
||||
newdoc "${FILESDIR}/example_disklist-2.5.1_p3-r1" disklist
|
||||
newdoc "${FILESDIR}/example_global.conf" global.conf
|
||||
|
||||
einfo "Cleaning up dud .la files"
|
||||
perl_set_version
|
||||
find "${D}"/"${VENDOR_LIB}" -name '*.la' -print0 |xargs -0 rm -f
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
[ ! -f "${TMPENVFILE}" -a "$MERGE_TYPE" == "binary" ] && \
|
||||
TMPENVFILE="${ROOT}${ENVDIR}/${ENVDFILE}"
|
||||
[ ! -f "${TMPENVFILE}" ] && die "Variable setting file (${TMPENVFILE}) should exist!"
|
||||
source "${TMPENVFILE}"
|
||||
|
||||
# Migration of amandates from /etc to $localstatedir/amanda
|
||||
if [ -f "${ROOT}/etc/amandates" -a \
|
||||
! -f "${ROOT}/${AMANDA_USER_HOMEDIR}/amanda/amandates" ]; then
|
||||
einfo "Migrating amandates from /etc/ to ${AMANDA_USER_HOMEDIR}/amanda"
|
||||
einfo "A backup is also placed at /etc/amandates.orig"
|
||||
cp -dp "${ROOT}/etc/amandates" "${ROOT}/etc/amandates.orig"
|
||||
mkdir -p "${ROOT}/${AMANDA_USER_HOMEDIR}/amanda/"
|
||||
cp -dp "${ROOT}/etc/amandates" "${ROOT}/${AMANDA_USER_HOMEDIR}/amanda/amandates"
|
||||
fi
|
||||
if [ -f "${ROOT}/etc/amandates" ]; then
|
||||
einfo "If you have migrated safely, please delete /etc/amandates"
|
||||
fi
|
||||
|
||||
einfo "Checking setuid permissions"
|
||||
amanda_permissions_fix "${ROOT}"
|
||||
|
||||
elog "You should configure Amanda in /etc/amanda now."
|
||||
elog
|
||||
elog "If you use xinetd, Don't forget to check /etc/xinetd.d/amanda"
|
||||
elog "and restart xinetd afterwards!"
|
||||
elog
|
||||
elog "Otherwise, please look at /usr/share/doc/${PF}/inetd.amanda.sample"
|
||||
elog "as an example of how to configure your inetd."
|
||||
elog
|
||||
elog "systemd-users: enable and start amanda.socket or the relevant services"
|
||||
elog "regarding what auth method you use."
|
||||
elog
|
||||
elog "NOTICE: If you need raw access to partitions you need to add the"
|
||||
elog "amanda user to the 'disk' group."
|
||||
elog
|
||||
elog "NOTICE: If you have a tape changer, you need to add the amanda user"
|
||||
elog "to the 'tape' group."
|
||||
elog
|
||||
elog "If you use localhost in your disklist your restores may break."
|
||||
elog "You should replace it with the actual hostname!"
|
||||
elog "Please also see the syntax changes to amandahosts."
|
||||
elog "The only exception is when you use the authentication method 'local'."
|
||||
elog
|
||||
elog "Please note that this package no longer explicitly depends on"
|
||||
elog "virtual/inetd, as it supports modes where an inetd is not needed"
|
||||
elog "(see bug #506028 for details)."
|
||||
}
|
||||
|
||||
# We have had reports of amanda file permissions getting screwed up.
|
||||
# Losing setuid, becoming too lax etc.
|
||||
# ONLY root and users in the amanda group should be able to run these binaries!
|
||||
amanda_permissions_fix() {
|
||||
local root="$1"
|
||||
[ -z "${root}" ] && die "Failed to pass root argument to amanda_permissions_fix!"
|
||||
local le="/usr/libexec/amanda"
|
||||
for i in /usr/sbin/amcheck "${le}"/calcsize "${le}"/killpgrp \
|
||||
"${le}"/rundump "${le}"/runtar "${le}"/dumper \
|
||||
"${le}"/planner ; do
|
||||
chown root:${AMANDA_GROUP_NAME} "${root}"/${i}
|
||||
chmod u=srwx,g=rx,o= "${root}"/${i}
|
||||
done
|
||||
}
|
@ -0,0 +1,480 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
inherit autotools perl-module user systemd
|
||||
|
||||
DESCRIPTION="The Advanced Maryland Automatic Network Disk Archiver"
|
||||
HOMEPAGE="http://www.amanda.org/"
|
||||
SRC_URI="mirror://sourceforge/amanda/${P}.tar.gz"
|
||||
|
||||
LICENSE="HPND BSD BSD-2 GPL-2+ GPL-3+"
|
||||
SLOT="0"
|
||||
IUSE="curl gnuplot ipv6 kerberos minimal nls readline s3 samba systemd xfs"
|
||||
|
||||
KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86"
|
||||
RDEPEND="sys-libs/readline:=
|
||||
virtual/awk
|
||||
app-arch/tar
|
||||
dev-lang/perl:=
|
||||
app-arch/dump
|
||||
net-misc/openssh
|
||||
>=dev-libs/glib-2.26.0
|
||||
dev-perl/JSON
|
||||
dev-perl/Encode-Locale
|
||||
nls? ( virtual/libintl )
|
||||
s3? ( >=net-misc/curl-7.10.0 )
|
||||
!s3? ( curl? ( >=net-misc/curl-7.10.0 ) )
|
||||
samba? ( net-fs/samba:= )
|
||||
kerberos? ( app-crypt/mit-krb5 )
|
||||
xfs? ( sys-fs/xfsdump )
|
||||
!minimal? (
|
||||
dev-perl/XML-Simple
|
||||
virtual/mailx
|
||||
app-arch/mt-st:=
|
||||
sys-block/mtx
|
||||
gnuplot? ( sci-visualization/gnuplot )
|
||||
app-crypt/aespipe
|
||||
app-crypt/gnupg
|
||||
)"
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig
|
||||
nls? ( sys-devel/gettext )
|
||||
>=app-text/docbook-xsl-stylesheets-1.72.0
|
||||
app-text/docbook-xml-dtd
|
||||
dev-libs/libxslt
|
||||
dev-lang/swig
|
||||
"
|
||||
|
||||
MYFILESDIR="${T}/files"
|
||||
ENVDIR="/etc/env.d"
|
||||
ENVDFILE="97amanda"
|
||||
TMPENVFILE="${T}/${ENVDFILE}"
|
||||
|
||||
# This is a complete list of Amanda settings that the ebuild takes from the
|
||||
# build environment. This allows users to alter the behavior of the package as
|
||||
# upstream intended, but keeping with Gentoo style. We store a copy of them in
|
||||
# /etc/env.d/97amanda during the install, so that they are preserved for future
|
||||
# installed. This variable name must not start with AMANDA_, as we do not want
|
||||
# it captured into the env file.
|
||||
ENV_SETTINGS_AMANDA="
|
||||
AMANDA_GROUP_GID AMANDA_GROUP_NAME
|
||||
AMANDA_USER_NAME AMANDA_USER_UID AMANDA_USER_SH AMANDA_USER_HOMEDIR AMANDA_USER_GROUPS
|
||||
AMANDA_SERVER AMANDA_SERVER_TAPE AMANDA_SERVER_TAPE_DEVICE AMANDA_SERVER_INDEX
|
||||
AMANDA_TAR_LISTDIR AMANDA_TAR
|
||||
AMANDA_PORTS_UDP AMANDA_PORTS_TCP AMANDA_PORTS_BOTH AMANDA_PORTS
|
||||
AMANDA_CONFIG_NAME AMANDA_TMPDIR"
|
||||
|
||||
amanda_variable_setup() {
|
||||
|
||||
# Setting vars
|
||||
local currentamanda
|
||||
|
||||
# Grab the current settings
|
||||
currentamanda="$(set | egrep "^AMANDA_" | grep -v '^AMANDA_ENV_SETTINGS' | xargs)"
|
||||
|
||||
# First we set the defaults
|
||||
[[ -z "${AMANDA_GROUP_GID}" ]] && AMANDA_GROUP_GID=87
|
||||
[[ -z "${AMANDA_GROUP_NAME}" ]] && AMANDA_GROUP_NAME=amanda
|
||||
[[ -z "${AMANDA_USER_NAME}" ]] && AMANDA_USER_NAME=amanda
|
||||
[[ -z "${AMANDA_USER_UID}" ]] && AMANDA_USER_UID=87
|
||||
[[ -z "${AMANDA_USER_SH}" ]] && AMANDA_USER_SH=/bin/bash
|
||||
[[ -z "${AMANDA_USER_HOMEDIR}" ]] && AMANDA_USER_HOMEDIR=/var/spool/amanda
|
||||
[[ -z "${AMANDA_USER_GROUPS}" ]] && AMANDA_USER_GROUPS="${AMANDA_GROUP_NAME}"
|
||||
|
||||
# This installs Amanda, with the server. However, it could be a client,
|
||||
# just specify an alternate server name in AMANDA_SERVER.
|
||||
[[ -z "${AMANDA_SERVER}" ]] && AMANDA_SERVER="${HOSTNAME}"
|
||||
[[ -z "${AMANDA_SERVER_TAPE}" ]] && AMANDA_SERVER_TAPE="${AMANDA_SERVER}"
|
||||
[[ -z "${AMANDA_SERVER_TAPE_DEVICE}" ]] && AMANDA_SERVER_TAPE_DEVICE="/dev/nst0"
|
||||
[[ -z "${AMANDA_SERVER_INDEX}" ]] && AMANDA_SERVER_INDEX="${AMANDA_SERVER}"
|
||||
[[ -z "${AMANDA_TAR_LISTDIR}" ]] && AMANDA_TAR_LISTDIR=${AMANDA_USER_HOMEDIR}/tar-lists
|
||||
[[ -z "${AMANDA_CONFIG_NAME}" ]] && AMANDA_CONFIG_NAME=DailySet1
|
||||
[[ -z "${AMANDA_TMPDIR}" ]] && AMANDA_TMPDIR=/var/tmp/amanda
|
||||
[[ -z "${AMANDA_DBGDIR}" ]] && AMANDA_DBGDIR="$AMANDA_TMPDIR"
|
||||
# These are left empty by default
|
||||
[[ -z "${AMANDA_PORTS_UDP}" ]] && AMANDA_PORTS_UDP=
|
||||
[[ -z "${AMANDA_PORTS_TCP}" ]] && AMANDA_PORTS_TCP=
|
||||
[[ -z "${AMANDA_PORTS_BOTH}" ]] && AMANDA_PORTS_BOTH=
|
||||
[[ -z "${AMANDA_PORTS}" ]] && AMANDA_PORTS=
|
||||
|
||||
# What tar to use
|
||||
[[ -z "${AMANDA_TAR}" ]] && AMANDA_TAR=/bin/tar
|
||||
|
||||
# Now pull in the old stuff
|
||||
if [[ -f "${EROOT}${ENVDIR}/${ENVDFILE}" ]]; then
|
||||
# We don't just source it as we don't want everything in there.
|
||||
eval $(egrep "^AMANDA_" "${EROOT}${ENVDIR}/${ENVDFILE}" | grep -v '^AMANDA_ENV_SETTINGS')
|
||||
fi
|
||||
|
||||
# Re-apply the new settings if any
|
||||
[ -n "${currentamanda}" ] && eval $(echo "${currentamanda}")
|
||||
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
amanda_variable_setup
|
||||
|
||||
# If USE=minimal, give out a warning, if AMANDA_SERVER is not set to
|
||||
# another host than HOSTNAME.
|
||||
if use minimal && [ "${AMANDA_SERVER}" = "${HOSTNAME}" ] ; then
|
||||
elog "You are installing a client-only version of Amanda."
|
||||
elog "You should set the variable \$AMANDA_SERVER to point at your"
|
||||
elog "Amanda-tape-server, otherwise you will have to specify its name"
|
||||
elog "when using amrecover on the client."
|
||||
elog "For example: Use something like"
|
||||
elog "AMANDA_SERVER=\"myserver\" emerge amanda"
|
||||
elog
|
||||
fi
|
||||
|
||||
enewgroup "${AMANDA_GROUP_NAME}" "${AMANDA_GROUP_GID}"
|
||||
enewuser "${AMANDA_USER_NAME}" "${AMANDA_USER_UID}" "${AMANDA_USER_SH}" "${AMANDA_USER_HOMEDIR}" "${AMANDA_USER_GROUPS}"
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
# we do not want the perl src_unpack
|
||||
default_src_unpack
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# gentoo bug #331111
|
||||
sed -i '/^check-local: check-perl$/d' "${S}"/config/automake/scripts.am || die
|
||||
sed -i '/^check-local:/s,syntax-check,,g' "${S}"/perl/Makefile.am || die
|
||||
|
||||
# bug with glibc-2.16.0
|
||||
sed -i -e '/gets is a security/d' "${S}"/gnulib/stdio.in.h || die
|
||||
|
||||
eautoreconf
|
||||
|
||||
# places for us to work in
|
||||
mkdir -p "${MYFILESDIR}" || die
|
||||
# Now we store the settings we just created
|
||||
set | egrep "^AMANDA_" | grep -v '^AMANDA_ENV_SETTINGS' > "${TMPENVFILE}" || die
|
||||
|
||||
# Prepare our custom files
|
||||
einfo "Building custom configuration files"
|
||||
local i # our iterator
|
||||
local sedexpr # var for sed expr
|
||||
sedexpr=''
|
||||
for i in ${ENV_SETTINGS_AMANDA} ; do
|
||||
local val
|
||||
eval "val=\"\${${i}}\""
|
||||
sedexpr="${sedexpr}s|__${i}__|${val}|g;"
|
||||
done
|
||||
|
||||
# now apply the sed expr
|
||||
for i in "${FILESDIR}"/amanda-* ; do
|
||||
sed -re "${sedexpr}" <"${i}" >"${MYFILESDIR}/`basename ${i}`" || die
|
||||
done
|
||||
|
||||
if use minimal; then
|
||||
cat "${MYFILESDIR}"/amanda-amandahosts-server.5.1_p3-r1 > "${T}"/amandahosts || die
|
||||
else
|
||||
sed -i -e 's:^\(my $amandahomedir\)=.*:\1 = $localstatedir;:' \
|
||||
server-src/am{addclient,serverconfig}.pl || die
|
||||
cat "${MYFILESDIR}"/amanda-amandahosts-client-2.5.1_p3-r1 > "${T}"/amandahosts || die
|
||||
fi
|
||||
|
||||
eapply_user
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# fix bug #36316
|
||||
addpredict /var/cache/samba/gencache.tdb
|
||||
# fix bug #376169
|
||||
addpredict /run/blkid
|
||||
addpredict /etc/blkid.tab
|
||||
|
||||
[ ! -f "${TMPENVFILE}" ] && die "Variable setting file (${TMPENVFILE}) should exist!"
|
||||
source "${TMPENVFILE}"
|
||||
local myconf
|
||||
|
||||
einfo "Using ${AMANDA_SERVER_TAPE} for tape server."
|
||||
myconf="${myconf} --with-tape-server=${AMANDA_SERVER_TAPE}"
|
||||
einfo "Using ${AMANDA_SERVER_TAPE_DEVICE} for tape server."
|
||||
myconf="${myconf} --with-tape-device=${AMANDA_SERVER_TAPE_DEVICE}"
|
||||
einfo "Using ${AMANDA_SERVER_INDEX} for index server."
|
||||
myconf="${myconf} --with-index-server=${AMANDA_SERVER_INDEX}"
|
||||
einfo "Using ${AMANDA_USER_NAME} for amanda user."
|
||||
myconf="${myconf} --with-user=${AMANDA_USER_NAME}"
|
||||
einfo "Using ${AMANDA_GROUP_NAME} for amanda group."
|
||||
myconf="${myconf} --with-group=${AMANDA_GROUP_NAME}"
|
||||
einfo "Using ${AMANDA_TAR} as Tar implementation."
|
||||
myconf="${myconf} --with-gnutar=${AMANDA_TAR}"
|
||||
einfo "Using ${AMANDA_TAR_LISTDIR} as tar listdir."
|
||||
myconf="${myconf} --with-gnutar-listdir=${AMANDA_TAR_LISTDIR}"
|
||||
einfo "Using ${AMANDA_CONFIG_NAME} as default config name."
|
||||
myconf="${myconf} --with-config=${AMANDA_CONFIG_NAME}"
|
||||
einfo "Using ${AMANDA_TMPDIR} as Amanda temporary directory."
|
||||
myconf="${myconf} --with-tmpdir=${AMANDA_TMPDIR}"
|
||||
|
||||
if [ -n "${AMANDA_PORTS_UDP}" ] && [ -n "${AMANDA_PORTS_TCP}" ] && [ -z "${AMANDA_PORTS_BOTH}" ] ; then
|
||||
eerror "If you want _both_ UDP and TCP ports, please use only the"
|
||||
eerror "AMANDA_PORTS environment variable for identical ports, or set"
|
||||
eerror "AMANDA_PORTS_BOTH."
|
||||
die "Bad port setup!"
|
||||
fi
|
||||
if [ -n "${AMANDA_PORTS_UDP}" ]; then
|
||||
einfo "Using UDP ports ${AMANDA_PORTS_UDP/,/-}"
|
||||
myconf="${myconf} --with-udpportrange=${AMANDA_PORTS_UDP}"
|
||||
fi
|
||||
if [ -n "${AMANDA_PORTS_TCP}" ]; then
|
||||
einfo "Using TCP ports ${AMANDA_PORTS_TCP/,/-}"
|
||||
myconf="${myconf} --with-tcpportrange=${AMANDA_PORTS_TCP}"
|
||||
fi
|
||||
if [ -n "${AMANDA_PORTS}" ]; then
|
||||
einfo "Using ports ${AMANDA_PORTS/,/-}"
|
||||
myconf="${myconf} --with-portrange=${AMANDA_PORTS}"
|
||||
fi
|
||||
|
||||
# Extras
|
||||
# Speed option
|
||||
myconf="${myconf} --with-buffered-dump"
|
||||
# "debugging" in the configuration is NOT debug in the conventional sense.
|
||||
# It is actually just useful output in the application, and should remain
|
||||
# enabled. There are some cases of breakage with MTX tape changers as of
|
||||
# 2.5.1p2 that it exposes when turned off as well.
|
||||
myconf="${myconf} --with-debugging"
|
||||
# Where to put our files
|
||||
myconf="${myconf} --localstatedir=${AMANDA_USER_HOMEDIR}"
|
||||
|
||||
# Samba support
|
||||
myconf="${myconf} $(use_with samba smbclient /usr/bin/smbclient)"
|
||||
|
||||
# Support for BSD, SSH, BSDUDP, BSDTCP security methods all compiled in by
|
||||
# default
|
||||
myconf="${myconf} --with-bsd-security"
|
||||
myconf="${myconf} --with-ssh-security"
|
||||
myconf="${myconf} --with-bsdudp-security"
|
||||
myconf="${myconf} --with-bsdtcp-security"
|
||||
|
||||
# kerberos-security mechanism version 5
|
||||
myconf="${myconf} $(use_with kerberos krb5-security)"
|
||||
|
||||
# Amazon S3 support
|
||||
myconf="${myconf} `use_enable s3 s3-device`"
|
||||
|
||||
# libcurl is required for S3 but otherwise optional
|
||||
if ! use s3; then
|
||||
myconf="${myconf} $(use_with curl libcurl)"
|
||||
fi
|
||||
|
||||
# Client only, as requested in bug #127725
|
||||
if use minimal ; then
|
||||
myconf="${myconf} --without-server"
|
||||
else
|
||||
# amplot
|
||||
myconf="${myconf} $(use_with gnuplot)"
|
||||
fi
|
||||
|
||||
# IPv6 fun.
|
||||
myconf="${myconf} `use_with ipv6`"
|
||||
# This is to prevent the IPv6-is-working test
|
||||
# As the test fails on binpkg build hosts with no IPv6.
|
||||
use ipv6 && export amanda_cv_working_ipv6=yes
|
||||
|
||||
# I18N
|
||||
myconf="${myconf} `use_enable nls`"
|
||||
|
||||
# Bug #296634: Perl location
|
||||
perl_set_version
|
||||
myconf="${myconf} --with-amperldir=${VENDOR_LIB}"
|
||||
|
||||
# Bug 296633: --disable-syntax-checks
|
||||
# Some tests are not safe for production systems
|
||||
myconf="${myconf} --disable-syntax-checks"
|
||||
|
||||
# build manpages
|
||||
myconf="${myconf} --enable-manpage-build"
|
||||
|
||||
# bug #483120
|
||||
tc-export AR
|
||||
|
||||
econf \
|
||||
$(use_with readline) \
|
||||
${myconf}
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# Again, do not want the perl-module src_compile
|
||||
default_src_compile
|
||||
}
|
||||
|
||||
src_install() {
|
||||
[ ! -f "${TMPENVFILE}" ] && die "Variable setting file (${TMPENVFILE}) should exist!"
|
||||
source ${TMPENVFILE}
|
||||
|
||||
einfo "Doing stock install"
|
||||
emake DESTDIR="${D}" install || die
|
||||
|
||||
# Build the envdir file
|
||||
# Don't forget this..
|
||||
einfo "Building environment file"
|
||||
(
|
||||
echo "# These settings are what was present in the environment when this"
|
||||
echo "# Amanda was compiled. Changing anything below this comment will"
|
||||
echo "# have no effect on your application, but it merely exists to"
|
||||
echo "# preserve them for your next emerge of Amanda"
|
||||
cat "${TMPENVFILE}" | sed "s,=\$,='',g"
|
||||
) >> "${MYFILESDIR}/${ENVDFILE}"
|
||||
|
||||
# Env.d
|
||||
einfo "Installing environment config file"
|
||||
doenvd "${MYFILESDIR}/${ENVDFILE}"
|
||||
|
||||
# Lock down next section (up until docs).
|
||||
insopts -m0640
|
||||
# Installing Amanda Xinetd Services Definition
|
||||
einfo "Installing xinetd service file"
|
||||
insinto /etc/xinetd.d
|
||||
if use minimal ; then
|
||||
newins "${MYFILESDIR}"/amanda-xinetd-2.6.1_p1-client amanda
|
||||
else
|
||||
newins "${MYFILESDIR}"/amanda-xinetd-2.6.1_p1-server amanda
|
||||
fi
|
||||
|
||||
if ! use minimal; then
|
||||
einfo "Installing Sample Daily Cron Job for Amanda"
|
||||
insinto /etc/cron.daily
|
||||
newins "${MYFILESDIR}/amanda-cron" amanda
|
||||
fi
|
||||
|
||||
einfo "Installing systemd service and socket files for Amanda"
|
||||
systemd_dounit "${FILESDIR}"/amanda.socket || die
|
||||
systemd_newunit "${FILESDIR}"/amanda.service 'amanda@.service' || die
|
||||
|
||||
insinto /etc/amanda
|
||||
einfo "Installing .amandahosts File for ${AMANDA_USER_NAME} user"
|
||||
doins "${T}/amandahosts"
|
||||
fperms 600 /etc/amanda/amandahosts
|
||||
|
||||
dosym /etc/amanda/amandahosts "${AMANDA_USER_HOMEDIR}/.amandahosts"
|
||||
insinto "${AMANDA_USER_HOMEDIR}"
|
||||
einfo "Installing .profile for ${AMANDA_USER_NAME} user"
|
||||
newins "${MYFILESDIR}/amanda-profile" .profile
|
||||
|
||||
insinto /etc/amanda
|
||||
doins "${S}/example/amanda-client.conf"
|
||||
if ! use minimal ; then
|
||||
insinto "/etc/amanda/${AMANDA_CONFIG_NAME}"
|
||||
doins "${S}/example/amanda.conf"
|
||||
doins "${S}/example/disklist"
|
||||
keepdir "${AMANDA_USER_HOMEDIR}/${AMANDA_CONFIG_NAME}/index"
|
||||
fi
|
||||
|
||||
keepdir "${AMANDA_TAR_LISTDIR}"
|
||||
keepdir "${AMANDA_USER_HOMEDIR}/amanda"
|
||||
keepdir "${AMANDA_TMPDIR}/dumps"
|
||||
# Just make sure it exists for XFS to work...
|
||||
use xfs && keepdir /var/xfsdump/inventory
|
||||
|
||||
local i
|
||||
for i in "${AMANDA_USER_HOMEDIR}" "${AMANDA_TAR_LISTDIR}" \
|
||||
"${AMANDA_TMPDIR}" /etc/amanda; do
|
||||
einfo "Securing directory (${i})"
|
||||
fowners -R ${AMANDA_USER_NAME}:${AMANDA_GROUP_NAME} ${i}
|
||||
done
|
||||
# Do NOT use -R
|
||||
fperms 0700 \
|
||||
"${AMANDA_USER_HOMEDIR}" "${AMANDA_TAR_LISTDIR}" \
|
||||
"${AMANDA_TMPDIR}" "${AMANDA_TMPDIR}/dumps" \
|
||||
"${AMANDA_USER_HOMEDIR}/amanda" \
|
||||
/etc/amanda
|
||||
|
||||
if ! use minimal ; then
|
||||
fperms 0700 \
|
||||
"${AMANDA_USER_HOMEDIR}/${AMANDA_CONFIG_NAME}" \
|
||||
/etc/amanda/${AMANDA_CONFIG_NAME}
|
||||
fi
|
||||
|
||||
einfo "Setting setuid permissions"
|
||||
amanda_permissions_fix "${D}"
|
||||
|
||||
# Relax permissions again
|
||||
insopts -m0644
|
||||
|
||||
# docs
|
||||
einfo "Installing documentation"
|
||||
dodoc AUTHORS ChangeLog DEVELOPING NEWS README ReleaseNotes UPGRADING
|
||||
# our inetd sample
|
||||
einfo "Installing standard inetd sample"
|
||||
newdoc "${MYFILESDIR}/amanda-inetd.amanda.sample-2.6.0_p2-r2" amanda-inetd.amanda.sample
|
||||
# Amanda example configs
|
||||
einfo "Installing example configurations"
|
||||
rm "${D}"/usr/share/amanda/{COPYRIGHT,ChangeLog,NEWS,ReleaseNotes}
|
||||
mv "${D}/usr/share/amanda/example" "${D}/usr/share/doc/${PF}/"
|
||||
docinto example1
|
||||
newdoc "${FILESDIR}/example_amanda.conf" amanda.conf
|
||||
newdoc "${FILESDIR}/example_disklist-2.5.1_p3-r1" disklist
|
||||
newdoc "${FILESDIR}/example_global.conf" global.conf
|
||||
|
||||
einfo "Cleaning up dud .la files"
|
||||
perl_set_version
|
||||
find "${D}"/"${VENDOR_LIB}" -name '*.la' -print0 |xargs -0 rm -f
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
[ ! -f "${TMPENVFILE}" -a "$MERGE_TYPE" == "binary" ] && \
|
||||
TMPENVFILE="${ROOT}${ENVDIR}/${ENVDFILE}"
|
||||
[ ! -f "${TMPENVFILE}" ] && die "Variable setting file (${TMPENVFILE}) should exist!"
|
||||
source "${TMPENVFILE}"
|
||||
|
||||
# Migration of amandates from /etc to $localstatedir/amanda
|
||||
if [ -f "${ROOT}/etc/amandates" -a \
|
||||
! -f "${ROOT}/${AMANDA_USER_HOMEDIR}/amanda/amandates" ]; then
|
||||
einfo "Migrating amandates from /etc/ to ${AMANDA_USER_HOMEDIR}/amanda"
|
||||
einfo "A backup is also placed at /etc/amandates.orig"
|
||||
cp -dp "${ROOT}/etc/amandates" "${ROOT}/etc/amandates.orig"
|
||||
mkdir -p "${ROOT}/${AMANDA_USER_HOMEDIR}/amanda/"
|
||||
cp -dp "${ROOT}/etc/amandates" "${ROOT}/${AMANDA_USER_HOMEDIR}/amanda/amandates"
|
||||
fi
|
||||
if [ -f "${ROOT}/etc/amandates" ]; then
|
||||
einfo "If you have migrated safely, please delete /etc/amandates"
|
||||
fi
|
||||
|
||||
einfo "Checking setuid permissions"
|
||||
amanda_permissions_fix "${ROOT}"
|
||||
|
||||
elog "You should configure Amanda in /etc/amanda now."
|
||||
elog
|
||||
elog "If you use xinetd, Don't forget to check /etc/xinetd.d/amanda"
|
||||
elog "and restart xinetd afterwards!"
|
||||
elog
|
||||
elog "Otherwise, please look at /usr/share/doc/${PF}/inetd.amanda.sample"
|
||||
elog "as an example of how to configure your inetd."
|
||||
elog
|
||||
elog "systemd-users: enable and start amanda.socket or the relevant services"
|
||||
elog "regarding what auth method you use."
|
||||
elog
|
||||
elog "NOTICE: If you need raw access to partitions you need to add the"
|
||||
elog "amanda user to the 'disk' group."
|
||||
elog
|
||||
elog "NOTICE: If you have a tape changer, you need to add the amanda user"
|
||||
elog "to the 'tape' group."
|
||||
elog
|
||||
elog "If you use localhost in your disklist your restores may break."
|
||||
elog "You should replace it with the actual hostname!"
|
||||
elog "Please also see the syntax changes to amandahosts."
|
||||
elog "The only exception is when you use the authentication method 'local'."
|
||||
elog
|
||||
elog "Please note that this package no longer explicitly depends on"
|
||||
elog "virtual/inetd, as it supports modes where an inetd is not needed"
|
||||
elog "(see bug #506028 for details)."
|
||||
}
|
||||
|
||||
# We have had reports of amanda file permissions getting screwed up.
|
||||
# Losing setuid, becoming too lax etc.
|
||||
# ONLY root and users in the amanda group should be able to run these binaries!
|
||||
amanda_permissions_fix() {
|
||||
local root="$1"
|
||||
[ -z "${root}" ] && die "Failed to pass root argument to amanda_permissions_fix!"
|
||||
local le="/usr/libexec/amanda"
|
||||
for i in /usr/sbin/amcheck "${le}"/calcsize "${le}"/killpgrp \
|
||||
"${le}"/rundump "${le}"/runtar "${le}"/dumper \
|
||||
"${le}"/planner ; do
|
||||
chown root:${AMANDA_GROUP_NAME} "${root}"/${i}
|
||||
chmod u=srwx,g=rx,o= "${root}"/${i}
|
||||
done
|
||||
}
|
@ -0,0 +1,164 @@
|
||||
diff --git a/installcheck/Amanda_Rest_Storages.pl b/installcheck/Amanda_Rest_Storages.pl
|
||||
index f3c699b..3e4e889 100644
|
||||
--- a/installcheck/Amanda_Rest_Storages.pl
|
||||
+++ b/installcheck/Amanda_Rest_Storages.pl
|
||||
@@ -308,6 +308,7 @@ is_deeply (Installcheck::Rest::remove_source_line($reply),
|
||||
'inventory' => [
|
||||
{'current' => 1,
|
||||
'label' => "DISKFLAT-001",
|
||||
+ 'label_match' => '1',
|
||||
'device_status' => '0',
|
||||
'reserved' => 0,
|
||||
'f_type' => '1',
|
||||
@@ -467,6 +468,7 @@ is_deeply (Installcheck::Rest::remove_source_line($reply),
|
||||
'label' => 'DISKFLAT-001',
|
||||
'datestamp' => '20140509113436',
|
||||
'write_protected' => '',
|
||||
+ 'label_match' => '1',
|
||||
'process' => 'Amanda::Rest::Storages',
|
||||
'running_on' => 'amanda-server',
|
||||
'component' => 'rest-server',
|
||||
diff --git a/installcheck/amtape.pl b/installcheck/amtape.pl
|
||||
index 1a3527f..700c5a2 100644
|
||||
--- a/installcheck/amtape.pl
|
||||
+++ b/installcheck/amtape.pl
|
||||
@@ -177,13 +177,13 @@ like($Installcheck::Run::stderr,
|
||||
ok(run('amtape', 'TESTCONF', 'show'),
|
||||
"'amtape TESTCONF show'");
|
||||
like($Installcheck::Run::stderr,
|
||||
- qr/slot +2:.*label MyTape\nslot +3/,
|
||||
+ qr/slot +2:.*label MyTape \(label do not match labelstr\)\nslot +3/,
|
||||
"'amtape TESTCONF show' ..result correct");
|
||||
|
||||
ok(run('amtape', 'TESTCONF', 'show', '2'),
|
||||
"'amtape TESTCONF show'");
|
||||
like($Installcheck::Run::stderr,
|
||||
- qr/^slot +2:.*label MyTape$/,
|
||||
+ qr/^slot +2:.*label MyTape \(label do not match labelstr\)$/,
|
||||
"'amtape TESTCONF show 2' ..result correct");
|
||||
|
||||
ok(run('amtape', 'TESTCONF', 'show', '1,3'),
|
||||
@@ -252,13 +252,13 @@ like(run_err('amtape', 'TESTCONF', 'update'),
|
||||
ok(run('amtape', 'TESTCONF', 'show'),
|
||||
"'amtape TESTCONF show'");
|
||||
like($Installcheck::Run::stderr,
|
||||
- qr/slot +2:.*label MyTape\nslot +3/,
|
||||
+ qr/slot +2:.*label MyTape \(label do not match labelstr\)\nslot +3/,
|
||||
"..result correct");
|
||||
|
||||
ok(run('amtape', 'TESTCONF', 'inventory'),
|
||||
"'amtape TESTCONF inventory'");
|
||||
like($Installcheck::Run::stdout,
|
||||
- qr/slot +1: blank\nslot +2: label MyTape \(current\)\nslot +3/,
|
||||
+ qr/slot +1: blank\nslot +2: label MyTape \(current\) \(label do not match labelstr\)\nslot +3/,
|
||||
"..result correct");
|
||||
|
||||
ok(run('amtape', 'TESTCONF', 'taper'),
|
||||
diff --git a/perl/Amanda/Changer.pm b/perl/Amanda/Changer.pm
|
||||
index 92ed9b6..4b4aad4 100644
|
||||
--- a/perl/Amanda/Changer.pm
|
||||
+++ b/perl/Amanda/Changer.pm
|
||||
@@ -60,9 +60,10 @@ sub local_message {
|
||||
} elsif ($self->{'code'} == 1100014) {
|
||||
return "$self->{'err'}";
|
||||
} elsif ($self->{'code'} == 1100015) {
|
||||
- return sprintf("slot %3s: date %-14s label %s%s", $self->{'slot'},
|
||||
+ return sprintf("slot %3s: date %-14s label %s%s%s", $self->{'slot'},
|
||||
$self->{'datestamp'}, $self->{'label'},
|
||||
- $self->{'write_protected'}?" (Write protected)":"");
|
||||
+ $self->{'write_protected'}?" (Write protected)":"",
|
||||
+ $self->{'label_match'}?"":" (label do not match labelstr)");
|
||||
} elsif ($self->{'code'} == 1100016) {
|
||||
return sprintf("slot %3s: unlabeled volume%s", $self->{'slot'},
|
||||
$self->{'write_protected'}?" (Write protected)":"");
|
||||
@@ -2014,6 +2015,13 @@ sub show {
|
||||
my $st = $dev->read_label();
|
||||
my $write_protected = !$dev->check_writable();
|
||||
if ($st == $DEVICE_STATUS_SUCCESS) {
|
||||
+ my $label_match = match_labelstr(
|
||||
+ $self->{'storage'}->{'labelstr'},
|
||||
+ $self->{'storage'}->{'autolabel'},
|
||||
+ $dev->volume_label(),
|
||||
+ $res->{'barcode'},
|
||||
+ $res->{'meta'},
|
||||
+ $self->{'storage'}->{'storage_name'});
|
||||
$params{'user_msg'}->(Amanda::Changer::Message->new(
|
||||
source_filename => __FILE__,
|
||||
source_line => __LINE__,
|
||||
@@ -2022,7 +2030,8 @@ sub show {
|
||||
slot => $last_slot,
|
||||
datestamp => $dev->volume_time(),
|
||||
label => $dev->volume_label(),
|
||||
- write_protected => $write_protected));
|
||||
+ write_protected => $write_protected,
|
||||
+ label_match => $label_match));
|
||||
} elsif ($st == $DEVICE_STATUS_VOLUME_UNLABELED) {
|
||||
$params{'user_msg'}->(Amanda::Changer::Message->new(
|
||||
source_filename => __FILE__,
|
||||
diff --git a/perl/Amanda/Rest/Storages.pm b/perl/Amanda/Rest/Storages.pm
|
||||
index 680115b..b1b59d2 100644
|
||||
--- a/perl/Amanda/Rest/Storages.pm
|
||||
+++ b/perl/Amanda/Rest/Storages.pm
|
||||
@@ -436,6 +436,17 @@ sub inventory {
|
||||
$inv->{'retention_type'} = $tl->get_retention_name($retention_type);
|
||||
}
|
||||
}
|
||||
+ for my $inv (@$inventory) {
|
||||
+ if ($inv->{label}) {
|
||||
+ $inv->{'label_match'} = Amanda::Util::match_labelstr(
|
||||
+ $storage->{'labelstr'},
|
||||
+ $storage->{'autolabel'},
|
||||
+ $inv->{'label'},
|
||||
+ $inv->{'barcode'},
|
||||
+ $inv->{'metae'},
|
||||
+ $storage->{'storage_name'});
|
||||
+ }
|
||||
+ }
|
||||
push @result_messages, Amanda::Changer::Message->new(
|
||||
source_filename => __FILE__,
|
||||
source_line => __LINE__,
|
||||
diff --git a/server-src/amtape.pl b/server-src/amtape.pl
|
||||
index b63607e..d06eefe 100644
|
||||
--- a/server-src/amtape.pl
|
||||
+++ b/server-src/amtape.pl
|
||||
@@ -30,7 +30,7 @@ use Text::Wrap;
|
||||
use Amanda::Device qw( :constants );
|
||||
use Amanda::Debug qw( :logging );
|
||||
use Amanda::Config qw( :init :getconf config_dir_relative );
|
||||
-use Amanda::Util qw( :constants );
|
||||
+use Amanda::Util qw( :constants match_labelstr );
|
||||
use Amanda::Storage;
|
||||
use Amanda::Changer;
|
||||
use Amanda::Constants;
|
||||
@@ -219,6 +219,7 @@ sub {
|
||||
for my $sl (@$inv) {
|
||||
my $line = "slot $sl->{slot}:";
|
||||
my $tle;
|
||||
+ my $meta;
|
||||
if ($sl->{'state'} == Amanda::Changer::SLOT_EMPTY) {
|
||||
$line .= " empty";
|
||||
} elsif (!defined($sl->{device_status}) && !defined($sl->{label})) {
|
||||
@@ -230,6 +231,7 @@ sub {
|
||||
if (defined $tle) {
|
||||
if ($tle->{'meta'}) {
|
||||
$line .= " ($tle->{'meta'})";
|
||||
+ $meta = $tle->{'meta'};
|
||||
}
|
||||
}
|
||||
} elsif ($sl->{'device_status'} == $DEVICE_STATUS_VOLUME_UNLABELED) {
|
||||
@@ -263,6 +265,15 @@ sub {
|
||||
$line .= " [device error]";
|
||||
}
|
||||
}
|
||||
+ if ($sl->{'label'}) {
|
||||
+ if (!match_labelstr($storage->{'labelstr'},
|
||||
+ $storage->{'autolabel'},
|
||||
+ $sl->{label},
|
||||
+ $sl->{'barcode'}, $meta,
|
||||
+ $storage->{'storage_name'})) {
|
||||
+ $line .= " (label do not match labelstr)";
|
||||
+ }
|
||||
+ }
|
||||
if (defined $tle) {
|
||||
my $retention_type = Amanda::Tapelist::get_retention_type($tle->{pool}, $tle->{label});
|
||||
$line .= " [" . $tl->get_retention_name($retention_type) . "]";
|
@ -0,0 +1,16 @@
|
||||
diff --git a/perl/Amanda/Changer/aggregate.pm b/perl/Amanda/Changer/aggregate.pm
|
||||
index a2bd962..ecf9d28 100644
|
||||
--- a/perl/Amanda/Changer/aggregate.pm
|
||||
+++ b/perl/Amanda/Changer/aggregate.pm
|
||||
@@ -391,7 +391,10 @@ sub info_key {
|
||||
my $kid = 0;
|
||||
for (@$kid_results) {
|
||||
my ($err, %kid_info) = @$_;
|
||||
- next unless exists($kid_info{'slots'});
|
||||
+ if (!exists($kid_info{'slots'})){
|
||||
+ $kid++;
|
||||
+ next;
|
||||
+ }
|
||||
my $kid_slots = $kid_info{'slots'};
|
||||
push @slots, map "$kid:$_", @{$kid_slots};
|
||||
$kid++;
|
@ -1,7 +1,9 @@
|
||||
DIST kvmtool-1cd6f516264ad2ad83fad3dc1264d6ff4bcd17b2.tar.gz 244571 SHA256 c72c0e3463a8f0cfe2cdaa8b8e7951f4eb7293c486e44f84b9e421073dbf5ab9 SHA512 13db2bf2ff794f34c2a825c9b1862c85b0f470c81e3d91177979302f921e3970b8dfaeaf54602005fba8903bba52e43b6e8d67edaa0ee8de82002db7b396c3a0 WHIRLPOOL 0904a5783ac27befb207a5fa0030baede68ae589b69abf012ec733ff2e6d9f77b7198273c22fa7404b2c78bcc9ae40abc39d002519700666ba1e54c6550525b2
|
||||
DIST linux-4.8.6.tar.xz 91969848 SHA256 74744e00420856cfc8049fa3b3a55e57a116994226a498ef56801bc9492df36b SHA512 235acc394ce347d4131e86f6ff3f3fa9d552bf227c2483c25da7de99f3dc8fd20c4a04db0c8d59cdfa4fa9d98a5b102a5734f7b7704df6648c6efa5e8a7515ea WHIRLPOOL cb27d5654f7351ff32d057501c594f9b6e15fefe78c588b9e9cfedd88fbdb807ba7cfc1e238444d94f3d46168d6edc1bbb8e3966c2ca0f46c668dd4e9d60a01f
|
||||
DIST linux-4.9.2.tar.xz 93189108 SHA256 8dda9aedd17ae0bf1e06ebb4b79082f83fb3ade45cbcc3ca4c30bf3faf085738 SHA512 85adf3715cba4a457efea8359ebed34413ac63ee58fe920c5713501dec1e727e167416e9d67a9e2d9430aa9f3a53ad0ac26a4f749984bc5a3f3c37ac504f75de WHIRLPOOL 74df775ab092a6be6684243d4c0d557c0ce27907c7e8ed97be54a45901e8f507deab1d5e72c35092884836f3fe446f838342ec0b53a3aa1c884489caadaf6a62
|
||||
DIST qemu-2.7.0.tar.bz2 26867760 SHA256 326e739506ba690daf69fc17bd3913a6c313d9928d743bd8eddb82f403f81e53 SHA512 654acaa7b3724a288e5d7e2a26ab780d9c9ed9f647fba00a906cbaffbe9d58fd666f2d962514aa2c5b391b4c53811ac3170d2eb51727f090bd19dfe45ca9a9db WHIRLPOOL dcb3e5f7da89dd8e14d636d7ebd476e076e0043880bb9ea3fb1c03cb4bcd4e5c7d3c4719da26c3ce521e3a3db5ae671e86f198ac1bc3474e774d75504fef8b8d
|
||||
DIST rkt-1.21.0.tar.gz 3334473 SHA256 63eed8da954c24c1f9010e7513ee6ac21ffeaf63a648f9d5a0f9e9d3eb92fde5 SHA512 2723aab1aadbe7be0f7ce9c7f4e000c76d8c34d167b1157a08de7fb2248e4b73a7fc765ead557db495bab803f5d5c8d09e1d9441301396e18fa49b21a8c4c7ae WHIRLPOOL 11b28be68dd246ddafb5455becc64ea1b185d1128747dc51103ab692c34cd9157423164c4847be9e9a39338cb5ad6e2db3e588545378179b51a0ce58a1be1935
|
||||
DIST rkt-1.22.0.tar.gz 3338862 SHA256 49fda935e0ec628889b0c6ba22277354dbf9b89b4c09429c10800a562bbf1b7c SHA512 2aa6c15a0994e1ba427b05694f6fa12446e2f336ff51593fc6d4776f77d0b798203a0ab97f4c12ada1226c934b4e1866d9a5545f48ae1938e79d696d236ad8c7 WHIRLPOOL 98c8761e47379a02b536b760f327dc65dabd3594d30fdc792326044fc0e825401cc49abf0b5ab6ce6d4bc6072f0008466da4f3d2a12cdad16908e8549c0fa88e
|
||||
DIST rkt-1.23.0.tar.gz 3350060 SHA256 5cb10a0646e5cc8dccbd099c40bc6b11264591b30fa8e4113bc9e392feffcb2b SHA512 9673f70b385a4e5c61c037783071507e69097f0d0163b3d449ca129bcdc858bc177d38c6551dc9f8b2f074345b4698863bbe62bf4d6c83f5df515406011ddce3 WHIRLPOOL 7d2e7b20205e6e00992091bd3898094b27e75f9e4716c73a0a31df2747cb77c49b11678db478ed7414cf12eef8c3463afded0e2d2a0b93effb9cce0edbed799a
|
||||
DIST rkt-pxe-1235.0.0.img 243713684 SHA256 988e4ad8e044dd8bff54cb5e0a34a1ed25cf7bc8cc241f1a90e3fe7f1412f315 SHA512 b19821c63b7b53a1aad3b6e279189f9ceed1f5db1a691d12a70eb7340cceb4c3fd4f7f61a913d9482aec5ce28740b9ee777f86a1ce54f597f50341d701372542 WHIRLPOOL f3905ce3a2a55a027197a2d11ca541323fdfd560d186b4a2c39a8f45e19811067d5de4fbd3656935b12787e1dec79d118d7a01d52a8ef7abd0dad4f38a222b1c
|
||||
DIST systemd-231.tar.gz 4381464 SHA256 899733ad6c157cedbb89aec4efe3bc824dcfd65a1d6f6bebc7b043f7924e39b4 SHA512 199fa33a0494d1d15f7fe3c796fe14913ad386766571d4d3fbb1cb1c446e04f6d06a965213be4c594a7183e810fc2fd4804fe14f64f21b0a1278b717889811c6 WHIRLPOOL 7779291e9fb9873cb1773b8583cf6d4b7dec837363ea89c4a73c1e397a76752b66f8b57d8fc4d9cef768cc1855b5e325ad88a8a69eb5380aa924e0a6dead41b1
|
||||
|
@ -0,0 +1,257 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit bash-completion-r1 autotools flag-o-matic systemd toolchain-funcs user
|
||||
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
PXE_VERSION="1235.0.0"
|
||||
PXE_SYSTEMD_VERSION="v231"
|
||||
KVM_LINUX_VERSION="4.9.2"
|
||||
KVMTOOL_VERSION="1cd6f516264ad2ad83fad3dc1264d6ff4bcd17b2"
|
||||
QEMU_VERSION="v2.7.0"
|
||||
PXE_URI="http://alpha.release.core-os.net/amd64-usr/${PXE_VERSION}/coreos_production_pxe_image.cpio.gz"
|
||||
PXE_FILE="${PN}-pxe-${PXE_VERSION}.img"
|
||||
|
||||
SRC_URI_KVM="mirror://kernel/linux/kernel/v4.x/linux-${KVM_LINUX_VERSION}.tar.xz
|
||||
${PXE_URI} -> ${PXE_FILE}
|
||||
"
|
||||
|
||||
SRC_URI="https://github.com/coreos/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
|
||||
rkt_stage1_coreos? ( $PXE_URI -> $PXE_FILE )
|
||||
rkt_stage1_kvm_lkvm? (
|
||||
https://kernel.googlesource.com/pub/scm/linux/kernel/git/will/kvmtool/+archive/${KVMTOOL_VERSION}.tar.gz -> kvmtool-${KVMTOOL_VERSION}.tar.gz
|
||||
${SRC_URI_KVM}
|
||||
)
|
||||
rkt_stage1_kvm_qemu? (
|
||||
http://wiki.qemu-project.org/download/qemu-${QEMU_VERSION#v}.tar.bz2
|
||||
${SRC_URI_KVM}
|
||||
)
|
||||
rkt_stage1_src? ( https://github.com/systemd/systemd/archive/${PXE_SYSTEMD_VERSION}.tar.gz -> systemd-${PXE_SYSTEMD_VERSION#v}.tar.gz )"
|
||||
|
||||
DESCRIPTION="rkt is an App Container runtime for Linux"
|
||||
HOMEPAGE="https://github.com/coreos/rkt"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
# The rkt_stage1_kvm flag has been replaced by the rkt_stage1_kvm_lkvm and rkt_stage1_kvm_qemu flags
|
||||
IUSE="doc examples +rkt_stage1_coreos +rkt_stage1_fly rkt_stage1_host rkt_stage1_kvm rkt_stage1_kvm_lkvm rkt_stage1_kvm_qemu rkt_stage1_src +actool systemd"
|
||||
REQUIRED_USE="|| ( rkt_stage1_coreos rkt_stage1_fly rkt_stage1_host rkt_stage1_kvm_lkvm rkt_stage1_kvm_qemu rkt_stage1_src ) rkt_stage1_host? ( systemd ) !rkt_stage1_kvm"
|
||||
|
||||
# Some tests fail.
|
||||
# rkt_stage1_src needs to copy /bin/mount, which requires root privileges during src_compile
|
||||
RESTRICT="test rkt_stage1_src? ( userpriv )"
|
||||
|
||||
DEPEND=">=dev-lang/go-1.5
|
||||
app-arch/cpio
|
||||
app-crypt/trousers
|
||||
sys-fs/squashfs-tools
|
||||
dev-perl/Capture-Tiny
|
||||
rkt_stage1_src? ( >=sys-apps/util-linux-2.27 )
|
||||
rkt_stage1_kvm_qemu? (
|
||||
sys-apps/attr[static-libs(+)]
|
||||
sys-libs/libcap[static-libs(+)]
|
||||
sys-libs/zlib[static-libs(+)]
|
||||
>=x11-libs/pixman-0.28.0[static-libs(+)]
|
||||
)"
|
||||
|
||||
RDEPEND="!app-emulation/rocket
|
||||
rkt_stage1_host? ( systemd? (
|
||||
>=sys-apps/systemd-222
|
||||
app-shells/bash:0
|
||||
) )"
|
||||
|
||||
BUILDDIR="build-${P}"
|
||||
STAGE1_DEFAULT_LOCATION="/usr/share/rkt/stage1.aci"
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup rkt-admin
|
||||
enewgroup rkt
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
local x
|
||||
for x in ${A}; do
|
||||
case ${x} in
|
||||
*.img|linux-*) continue ;;
|
||||
kvmtool-*)
|
||||
mkdir kvmtool || die
|
||||
pushd kvmtool >/dev/null || die
|
||||
unpack ${x}
|
||||
popd >/dev/null || die
|
||||
;;
|
||||
*)
|
||||
unpack ${x}
|
||||
esac
|
||||
done
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
eapply_user
|
||||
|
||||
# This patch breaks linux kernel cc-option checks when the
|
||||
# compiler doesn't recognize the -no-pie option.
|
||||
rm stage1/usr_from_kvm/kernel/patches/0002-for-debian-gcc.patch || die
|
||||
|
||||
# avoid sdjournal include for bug 595874
|
||||
if ! use systemd; then
|
||||
sed -e "s/^\\(LOCAL_DIST_SRC_FILTER := .*\\)'$/\\1|api_service'/" \
|
||||
-i rkt/rkt.mk || die
|
||||
fi
|
||||
|
||||
sed -e 's|^RKT_REQ_PROG(\[GIT\],.*|#\0|' -i configure.ac || die
|
||||
|
||||
# disable git fetch of systemd
|
||||
sed -e 's~^include makelib/git.mk$~'\
|
||||
'ifneq ($(wildcard $(RKT_STAGE1_SYSTEMD_SRC)),)\n\n'\
|
||||
'get_systemd_sources: | $(UFS_SYSTEMDDIR)\n'\
|
||||
'\tmv "$(RKT_STAGE1_SYSTEMD_SRC)" "$(UFS_SYSTEMD_SRCDIR)"\n\n'\
|
||||
'$(UFS_SYSTEMD_CONFIGURE): get_systemd_sources\n\n'\
|
||||
'else ifneq ($(wildcard $(UFS_SYSTEMD_SRCDIR)),)\n\n'\
|
||||
'else\n'\
|
||||
'\t\0\n'\
|
||||
'endif~' -i stage1/usr_from_src/usr_from_src.mk || die
|
||||
|
||||
# disable git fetch of kvmtool
|
||||
sed -e 's~^include makelib/git.mk$~'\
|
||||
'ifneq ($(wildcard $(shell echo "$${WORKDIR}/kvmtool")),)\n\n'\
|
||||
'$(call forward-vars, get_lkvm_sources, LKVM_SRCDIR)\n'\
|
||||
'get_lkvm_sources: | $(LKVM_TMPDIR)\n'\
|
||||
'\tmv "$${WORKDIR}/kvmtool" "$(LKVM_SRCDIR)"\n\n'\
|
||||
'$(LKVM_PATCH_STAMP): get_lkvm_sources\n\n'\
|
||||
'else ifneq ($(wildcard $(LKVM_SRCDIR)),)\n\n'\
|
||||
'else\n'\
|
||||
'\t\0\n'\
|
||||
'endif~' -i stage1/usr_from_kvm/lkvm.mk || die
|
||||
|
||||
# disable git fetch of qemu
|
||||
sed -e 's~^include makelib/git.mk$~'\
|
||||
'ifneq ($(wildcard $(shell echo "$${WORKDIR}/qemu-'${QEMU_VERSION#v}'")),)\n\n'\
|
||||
'$(call forward-vars, get_qemu_sources, QEMU_SRCDIR)\n'\
|
||||
'get_qemu_sources: | $(QEMU_TMPDIR)\n'\
|
||||
'\tmv "$${WORKDIR}/qemu-'${QEMU_VERSION#v}'" "$(QEMU_SRCDIR)"\n\n'\
|
||||
'$(QEMU_CONF_STAMP): get_qemu_sources\n\n'\
|
||||
'else ifneq ($(wildcard $(QEMU_SRCDIR)),)\n\n'\
|
||||
'else\n'\
|
||||
'\t\0\n'\
|
||||
'endif~' \
|
||||
-e 's|QEMU_CONFIGURATION_OPTS :=|\0 --disable-bzip2 --disable-libssh2 --disable-opengl|' \
|
||||
-i stage1/usr_from_kvm/qemu.mk || die
|
||||
|
||||
# disable fetch of kernel sources
|
||||
sed -e 's|wget .*|ln -s "$${DISTDIR}/linux-'${KVM_LINUX_VERSION}'.tar.xz" "$@"|' \
|
||||
-i stage1/usr_from_kvm/kernel.mk || die
|
||||
|
||||
if use rkt_stage1_host; then
|
||||
# Make systemdUnitsPath consistent with host
|
||||
sed -e 's|\(systemdUnitsPath := \).*|\1"'$(systemd_get_systemunitdir)'"|' \
|
||||
-i stage1/init/init.go || die
|
||||
fi
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local flavors hypervisors myeconfargs=(
|
||||
--with-stage1-default-images-directory="/usr/share/rkt"
|
||||
--with-stage1-default-location="${STAGE1_DEFAULT_LOCATION}"
|
||||
)
|
||||
|
||||
use systemd || myeconfargs+=( --enable-sdjournal=no )
|
||||
|
||||
# enable flavors (first is default)
|
||||
use rkt_stage1_host && flavors+=",host"
|
||||
use rkt_stage1_src && flavors+=",src"
|
||||
use rkt_stage1_coreos && flavors+=",coreos"
|
||||
use rkt_stage1_fly && flavors+=",fly"
|
||||
{ use rkt_stage1_kvm_lkvm || use rkt_stage1_kvm_qemu; } && flavors+=",kvm"
|
||||
myeconfargs+=( --with-stage1-flavors="${flavors#,}" )
|
||||
|
||||
if use rkt_stage1_src; then
|
||||
myeconfargs+=(
|
||||
--with-stage1-systemd-version=${PXE_SYSTEMD_VERSION}
|
||||
--with-stage1-systemd-src="${WORKDIR}/systemd-${PXE_SYSTEMD_VERSION#v}"
|
||||
)
|
||||
fi
|
||||
|
||||
if use rkt_stage1_coreos || use rkt_stage1_kvm_lkvm || use rkt_stage1_kvm_qemu; then
|
||||
myeconfargs+=(
|
||||
--with-coreos-local-pxe-image-path="${DISTDIR}/${PXE_FILE}"
|
||||
--with-coreos-local-pxe-image-systemd-version="${PXE_SYSTEMD_VERSION}"
|
||||
)
|
||||
fi
|
||||
|
||||
if use rkt_stage1_kvm_lkvm || use rkt_stage1_kvm_qemu; then
|
||||
use rkt_stage1_kvm_lkvm && hypervisors+=",lkvm"
|
||||
use rkt_stage1_kvm_qemu && hypervisors+=",qemu"
|
||||
myeconfargs+=( --with-stage1-kvm-hypervisors="${hypervisors#,}" )
|
||||
fi
|
||||
|
||||
# Go's 6l linker does not support PIE, disable so cgo binaries
|
||||
# which use 6l+gcc for linking can be built correctly.
|
||||
if gcc-specs-pie; then
|
||||
append-ldflags -nopie
|
||||
fi
|
||||
|
||||
export CC=$(tc-getCC)
|
||||
export CGO_ENABLED=1
|
||||
export CGO_CFLAGS="${CFLAGS}"
|
||||
export CGO_CPPFLAGS="${CPPFLAGS}"
|
||||
export CGO_CXXFLAGS="${CXXFLAGS}"
|
||||
export CGO_LDFLAGS="${LDFLAGS}"
|
||||
export BUILDDIR
|
||||
|
||||
econf "${myeconfargs[@]}"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
local arch=${ARCH}
|
||||
case ${arch} in
|
||||
amd64) arch=x86_64;;
|
||||
esac
|
||||
ARCH=${arch} emake V=3
|
||||
ARCH=${arch} emake V=3 bash-completion
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dodoc README.md
|
||||
use doc && dodoc -r Documentation
|
||||
use examples && dodoc -r examples
|
||||
use actool && dobin "${S}/${BUILDDIR}/tools/actool"
|
||||
|
||||
dobin "${S}/${BUILDDIR}/target/bin/rkt"
|
||||
|
||||
insinto /usr/share/rkt
|
||||
doins "${S}/${BUILDDIR}/target/bin/"*.aci
|
||||
|
||||
# create symlink for default stage1 image path
|
||||
if use rkt_stage1_host; then
|
||||
dosym stage1-host.aci "${STAGE1_DEFAULT_LOCATION}"
|
||||
elif use rkt_stage1_src; then
|
||||
dosym stage1-src.aci "${STAGE1_DEFAULT_LOCATION}"
|
||||
elif use rkt_stage1_coreos; then
|
||||
dosym stage1-coreos.aci "${STAGE1_DEFAULT_LOCATION}"
|
||||
elif use rkt_stage1_fly; then
|
||||
dosym stage1-fly.aci "${STAGE1_DEFAULT_LOCATION}"
|
||||
elif use rkt_stage1_kvm_lkvm; then
|
||||
dosym stage1-kvm-lkvm.aci "${STAGE1_DEFAULT_LOCATION}"
|
||||
elif use rkt_stage1_kvm_qemu; then
|
||||
dosym stage1-kvm-qemu.aci "${STAGE1_DEFAULT_LOCATION}"
|
||||
fi
|
||||
|
||||
systemd_dounit "${S}"/dist/init/systemd/*.service \
|
||||
"${S}"/dist/init/systemd/*.timer \
|
||||
"${S}"/dist/init/systemd/*.socket
|
||||
|
||||
insinto /usr/lib/tmpfiles.d
|
||||
doins "${S}"/dist/init/systemd/tmpfiles.d/*
|
||||
|
||||
newbashcomp "${S}"/dist/bash_completion/rkt.bash rkt
|
||||
|
||||
keepdir /etc/${PN}
|
||||
fowners :rkt-admin /etc/${PN}
|
||||
fperms 2775 /etc/${PN}
|
||||
}
|
@ -0,0 +1,89 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit rpm eutils multilib versionator
|
||||
|
||||
MY_PV=$(get_version_component_range 1-3)
|
||||
|
||||
DESCRIPTION="Translations for the Libreoffice suite"
|
||||
HOMEPAGE="http://www.libreoffice.org"
|
||||
BASE_SRC_URI_TESTING="http://download.documentfoundation.org/${PN/-l10n/}/testing/${MY_PV}/rpm"
|
||||
BASE_SRC_URI_STABLE="http://download.documentfoundation.org/${PN/-l10n/}/stable/${MY_PV}/rpm"
|
||||
|
||||
LICENSE="|| ( LGPL-3 MPL-1.1 )"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux"
|
||||
IUSE="offlinehelp"
|
||||
|
||||
#
|
||||
# when changing the language lists, please be careful to preserve the spaces (bug 491728)
|
||||
#
|
||||
# "en:en-US" for mapping from Gentoo "en" to upstream "en-US" etc.
|
||||
LANGUAGES_HELP=" am ast bg bn-IN bn bo bs ca-valencia ca cs da de dz el en-GB en:en-US en-ZA eo es et eu fi fr gl gu he hi hr hu id is it ja ka km ko mk nb ne nl nn om pl pt-BR pt ru si sk sl sq sv tg tr ug uk vi zh-CN zh-TW "
|
||||
LANGUAGES="${LANGUAGES_HELP}af ar as be br brx cy dgo fa ga gd gug kk kmr-Latn kn kok ks lb lo lt lv mai ml mn mni mr my nr nso oc or pa:pa-IN ro rw sa:sa-IN sat sd sid sr-Latn sr ss st sw-TZ ta te th tn ts tt uz ve xh zu "
|
||||
|
||||
for lang in ${LANGUAGES_HELP}; do
|
||||
helppack="offlinehelp? ( ${BASE_SRC_URI_STABLE}/x86/LibreOffice_${MY_PV}_Linux_x86_rpm_helppack_${lang#*:}.tar.gz -> LibreOffice_${PV}_Linux_x86_rpm_helppack_${lang#*:}.tar.gz ${BASE_SRC_URI_TESTING}/x86/LibreOffice_${PV}_Linux_x86_rpm_helppack_${lang#*:}.tar.gz )"
|
||||
SRC_URI+=" l10n_${lang%:*}? ( ${helppack} )"
|
||||
done
|
||||
for lang in ${LANGUAGES}; do
|
||||
if [[ ${lang%:*} != en ]]; then
|
||||
langpack="${BASE_SRC_URI_STABLE}/x86/LibreOffice_${MY_PV}_Linux_x86_rpm_langpack_${lang#*:}.tar.gz -> LibreOffice_${PV}_Linux_x86_rpm_langpack_${lang#*:}.tar.gz ${BASE_SRC_URI_TESTING}/x86/LibreOffice_${PV}_Linux_x86_rpm_langpack_${lang#*:}.tar.gz"
|
||||
SRC_URI+=" l10n_${lang%:*}? ( ${langpack} )"
|
||||
fi
|
||||
IUSE+=" l10n_${lang%:*}"
|
||||
done
|
||||
unset lang helppack langpack
|
||||
|
||||
RDEPEND+="app-text/hunspell"
|
||||
|
||||
RESTRICT="strip"
|
||||
|
||||
S="${WORKDIR}"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
local lang dir rpmdir
|
||||
|
||||
# First remove dictionaries, we want to use system ones.
|
||||
find "${S}" -name *dict*.rpm -delete || die "Failed to remove dictionaries"
|
||||
|
||||
for lang in ${LANGUAGES}; do
|
||||
# break away if not enabled
|
||||
use l10n_${lang%:*} || continue
|
||||
|
||||
dir=${lang#*:}
|
||||
|
||||
# for english we provide just helppack, as translation is always there
|
||||
if [[ ${lang%:*} != en ]]; then
|
||||
rpmdir="LibreOffice_${PV}_Linux_x86_rpm_langpack_${dir}/RPMS/"
|
||||
[[ -d ${rpmdir} ]] || die "Missing directory: ${rpmdir}"
|
||||
rpm_unpack ./${rpmdir}/*.rpm
|
||||
fi
|
||||
if [[ "${LANGUAGES_HELP}" =~ " ${lang} " ]] && use offlinehelp; then
|
||||
rpmdir="LibreOffice_${PV}_Linux_x86_rpm_helppack_${dir}/RPMS/"
|
||||
[[ -d ${rpmdir} ]] || die "Missing directory: ${rpmdir}"
|
||||
rpm_unpack ./${rpmdir}/*.rpm
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
src_configure() { :; }
|
||||
src_compile() { :; }
|
||||
|
||||
src_install() {
|
||||
local dir="${S}"/opt/${PN/-l10n/}$(get_version_component_range 1-2)/
|
||||
# Condition required for people that do not install anything eg no l10n
|
||||
# or just english with no offlinehelp.
|
||||
if [[ -d "${dir}" ]] ; then
|
||||
insinto /usr/$(get_libdir)/${PN/-l10n/}/
|
||||
doins -r "${dir}"/*
|
||||
fi
|
||||
# remove extensions that are in the l10n for some weird reason
|
||||
rm -rf "${ED}"usr/$(get_libdir)/${PN/-l10n/}/share/extensions/ || \
|
||||
die "Failed to remove extensions"
|
||||
}
|
@ -0,0 +1,592 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
KDE_REQUIRED="optional"
|
||||
KDE_SCM="git"
|
||||
CMAKE_REQUIRED="never"
|
||||
|
||||
PYTHON_COMPAT=( python{2_7,3_4,3_5} )
|
||||
PYTHON_REQ_USE="threads,xml"
|
||||
|
||||
# experimental ; release ; old
|
||||
# Usually the tarballs are moved a lot so this should make
|
||||
# everyone happy.
|
||||
DEV_URI="
|
||||
http://dev-builds.libreoffice.org/pre-releases/src
|
||||
http://download.documentfoundation.org/libreoffice/src/${PV:0:5}/
|
||||
http://download.documentfoundation.org/libreoffice/old/${PV}/
|
||||
"
|
||||
ADDONS_URI="http://dev-www.libreoffice.org/src/"
|
||||
|
||||
BRANDING="${PN}-branding-gentoo-0.8.tar.xz"
|
||||
# PATCHSET="${P}-patchset-01.tar.xz"
|
||||
|
||||
[[ ${PV} == *9999* ]] && SCM_ECLASS="git-r3"
|
||||
inherit multiprocessing autotools bash-completion-r1 check-reqs eutils java-pkg-opt-2 kde4-base pax-utils python-single-r1 multilib toolchain-funcs flag-o-matic versionator xdg-utils qmake-utils ${SCM_ECLASS}
|
||||
unset SCM_ECLASS
|
||||
|
||||
DESCRIPTION="A full office productivity suite"
|
||||
HOMEPAGE="http://www.libreoffice.org"
|
||||
SRC_URI="branding? ( http://dev.gentoo.org/~dilfridge/distfiles/${BRANDING} )"
|
||||
[[ -n ${PATCHSET} ]] && SRC_URI+=" http://dev.gentooexperimental.org/~scarabeus/${PATCHSET}"
|
||||
|
||||
# Split modules following git/tarballs
|
||||
# Core MUST be first!
|
||||
# Help is used for the image generator
|
||||
MODULES="core help"
|
||||
# Only release has the tarballs
|
||||
if [[ ${PV} != *9999* ]]; then
|
||||
for i in ${DEV_URI}; do
|
||||
for mod in ${MODULES}; do
|
||||
if [[ ${mod} == core ]]; then
|
||||
SRC_URI+=" ${i}/${P}.tar.xz"
|
||||
else
|
||||
SRC_URI+=" ${i}/${PN}-${mod}-${PV}.tar.xz"
|
||||
fi
|
||||
done
|
||||
unset mod
|
||||
done
|
||||
unset i
|
||||
fi
|
||||
unset DEV_URI
|
||||
|
||||
# Really required addons
|
||||
# These are bundles that can't be removed for now due to huge patchsets.
|
||||
# If you want them gone, patches are welcome.
|
||||
ADDONS_SRC=(
|
||||
"${ADDONS_URI}/ce12af00283eb90d9281956524250d6e-xmlsec1-1.2.20.tar.gz" # modifies source code
|
||||
"collada? ( ${ADDONS_URI}/4b87018f7fff1d054939d19920b751a0-collada2gltf-master-cb1d97788a.tar.bz2 )"
|
||||
"java? ( ${ADDONS_URI}/17410483b5b5f267aa18b7e00b65e6e0-hsqldb_1_8_0.zip )"
|
||||
# no release for 8 years, should we package it?
|
||||
"libreoffice_extensions_wiki-publisher? ( ${ADDONS_URI}/a7983f859eafb2677d7ff386a023bc40-xsltml_2.1.2.zip )"
|
||||
# Does not build with 1.6 rhino at all
|
||||
"libreoffice_extensions_scripting-javascript? ( ${ADDONS_URI}/798b2ffdc8bcfe7bca2cf92b62caf685-rhino1_5R5.zip )"
|
||||
# requirement of rhino
|
||||
"libreoffice_extensions_scripting-javascript? ( ${ADDONS_URI}/35c94d2df8893241173de1d16b6034c0-swingExSrc.zip )"
|
||||
# not packageable
|
||||
"odk? ( http://download.go-oo.org/extern/185d60944ea767075d27247c3162b3bc-unowinreg.dll )"
|
||||
)
|
||||
SRC_URI+=" ${ADDONS_SRC[*]}"
|
||||
|
||||
unset ADDONS_URI
|
||||
unset ADDONS_SRC
|
||||
|
||||
# Extensions that need extra work:
|
||||
LO_EXTS="nlpsolver scripting-beanshell scripting-javascript wiki-publisher"
|
||||
|
||||
IUSE="bluetooth +branding coinmp collada +cups dbus debug eds firebird gltf gnome googledrive
|
||||
gstreamer +gtk gtk3 jemalloc kde libressl mysql odk pdfimport postgres quickstarter telepathy test vlc
|
||||
$(printf 'libreoffice_extensions_%s ' ${LO_EXTS})"
|
||||
|
||||
LICENSE="|| ( LGPL-3 MPL-1.1 )"
|
||||
SLOT="0"
|
||||
[[ ${PV} == *9999* ]] || \
|
||||
KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux"
|
||||
|
||||
COMMON_DEPEND="${PYTHON_DEPS}
|
||||
app-arch/unzip
|
||||
app-arch/zip
|
||||
app-text/hunspell
|
||||
>=app-text/libabw-0.1.0
|
||||
>=app-text/libebook-0.1
|
||||
>=app-text/libetonyek-0.1
|
||||
app-text/libexttextcat
|
||||
app-text/liblangtag
|
||||
>=app-text/libmspub-0.1.0
|
||||
>=app-text/libmwaw-0.3.1
|
||||
>=app-text/libodfgen-0.1.0
|
||||
app-text/libwpd:0.10[tools]
|
||||
app-text/libwpg:0.3
|
||||
>=app-text/libwps-0.4
|
||||
app-text/mythes
|
||||
>=dev-cpp/clucene-2.3.3.4-r2
|
||||
=dev-cpp/libcmis-0.5*
|
||||
dev-db/unixODBC
|
||||
dev-lang/perl
|
||||
>=dev-libs/boost-1.55:=
|
||||
dev-libs/expat
|
||||
dev-libs/hyphen
|
||||
dev-libs/icu:=
|
||||
=dev-libs/liborcus-0.11*
|
||||
dev-libs/librevenge
|
||||
dev-libs/nspr
|
||||
dev-libs/nss
|
||||
!libressl? ( >=dev-libs/openssl-1.0.0d:0 )
|
||||
libressl? ( dev-libs/libressl )
|
||||
>=dev-libs/redland-1.0.16
|
||||
media-gfx/graphite2
|
||||
media-libs/fontconfig
|
||||
media-libs/freetype:2
|
||||
>=media-libs/glew-1.10:=
|
||||
>=media-libs/harfbuzz-0.9.18:=[icu(+)]
|
||||
media-libs/lcms:2
|
||||
>=media-libs/libcdr-0.1.0
|
||||
>=media-libs/libfreehand-0.1.0
|
||||
media-libs/libpagemaker
|
||||
>=media-libs/libpng-1.4:0=
|
||||
>=media-libs/libvisio-0.1.0
|
||||
net-libs/neon
|
||||
net-misc/curl
|
||||
net-nds/openldap
|
||||
sci-mathematics/lpsolve
|
||||
virtual/jpeg:0
|
||||
x11-libs/cairo[X,-xlib-xcb]
|
||||
x11-libs/libXinerama
|
||||
x11-libs/libXrandr
|
||||
x11-libs/libXrender
|
||||
virtual/glu
|
||||
virtual/opengl
|
||||
bluetooth? ( net-wireless/bluez )
|
||||
coinmp? ( sci-libs/coinor-mp )
|
||||
collada? ( >=media-libs/opencollada-1.2.2_p20150207 )
|
||||
cups? ( net-print/cups )
|
||||
dbus? ( dev-libs/dbus-glib )
|
||||
eds? (
|
||||
dev-libs/glib:2
|
||||
gnome-extra/evolution-data-server
|
||||
)
|
||||
firebird? ( >=dev-db/firebird-2.5 )
|
||||
gltf? ( media-libs/libgltf )
|
||||
gnome? ( gnome-base/dconf )
|
||||
gstreamer? (
|
||||
media-libs/gstreamer:1.0
|
||||
media-libs/gst-plugins-base:1.0
|
||||
)
|
||||
gtk? (
|
||||
x11-libs/gdk-pixbuf
|
||||
>=x11-libs/gtk+-2.24:2
|
||||
)
|
||||
gtk3? (
|
||||
dev-libs/glib:2
|
||||
dev-libs/gobject-introspection
|
||||
>=x11-libs/gtk+-3.8:3
|
||||
)
|
||||
jemalloc? ( dev-libs/jemalloc )
|
||||
libreoffice_extensions_scripting-beanshell? ( dev-java/bsh )
|
||||
libreoffice_extensions_scripting-javascript? ( dev-java/rhino:1.6 )
|
||||
mysql? ( dev-db/mysql-connector-c++ )
|
||||
pdfimport? ( app-text/poppler:=[cxx] )
|
||||
postgres? ( >=dev-db/postgresql-9.0:*[kerberos] )
|
||||
telepathy? ( net-libs/telepathy-glib )
|
||||
"
|
||||
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
!app-office/libreoffice-bin
|
||||
!app-office/libreoffice-bin-debug
|
||||
!app-office/openoffice
|
||||
media-fonts/liberation-fonts
|
||||
media-fonts/libertine
|
||||
media-fonts/urw-fonts
|
||||
java? ( >=virtual/jre-1.6 )
|
||||
kde? ( $(add_kdeapps_dep kioclient) )
|
||||
vlc? ( media-video/vlc )
|
||||
"
|
||||
|
||||
if [[ ${PV} != *9999* ]]; then
|
||||
PDEPEND="=app-office/libreoffice-l10n-$(get_version_component_range 1-2)*"
|
||||
else
|
||||
# Translations are not reliable on live ebuilds
|
||||
# rather force people to use english only.
|
||||
PDEPEND="!app-office/libreoffice-l10n"
|
||||
fi
|
||||
|
||||
# FIXME: cppunit should be moved to test conditional
|
||||
# after everything upstream is under gbuild
|
||||
# as dmake execute tests right away
|
||||
DEPEND="${COMMON_DEPEND}
|
||||
!<sys-devel/make-3.82
|
||||
>=dev-libs/libatomic_ops-7.2d
|
||||
>=dev-libs/libxml2-2.7.8
|
||||
dev-libs/libxslt
|
||||
dev-perl/Archive-Zip
|
||||
dev-util/cppunit
|
||||
>=dev-util/gperf-3
|
||||
dev-util/intltool
|
||||
>=dev-util/mdds-1.2.0:1=
|
||||
media-libs/glm
|
||||
sys-devel/bison
|
||||
sys-devel/flex
|
||||
sys-devel/gettext
|
||||
sys-devel/ucpp
|
||||
sys-libs/zlib
|
||||
virtual/pkgconfig
|
||||
x11-libs/libXt
|
||||
x11-libs/libXtst
|
||||
x11-proto/randrproto
|
||||
x11-proto/xextproto
|
||||
x11-proto/xineramaproto
|
||||
x11-proto/xproto
|
||||
java? (
|
||||
dev-java/ant-core
|
||||
>=virtual/jdk-1.6
|
||||
)
|
||||
odk? ( >=app-doc/doxygen-1.8.4 )
|
||||
test? ( dev-util/cppunit )
|
||||
"
|
||||
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}
|
||||
bluetooth? ( dbus )
|
||||
collada? ( gltf )
|
||||
eds? ( gnome )
|
||||
gnome? ( gtk )
|
||||
telepathy? ( gtk )
|
||||
libreoffice_extensions_nlpsolver? ( java )
|
||||
libreoffice_extensions_scripting-beanshell? ( java )
|
||||
libreoffice_extensions_scripting-javascript? ( java )
|
||||
libreoffice_extensions_wiki-publisher? ( java )
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
# from master branch
|
||||
"${FILESDIR}/${PN}-5.2-icu58.patch"
|
||||
|
||||
# not upstreamable stuff
|
||||
"${FILESDIR}/${PN}-5.2-system-pyuno.patch"
|
||||
)
|
||||
|
||||
pkg_pretend() {
|
||||
use java || \
|
||||
ewarn "If you plan to use lbase application you should enable java or you will get various crashes."
|
||||
|
||||
if [[ ${MERGE_TYPE} != binary ]]; then
|
||||
|
||||
CHECKREQS_MEMORY="512M"
|
||||
if is-flagq "-g*" && ! is-flagq "-g*0" ; then
|
||||
CHECKREQS_DISK_BUILD="22G"
|
||||
else
|
||||
CHECKREQS_DISK_BUILD="6G"
|
||||
fi
|
||||
check-reqs_pkg_pretend
|
||||
|
||||
if ! $(tc-is-clang) && { [[ $(gcc-major-version) -lt 4 ]] ||
|
||||
[[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 7 ]]; } then
|
||||
eerror "Compilation with gcc older than 4.7 is not supported"
|
||||
die "Too old gcc found."
|
||||
fi
|
||||
fi
|
||||
|
||||
# Ensure pg version but we have to be sure the pg is installed (first
|
||||
# install on clean system)
|
||||
if use postgres && has_version dev-db/postgresql; then
|
||||
local pgslot=$(postgresql-config show)
|
||||
if [[ ${pgslot//.} -lt 90 ]] ; then
|
||||
eerror "PostgreSQL slot must be set to 9.0 or higher."
|
||||
eerror " postgresql-config set 9.0"
|
||||
die "PostgreSQL slot is not set to 9.0 or higher."
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
java-pkg-opt-2_pkg_setup
|
||||
kde4-base_pkg_setup
|
||||
python-single-r1_pkg_setup
|
||||
xdg_environment_reset
|
||||
|
||||
if [[ ${MERGE_TYPE} != binary ]]; then
|
||||
CHECKREQS_MEMORY="512M"
|
||||
if is-flagq "-g*" && ! is-flagq "-g*0" ; then
|
||||
CHECKREQS_DISK_BUILD="22G"
|
||||
else
|
||||
CHECKREQS_DISK_BUILD="6G"
|
||||
fi
|
||||
check-reqs_pkg_setup
|
||||
fi
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
local mod
|
||||
|
||||
[[ -n ${PATCHSET} ]] && unpack ${PATCHSET}
|
||||
use branding && unpack "${BRANDING}"
|
||||
|
||||
if [[ ${PV} != *9999* ]]; then
|
||||
unpack "${P}.tar.xz"
|
||||
for mod in ${MODULES}; do
|
||||
[[ ${mod} == core ]] && continue
|
||||
unpack "${PN}-${mod}-${PV}.tar.xz"
|
||||
done
|
||||
else
|
||||
local base_uri branch checkout mypv
|
||||
base_uri="git://anongit.freedesktop.org"
|
||||
for mod in ${MODULES}; do
|
||||
branch="master"
|
||||
mypv=${PV/.9999}
|
||||
[[ ${mypv} != ${PV} ]] && branch="${PN}-${mypv/./-}"
|
||||
git-r3_fetch "${base_uri}/${PN}/${mod}" "refs/heads/${branch}"
|
||||
[[ ${mod} != core ]] && checkout="${S}/${mod}"
|
||||
[[ ${mod} == help ]] && checkout="helpcontent2" # doesn't match on help
|
||||
git-r3_checkout "${base_uri}/${PN}/${mod}" ${checkout}
|
||||
done
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
[[ -n ${PATCHSET} ]] && eapply "${WORKDIR}/${PATCHSET/.tar.xz/}"
|
||||
eapply "${PATCHES[@]}"
|
||||
eapply_user
|
||||
|
||||
AT_M4DIR="m4" eautoreconf
|
||||
# hack in the autogen.sh
|
||||
touch autogen.lastrun
|
||||
|
||||
# system pyuno mess
|
||||
sed -i \
|
||||
-e "s:%eprefix%:${EPREFIX}:g" \
|
||||
-e "s:%libdir%:$(get_libdir):g" \
|
||||
pyuno/source/module/uno.py \
|
||||
pyuno/source/officehelper.py || die
|
||||
# sed in the tests
|
||||
sed -i \
|
||||
-e "s#all : build unitcheck#all : build#g" \
|
||||
solenv/gbuild/Module.mk || die
|
||||
sed -i \
|
||||
-e "s#check: dev-install subsequentcheck#check: unitcheck slowcheck dev-install subsequentcheck#g" \
|
||||
-e "s#Makefile.gbuild all slowcheck#Makefile.gbuild all#g" \
|
||||
Makefile.in || die
|
||||
|
||||
sed -i \
|
||||
-e "s,/usr/share/bash-completion/completions,$(get_bashcompdir)," \
|
||||
-e "s,\$INSTALLDIRNAME.sh,${PN}," \
|
||||
bin/distro-install-desktop-integration || die
|
||||
|
||||
if use branding; then
|
||||
# hack...
|
||||
mv -v "${WORKDIR}/branding-intro.png" "${S}/icon-themes/galaxy/brand/intro.png" || die
|
||||
fi
|
||||
|
||||
# Don't list pdfimport support in desktop when built with none, bug # 605464
|
||||
if ! use pdfimport; then
|
||||
sed -i \
|
||||
-e ":MimeType: s:application/pdf;::" \
|
||||
-e ":Keywords: s:pdf;::" \
|
||||
sysui/desktop/menus/draw.desktop || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local java_opts
|
||||
local ext_opts
|
||||
|
||||
# Set up Google API keys, see http://www.chromium.org/developers/how-tos/api-keys
|
||||
# Note: these are for Gentoo use ONLY. For your own distribution, please get
|
||||
# your own set of keys. Feel free to contact chromium@gentoo.org for more info.
|
||||
local google_default_client_id="329227923882.apps.googleusercontent.com"
|
||||
local google_default_client_secret="vgKG0NNv7GoDpbtoFNLxCUXu"
|
||||
|
||||
# optimization flags
|
||||
export GMAKE_OPTIONS="${MAKEOPTS}"
|
||||
# System python enablement:
|
||||
export PYTHON_CFLAGS=$(python_get_CFLAGS)
|
||||
export PYTHON_LIBS=$(python_get_LIBS)
|
||||
|
||||
if use collada; then
|
||||
export OPENCOLLADA_CFLAGS="-I/usr/include/opencollada/COLLADABaseUtils -I/usr/include/opencollada/COLLADAFramework -I/usr/include/opencollada/COLLADASaxFrameworkLoader -I/usr/include/opencollada/GeneratedSaxParser"
|
||||
export OPENCOLLADA_LIBS="-L /usr/$(get_libdir)/opencollada -lOpenCOLLADABaseUtils -lOpenCOLLADAFramework -lOpenCOLLADASaxFrameworkLoader -lGeneratedSaxParser"
|
||||
fi
|
||||
|
||||
# libreoffice extensions handling
|
||||
for lo_xt in ${LO_EXTS}; do
|
||||
if [[ "${lo_xt}" == "scripting-beanshell" || "${lo_xt}" == "scripting-javascript" ]]; then
|
||||
ext_opts+=" $(use_enable libreoffice_extensions_${lo_xt} ${lo_xt})"
|
||||
else
|
||||
ext_opts+=" $(use_enable libreoffice_extensions_${lo_xt} ext-${lo_xt})"
|
||||
fi
|
||||
done
|
||||
|
||||
if use java; then
|
||||
# hsqldb: system one is too new
|
||||
java_opts="
|
||||
--without-junit
|
||||
--without-system-hsqldb
|
||||
--with-ant-home="${ANT_HOME}"
|
||||
--with-jdk-home=$(java-config --jdk-home 2>/dev/null)
|
||||
--with-jvm-path="${EPREFIX}/usr/lib/"
|
||||
"
|
||||
|
||||
use libreoffice_extensions_scripting-beanshell && \
|
||||
java_opts+=" --with-beanshell-jar=$(java-pkg_getjar bsh bsh.jar)"
|
||||
|
||||
use libreoffice_extensions_scripting-javascript && \
|
||||
java_opts+=" --with-rhino-jar=$(java-pkg_getjar rhino-1.6 js.jar)"
|
||||
fi
|
||||
|
||||
if use kde; then
|
||||
# bug 544108, bug 599076
|
||||
export QMAKEQT4="$(qt4_get_bindir)/qmake"
|
||||
export MOCQT4="$(qt4_get_bindir)/moc"
|
||||
fi
|
||||
|
||||
# system headers/libs/...: enforce using system packages
|
||||
# --enable-cairo: ensure that cairo is always required
|
||||
# --enable-graphite: disabling causes build breakages
|
||||
# --enable-*-link: link to the library rather than just dlopen on runtime
|
||||
# --enable-release-build: build the libreoffice as release
|
||||
# --disable-fetch-external: prevent dowloading during compile phase
|
||||
# --enable-extension-integration: enable any extension integration support
|
||||
# --without-{fonts,myspell-dicts,ppsd}: prevent install of sys pkgs
|
||||
# --disable-report-builder: too much java packages pulled in without pkgs
|
||||
# --without-system-sane: just sane.h header that is used for scan in writer,
|
||||
# not linked or anything else, worthless to depend on
|
||||
econf \
|
||||
--docdir="${EPREFIX}/usr/share/doc/${PF}/" \
|
||||
--with-system-dicts \
|
||||
--with-system-headers \
|
||||
--with-system-jars \
|
||||
--with-system-libs \
|
||||
--enable-cairo-canvas \
|
||||
--enable-graphite \
|
||||
--enable-largefile \
|
||||
--enable-mergelibs \
|
||||
--enable-neon \
|
||||
--enable-python=system \
|
||||
--enable-randr \
|
||||
--enable-release-build \
|
||||
--disable-ccache \
|
||||
--disable-crashdump \
|
||||
--disable-dependency-tracking \
|
||||
--disable-epm \
|
||||
--disable-fetch-external \
|
||||
--disable-gstreamer-0-10 \
|
||||
--disable-hardlink-deliver \
|
||||
--disable-online-update \
|
||||
--disable-report-builder \
|
||||
--with-alloc=$(use jemalloc && echo "jemalloc" || echo "system") \
|
||||
--with-build-version="Gentoo official package" \
|
||||
--enable-extension-integration \
|
||||
--with-external-dict-dir="${EPREFIX}/usr/share/myspell" \
|
||||
--with-external-hyph-dir="${EPREFIX}/usr/share/myspell" \
|
||||
--with-external-thes-dir="${EPREFIX}/usr/share/myspell" \
|
||||
--with-external-tar="${DISTDIR}" \
|
||||
--with-lang="" \
|
||||
--with-parallelism=$(makeopts_jobs) \
|
||||
--with-system-ucpp \
|
||||
--with-vendor="Gentoo Foundation" \
|
||||
--with-x \
|
||||
--without-fonts \
|
||||
--without-myspell-dicts \
|
||||
--without-help \
|
||||
--with-helppack-integration \
|
||||
--without-sun-templates \
|
||||
--without-system-sane \
|
||||
$(use_enable bluetooth sdremote-bluetooth) \
|
||||
$(use_enable coinmp) \
|
||||
$(use_enable collada) \
|
||||
$(use_enable cups) \
|
||||
$(use_enable debug) \
|
||||
$(use_enable dbus) \
|
||||
$(use_enable eds evolution2) \
|
||||
$(use_enable firebird firebird-sdbc) \
|
||||
$(use_enable gltf) \
|
||||
$(use_enable gnome gio) \
|
||||
$(use_enable gnome dconf) \
|
||||
$(use_enable gstreamer gstreamer-1-0) \
|
||||
$(use_enable gtk) \
|
||||
$(use_enable gtk3) \
|
||||
$(use_enable kde kde4) \
|
||||
$(use_enable mysql ext-mariadb-connector) \
|
||||
$(use_enable odk) \
|
||||
$(use_enable pdfimport) \
|
||||
$(use_enable postgres postgresql-sdbc) \
|
||||
$(use_enable quickstarter systray) \
|
||||
$(use_enable telepathy) \
|
||||
$(use_enable vlc) \
|
||||
$(use_with coinmp system-coinmp) \
|
||||
$(use_with collada system-opencollada) \
|
||||
$(use_with gltf system-libgltf) \
|
||||
$(use_with googledrive gdrive-client-id ${google_default_client_id}) \
|
||||
$(use_with googledrive gdrive-client-secret ${google_default_client_secret}) \
|
||||
$(use_with java) \
|
||||
$(use_with mysql system-mysql-cppconn) \
|
||||
$(use_with odk doxygen) \
|
||||
${java_opts} \
|
||||
${ext_opts}
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# more and more LO stuff tries to use OpenGL, including tests during build
|
||||
# bug 501508, bug 540624, bug 545974 and probably more
|
||||
addpredict /dev/dri
|
||||
addpredict /dev/ati
|
||||
addpredict /dev/nvidiactl
|
||||
|
||||
# hack for offlinehelp, this needs fixing upstream at some point
|
||||
# it is broken because we send --without-help
|
||||
# https://bugs.freedesktop.org/show_bug.cgi?id=46506
|
||||
(
|
||||
grep "^export" "${S}/config_host.mk" > "${T}/config_host.mk" || die
|
||||
source "${T}/config_host.mk" 2&> /dev/null
|
||||
|
||||
local path="${WORKDIR}/helpcontent2/source/auxiliary/"
|
||||
mkdir -p "${path}" || die
|
||||
|
||||
echo "perl \"${S}/helpcontent2/helpers/create_ilst.pl\" -dir=icon-themes/galaxy/res/helpimg > \"${path}/helpimg.ilst\""
|
||||
perl "${S}/helpcontent2/helpers/create_ilst.pl" \
|
||||
-dir=icon-themes/galaxy/res/helpimg \
|
||||
> "${path}/helpimg.ilst"
|
||||
[[ -s "${path}/helpimg.ilst" ]] || \
|
||||
ewarn "The help images list is empty, something is fishy, report a bug."
|
||||
)
|
||||
|
||||
local target
|
||||
use test && target="build" || target="build-nocheck"
|
||||
|
||||
# this is not a proper make script
|
||||
make ${target} || die
|
||||
}
|
||||
|
||||
src_test() {
|
||||
make unitcheck || die
|
||||
make slowcheck || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# This is not Makefile so no buildserver
|
||||
make DESTDIR="${D}" distro-pack-install -o build -o check || die
|
||||
|
||||
# bug 593514
|
||||
if use gtk3; then
|
||||
dosym /usr/$(get_libdir)/libreoffice/program/liblibreofficekitgtk.so \
|
||||
/usr/$(get_libdir)/liblibreofficekitgtk.so
|
||||
fi
|
||||
|
||||
# bash completion aliases
|
||||
bashcomp_alias \
|
||||
libreoffice \
|
||||
unopkg loimpress lobase localc lodraw lomath lowriter lofromtemplate loweb loffice
|
||||
|
||||
if use branding; then
|
||||
insinto /usr/$(get_libdir)/${PN}/program
|
||||
newins "${WORKDIR}/branding-sofficerc" sofficerc
|
||||
dodir /etc/env.d
|
||||
echo "CONFIG_PROTECT=/usr/$(get_libdir)/${PN}/program/sofficerc" > "${ED}"etc/env.d/99${PN} || die
|
||||
fi
|
||||
|
||||
# Hack for offlinehelp, this needs fixing upstream at some point.
|
||||
# It is broken because we send --without-help
|
||||
# https://bugs.freedesktop.org/show_bug.cgi?id=46506
|
||||
insinto /usr/$(get_libdir)/libreoffice/help
|
||||
doins xmlhelp/util/*.xsl
|
||||
|
||||
# Remove desktop files to support old installs that can't parse mime
|
||||
rm -r "${ED}"usr/share/mimelnk/ || die
|
||||
|
||||
pax-mark -m "${ED}"usr/$(get_libdir)/libreoffice/program/soffice.bin
|
||||
pax-mark -m "${ED}"usr/$(get_libdir)/libreoffice/program/unopkg.bin
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
# Cache updates - all handled by kde eclass for all environments
|
||||
kde4-base_pkg_preinst
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
kde4-base_pkg_postinst
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
kde4-base_pkg_postrm
|
||||
}
|
@ -1,2 +1,3 @@
|
||||
DIST libmwaw-0.3.10.tar.xz 1229964 SHA256 b246a0c15fcf98076f2a1f2cf4d44a714f5c8eb39690442fc7fbbd01fa34f220 SHA512 5d225ecb89466d486900a33abf10b61e6f6bbff00053c5f6ab0046960c64c3022529a1e637594eca47b14c96c9f8440db9331d1db687f761c1026c64fb8301d5 WHIRLPOOL 7d537d55cc8491f8be2676d5b9a0e36ecdeb041e38e9416c43547730871bf757409c8b77460e507d87c4cc287b62ad2b449a5af8bed4b0406fbcca3759ef3ff4
|
||||
DIST libmwaw-0.3.8.tar.xz 1200052 SHA256 6afcbb250b6bed042149cd4dfb3ba7b4be796b11fe2322dfcdebd121199a3b05 SHA512 3e3684479460d22b83da225f8f1bc4de306f8e4a9e48c7ea128cba08f122b093c529f2e73b8f8ae1b235665d4f3c7de2fc461692e21f13364da678add707d01c WHIRLPOOL 77d9b1253191089da5c869e7bb160253672747cfd502350b28acde538e02b8418c0ee63899bf903b4c3c9f1561d145d0626c822f26467cb8ba7aa4de04287158
|
||||
DIST libmwaw-0.3.9.tar.xz 1226044 SHA256 f7fca4d31510e52cda94f1272147f385e372448c0aaef16f07a5e8b3ceb5b2a0 SHA512 41ed9adbe4d73f0554629394f33b20c11ead86b1922af37451fa8c7179d55d61b09da72d676fb0ce123818675450048a87b9f4d67ad2e8070269724bd2cd0051 WHIRLPOOL 88eac9a04707249ebb874504b2012786b2b21f1e2fd42f07d3a809bef343b6a1ad5cb3ffebb484c2da52bc47ff3050f98d8e64dacabe8caca1e7a5e75b4f8d90
|
||||
|
@ -0,0 +1,52 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
EGIT_REPO_URI="git://git.code.sf.net/p/libmwaw/libmwaw"
|
||||
[[ ${PV} == 9999 ]] && inherit autotools git-r3
|
||||
|
||||
DESCRIPTION="Library parsing many pre-OSX MAC text formats"
|
||||
HOMEPAGE="https://sourceforge.net/p/libmwaw/wiki/Home/"
|
||||
[[ ${PV} == 9999 ]] || SRC_URI="mirror://sourceforge/${PN}/${P}.tar.xz"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0"
|
||||
|
||||
[[ ${PV} == 9999 ]] || \
|
||||
KEYWORDS="~amd64 ~arm ~x86"
|
||||
|
||||
IUSE="doc static-libs tools"
|
||||
|
||||
RDEPEND="
|
||||
dev-libs/librevenge
|
||||
dev-libs/libxml2
|
||||
sys-libs/zlib
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
sys-devel/libtool
|
||||
virtual/pkgconfig
|
||||
doc? ( app-doc/doxygen )
|
||||
"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
[[ ${PV} == 9999 ]] && eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# zip is hard enabled as the zlib is dep on the rdeps anyway
|
||||
econf \
|
||||
--enable-zip \
|
||||
--disable-werror \
|
||||
--with-sharedptr=c++11 \
|
||||
$(use_with doc docs) \
|
||||
$(use_enable static-libs static) \
|
||||
$(use_enable tools)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
find "${D}" -name '*.la' -delete || die
|
||||
}
|
@ -1,3 +1,3 @@
|
||||
DIST etcd-2.3.7.tar.gz 2209051 SHA256 aa3a6340bb08d072d1d2ecfbe3c1e02235251760d031a2b699ee1710510ee883 SHA512 a551287ebf6e881e2c6a56a7e75c273d125ed2b4b3ea58533e4481bc12ca21167de02820aaa1f4775b81385e96e65f882e97121920be02d72abe82f43652daf9 WHIRLPOOL e01bf51978b9287e9e662f8689630d80eb79aace43fe0c81f1898718ccec1a0a93e53543c3df001dfc12dac2a3844f5a4fe2de28d97654b671648ad93681185a
|
||||
DIST etcd-3.0.12.tar.gz 2214038 SHA256 d8de5045056814bee623b219102eca17ab573da977562164b261a7e1198fa31b SHA512 ff64cd55fe6fde486600a2438a2c0e4b5161d52e52936d762e3b69006e607809343a7c3f4dd3e28143a93b3fc8a1a9ad9610cbff5659e3d70e2766192e28c5a9 WHIRLPOOL d9d76cfadb20b7c2db75290d46fc938888a7b8830e0d8f12b2fe0404c0c50b78c3bfe6c993edc28702c2eb3526281eb647680de149b2357b06dbbc50d4c44ec7
|
||||
DIST etcd-3.0.15.tar.gz 2216552 SHA256 c21871f7e1454b1698ff29601a296f4b09365fac25bea45c0af21542d486c307 SHA512 a60f0d36332903133ac4bac0161f5caed8f13afd992e26a8ff98728f6659cf8dcddc4bd77f9df95b695b57f484e993c0da9efe7e4ec420d6c6059334e8829bb6 WHIRLPOOL ab148e2f7218a35ece6305cd173cc201a488663a4419b51fc732f6d562f2a7bc745eedc18475f2497a2ebfdff3523e6199f628dab6679a11bc86110be41e3aaf
|
||||
DIST etcd-3.0.17.tar.gz 2208002 SHA256 c56c68a8cd5d120a51432f3a79a2c19082a6824493e4bb08c4e440aefbf73d8f SHA512 6eb6a61210f225b6fe7e911ad135e5014f80f71a04adccc3f382ca7b5e1b1b692b12dde26335ecac176cb8b8f4586732cb6e650b32730ec68ef7fbcbba7ab160 WHIRLPOOL 102dc47d120a1f4173b67168e5e51f64025da280ca41161131a6bd2ef9521605ef19e03166848f6c32862a3adbfc0a026f547dc7764018e85f6ac28f89c8d256
|
||||
DIST etcd-3.1.0.tar.gz 2516872 SHA256 62ecb70a470b45436814e2882d36742a4035e1d62e6634450e71ca0ed951919b SHA512 b377ac492dd842a0f24d2816cd37bb40e692289efbbab63ab54e1b31e7999f26c6c0f2887249f5fd775266919a614699e561ecfc82c8a687d2cf1b25fdb7478f WHIRLPOOL b47a81ea597617a4eab6ee29d51b964f942b8dc324063e6633e2818320ce3b19e1907975a28ca3186cc112553b4e8580c210ad4854945484dcc26f359d0c60e6
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
@ -1,2 +1 @@
|
||||
DIST cmake-fedora-1.3.0-Source.tar.gz 81956 SHA256 be46be6031f5f41fbc322a4e5acbe76565f037cff6dc311339f8b5bcf73e3e48 SHA512 0c6ff168d365500079ba4c3d153a6a10cb2f3ea7d1164bda44aec8c022410905be77d347f29929403cc939d23b961768f75d3051707154510c8c810130c8857e WHIRLPOOL 9746fb980fb64afdf8187de304903275b4d55e95a01712f7d80eb9e47592b4f7074af593900a1f782ad536690df7fb3956ab5fb0c22b26fdf015041a259d8b07
|
||||
DIST cmake-fedora-2.7.1-Source.tar.gz 127053 SHA256 f8e5fe60268b44033b8f982dbaf43e860a860b4f303798fa5a5051f4ae28f6c1 SHA512 1f264a3527c4938916de91d2b8ce10c58fa222c992820d6ea5c5e850a190476900a4cdb18f7efc0680222d220efb5e56c8102a9f034385e15b5f88f9a25601cf WHIRLPOOL 4c684bf1aae82a5486ddb044d86ed15c5b242fd99246b2e43d0550d0dc7a8f2016683329a26352377cd5ccec4dd1afb3f50b6f9de5eca912f027d1d78bc70f25
|
||||
|
@ -1,22 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=4
|
||||
|
||||
inherit cmake-utils
|
||||
|
||||
DESCRIPTION="Provides cmake helper macros and targets for linux, especially fedora developers"
|
||||
HOMEPAGE="https://fedorahosted.org/cmake-fedora/#Getcmake-fedora"
|
||||
SRC_URI="https://fedorahosted.org/releases/c/m/cmake-fedora/${P}-Source.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 x86"
|
||||
IUSE=""
|
||||
|
||||
DEPEND=""
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
S="${WORKDIR}"/${P}-Source
|
||||
CMAKE_IN_SOURCE_BUILD=1
|
@ -1,3 +1,2 @@
|
||||
DIST stressapptest-1.0.4_autoconf.tar.gz 200370 SHA256 c8c83419e800504682506e10800763759f3f339b2158bae1329bb145ff981b65 SHA512 bcc81057361c9ae09562106398f1a3d6b5a0a41e4bf4e7b61ca8f05144a4295e642136dd5441ad1950b5c2785476593ad30d03052e4fe9e9f4071aabd33b123f WHIRLPOOL fe8befb6f76c33c4b2d525064c47e3b9c69a1352b6a0eb502c06ca3b12143aa7a3127e9b944ab1c871937345978ddc6598f1dbe2f3fb7cd3dc6dd65b4563b537
|
||||
DIST stressapptest-1.0.6_autoconf.tar.gz 208918 SHA256 31b04bbd964431668977a89aee44b241cb54a5e84c3abf6132507545b286cdd9 SHA512 92a1258cc67f49de55f3cc1fa4e3fa627ed77aa033790f8af2b5d006799ff1aeef5b8e35dbeb52c777f9b4dad08ab6e4dfe445bc05e977c0f7c4a15c0cf46331 WHIRLPOOL 7e916e74e87ef935894c134ea867a077bc761b1959c3b2063b6b5ee5b2bae473d56a7e19423eb8d6c0be0a4f6dab29bad7c20eb5f2d68cee66210a6da2306921
|
||||
DIST stressapptest-1.0.7_p1.tar.xz 165876 SHA256 39183d4dd79ae37e7ad480a4b9254ff52bcc926e853e954df492b51db3ee3b04 SHA512 ac3c072eae6f13ba6608d2cee1ee33b5d27b078dbbcb9e7ae1e59507d4571e36a06dd0e19e4a1b705c916104e06be39aa93ebe607fe93d5669e8764c68904fc9 WHIRLPOOL 374a8c86dc2742187c001580ec335b72822f0ac44ba2694bdabf6991765126fedca8928862db56c827f24e9e11c5f7f8b6654d0e04a94ba5a4a284f608f28bf1
|
||||
DIST stressapptest-1.0.8.tar.gz 218485 SHA256 b0432f39055166156ed04eb234f3c226b17a42f802a3f81d76ee999838e205df SHA512 b5fde353d15958052219c3e505a22aa914e03a7fe96c3a0ac5025a4c730643f6fbdd5088a7cc0dd4618d4998151e2374507845110af8f2cdb43ccd4c87d48916 WHIRLPOOL 9a71c958b4b929623daf908b436f4d252b8b2234e2fa20286b36c7a3d8471d84ffbfd4da8b3b2b7d97f5a70a658e323a6b2ee6328e779a67e7277a29caed03ce
|
||||
|
@ -1,43 +0,0 @@
|
||||
http://code.google.com/p/stressapptest/issues/detail?id=26
|
||||
|
||||
--- a/src/os.cc
|
||||
+++ b/src/os.cc
|
||||
@@ -149,7 +149,16 @@ void OsLayer::GetFeatures() {
|
||||
// http://www.sandpile.org/ia32/cpuid.htm
|
||||
int ax, bx, cx, dx;
|
||||
__asm__ __volatile__ (
|
||||
- "cpuid": "=a" (ax), "=b" (bx), "=c" (cx), "=d" (dx) : "a" (1));
|
||||
+# if defined(STRESSAPPTEST_CPU_I686) && defined(__PIC__)
|
||||
+ "xchg %%ebx, %%esi;"
|
||||
+ "cpuid;"
|
||||
+ "xchg %%esi, %%ebx;"
|
||||
+ : "=S" (bx),
|
||||
+# else
|
||||
+ "cpuid;"
|
||||
+ : "=b" (bx),
|
||||
+# endif
|
||||
+ "=a" (ax), "=c" (cx), "=d" (dx) : "a" (1));
|
||||
has_clflush_ = (dx >> 19) & 1;
|
||||
has_sse2_ = (dx >> 26) & 1;
|
||||
|
||||
--- a/src/worker.cc
|
||||
+++ b/src/worker.cc
|
||||
@@ -85,7 +85,17 @@ namespace {
|
||||
inline int apicid(void) {
|
||||
int cpu;
|
||||
#if defined(STRESSAPPTEST_CPU_X86_64) || defined(STRESSAPPTEST_CPU_I686)
|
||||
- __asm __volatile("cpuid" : "=b" (cpu) : "a" (1) : "cx", "dx");
|
||||
+ __asm__ __volatile__ (
|
||||
+# if defined(STRESSAPPTEST_CPU_I686) && defined(__PIC__)
|
||||
+ "xchg %%ebx, %%esi;"
|
||||
+ "cpuid;"
|
||||
+ "xchg %%esi, %%ebx;"
|
||||
+ : "=S" (cpu)
|
||||
+# else
|
||||
+ "cpuid;"
|
||||
+ : "=b" (cpu)
|
||||
+# endif
|
||||
+ : "a" (1) : "cx", "dx");
|
||||
#elif defined(STRESSAPPTEST_CPU_ARMV7A)
|
||||
#warning "Unsupported CPU type ARMV7A: unable to determine core ID."
|
||||
cpu = 0;
|
@ -1,145 +0,0 @@
|
||||
From fdc52203836f7fd54e1bff84e11d26838a8f21bc Mon Sep 17 00:00:00 2001
|
||||
From: "nick.j.sanders@gmail.com"
|
||||
<nick.j.sanders@gmail.com@93e54ea4-8218-11de-8aaf-8d8425684b44>
|
||||
Date: Tue, 11 Feb 2014 08:53:31 +0000
|
||||
Subject: [PATCH] Fix autoconf bugs
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
* Correctly use autoconf host rather than target.
|
||||
* Use autoconf host_os.
|
||||
* Warn rather than error on unknown configs.
|
||||
* Add --disable-default-optimizations to avoid forced flags.
|
||||
* Fix manfile install
|
||||
|
||||
|
||||
git-svn-id: http://stressapptest.googlecode.com/svn/trunk@42 93e54ea4-8218-11de-8aaf-8d8425684b44
|
||||
---
|
||||
Makefile.am | 3 +-
|
||||
Makefile.in | 171 ++++++++-----
|
||||
aclocal.m4 | 72 ++++--
|
||||
configure | 781 ++++++++++++++++++++++++++++----------------------------
|
||||
configure.ac | 63 +++--
|
||||
src/Makefile.in | 36 ++-
|
||||
6 files changed, 602 insertions(+), 524 deletions(-)
|
||||
|
||||
diff --git a/Makefile.am b/Makefile.am
|
||||
index c476e5f..5b1998f 100644
|
||||
--- a/Makefile.am
|
||||
+++ b/Makefile.am
|
||||
@@ -1,2 +1,3 @@
|
||||
SUBDIRS = src
|
||||
-dist_doc_DATA = COPYING stressapptest.1
|
||||
\ No newline at end of file
|
||||
+dist_man_MANS = stressapptest.1
|
||||
+
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index 6f09eb9..1fbc460 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -12,60 +12,53 @@ else
|
||||
fi
|
||||
|
||||
AC_CANONICAL_HOST
|
||||
-AC_CANONICAL_BUILD
|
||||
# Checking for target cpu and setting custom configuration
|
||||
# for the different platforms
|
||||
-AC_CANONICAL_TARGET
|
||||
-case x"$target_cpu" in
|
||||
- "xx86_64")
|
||||
+AS_CASE(["$host_cpu"],
|
||||
+ [*x86_64*], [
|
||||
AC_DEFINE([STRESSAPPTEST_CPU_X86_64],[],
|
||||
[Defined if the target CPU is x86_64])
|
||||
- ;;
|
||||
- "xi686")
|
||||
+ ],
|
||||
+ [*i686*], [
|
||||
AC_DEFINE([STRESSAPPTEST_CPU_I686],[],
|
||||
[Defined if the target CPU is i686])
|
||||
- ;;
|
||||
- "xpowerpc")
|
||||
+ ],
|
||||
+ [*powerpc*], [
|
||||
AC_DEFINE([STRESSAPPTEST_CPU_PPC],[],
|
||||
[Defined if the target CPU is PowerPC])
|
||||
- ;;
|
||||
- "xarmv7a")
|
||||
+ ],
|
||||
+ [*armv7a*], [
|
||||
AC_DEFINE([STRESSAPPTEST_CPU_ARMV7A],[],
|
||||
[Defined if the target CPU is armv7a])
|
||||
- ;;
|
||||
- *)
|
||||
- AC_MSG_ERROR([$target_cpu is not supported! Try x86_64, i686, powerpc, or armv7a])
|
||||
- ;;
|
||||
-esac
|
||||
+ ],
|
||||
+ [AC_MSG_WARN([Unsupported CPU: $host_cpu! Try x86_64, i686, powerpc, or armv7a])]
|
||||
+)
|
||||
|
||||
-_os=`uname`
|
||||
## The following allows like systems to share settings. This is not meant to
|
||||
## imply that these OS are the same thing. From OpenOffice dmake configure.in
|
||||
-case "$_os" in
|
||||
- "Linux")
|
||||
+AS_CASE(["$host_os"],
|
||||
+ [*linux*], [
|
||||
OS_VERSION=linux
|
||||
AC_DEFINE([STRESSAPPTEST_OS_LINUX],[],
|
||||
[Defined if the target OS is Linux])
|
||||
- ;;
|
||||
- "Darwin")
|
||||
+ ],
|
||||
+ [*darwin*], [
|
||||
OS_VERSION=macosx
|
||||
AC_DEFINE([STRESSAPPTEST_OS_DARWIN],[],
|
||||
[Defined if the target OS is OSX])
|
||||
- ;;
|
||||
- "FreeBSD")
|
||||
+ ],
|
||||
+ [*freebsd*], [
|
||||
OS_VERSION=bsd
|
||||
AC_DEFINE([STRESSAPPTEST_OS_BSD],[],
|
||||
[Defined if the target OS is BSD based])
|
||||
- ;;
|
||||
- "NetBSD")
|
||||
+ ],
|
||||
+ [*netbsd*], [
|
||||
OS_VERSION=bsd
|
||||
AC_DEFINE([STRESSAPPTEST_OS_BSD],[],
|
||||
[Defined if the target OS is BSD based])
|
||||
- ;;
|
||||
- *)
|
||||
- AC_MSG_ERROR([$_os operating system is not suitable to build dmake!])
|
||||
- ;;
|
||||
-esac
|
||||
+ ],
|
||||
+ [AC_MSG_WARN([unsupported system: $host_os])]
|
||||
+)
|
||||
|
||||
AM_INIT_AUTOMAKE([-Wall -Werror foreign])
|
||||
AC_CONFIG_SRCDIR([src/])
|
||||
@@ -95,10 +88,14 @@ AC_DEFINE_UNQUOTED([STRESSAPPTEST_TIMESTAMP],
|
||||
"$username @ $hostname on $timestamp",
|
||||
[Timestamp when ./configure was executed])
|
||||
|
||||
-#Default cxxflags
|
||||
-CXXFLAGS="$CXXFLAGS -DCHECKOPTS"
|
||||
-CXXFLAGS="$CXXFLAGS -Wreturn-type -Wunused -Wuninitialized -Wall -Wno-psabi"
|
||||
-CXXFLAGS="$CXXFLAGS -O3 -funroll-all-loops -funroll-loops -DNDEBUG"
|
||||
+AC_ARG_ENABLE([default-optimizations],
|
||||
+ [AS_HELP_STRING([--disable-default-optimizations], [Disable default optimization flag overrides])])
|
||||
+AS_IF([test x"$enable_default_optimizations" != xno], [
|
||||
+ #Default cxxflags
|
||||
+ CXXFLAGS="$CXXFLAGS -DCHECKOPTS"
|
||||
+ CXXFLAGS="$CXXFLAGS -Wreturn-type -Wunused -Wuninitialized -Wall -Wno-psabi"
|
||||
+ CXXFLAGS="$CXXFLAGS -O3 -funroll-all-loops -funroll-loops -DNDEBUG"
|
||||
+])
|
||||
|
||||
# Checks for header files.
|
||||
AC_HEADER_DIRENT
|
||||
--
|
||||
2.0.0
|
||||
|
@ -1,226 +0,0 @@
|
||||
From 7d1eaee59d311523757fb93ec59d8985ea15b54d Mon Sep 17 00:00:00 2001
|
||||
From: "nick.j.sanders" <nick.j.sanders@93e54ea4-8218-11de-8aaf-8d8425684b44>
|
||||
Date: Thu, 10 Jan 2013 23:42:36 +0000
|
||||
Subject: [PATCH] Replace interleave_size with channel_hash
|
||||
|
||||
This patch replaces the previously introduced interleave_size memory
|
||||
channel decoding mechanism with a more powerful channel_hash. Decoding
|
||||
can now be based upon an arbitrary mask of address bits, which will be
|
||||
XORed together to determine the target channel. Note that this drops
|
||||
support for more than two channels, but TripleChannel controllers will
|
||||
probably use much more complicated decoding mechanisms anyway.
|
||||
|
||||
It also includes the findmask program, which offers a crude method to
|
||||
guess the decoding mask from an unknown memory controller for enterprising
|
||||
users. Use at your own risk.
|
||||
|
||||
Signed-off-by: Julius Werner <jwerner@chromium.org>
|
||||
|
||||
|
||||
git-svn-id: http://stressapptest.googlecode.com/svn/trunk@37 93e54ea4-8218-11de-8aaf-8d8425684b44
|
||||
---
|
||||
src/Makefile.am | 2 +
|
||||
src/Makefile.in | 68 +++++++++++++++++++--------
|
||||
src/findmask.c | 138 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||
src/findmask.inc | 4 ++
|
||||
src/os.cc | 17 +++----
|
||||
src/os.h | 12 ++---
|
||||
src/sat.cc | 55 +++++++++++-----------
|
||||
src/sat.h | 5 +-
|
||||
8 files changed, 238 insertions(+), 63 deletions(-)
|
||||
create mode 100644 src/findmask.c
|
||||
create mode 100644 src/findmask.inc
|
||||
|
||||
--- a/src/os.cc
|
||||
+++ b/src/os.cc
|
||||
@@ -261,21 +261,22 @@ bool OsLayer::AdlerMemcpyWarm(uint64 *dstmem, uint64 *srcmem,
|
||||
}
|
||||
|
||||
|
||||
-// Translate physical address to memory module name.
|
||||
-// Assumes simple round-robin interleaving between memory channels of
|
||||
-// 'interleave_size_' sized chunks, with repeated 'channel_width_'
|
||||
+// Translate physical address to memory module/chip name.
|
||||
+// Assumes interleaving between two memory channels based on the XOR of
|
||||
+// all address bits in the 'channel_hash' mask, with repeated 'channel_width_'
|
||||
// blocks with bits distributed from each chip in that channel.
|
||||
int OsLayer::FindDimm(uint64 addr, char *buf, int len) {
|
||||
static const string unknown = "DIMM Unknown";
|
||||
- if (!modules_) {
|
||||
+ if (!channels_) {
|
||||
snprintf(buf, len, "%s", unknown.c_str());
|
||||
return 0;
|
||||
}
|
||||
|
||||
- // Find channel by counting interleave units (typically cachelines),
|
||||
- // and mod by number of channels.
|
||||
- vector<string>& channel = (*modules_)[
|
||||
- (addr / interleave_size_) % modules_->size()];
|
||||
+ // Find channel by XORing address bits in channel_hash mask.
|
||||
+ uint32 low = (uint32)(addr & channel_hash_);
|
||||
+ uint32 high = (uint32)((addr & channel_hash_) >> 32);
|
||||
+ vector<string>& channel = (*channels_)[
|
||||
+ __builtin_parity(high) ^ __builtin_parity(low)];
|
||||
|
||||
// Find dram chip by finding which byte within the channel
|
||||
// by address mod channel width, then divide the channel
|
||||
--- a/src/os.h
|
||||
+++ b/src/os.h
|
||||
@@ -58,11 +58,11 @@ class OsLayer {
|
||||
}
|
||||
|
||||
// Set parameters needed to translate physical address to memory module.
|
||||
- void SetDramMappingParams(int interleave_size, int channel_width,
|
||||
- vector< vector<string> > *modules) {
|
||||
- interleave_size_ = interleave_size;
|
||||
+ void SetDramMappingParams(uintptr_t channel_hash, int channel_width,
|
||||
+ vector< vector<string> > *channels) {
|
||||
+ channel_hash_ = channel_hash;
|
||||
channel_width_ = channel_width;
|
||||
- modules_ = modules;
|
||||
+ channels_ = channels;
|
||||
}
|
||||
|
||||
// Initializes data strctures and open files.
|
||||
@@ -269,8 +269,8 @@ class OsLayer {
|
||||
bool use_posix_shm_; // Use 4k page shmem?
|
||||
bool dynamic_mapped_shmem_; // Conserve virtual address space.
|
||||
int shmid_; // Handle to shmem
|
||||
- vector< vector<string> > *modules_; // Memory module names per channel.
|
||||
- int interleave_size_; // Channel interleaving chunk size.
|
||||
+ vector< vector<string> > *channels_; // Memory module names per channel.
|
||||
+ uint64 channel_hash_; // Mask of address bits XORed for channel.
|
||||
int channel_width_; // Channel width in bits.
|
||||
|
||||
int64 regionsize_; // Size of memory "regions"
|
||||
--- a/src/sat.cc
|
||||
+++ b/src/sat.cc
|
||||
@@ -572,12 +572,12 @@ bool Sat::Initialize() {
|
||||
|
||||
if (min_hugepages_mbytes_ > 0)
|
||||
os_->SetMinimumHugepagesSize(min_hugepages_mbytes_ * kMegabyte);
|
||||
- if (modules_.size() > 0) {
|
||||
+ if (channels_.size() > 0) {
|
||||
logprintf(6, "Log: Decoding memory: %dx%d bit channels,"
|
||||
- " %d byte burst size, %d modules per channel (x%d)\n",
|
||||
- modules_.size(), channel_width_, interleave_size_, modules_[0].size(),
|
||||
- channel_width_/modules_[0].size());
|
||||
- os_->SetDramMappingParams(interleave_size_, channel_width_, &modules_);
|
||||
+ "%d modules per channel (x%d), decoding hash 0x%x\n",
|
||||
+ channels_.size(), channel_width_, channels_[0].size(),
|
||||
+ channel_width_/channels_[0].size(), channel_hash_);
|
||||
+ os_->SetDramMappingParams(channel_hash_, channel_width_, &channels_);
|
||||
}
|
||||
|
||||
if (!os_->Initialize()) {
|
||||
@@ -650,7 +650,7 @@ Sat::Sat() {
|
||||
min_hugepages_mbytes_ = 0;
|
||||
freepages_ = 0;
|
||||
paddr_base_ = 0;
|
||||
- interleave_size_ = kCacheLineSize;
|
||||
+ channel_hash_ = kCacheLineSize;
|
||||
channel_width_ = 64;
|
||||
|
||||
user_break_ = false;
|
||||
@@ -927,19 +927,19 @@ bool Sat::ParseArgs(int argc, char **argv) {
|
||||
continue;
|
||||
}
|
||||
|
||||
- ARG_IVALUE("--interleave_size", interleave_size_);
|
||||
+ ARG_IVALUE("--channel_hash", channel_hash_);
|
||||
ARG_IVALUE("--channel_width", channel_width_);
|
||||
|
||||
if (!strcmp(argv[i], "--memory_channel")) {
|
||||
i++;
|
||||
if (i < argc) {
|
||||
- char *module = argv[i];
|
||||
- modules_.push_back(vector<string>());
|
||||
- while (char* next = strchr(module, ',')) {
|
||||
- modules_.back().push_back(string(module, next - module));
|
||||
- module = next + 1;
|
||||
+ char *channel = argv[i];
|
||||
+ channels_.push_back(vector<string>());
|
||||
+ while (char* next = strchr(channel, ',')) {
|
||||
+ channels_.back().push_back(string(channel, next - channel));
|
||||
+ channel = next + 1;
|
||||
}
|
||||
- modules_.back().push_back(string(module));
|
||||
+ channels_.back().push_back(string(channel));
|
||||
}
|
||||
continue;
|
||||
}
|
||||
@@ -990,22 +990,25 @@ bool Sat::ParseArgs(int argc, char **argv) {
|
||||
}
|
||||
|
||||
// Validate memory channel parameters if supplied
|
||||
- if (modules_.size()) {
|
||||
- if (interleave_size_ <= 0 ||
|
||||
- interleave_size_ & (interleave_size_ - 1)) {
|
||||
+ if (channels_.size()) {
|
||||
+ if (channels_.size() == 1) {
|
||||
+ channel_hash_ = 0;
|
||||
+ logprintf(7, "Log: "
|
||||
+ "Only one memory channel...deactivating interleave decoding.\n");
|
||||
+ } else if (channels_.size() > 2) {
|
||||
logprintf(6, "Process Error: "
|
||||
- "Interleave size %d is not a power of 2.\n", interleave_size_);
|
||||
+ "Triple-channel mode not yet supported... sorry.\n");
|
||||
bad_status();
|
||||
return false;
|
||||
}
|
||||
- for (uint i = 0; i < modules_.size(); i++)
|
||||
- if (modules_[i].size() != modules_[0].size()) {
|
||||
+ for (uint i = 0; i < channels_.size(); i++)
|
||||
+ if (channels_[i].size() != channels_[0].size()) {
|
||||
logprintf(6, "Process Error: "
|
||||
- "Channels 0 and %d have a different amount of modules.\n",i);
|
||||
+ "Channels 0 and %d have a different count of dram modules.\n",i);
|
||||
bad_status();
|
||||
return false;
|
||||
}
|
||||
- if (modules_[0].size() & (modules_[0].size() - 1)) {
|
||||
+ if (channels_[0].size() & (channels_[0].size() - 1)) {
|
||||
logprintf(6, "Process Error: "
|
||||
"Amount of modules per memory channel is not a power of 2.\n");
|
||||
bad_status();
|
||||
@@ -1018,9 +1021,9 @@ bool Sat::ParseArgs(int argc, char **argv) {
|
||||
bad_status();
|
||||
return false;
|
||||
}
|
||||
- if (channel_width_ / modules_[0].size() < 8) {
|
||||
- logprintf(6, "Process Error: "
|
||||
- "Chip width x%d must be x8 or greater.\n", channel_width_ / modules_[0].size());
|
||||
+ if (channel_width_ / channels_[0].size() < 8) {
|
||||
+ logprintf(6, "Process Error: Chip width x%d must be x8 or greater.\n",
|
||||
+ channel_width_ / channels_[0].size());
|
||||
bad_status();
|
||||
return false;
|
||||
}
|
||||
@@ -1095,8 +1098,8 @@ void Sat::PrintHelp() {
|
||||
"each CPU to be tested by that CPU\n"
|
||||
" --remote_numa choose memory regions not associated with "
|
||||
"each CPU to be tested by that CPU\n"
|
||||
- " --interleave_size bytes size in bytes of each channel's data as interleaved "
|
||||
- "between memory channels\n"
|
||||
+ " --channel_hash mask of address bits XORed to determine channel.\n"
|
||||
+ " Mask 0x40 interleaves cachelines between channels\n"
|
||||
" --channel_width bits width in bits of each memory channel\n"
|
||||
" --memory_channel u1,u2 defines a comma-separated list of names\n"
|
||||
" for dram packages in a memory channel.\n"
|
||||
--- a/src/sat.h
|
||||
+++ b/src/sat.h
|
||||
@@ -151,9 +151,8 @@ class Sat {
|
||||
int64 freepages_; // How many invalid pages we need.
|
||||
int disk_pages_; // Number of pages per temp file.
|
||||
uint64 paddr_base_; // Physical address base.
|
||||
- vector< vector<string> > modules_; // Memory module names per channel.
|
||||
- int interleave_size_; // Channel interleaving chunk size in bytes.
|
||||
- // Usually cacheline sized.
|
||||
+ vector< vector<string> > channels_; // Memory module names per channel.
|
||||
+ uint64 channel_hash_; // Mask of address bits XORed for channel.
|
||||
int channel_width_; // Channel width in bits.
|
||||
|
||||
// Control flags.
|
||||
--
|
||||
2.0.0
|
||||
|
@ -1,75 +0,0 @@
|
||||
extracted just a few fixes we care about
|
||||
|
||||
From 5fca3981f68115144566ddf91d2d188372603b7b Mon Sep 17 00:00:00 2001
|
||||
From: "ewout@google.com"
|
||||
<ewout@google.com@93e54ea4-8218-11de-8aaf-8d8425684b44>
|
||||
Date: Tue, 10 Sep 2013 21:27:49 +0000
|
||||
Subject: [PATCH] New frequency test, fixed error accounting, added logging
|
||||
timestamps, and miscellaneous smaller changes.
|
||||
|
||||
* Added a CPU Frequency test for select X86 processors to verify a minimum frequency is maintained during non-pause periods.
|
||||
* Fixed the error accounting in WorkerThread::CheckRegion if more than 128 miscompares are found and when block errors are detected.
|
||||
* Updated the logger to include timestamps and the associated timezone.
|
||||
* Moved from apicid() to sched_getcpu() for determining the core ID.
|
||||
* Added the ability to reserve a specified amount of memory. This can override the requested memory allocation.
|
||||
* If not using POSIX shared memory or hugepages, explicitly mmap memory if the pagesize is 4kB otherwise use memalign.
|
||||
* Removed the OSLayer's unused PCI device handling.
|
||||
* Numerous refactoring changes.
|
||||
|
||||
|
||||
|
||||
git-svn-id: http://stressapptest.googlecode.com/svn/trunk@38 93e54ea4-8218-11de-8aaf-8d8425684b44
|
||||
---
|
||||
configure.ac | 6 +-
|
||||
src/Makefile.am | 1 +
|
||||
src/clock.h | 29 ++++
|
||||
src/disk_blocks.cc | 187 ++++++++---------------
|
||||
src/disk_blocks.h | 157 +++++++++++++------
|
||||
src/findmask.c | 6 +-
|
||||
src/logger.cc | 56 ++++---
|
||||
src/logger.h | 17 ++-
|
||||
src/os.cc | 218 +++++++++++----------------
|
||||
src/os.h | 132 ++++++++++++++--
|
||||
src/sat.cc | 144 +++++++++++++++---
|
||||
src/sat.h | 19 ++-
|
||||
src/sattypes.h | 58 ++++++-
|
||||
src/worker.cc | 435 +++++++++++++++++++++++++++++++++++++++++------------
|
||||
src/worker.h | 100 +++++++++++-
|
||||
stressapptest.1 | 7 +-
|
||||
16 files changed, 1095 insertions(+), 477 deletions(-)
|
||||
create mode 100644 src/clock.h
|
||||
|
||||
diff --git a/src/os.cc b/src/os.cc
|
||||
index 7cae23b..6358398 100644
|
||||
--- a/src/os.cc
|
||||
+++ b/src/os.cc
|
||||
@@ -130,7 +141,7 @@ int OsLayer::AddressMode() {
|
||||
// Translates user virtual to physical address.
|
||||
uint64 OsLayer::VirtualToPhysical(void *vaddr) {
|
||||
uint64 frame, shift;
|
||||
- off64_t off = ((uintptr_t)vaddr) / getpagesize() * 8;
|
||||
+ off64_t off = ((uintptr_t)vaddr) / sysconf(_SC_PAGESIZE) * 8;
|
||||
int fd = open(kPagemapPath, O_RDONLY);
|
||||
// /proc/self/pagemap is available in kernel >= 2.6.25
|
||||
if (fd < 0)
|
||||
@@ -507,7 +533,7 @@ bool OsLayer::AllocateTestMem(int64 length, uint64 paddr_base) {
|
||||
break;
|
||||
}
|
||||
|
||||
- shmaddr = shmat(shmid, NULL, NULL);
|
||||
+ shmaddr = shmat(shmid, NULL, 0);
|
||||
if (shmaddr == reinterpret_cast<void*>(-1)) {
|
||||
int err = errno;
|
||||
string errtxt = ErrorString(err);
|
||||
@@ -564,7 +590,7 @@ bool OsLayer::AllocateTestMem(int64 length, uint64 paddr_base) {
|
||||
// Do a full mapping here otherwise.
|
||||
shmaddr = mmap64(NULL, length, PROT_READ | PROT_WRITE,
|
||||
MAP_SHARED | MAP_NORESERVE | MAP_LOCKED | MAP_POPULATE,
|
||||
- shm_object, NULL);
|
||||
+ shm_object, 0);
|
||||
if (shmaddr == reinterpret_cast<void*>(-1)) {
|
||||
int err = errno;
|
||||
string errtxt = ErrorString(err);
|
||||
--
|
||||
2.0.0
|
||||
|
@ -1,136 +0,0 @@
|
||||
From 2cc58e88b26e13e87a36439d7a7e7b44b4a1e47e Mon Sep 17 00:00:00 2001
|
||||
From: "nick.j.sanders" <nick.j.sanders@93e54ea4-8218-11de-8aaf-8d8425684b44>
|
||||
Date: Wed, 9 Jan 2013 21:13:13 +0000
|
||||
Subject: [PATCH] Allow ./configure for cross compile
|
||||
|
||||
Fix regression from BARRIER detect change.
|
||||
|
||||
|
||||
git-svn-id: http://stressapptest.googlecode.com/svn/trunk@36 93e54ea4-8218-11de-8aaf-8d8425684b44
|
||||
---
|
||||
configure | 49 +++++++------------------------------------
|
||||
configure.ac | 21 +------------------
|
||||
src/stressapptest_config.h.in | 3 +++
|
||||
3 files changed, 11 insertions(+), 62 deletions(-)
|
||||
|
||||
diff --git a/configure b/configure
|
||||
index 12bc16b..8c10c52 100755
|
||||
--- a/configure
|
||||
+++ b/configure
|
||||
@@ -5064,6 +5064,13 @@ if test "$ac_res" != no; then :
|
||||
|
||||
fi
|
||||
|
||||
+ac_fn_c_check_type "$LINENO" "pthread_barrier_t" "ac_cv_type_pthread_barrier_t" "$ac_includes_default"
|
||||
+if test "x$ac_cv_type_pthread_barrier_t" = x""yes; then :
|
||||
+
|
||||
+$as_echo "#define HAVE_PTHREAD_BARRIERS 1" >>confdefs.h
|
||||
+
|
||||
+fi
|
||||
+
|
||||
for ac_header in libaio.h
|
||||
do :
|
||||
ac_fn_c_check_header_mongrel "$LINENO" "libaio.h" "ac_cv_header_libaio_h" "$ac_includes_default"
|
||||
@@ -5201,48 +5208,6 @@ if test "$ac_res" != no; then :
|
||||
fi
|
||||
|
||||
|
||||
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_barrier" >&5
|
||||
-$as_echo_n "checking for pthread_barrier... " >&6; }
|
||||
-if test "${ac_cv_func_pthread_barrier+set}" = set; then :
|
||||
- $as_echo_n "(cached) " >&6
|
||||
-else
|
||||
- if test "$cross_compiling" = yes; then :
|
||||
- { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
||||
-$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
||||
-as_fn_error "cannot run test program while cross compiling
|
||||
-See \`config.log' for more details." "$LINENO" 5; }
|
||||
-else
|
||||
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||
-/* end confdefs.h. */
|
||||
-
|
||||
- #include <pthread.h>
|
||||
- int main(void)
|
||||
- {
|
||||
- pthread_barrier_t t;
|
||||
- return 0;
|
||||
- }
|
||||
-
|
||||
-_ACEOF
|
||||
-if ac_fn_c_try_run "$LINENO"; then :
|
||||
- ac_cv_func_pthread_barrier=yes
|
||||
-else
|
||||
- ac_cv_func_pthread_barrier=no
|
||||
-
|
||||
-fi
|
||||
-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
||||
- conftest.$ac_objext conftest.beam conftest.$ac_ext
|
||||
-fi
|
||||
-
|
||||
-
|
||||
-fi
|
||||
-
|
||||
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_pthread_barrier" >&5
|
||||
-$as_echo "$ac_cv_func_pthread_barrier" >&6; }
|
||||
-if test "$ac_cv_func_pthread_barrier" = "yes"; then
|
||||
-
|
||||
-$as_echo "#define HAVE_PTHREAD_BARRIER 1" >>confdefs.h
|
||||
-
|
||||
-fi
|
||||
|
||||
# Checks for typedefs, structures, and compiler characteristics.
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index aba8791..ca10966 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -107,31 +107,12 @@ AC_HEADER_STDC
|
||||
AC_CHECK_HEADERS([arpa/inet.h fcntl.h netdb.h stdint.h stdlib.h string.h sys/ioctl.h sys/socket.h sys/time.h unistd.h], [], [AC_MSG_FAILURE([Missing some header files.])])
|
||||
AC_CHECK_HEADERS([pthread.h])
|
||||
AC_SEARCH_LIBS([pthread_create], [pthread])
|
||||
+AC_CHECK_TYPE([pthread_barrier_t], AC_DEFINE(HAVE_PTHREAD_BARRIERS, [1], [Define to 1 if the system has `pthread_barrier'.]))
|
||||
AC_CHECK_HEADERS([libaio.h])
|
||||
AC_SEARCH_LIBS([io_setup], [aio])
|
||||
AC_CHECK_HEADERS([sys/shm.h])
|
||||
AC_SEARCH_LIBS([shm_open], [rt])
|
||||
|
||||
-AC_MSG_CHECKING(for pthread_barrier)
|
||||
-AC_CACHE_VAL(
|
||||
- ac_cv_func_pthread_barrier,
|
||||
- AC_TRY_RUN(
|
||||
- [
|
||||
- #include <pthread.h>
|
||||
- int main(void)
|
||||
- {
|
||||
- pthread_barrier_t t;
|
||||
- return 0;
|
||||
- }
|
||||
- ],
|
||||
- ac_cv_func_pthread_barrier=yes,
|
||||
- ac_cv_func_pthread_barrier=no
|
||||
- )
|
||||
-)
|
||||
-AC_MSG_RESULT($ac_cv_func_pthread_barrier)
|
||||
-if test "$ac_cv_func_pthread_barrier" = "yes"; then
|
||||
- AC_DEFINE(HAVE_PTHREAD_BARRIER, [1], [Define to 1 if the system has `pthread_barrier'.])
|
||||
-fi
|
||||
|
||||
# Checks for typedefs, structures, and compiler characteristics.
|
||||
AC_HEADER_STDBOOL
|
||||
diff --git a/src/stressapptest_config.h.in b/src/stressapptest_config.h.in
|
||||
index 97f306e..5412df4 100644
|
||||
--- a/src/stressapptest_config.h.in
|
||||
+++ b/src/stressapptest_config.h.in
|
||||
@@ -53,6 +53,9 @@
|
||||
/* Define to 1 if you have the `posix_memalign' function. */
|
||||
#undef HAVE_POSIX_MEMALIGN
|
||||
|
||||
+/* Define to 1 if the system has `pthread_barrier'. */
|
||||
+#undef HAVE_PTHREAD_BARRIERS
|
||||
+
|
||||
/* Define to 1 if you have the <pthread.h> header file. */
|
||||
#undef HAVE_PTHREAD_H
|
||||
|
||||
--
|
||||
2.0.0
|
||||
|
@ -1,35 +0,0 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI="4"
|
||||
|
||||
inherit eutils
|
||||
|
||||
MY_P="${P}_autoconf"
|
||||
DESCRIPTION="Stressful Application Test"
|
||||
HOMEPAGE="https://code.google.com/p/stressapptest/"
|
||||
SRC_URI="https://stressapptest.googlecode.com/files/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~x86"
|
||||
IUSE="debug"
|
||||
|
||||
RDEPEND="dev-libs/libaio"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/${P}-cpuid-pic.patch
|
||||
sed -i \
|
||||
'/CXXFLAGS/s:-O3 -funroll-all-loops -funroll-loops::' \
|
||||
configure || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
doman "${ED}"/usr/share/doc/${PN}/${PN}.1
|
||||
rm -rf "${ED}"/usr/share/doc # only installs COPYING & man page
|
||||
}
|
@ -1,33 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI="4"
|
||||
|
||||
inherit eutils autotools
|
||||
|
||||
MY_P="${P}_autoconf"
|
||||
DESCRIPTION="Stressful Application Test"
|
||||
HOMEPAGE="https://code.google.com/p/stressapptest/"
|
||||
SRC_URI="https://stressapptest.googlecode.com/files/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~mips ~x86"
|
||||
IUSE="debug"
|
||||
|
||||
RDEPEND="dev-libs/libaio"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/${P}-autotools.patch
|
||||
epatch "${FILESDIR}"/${P}-pthread-test.patch
|
||||
epatch "${FILESDIR}"/${P}-misc-fixes.patch
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf --disable-default-optimizations
|
||||
}
|
@ -1,34 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI="4"
|
||||
|
||||
inherit eutils autotools
|
||||
|
||||
MY_P="${P}_autoconf"
|
||||
DESCRIPTION="Stressful Application Test"
|
||||
HOMEPAGE="https://code.google.com/p/stressapptest/"
|
||||
SRC_URI="https://stressapptest.googlecode.com/files/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~mips ~x86"
|
||||
IUSE="debug"
|
||||
|
||||
RDEPEND="dev-libs/libaio"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/${P}-autotools.patch
|
||||
epatch "${FILESDIR}"/${P}-pthread-test.patch
|
||||
epatch "${FILESDIR}"/${P}-misc-fixes.patch
|
||||
epatch "${FILESDIR}"/${P}-channel-hash.patch
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf --disable-default-optimizations
|
||||
}
|
@ -1,32 +0,0 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI="4"
|
||||
|
||||
MY_P="${P}_autoconf"
|
||||
DESCRIPTION="Stressful Application Test"
|
||||
HOMEPAGE="https://code.google.com/p/stressapptest/"
|
||||
SRC_URI="https://stressapptest.googlecode.com/files/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~x86"
|
||||
IUSE="debug"
|
||||
|
||||
RDEPEND="dev-libs/libaio"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
src_prepare() {
|
||||
sed -i \
|
||||
'/CXXFLAGS/s:-O3 -funroll-all-loops -funroll-loops::' \
|
||||
configure || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
doman "${ED}"/usr/share/doc/${PN}/${PN}.1
|
||||
rm -rf "${ED}"/usr/share/doc # only installs COPYING & man page
|
||||
}
|
@ -0,0 +1,24 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="5"
|
||||
|
||||
inherit flag-o-matic
|
||||
|
||||
DESCRIPTION="Stressful Application Test"
|
||||
HOMEPAGE="https://github.com/stressapptest/stressapptest"
|
||||
SRC_URI="https://github.com/stressapptest/stressapptest/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~mips ~x86"
|
||||
IUSE="debug"
|
||||
|
||||
RDEPEND="dev-libs/libaio"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
src_configure() {
|
||||
# Matches the configure & sat.cc logic.
|
||||
use debug || append-cppflags -DNDEBUG -DCHECKOPTS
|
||||
econf --disable-default-optimizations
|
||||
}
|
@ -0,0 +1 @@
|
||||
DIST gnuclad-0.2.4.tar.gz 287763 SHA256 7136ee0e36d8de61a97235556f879bb0abe6521efb65a5a97bc73979999e424d SHA512 881b1feab8cb7458223987c5a36359e31e7e00e94d60cd0002c289930b99236947aadbea40f96aaa6aa4b5d7953278bf581edbd6df3cb660bca1505950e66b67 WHIRLPOOL 8ebd31e6f147cdc8092e4109062e864878b40967ce323d19faee2dc2a4104d1d491ab38741431a5569dc25065c91d469b147f6180d400be230a0c1abb62141fc
|
@ -0,0 +1,25 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: $
|
||||
|
||||
EAPI=6
|
||||
|
||||
DESCRIPTION="Cladogram tree generator mainly used by the GNU/Linux distro timeline project"
|
||||
HOMEPAGE="https://launchpad.net/gnuclad/"
|
||||
SRC_URI="http://launchpad.net/gnuclad/trunk/0.2/+download/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="examples"
|
||||
|
||||
DEPEND=""
|
||||
RDEPEND=""
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
doman doc/man/gnuclad.1
|
||||
|
||||
use examples && dodoc -r example
|
||||
}
|
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>dilfridge@gentoo.org</email>
|
||||
<name>Andreas K. Huettel</name>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
@ -1,24 +0,0 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=4
|
||||
inherit cmake-utils
|
||||
|
||||
# svn export http://svn.musepack.net/libcuefile/trunk libcuefile-${PV}
|
||||
# tar -cJf libcuefile-${PV}.tar.xz libcuefile-${PV}
|
||||
|
||||
DESCRIPTION="Cue File library from Musepack"
|
||||
HOMEPAGE="http://www.musepack.net/"
|
||||
SRC_URI="https://dev.gentoo.org/~ssuominen/${P}.tar.xz"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="alpha amd64 ~arm hppa ~ia64 ppc ppc64 ~sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~x86-solaris"
|
||||
IUSE=""
|
||||
|
||||
src_install() {
|
||||
cmake-utils_src_install
|
||||
insinto /usr/include
|
||||
doins -r include/cuetools
|
||||
}
|
@ -1,12 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>kde@gentoo.org</email>
|
||||
<name>Gentoo KDE Project</name>
|
||||
</maintainer>
|
||||
<maintainer type="project">
|
||||
<email>prefix@gentoo.org</email>
|
||||
<name>Gentoo Prefix</name>
|
||||
</maintainer>
|
||||
<maintainer type="project">
|
||||
<email>kde@gentoo.org</email>
|
||||
<name>Gentoo KDE Project</name>
|
||||
</maintainer>
|
||||
<maintainer type="project">
|
||||
<email>prefix@gentoo.org</email>
|
||||
<name>Gentoo Prefix</name>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
||||
|
@ -0,0 +1,31 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit cmake-utils
|
||||
|
||||
MY_P=projectM-complete-${PV}-Source
|
||||
|
||||
DESCRIPTION="A libvisual graphical music visualization plugin similar to milkdrop"
|
||||
HOMEPAGE="http://projectm.sourceforge.net"
|
||||
SRC_URI="mirror://sourceforge/projectm/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="LGPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="debug"
|
||||
|
||||
RDEPEND="
|
||||
>=media-libs/libprojectm-2.1.0
|
||||
media-libs/libsdl
|
||||
=media-libs/libvisual-0.4*
|
||||
virtual/opengl
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig"
|
||||
|
||||
S=${WORKDIR}/${MY_P}/src/projectM-libvisual/
|
||||
|
||||
DOCS=( AUTHORS ChangeLog )
|
@ -1 +1 @@
|
||||
Tue, 31 Jan 2017 18:13:21 +0000
|
||||
Wed, 01 Feb 2017 04:43:33 +0000
|
||||
|
@ -1 +1 @@
|
||||
Tue, 31 Jan 2017 18:13:21 +0000
|
||||
Wed, 01 Feb 2017 04:43:34 +0000
|
||||
|
@ -0,0 +1,10 @@
|
||||
DEFINED_PHASES=compile install prepare
|
||||
DESCRIPTION=Introspection and Upgrade Assistance tools for Gentoo Perl
|
||||
EAPI=6
|
||||
HOMEPAGE=https://github.com/gentoo-perl/gentoo-perl-helpers
|
||||
KEYWORDS=~amd64 ~x86
|
||||
LICENSE=GPL-2+
|
||||
RDEPEND=app-portage/portage-utils sys-apps/portage
|
||||
SLOT=0
|
||||
SRC_URI=https://github.com/gentoo-perl/gentoo-perl-helpers/releases/download/0.1.0/gentoo-perl-helpers-0.1.0.tar.xz
|
||||
_md5_=3b30bf226a075c9b588eda1705f11fd5
|
@ -0,0 +1,13 @@
|
||||
DEFINED_PHASES=compile configure install postinst prepare setup test unpack
|
||||
DEPEND=sys-libs/readline:= virtual/awk app-arch/tar dev-lang/perl:= app-arch/dump net-misc/openssh >=dev-libs/glib-2.26.0 dev-perl/JSON dev-perl/Encode-Locale nls? ( virtual/libintl ) s3? ( >=net-misc/curl-7.10.0 ) !s3? ( curl? ( >=net-misc/curl-7.10.0 ) ) samba? ( net-fs/samba:= ) kerberos? ( app-crypt/mit-krb5 ) xfs? ( sys-fs/xfsdump ) !minimal? ( dev-perl/XML-Simple virtual/mailx app-arch/mt-st:= sys-block/mtx gnuplot? ( sci-visualization/gnuplot ) app-crypt/aespipe app-crypt/gnupg ) virtual/pkgconfig nls? ( sys-devel/gettext ) >=app-text/docbook-xsl-stylesheets-1.72.0 app-text/docbook-xml-dtd dev-libs/libxslt dev-lang/swig !<sys-devel/gettext-0.18.1.1-r3 || ( >=sys-devel/automake-1.15:1.15 ) >=sys-devel/autoconf-2.69 >=sys-devel/libtool-2.4 dev-lang/perl:= virtual/pkgconfig
|
||||
DESCRIPTION=The Advanced Maryland Automatic Network Disk Archiver
|
||||
EAPI=6
|
||||
HOMEPAGE=http://www.amanda.org/
|
||||
IUSE=curl gnuplot ipv6 kerberos minimal nls readline s3 samba systemd xfs
|
||||
KEYWORDS=~amd64 ~ppc ~ppc64 ~sparc ~x86
|
||||
LICENSE=HPND BSD BSD-2 GPL-2+ GPL-3+
|
||||
RDEPEND=sys-libs/readline:= virtual/awk app-arch/tar dev-lang/perl:= app-arch/dump net-misc/openssh >=dev-libs/glib-2.26.0 dev-perl/JSON dev-perl/Encode-Locale nls? ( virtual/libintl ) s3? ( >=net-misc/curl-7.10.0 ) !s3? ( curl? ( >=net-misc/curl-7.10.0 ) ) samba? ( net-fs/samba:= ) kerberos? ( app-crypt/mit-krb5 ) xfs? ( sys-fs/xfsdump ) !minimal? ( dev-perl/XML-Simple virtual/mailx app-arch/mt-st:= sys-block/mtx gnuplot? ( sci-visualization/gnuplot ) app-crypt/aespipe app-crypt/gnupg ) dev-lang/perl:=
|
||||
SLOT=0
|
||||
SRC_URI=mirror://sourceforge/amanda/amanda-3.4.1.tar.gz
|
||||
_eclasses_=autotools 07e71b3b5690738ef7e8bc097077e00c libtool 4890219c51da247200223277f993e054 multilib 165fc17c38d1b11dac2008280dab6e80 multiprocessing 7bb10a841be2368af0c00f27dd67560b perl-functions aac50de73be0a80ebe780e0b20850130 perl-module f6549146ea31a902e20b5f2e6f244358 systemd 5b6ca8b2fc1307ca593223f327342c96 toolchain-funcs 1b1da0c45c555989dc5d832b54880783 user 80aaa71614ced86f02ee1a513821dc87
|
||||
_md5_=4586c5096ba74a5b307b24f6461ed6ec
|
@ -0,0 +1,13 @@
|
||||
DEFINED_PHASES=compile configure install postinst prepare setup test unpack
|
||||
DEPEND=sys-libs/readline:= virtual/awk app-arch/tar dev-lang/perl:= app-arch/dump net-misc/openssh >=dev-libs/glib-2.26.0 dev-perl/JSON dev-perl/Encode-Locale nls? ( virtual/libintl ) s3? ( >=net-misc/curl-7.10.0 ) !s3? ( curl? ( >=net-misc/curl-7.10.0 ) ) samba? ( net-fs/samba:= ) kerberos? ( app-crypt/mit-krb5 ) xfs? ( sys-fs/xfsdump ) !minimal? ( dev-perl/XML-Simple virtual/mailx app-arch/mt-st:= sys-block/mtx gnuplot? ( sci-visualization/gnuplot ) app-crypt/aespipe app-crypt/gnupg ) virtual/pkgconfig nls? ( sys-devel/gettext ) >=app-text/docbook-xsl-stylesheets-1.72.0 app-text/docbook-xml-dtd dev-libs/libxslt dev-lang/swig !<sys-devel/gettext-0.18.1.1-r3 || ( >=sys-devel/automake-1.15:1.15 ) >=sys-devel/autoconf-2.69 >=sys-devel/libtool-2.4 dev-lang/perl:= virtual/pkgconfig
|
||||
DESCRIPTION=The Advanced Maryland Automatic Network Disk Archiver
|
||||
EAPI=6
|
||||
HOMEPAGE=http://www.amanda.org/
|
||||
IUSE=curl gnuplot ipv6 kerberos minimal nls readline s3 samba systemd xfs
|
||||
KEYWORDS=~amd64 ~ppc ~ppc64 ~sparc ~x86
|
||||
LICENSE=HPND BSD BSD-2 GPL-2+ GPL-3+
|
||||
RDEPEND=sys-libs/readline:= virtual/awk app-arch/tar dev-lang/perl:= app-arch/dump net-misc/openssh >=dev-libs/glib-2.26.0 dev-perl/JSON dev-perl/Encode-Locale nls? ( virtual/libintl ) s3? ( >=net-misc/curl-7.10.0 ) !s3? ( curl? ( >=net-misc/curl-7.10.0 ) ) samba? ( net-fs/samba:= ) kerberos? ( app-crypt/mit-krb5 ) xfs? ( sys-fs/xfsdump ) !minimal? ( dev-perl/XML-Simple virtual/mailx app-arch/mt-st:= sys-block/mtx gnuplot? ( sci-visualization/gnuplot ) app-crypt/aespipe app-crypt/gnupg ) dev-lang/perl:=
|
||||
SLOT=0
|
||||
SRC_URI=mirror://sourceforge/amanda/amanda-3.4.2.tar.gz
|
||||
_eclasses_=autotools 07e71b3b5690738ef7e8bc097077e00c libtool 4890219c51da247200223277f993e054 multilib 165fc17c38d1b11dac2008280dab6e80 multiprocessing 7bb10a841be2368af0c00f27dd67560b perl-functions aac50de73be0a80ebe780e0b20850130 perl-module f6549146ea31a902e20b5f2e6f244358 systemd 5b6ca8b2fc1307ca593223f327342c96 toolchain-funcs 1b1da0c45c555989dc5d832b54880783 user 80aaa71614ced86f02ee1a513821dc87
|
||||
_md5_=f4a4c67c0c677d441ae620843d238343
|
@ -0,0 +1,15 @@
|
||||
DEFINED_PHASES=compile configure install prepare setup unpack
|
||||
DEPEND=>=dev-lang/go-1.5 app-arch/cpio app-crypt/trousers sys-fs/squashfs-tools dev-perl/Capture-Tiny rkt_stage1_src? ( >=sys-apps/util-linux-2.27 ) rkt_stage1_kvm_qemu? ( sys-apps/attr[static-libs(+)] sys-libs/libcap[static-libs(+)] sys-libs/zlib[static-libs(+)] >=x11-libs/pixman-0.28.0[static-libs(+)] ) !<sys-devel/gettext-0.18.1.1-r3 || ( >=sys-devel/automake-1.15:1.15 ) >=sys-devel/autoconf-2.69 >=sys-devel/libtool-2.4 virtual/pkgconfig
|
||||
DESCRIPTION=rkt is an App Container runtime for Linux
|
||||
EAPI=6
|
||||
HOMEPAGE=https://github.com/coreos/rkt
|
||||
IUSE=doc examples +rkt_stage1_coreos +rkt_stage1_fly rkt_stage1_host rkt_stage1_kvm rkt_stage1_kvm_lkvm rkt_stage1_kvm_qemu rkt_stage1_src +actool systemd
|
||||
KEYWORDS=~amd64
|
||||
LICENSE=Apache-2.0
|
||||
RDEPEND=!app-emulation/rocket rkt_stage1_host? ( systemd? ( >=sys-apps/systemd-222 app-shells/bash:0 ) )
|
||||
REQUIRED_USE=|| ( rkt_stage1_coreos rkt_stage1_fly rkt_stage1_host rkt_stage1_kvm_lkvm rkt_stage1_kvm_qemu rkt_stage1_src ) rkt_stage1_host? ( systemd ) !rkt_stage1_kvm
|
||||
RESTRICT=test rkt_stage1_src? ( userpriv )
|
||||
SLOT=0
|
||||
SRC_URI=https://github.com/coreos/rkt/archive/v1.23.0.tar.gz -> rkt-1.23.0.tar.gz rkt_stage1_coreos? ( http://alpha.release.core-os.net/amd64-usr/1235.0.0/coreos_production_pxe_image.cpio.gz -> rkt-pxe-1235.0.0.img ) rkt_stage1_kvm_lkvm? ( https://kernel.googlesource.com/pub/scm/linux/kernel/git/will/kvmtool/+archive/1cd6f516264ad2ad83fad3dc1264d6ff4bcd17b2.tar.gz -> kvmtool-1cd6f516264ad2ad83fad3dc1264d6ff4bcd17b2.tar.gz mirror://kernel/linux/kernel/v4.x/linux-4.9.2.tar.xz http://alpha.release.core-os.net/amd64-usr/1235.0.0/coreos_production_pxe_image.cpio.gz -> rkt-pxe-1235.0.0.img ) rkt_stage1_kvm_qemu? ( http://wiki.qemu-project.org/download/qemu-2.7.0.tar.bz2 mirror://kernel/linux/kernel/v4.x/linux-4.9.2.tar.xz http://alpha.release.core-os.net/amd64-usr/1235.0.0/coreos_production_pxe_image.cpio.gz -> rkt-pxe-1235.0.0.img ) rkt_stage1_src? ( https://github.com/systemd/systemd/archive/v231.tar.gz -> systemd-231.tar.gz )
|
||||
_eclasses_=autotools 07e71b3b5690738ef7e8bc097077e00c bash-completion-r1 acf715fa09463f043fbfdc1640f3fb85 eutils ea170b525f6a38a006be05c9d9429f13 flag-o-matic 7366202dd55cb8f018f5d450d54e7749 libtool 4890219c51da247200223277f993e054 multilib 165fc17c38d1b11dac2008280dab6e80 systemd 5b6ca8b2fc1307ca593223f327342c96 toolchain-funcs 1b1da0c45c555989dc5d832b54880783 user 80aaa71614ced86f02ee1a513821dc87
|
||||
_md5_=7139681614c5149b205bf5cd1ad06be8
|
@ -0,0 +1,15 @@
|
||||
DEFINED_PHASES=compile configure install postinst postrm preinst prepare pretend setup test unpack
|
||||
DEPEND=python_single_target_python2_7? ( >=dev-lang/python-2.7.5-r2:2.7[threads,xml] ) python_single_target_python3_4? ( dev-lang/python:3.4[threads,xml] ) python_single_target_python3_5? ( dev-lang/python:3.5[threads,xml] ) >=dev-lang/python-exec-2:=[python_targets_python2_7(-)?,python_targets_python3_4(-)?,python_targets_python3_5(-)?,-python_single_target_jython2_7(-),-python_single_target_pypy(-),-python_single_target_pypy3(-),-python_single_target_python3_6(-),python_single_target_python2_7(+)?,python_single_target_python3_4(+)?,python_single_target_python3_5(+)?] app-arch/unzip app-arch/zip app-text/hunspell >=app-text/libabw-0.1.0 >=app-text/libebook-0.1 >=app-text/libetonyek-0.1 app-text/libexttextcat app-text/liblangtag >=app-text/libmspub-0.1.0 >=app-text/libmwaw-0.3.1 >=app-text/libodfgen-0.1.0 app-text/libwpd:0.10[tools] app-text/libwpg:0.3 >=app-text/libwps-0.4 app-text/mythes >=dev-cpp/clucene-2.3.3.4-r2 =dev-cpp/libcmis-0.5* dev-db/unixODBC dev-lang/perl >=dev-libs/boost-1.55:= dev-libs/expat dev-libs/hyphen dev-libs/icu:= =dev-libs/liborcus-0.11* dev-libs/librevenge dev-libs/nspr dev-libs/nss !libressl? ( >=dev-libs/openssl-1.0.0d:0 ) libressl? ( dev-libs/libressl ) >=dev-libs/redland-1.0.16 media-gfx/graphite2 media-libs/fontconfig media-libs/freetype:2 >=media-libs/glew-1.10:= >=media-libs/harfbuzz-0.9.18:=[icu(+)] media-libs/lcms:2 >=media-libs/libcdr-0.1.0 >=media-libs/libfreehand-0.1.0 media-libs/libpagemaker >=media-libs/libpng-1.4:0= >=media-libs/libvisio-0.1.0 net-libs/neon net-misc/curl net-nds/openldap sci-mathematics/lpsolve virtual/jpeg:0 x11-libs/cairo[X,-xlib-xcb] x11-libs/libXinerama x11-libs/libXrandr x11-libs/libXrender virtual/glu virtual/opengl bluetooth? ( net-wireless/bluez ) coinmp? ( sci-libs/coinor-mp ) collada? ( >=media-libs/opencollada-1.2.2_p20150207 ) cups? ( net-print/cups ) dbus? ( dev-libs/dbus-glib ) eds? ( dev-libs/glib:2 gnome-extra/evolution-data-server ) firebird? ( >=dev-db/firebird-2.5 ) gltf? ( media-libs/libgltf ) gnome? ( gnome-base/dconf ) gstreamer? ( media-libs/gstreamer:1.0 media-libs/gst-plugins-base:1.0 ) gtk? ( x11-libs/gdk-pixbuf >=x11-libs/gtk+-2.24:2 ) gtk3? ( dev-libs/glib:2 dev-libs/gobject-introspection >=x11-libs/gtk+-3.8:3 ) jemalloc? ( dev-libs/jemalloc ) libreoffice_extensions_scripting-beanshell? ( dev-java/bsh ) libreoffice_extensions_scripting-javascript? ( dev-java/rhino:1.6 ) mysql? ( dev-db/mysql-connector-c++ ) pdfimport? ( app-text/poppler:=[cxx] ) postgres? ( >=dev-db/postgresql-9.0:*[kerberos] ) telepathy? ( net-libs/telepathy-glib ) !<sys-devel/make-3.82 >=dev-libs/libatomic_ops-7.2d >=dev-libs/libxml2-2.7.8 dev-libs/libxslt dev-perl/Archive-Zip dev-util/cppunit >=dev-util/gperf-3 dev-util/intltool >=dev-util/mdds-1.2.0:1= media-libs/glm sys-devel/bison sys-devel/flex sys-devel/gettext sys-devel/ucpp sys-libs/zlib virtual/pkgconfig x11-libs/libXt x11-libs/libXtst x11-proto/randrproto x11-proto/xextproto x11-proto/xineramaproto x11-proto/xproto java? ( dev-java/ant-core >=virtual/jdk-1.6 ) odk? ( >=app-doc/doxygen-1.8.4 ) test? ( dev-util/cppunit ) !<sys-devel/gettext-0.18.1.1-r3 || ( >=sys-devel/automake-1.15:1.15 ) >=sys-devel/autoconf-2.69 >=sys-devel/libtool-2.4 java? ( >=dev-java/java-config-2.2.0-r3 ) >=sys-apps/sed-4 kde? ( dev-util/automoc virtual/pkgconfig !aqua? ( >=x11-libs/libXtst-1.1.0 x11-proto/xf86vidmodeproto ) ) kde? ( dev-lang/perl >=dev-qt/qt3support-4.8.5:4[accessibility] >=dev-qt/qtcore-4.8.5:4[qt3support,ssl] >=dev-qt/qtdbus-4.8.5:4 >=dev-qt/designer-4.8.5:4 >=dev-qt/qtgui-4.8.5:4[accessibility,dbus(+)] >=dev-qt/qtscript-4.8.5:4 >=dev-qt/qtsql-4.8.5:4[qt3support] >=dev-qt/qtsvg-4.8.5:4 >=dev-qt/qttest-4.8.5:4 >=kde-frameworks/kdelibs-4.14.22:4 )
|
||||
DESCRIPTION=A full office productivity suite
|
||||
EAPI=6
|
||||
HOMEPAGE=http://www.libreoffice.org
|
||||
IUSE=bluetooth +branding coinmp collada +cups dbus debug eds firebird gltf gnome googledrive gstreamer +gtk gtk3 jemalloc kde libressl mysql odk pdfimport postgres quickstarter telepathy test vlc libreoffice_extensions_nlpsolver libreoffice_extensions_scripting-beanshell libreoffice_extensions_scripting-javascript libreoffice_extensions_wiki-publisher elibc_FreeBSD java aqua kde python_targets_python2_7 python_targets_python3_4 python_targets_python3_5 python_single_target_python2_7 python_single_target_python3_4 python_single_target_python3_5
|
||||
KEYWORDS=~amd64 ~arm ~x86 ~amd64-linux ~x86-linux
|
||||
LICENSE=|| ( LGPL-3 MPL-1.1 )
|
||||
PDEPEND==app-office/libreoffice-l10n-5.2*
|
||||
RDEPEND=python_single_target_python2_7? ( >=dev-lang/python-2.7.5-r2:2.7[threads,xml] ) python_single_target_python3_4? ( dev-lang/python:3.4[threads,xml] ) python_single_target_python3_5? ( dev-lang/python:3.5[threads,xml] ) >=dev-lang/python-exec-2:=[python_targets_python2_7(-)?,python_targets_python3_4(-)?,python_targets_python3_5(-)?,-python_single_target_jython2_7(-),-python_single_target_pypy(-),-python_single_target_pypy3(-),-python_single_target_python3_6(-),python_single_target_python2_7(+)?,python_single_target_python3_4(+)?,python_single_target_python3_5(+)?] app-arch/unzip app-arch/zip app-text/hunspell >=app-text/libabw-0.1.0 >=app-text/libebook-0.1 >=app-text/libetonyek-0.1 app-text/libexttextcat app-text/liblangtag >=app-text/libmspub-0.1.0 >=app-text/libmwaw-0.3.1 >=app-text/libodfgen-0.1.0 app-text/libwpd:0.10[tools] app-text/libwpg:0.3 >=app-text/libwps-0.4 app-text/mythes >=dev-cpp/clucene-2.3.3.4-r2 =dev-cpp/libcmis-0.5* dev-db/unixODBC dev-lang/perl >=dev-libs/boost-1.55:= dev-libs/expat dev-libs/hyphen dev-libs/icu:= =dev-libs/liborcus-0.11* dev-libs/librevenge dev-libs/nspr dev-libs/nss !libressl? ( >=dev-libs/openssl-1.0.0d:0 ) libressl? ( dev-libs/libressl ) >=dev-libs/redland-1.0.16 media-gfx/graphite2 media-libs/fontconfig media-libs/freetype:2 >=media-libs/glew-1.10:= >=media-libs/harfbuzz-0.9.18:=[icu(+)] media-libs/lcms:2 >=media-libs/libcdr-0.1.0 >=media-libs/libfreehand-0.1.0 media-libs/libpagemaker >=media-libs/libpng-1.4:0= >=media-libs/libvisio-0.1.0 net-libs/neon net-misc/curl net-nds/openldap sci-mathematics/lpsolve virtual/jpeg:0 x11-libs/cairo[X,-xlib-xcb] x11-libs/libXinerama x11-libs/libXrandr x11-libs/libXrender virtual/glu virtual/opengl bluetooth? ( net-wireless/bluez ) coinmp? ( sci-libs/coinor-mp ) collada? ( >=media-libs/opencollada-1.2.2_p20150207 ) cups? ( net-print/cups ) dbus? ( dev-libs/dbus-glib ) eds? ( dev-libs/glib:2 gnome-extra/evolution-data-server ) firebird? ( >=dev-db/firebird-2.5 ) gltf? ( media-libs/libgltf ) gnome? ( gnome-base/dconf ) gstreamer? ( media-libs/gstreamer:1.0 media-libs/gst-plugins-base:1.0 ) gtk? ( x11-libs/gdk-pixbuf >=x11-libs/gtk+-2.24:2 ) gtk3? ( dev-libs/glib:2 dev-libs/gobject-introspection >=x11-libs/gtk+-3.8:3 ) jemalloc? ( dev-libs/jemalloc ) libreoffice_extensions_scripting-beanshell? ( dev-java/bsh ) libreoffice_extensions_scripting-javascript? ( dev-java/rhino:1.6 ) mysql? ( dev-db/mysql-connector-c++ ) pdfimport? ( app-text/poppler:=[cxx] ) postgres? ( >=dev-db/postgresql-9.0:*[kerberos] ) telepathy? ( net-libs/telepathy-glib ) !app-office/libreoffice-bin !app-office/libreoffice-bin-debug !app-office/openoffice media-fonts/liberation-fonts media-fonts/libertine media-fonts/urw-fonts java? ( >=virtual/jre-1.6 ) kde? ( >=kde-apps/kioclient-4.4:4[aqua=] ) vlc? ( media-video/vlc ) java? ( >=dev-java/java-config-2.2.0-r3 ) kde? ( kde-frameworks/oxygen-icons ) kde? ( dev-lang/perl >=dev-qt/qt3support-4.8.5:4[accessibility] >=dev-qt/qtcore-4.8.5:4[qt3support,ssl] >=dev-qt/qtdbus-4.8.5:4 >=dev-qt/designer-4.8.5:4 >=dev-qt/qtgui-4.8.5:4[accessibility,dbus(+)] >=dev-qt/qtscript-4.8.5:4 >=dev-qt/qtsql-4.8.5:4[qt3support] >=dev-qt/qtsvg-4.8.5:4 >=dev-qt/qttest-4.8.5:4 >=kde-frameworks/kdelibs-4.14.22:4 )
|
||||
REQUIRED_USE=^^ ( python_single_target_python2_7 python_single_target_python3_4 python_single_target_python3_5 ) python_single_target_python2_7? ( python_targets_python2_7 ) python_single_target_python3_4? ( python_targets_python3_4 ) python_single_target_python3_5? ( python_targets_python3_5 ) bluetooth? ( dbus ) collada? ( gltf ) eds? ( gnome ) gnome? ( gtk ) telepathy? ( gtk ) libreoffice_extensions_nlpsolver? ( java ) libreoffice_extensions_scripting-beanshell? ( java ) libreoffice_extensions_scripting-javascript? ( java ) libreoffice_extensions_wiki-publisher? ( java )
|
||||
SLOT=0
|
||||
SRC_URI=branding? ( http://dev.gentoo.org/~dilfridge/distfiles/libreoffice-branding-gentoo-0.8.tar.xz ) http://dev-builds.libreoffice.org/pre-releases/src/libreoffice-5.2.5.1.tar.xz http://dev-builds.libreoffice.org/pre-releases/src/libreoffice-help-5.2.5.1.tar.xz http://download.documentfoundation.org/libreoffice/src/5.2.5//libreoffice-5.2.5.1.tar.xz http://download.documentfoundation.org/libreoffice/src/5.2.5//libreoffice-help-5.2.5.1.tar.xz http://download.documentfoundation.org/libreoffice/old/5.2.5.1//libreoffice-5.2.5.1.tar.xz http://download.documentfoundation.org/libreoffice/old/5.2.5.1//libreoffice-help-5.2.5.1.tar.xz http://dev-www.libreoffice.org/src//ce12af00283eb90d9281956524250d6e-xmlsec1-1.2.20.tar.gz collada? ( http://dev-www.libreoffice.org/src//4b87018f7fff1d054939d19920b751a0-collada2gltf-master-cb1d97788a.tar.bz2 ) java? ( http://dev-www.libreoffice.org/src//17410483b5b5f267aa18b7e00b65e6e0-hsqldb_1_8_0.zip ) libreoffice_extensions_wiki-publisher? ( http://dev-www.libreoffice.org/src//a7983f859eafb2677d7ff386a023bc40-xsltml_2.1.2.zip ) libreoffice_extensions_scripting-javascript? ( http://dev-www.libreoffice.org/src//798b2ffdc8bcfe7bca2cf92b62caf685-rhino1_5R5.zip ) libreoffice_extensions_scripting-javascript? ( http://dev-www.libreoffice.org/src//35c94d2df8893241173de1d16b6034c0-swingExSrc.zip ) odk? ( http://download.go-oo.org/extern/185d60944ea767075d27247c3162b3bc-unowinreg.dll )
|
||||
_eclasses_=autotools 07e71b3b5690738ef7e8bc097077e00c bash-completion-r1 acf715fa09463f043fbfdc1640f3fb85 check-reqs aee25bdf4e2f459af86d17f7c41dcdf6 eutils ea170b525f6a38a006be05c9d9429f13 fdo-mime 92d07846ea8ea54172f8c0112a47ae3d flag-o-matic 7366202dd55cb8f018f5d450d54e7749 gnome2-utils c6dcdf3a2c22b578b16adb945dc85c35 java-pkg-opt-2 40db73f27fc6458ec2105812a4f261c7 java-utils-2 a50950a73b5d5db46f42638e2996a087 kde4-base 958da2c50ab906e72cd6fc7c77146404 kde4-functions 1aadb525279ddf31ca3c8e6d56ebecb5 libtool 4890219c51da247200223277f993e054 multilib 165fc17c38d1b11dac2008280dab6e80 multiprocessing 7bb10a841be2368af0c00f27dd67560b pax-utils 4c2654a34ebe732e85fda354f6ee642f python-single-r1 19a74c6b5c191723a997dc7e0cc6bb09 python-utils-r1 d275302cd06aedef2ba08f81f3104206 qmake-utils 0a242e7177789b0028b4045f336dd4db toolchain-funcs 1b1da0c45c555989dc5d832b54880783 versionator 99ae9d758cbe7cfed19170e7d48f5a9c virtualx 86c9305a59b3e0459e7fbef3a5f30b96 xdg-utils e2b2bd56125ce8cf59ce30c642b59d48
|
||||
_md5_=fc445b04df3b04c15e66d95047ddbe6b
|
File diff suppressed because one or more lines are too long
@ -0,0 +1,12 @@
|
||||
DEFINED_PHASES=configure install prepare
|
||||
DEPEND=dev-libs/librevenge dev-libs/libxml2 sys-libs/zlib sys-devel/libtool virtual/pkgconfig doc? ( app-doc/doxygen )
|
||||
DESCRIPTION=Library parsing many pre-OSX MAC text formats
|
||||
EAPI=6
|
||||
HOMEPAGE=https://sourceforge.net/p/libmwaw/wiki/Home/
|
||||
IUSE=doc static-libs tools
|
||||
KEYWORDS=~amd64 ~arm ~x86
|
||||
LICENSE=LGPL-2.1
|
||||
RDEPEND=dev-libs/librevenge dev-libs/libxml2 sys-libs/zlib
|
||||
SLOT=0
|
||||
SRC_URI=mirror://sourceforge/libmwaw/libmwaw-0.3.10.tar.xz
|
||||
_md5_=1084ae3991507a084a78608db64be00a
|
@ -1,11 +0,0 @@
|
||||
DEFINED_PHASES=compile configure install prepare test
|
||||
DEPEND=sys-devel/make >=dev-util/cmake-3.5.2
|
||||
DESCRIPTION=Provides cmake helper macros and targets for linux, especially fedora developers
|
||||
EAPI=4
|
||||
HOMEPAGE=https://fedorahosted.org/cmake-fedora/#Getcmake-fedora
|
||||
KEYWORDS=amd64 x86
|
||||
LICENSE=BSD
|
||||
SLOT=0
|
||||
SRC_URI=https://fedorahosted.org/releases/c/m/cmake-fedora/cmake-fedora-1.3.0-Source.tar.gz
|
||||
_eclasses_=cmake-utils f0c2647fb321257c91c6a967f362d053 eutils ea170b525f6a38a006be05c9d9429f13 flag-o-matic 7366202dd55cb8f018f5d450d54e7749 multilib 165fc17c38d1b11dac2008280dab6e80 multiprocessing 7bb10a841be2368af0c00f27dd67560b toolchain-funcs 1b1da0c45c555989dc5d832b54880783 versionator 99ae9d758cbe7cfed19170e7d48f5a9c
|
||||
_md5_=b2b339754a659638b28ec80571fcd6ac
|
@ -1,14 +1,14 @@
|
||||
DEFINED_PHASES=compile configure install prepare test
|
||||
DEPEND=python_targets_python2_7? ( >=dev-lang/python-2.7.5-r2:2.7 ) >=dev-lang/python-exec-2:=[python_targets_python2_7(-)?,-python_single_target_python2_7(-)] dev-python/cliapp[python_targets_python2_7(-)?,-python_single_target_python2_7(-)] dev-python/ttystatus[python_targets_python2_7(-)?,-python_single_target_python2_7(-)] python_targets_python2_7? ( >=dev-lang/python-2.7.5-r2:2.7 ) >=dev-lang/python-exec-2:=[python_targets_python2_7(-)?,-python_single_target_python2_7(-)]
|
||||
DEPEND=python_targets_python2_7? ( >=dev-lang/python-2.7.5-r2:2.7 ) >=dev-lang/python-exec-2:=[python_targets_python2_7(-)?,-python_single_target_python2_7(-)] dev-python/cliapp[python_targets_python2_7(-)?,-python_single_target_python2_7(-)] dev-python/markdown[python_targets_python2_7(-)?,-python_single_target_python2_7(-)] dev-python/ttystatus[python_targets_python2_7(-)?,-python_single_target_python2_7(-)] python_targets_python2_7? ( >=dev-lang/python-2.7.5-r2:2.7 ) >=dev-lang/python-exec-2:=[python_targets_python2_7(-)?,-python_single_target_python2_7(-)]
|
||||
DESCRIPTION=black box tests Unix command line tools
|
||||
EAPI=6
|
||||
HOMEPAGE=http://liw.fi/cmdtest/
|
||||
IUSE=python_targets_python2_7
|
||||
KEYWORDS=~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86
|
||||
KEYWORDS=~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86
|
||||
LICENSE=GPL-3
|
||||
RDEPEND=python_targets_python2_7? ( >=dev-lang/python-2.7.5-r2:2.7 ) >=dev-lang/python-exec-2:=[python_targets_python2_7(-)?,-python_single_target_python2_7(-)]
|
||||
REQUIRED_USE=|| ( python_targets_python2_7 )
|
||||
SLOT=0
|
||||
SRC_URI=http://code.liw.fi/debian/pool/main/c/cmdtest/cmdtest_0.27.orig.tar.xz
|
||||
_eclasses_=distutils-r1 f1707af2d2ad4cf700a9e690de6ed855 multibuild 742139c87a9fa3766f0c2b155e5522bf multilib 165fc17c38d1b11dac2008280dab6e80 multiprocessing 7bb10a841be2368af0c00f27dd67560b python-r1 dcd61d7a5c283f18cfe763552b09eb88 python-utils-r1 d275302cd06aedef2ba08f81f3104206 toolchain-funcs 1b1da0c45c555989dc5d832b54880783 xdg-utils e2b2bd56125ce8cf59ce30c642b59d48
|
||||
_md5_=36bd1e4d022404a6f3a18bae7cd0173d
|
||||
_md5_=b479f13f7c91696aff50528dc7d0275f
|
||||
|
@ -1,13 +0,0 @@
|
||||
DEFINED_PHASES=install prepare
|
||||
DEPEND=dev-libs/libaio
|
||||
DESCRIPTION=Stressful Application Test
|
||||
EAPI=4
|
||||
HOMEPAGE=https://code.google.com/p/stressapptest/
|
||||
IUSE=debug
|
||||
KEYWORDS=~amd64 ~arm ~x86
|
||||
LICENSE=Apache-2.0
|
||||
RDEPEND=dev-libs/libaio
|
||||
SLOT=0
|
||||
SRC_URI=https://stressapptest.googlecode.com/files/stressapptest-1.0.4_autoconf.tar.gz
|
||||
_eclasses_=eutils ea170b525f6a38a006be05c9d9429f13 multilib 165fc17c38d1b11dac2008280dab6e80 toolchain-funcs 1b1da0c45c555989dc5d832b54880783
|
||||
_md5_=622064d464ea424c94b077d752582f0c
|
@ -1,12 +0,0 @@
|
||||
DEFINED_PHASES=install prepare
|
||||
DEPEND=dev-libs/libaio
|
||||
DESCRIPTION=Stressful Application Test
|
||||
EAPI=4
|
||||
HOMEPAGE=https://code.google.com/p/stressapptest/
|
||||
IUSE=debug
|
||||
KEYWORDS=~amd64 ~arm ~x86
|
||||
LICENSE=Apache-2.0
|
||||
RDEPEND=dev-libs/libaio
|
||||
SLOT=0
|
||||
SRC_URI=https://stressapptest.googlecode.com/files/stressapptest-1.0.6_autoconf.tar.gz
|
||||
_md5_=f5940b8242bfc8bae25908f46eb52ccd
|
@ -1,13 +0,0 @@
|
||||
DEFINED_PHASES=configure prepare
|
||||
DEPEND=dev-libs/libaio !<sys-devel/gettext-0.18.1.1-r3 || ( >=sys-devel/automake-1.15:1.15 ) >=sys-devel/autoconf-2.69 >=sys-devel/libtool-2.4
|
||||
DESCRIPTION=Stressful Application Test
|
||||
EAPI=4
|
||||
HOMEPAGE=https://code.google.com/p/stressapptest/
|
||||
IUSE=debug
|
||||
KEYWORDS=~amd64 ~arm ~mips ~x86
|
||||
LICENSE=Apache-2.0
|
||||
RDEPEND=dev-libs/libaio
|
||||
SLOT=0
|
||||
SRC_URI=https://stressapptest.googlecode.com/files/stressapptest-1.0.6_autoconf.tar.gz
|
||||
_eclasses_=autotools 07e71b3b5690738ef7e8bc097077e00c eutils ea170b525f6a38a006be05c9d9429f13 libtool 4890219c51da247200223277f993e054 multilib 165fc17c38d1b11dac2008280dab6e80 toolchain-funcs 1b1da0c45c555989dc5d832b54880783
|
||||
_md5_=b70202bc2c61b10286600236a4eb11cb
|
@ -1,13 +0,0 @@
|
||||
DEFINED_PHASES=configure prepare
|
||||
DEPEND=dev-libs/libaio !<sys-devel/gettext-0.18.1.1-r3 || ( >=sys-devel/automake-1.15:1.15 ) >=sys-devel/autoconf-2.69 >=sys-devel/libtool-2.4
|
||||
DESCRIPTION=Stressful Application Test
|
||||
EAPI=4
|
||||
HOMEPAGE=https://code.google.com/p/stressapptest/
|
||||
IUSE=debug
|
||||
KEYWORDS=~amd64 ~arm ~mips ~x86
|
||||
LICENSE=Apache-2.0
|
||||
RDEPEND=dev-libs/libaio
|
||||
SLOT=0
|
||||
SRC_URI=https://stressapptest.googlecode.com/files/stressapptest-1.0.6_autoconf.tar.gz
|
||||
_eclasses_=autotools 07e71b3b5690738ef7e8bc097077e00c eutils ea170b525f6a38a006be05c9d9429f13 libtool 4890219c51da247200223277f993e054 multilib 165fc17c38d1b11dac2008280dab6e80 toolchain-funcs 1b1da0c45c555989dc5d832b54880783
|
||||
_md5_=868d276f110c20e0ea8697bd3e452750
|
@ -0,0 +1,13 @@
|
||||
DEFINED_PHASES=configure
|
||||
DEPEND=dev-libs/libaio
|
||||
DESCRIPTION=Stressful Application Test
|
||||
EAPI=5
|
||||
HOMEPAGE=https://github.com/stressapptest/stressapptest
|
||||
IUSE=debug
|
||||
KEYWORDS=~amd64 ~arm ~mips ~x86
|
||||
LICENSE=Apache-2.0
|
||||
RDEPEND=dev-libs/libaio
|
||||
SLOT=0
|
||||
SRC_URI=https://github.com/stressapptest/stressapptest/archive/v1.0.8.tar.gz -> stressapptest-1.0.8.tar.gz
|
||||
_eclasses_=eutils ea170b525f6a38a006be05c9d9429f13 flag-o-matic 7366202dd55cb8f018f5d450d54e7749 multilib 165fc17c38d1b11dac2008280dab6e80 toolchain-funcs 1b1da0c45c555989dc5d832b54880783
|
||||
_md5_=2a34d9bb33bb8d1c9ac08c29cb64b7c6
|
@ -1,12 +1,12 @@
|
||||
DEFINED_PHASES=compile configure install prepare test
|
||||
DEPEND=dev-libs/apr dev-libs/apr-util dev-vcs/subversion dev-qt/qtcore:4[qt3support] dev-qt/qtgui:4[qt3support] dev-qt/qtsql:4[sqlite] dev-vcs/subversion sys-devel/make >=dev-util/cmake-3.5.2
|
||||
DEPEND=dev-libs/apr dev-libs/apr-util dev-qt/qtcore:4[qt3support] dev-qt/qtgui:4[qt3support] dev-qt/qtsql:4[sqlite] dev-vcs/subversion sys-devel/make >=dev-util/cmake-3.5.2
|
||||
DESCRIPTION=GUI frontend to the Subversion revision system
|
||||
EAPI=4
|
||||
EAPI=6
|
||||
HOMEPAGE=http://www.anrichter.net/projects/qsvn/
|
||||
KEYWORDS=~amd64 ~x86
|
||||
LICENSE=GPL-2
|
||||
RDEPEND=dev-libs/apr dev-libs/apr-util dev-vcs/subversion dev-qt/qtcore:4[qt3support] dev-qt/qtgui:4[qt3support] dev-qt/qtsql:4[sqlite] dev-vcs/subversion
|
||||
RDEPEND=dev-libs/apr dev-libs/apr-util dev-qt/qtcore:4[qt3support] dev-qt/qtgui:4[qt3support] dev-qt/qtsql:4[sqlite] dev-vcs/subversion
|
||||
SLOT=0
|
||||
SRC_URI=http://www.anrichter.net/projects/qsvn/chrome/site/qsvn-0.8.3-src.tar.gz
|
||||
_eclasses_=cmake-utils f0c2647fb321257c91c6a967f362d053 eutils ea170b525f6a38a006be05c9d9429f13 flag-o-matic 7366202dd55cb8f018f5d450d54e7749 multilib 165fc17c38d1b11dac2008280dab6e80 multiprocessing 7bb10a841be2368af0c00f27dd67560b toolchain-funcs 1b1da0c45c555989dc5d832b54880783 versionator 99ae9d758cbe7cfed19170e7d48f5a9c
|
||||
_md5_=44ab887a6d05b23b4fb46b32cfe310a7
|
||||
_md5_=88b8bb1eadff770737f03407595ae11f
|
||||
|
@ -0,0 +1,10 @@
|
||||
DEFINED_PHASES=install
|
||||
DESCRIPTION=Cladogram tree generator mainly used by the GNU/Linux distro timeline project
|
||||
EAPI=6
|
||||
HOMEPAGE=https://launchpad.net/gnuclad/
|
||||
IUSE=examples
|
||||
KEYWORDS=~amd64
|
||||
LICENSE=GPL-3
|
||||
SLOT=0
|
||||
SRC_URI=http://launchpad.net/gnuclad/trunk/0.2/+download/gnuclad-0.2.4.tar.gz
|
||||
_md5_=a3eb610d0c859c6e37c10d8d6e96eb7e
|
@ -1,11 +0,0 @@
|
||||
DEFINED_PHASES=compile configure install prepare test
|
||||
DEPEND=sys-devel/make >=dev-util/cmake-3.5.2
|
||||
DESCRIPTION=Cue File library from Musepack
|
||||
EAPI=4
|
||||
HOMEPAGE=http://www.musepack.net/
|
||||
KEYWORDS=alpha amd64 ~arm hppa ~ia64 ppc ppc64 ~sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~x86-solaris
|
||||
LICENSE=LGPL-2.1
|
||||
SLOT=0
|
||||
SRC_URI=https://dev.gentoo.org/~ssuominen/libcuefile-477.tar.xz
|
||||
_eclasses_=cmake-utils f0c2647fb321257c91c6a967f362d053 eutils ea170b525f6a38a006be05c9d9429f13 flag-o-matic 7366202dd55cb8f018f5d450d54e7749 multilib 165fc17c38d1b11dac2008280dab6e80 multiprocessing 7bb10a841be2368af0c00f27dd67560b toolchain-funcs 1b1da0c45c555989dc5d832b54880783 versionator 99ae9d758cbe7cfed19170e7d48f5a9c
|
||||
_md5_=92073c3d81b8501cfcf2ea30308116c7
|
@ -0,0 +1,13 @@
|
||||
DEFINED_PHASES=compile configure install prepare test
|
||||
DEPEND=>=media-libs/libprojectm-2.1.0 media-libs/libsdl =media-libs/libvisual-0.4* virtual/opengl virtual/pkgconfig sys-devel/make >=dev-util/cmake-3.5.2
|
||||
DESCRIPTION=A libvisual graphical music visualization plugin similar to milkdrop
|
||||
EAPI=6
|
||||
HOMEPAGE=http://projectm.sourceforge.net
|
||||
IUSE=debug
|
||||
KEYWORDS=~amd64 ~x86
|
||||
LICENSE=LGPL-2
|
||||
RDEPEND=>=media-libs/libprojectm-2.1.0 media-libs/libsdl =media-libs/libvisual-0.4* virtual/opengl
|
||||
SLOT=0
|
||||
SRC_URI=mirror://sourceforge/projectm/projectM-complete-2.1.0-Source.tar.gz
|
||||
_eclasses_=cmake-utils f0c2647fb321257c91c6a967f362d053 eutils ea170b525f6a38a006be05c9d9429f13 flag-o-matic 7366202dd55cb8f018f5d450d54e7749 multilib 165fc17c38d1b11dac2008280dab6e80 multiprocessing 7bb10a841be2368af0c00f27dd67560b toolchain-funcs 1b1da0c45c555989dc5d832b54880783 versionator 99ae9d758cbe7cfed19170e7d48f5a9c
|
||||
_md5_=dd9cda5690690968f178e04a376ab995
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue