parent
f7102fe02c
commit
4ac0fab76d
@ -1,5 +1,5 @@
|
||||
DIST ec2-ami-tools-1.5.7.zip 156611 SHA256 5a45d9f393d2e144124d23d2312b3a8918c5a3f7463b48d55f8db3d56a3fb29f SHA512 2754ded47cbe842f58e12207c4bb7f81c8cd366dc506cbadfa9bda74d91fd5f8e1cafbb117612b14833368ff5943c4943a072d1679f23f591c15f2f49b61b4c2 WHIRLPOOL d88c0259683d7823fd911e357e2b13516cb845972e728a2ae93d29741be3cfa49a1604cfea47f815c5d104bdd71b6c162a26224b3c632d4836976a56d1b640e4
|
||||
EBUILD ec2-ami-tools-1.5.7.ebuild 1178 SHA256 986c001f29868bfd450ef1c3af614d28cb9c203300b536da063bea7a6efc61d9 SHA512 485037c62106d2203294137e0f0cec582de3e49c6a5e1a36771c5ad4cb08e8cc06af276103d2842549281153f49b496d2d6c0a6b83bf860093058132ecd886bd WHIRLPOOL 87119c7b2064b0f49722e5a36c773ba4f34fd8e289b27308a62e9750106e00b6145d66a0f965d191e13091c73d100310a388c90e83350e20fd6439477a4eedbc
|
||||
EBUILD ec2-ami-tools-1.5.7.ebuild 1178 SHA256 72479f8735b751c3bf03855307e446d58e52bdb787fad48c7ff30e0a38abc635 SHA512 d42d67da311a4fadfbf0cd3e509faa413f1b4c112ec599a57f6cb7cc3e64edd432bacf62b9510cdfbffb40aab5577e2991e1d398ab6ae599c8abb6692b173b6d WHIRLPOOL e7f3edcd591667ddb122bf6214f59d0bf54bd87d8f7db1e6beb09dd297907fb6cd1130593acc01c8f7943fe785e4d31a3c77575d4dea2134bb33ec7d85400ff0
|
||||
MISC ChangeLog 2765 SHA256 b6565bfeef9600faf6950a6b3a80decb2226924f652ea8d9eecee1868044b3f2 SHA512 315b45e701b57cc5c92c10fa032c1df3464ff065c09db88121458e6196a8a3c4f5936814ffe77eb12dd15449c8584abea675d1c50eca116b1b8a94aef3a5b27f WHIRLPOOL f975b72060363df270a589fb3c2825e779062746a8fc4d1945ddc7744a3eb480279d09c4454fa71a45bdf0231dd874d2d3e49019f82827ec5bb1efd6027e6e6d
|
||||
MISC ChangeLog-2015 4271 SHA256 f8d9388a1d7d3d626edcbab2e9c754c2a77a6470f508d5bf0e2af3b9d2327f83 SHA512 b77748cc2b5b3863d7f92163115363e1efe0e68a7d622a6bd9b5b89151bcad4f8d5dc0c583c77e9ef884c0b9fa7be20a443a2b67d45ae280b395e0f312cd7a98 WHIRLPOOL ff374258c45c771519e270e9f13781d8ae08ee96fd3f29bdd615b40c355386e7fccbe04308761f0304a377c3a1e658c094c411449f8ccfc4611ea717acae41b7
|
||||
MISC metadata.xml 299 SHA256 553463c80b33af529432b11c8fda758cf02fa9e5b4668687e4df991719a376b8 SHA512 32d0280896d9452574a1ca6ef923aee59cf559e2b9023a4b6986c735bc327df57eb2c73183f5cb660a991e2f41268f0477b24a7e68a81d283fd68c1d2a6ff6a8 WHIRLPOOL 74af766068316cbf1626361cbe9f01dbd98021babe94309c88ae5d5957d6ae3be87cfb5a24baaa8600d6ae8f13acc76f501dd23f83b9b6be57e196aa5b6b8c78
|
||||
|
@ -1,12 +0,0 @@
|
||||
diff -Nuar a/Makefile.am b/Makefile.am
|
||||
--- a/Makefile.am 2017-04-21 12:58:48.000000000 +0200
|
||||
+++ b/Makefile.am 2017-04-23 00:02:39.312011684 +0200
|
||||
@@ -9,7 +9,7 @@
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
AM_CPPFLAGS = -include config.h
|
||||
-AM_CFLAGS = -Wall -Werror
|
||||
+AM_CFLAGS = -Wall
|
||||
sbin_PROGRAMS = logrotate
|
||||
logrotate_SOURCES = config.c log.c logrotate.c \
|
||||
log.h logrotate.h queue.h
|
@ -1,36 +0,0 @@
|
||||
diff -Nuar a/config.c b/config.c
|
||||
--- a/config.c 2017-04-22 23:46:08.201991730 +0200
|
||||
+++ b/config.c 2017-04-22 23:49:43.021996055 +0200
|
||||
@@ -25,6 +25,10 @@
|
||||
#include <sys/mman.h>
|
||||
#include <libgen.h>
|
||||
|
||||
+#if !defined(PATH_MAX) && defined(__FreeBSD__)
|
||||
+#include <sys/param.h>
|
||||
+#endif
|
||||
+
|
||||
#include "log.h"
|
||||
#include "logrotate.h"
|
||||
|
||||
diff -Nuar a/logrotate.c b/logrotate.c
|
||||
--- a/logrotate.c 2017-04-21 10:52:10.000000000 +0200
|
||||
+++ b/logrotate.c 2017-04-22 23:50:20.691996814 +0200
|
||||
@@ -1,6 +1,6 @@
|
||||
#include "queue.h"
|
||||
/* alloca() is defined in stdlib.h in NetBSD */
|
||||
-#ifndef __NetBSD__
|
||||
+#if !defined(__NetBSD__) && !defined(__FreeBSD__)
|
||||
#include <alloca.h>
|
||||
#endif
|
||||
#include <limits.h>
|
||||
@@ -27,6 +27,10 @@
|
||||
#include <limits.h>
|
||||
#endif
|
||||
|
||||
+#if !defined(PATH_MAX) && defined(__FreeBSD__)
|
||||
+#include <sys/param.h>
|
||||
+#endif
|
||||
+
|
||||
#include "log.h"
|
||||
#include "logrotate.h"
|
||||
|
@ -1,14 +0,0 @@
|
||||
diff -Nuar a/config.c b/config.c
|
||||
--- a/config.c 2017-04-18 14:57:02.000000000 +0200
|
||||
+++ b/config.c 2017-04-22 23:46:08.201991730 +0200
|
||||
@@ -389,7 +389,9 @@
|
||||
int i;
|
||||
|
||||
/* Check if fname is '.' or '..'; if so, return false */
|
||||
- if (fname[0] == '.' && (!fname[1] || (fname[1] == '.' && !fname[2])))
|
||||
+ /* Don't include 'hidden' files either; this breaks Gentoo
|
||||
+ portage config file management http://bugs.gentoo.org/87683 */
|
||||
+ if (fname[0] == '.')
|
||||
return 0;
|
||||
|
||||
/* Check if fname is ending in a taboo-extension; if so, return false */
|
@ -1,84 +0,0 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit autotools eutils toolchain-funcs flag-o-matic
|
||||
|
||||
DESCRIPTION="Rotates, compresses, and mails system logs"
|
||||
HOMEPAGE="https://github.com/logrotate/logrotate"
|
||||
SRC_URI="https://github.com/${PN}/${PN}/releases/download/${PV}/${P}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd"
|
||||
IUSE="acl +cron selinux"
|
||||
|
||||
CDEPEND="
|
||||
>=dev-libs/popt-1.5
|
||||
selinux? ( sys-libs/libselinux )
|
||||
acl? ( virtual/acl )"
|
||||
|
||||
DEPEND="${CDEPEND}
|
||||
>=sys-apps/sed-4"
|
||||
|
||||
RDEPEND="${CDEPEND}
|
||||
selinux? ( sec-policy/selinux-logrotate )
|
||||
cron? ( virtual/cron )"
|
||||
|
||||
install_cron_file() {
|
||||
sed -i 's#/usr/sbin/logrotate#/usr/bin/logrotate#' "${S}"/examples/logrotate.cron || die
|
||||
exeinto /etc/cron.daily
|
||||
newexe "${S}"/examples/logrotate.cron "${PN}"
|
||||
}
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${P}-ignore-hidden.patch"
|
||||
"${FILESDIR}/${P}-fbsd.patch"
|
||||
"${FILESDIR}/${P}-Werror.patch"
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf $(use_with acl) $(use_with selinux)
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake ${myconf} RPM_OPT_FLAGS="${CFLAGS}"
|
||||
}
|
||||
|
||||
src_test() {
|
||||
emake test
|
||||
}
|
||||
|
||||
src_install() {
|
||||
insinto /usr
|
||||
dobin logrotate
|
||||
doman logrotate.8
|
||||
dodoc ChangeLog.md examples/logrotate*
|
||||
|
||||
insinto /etc
|
||||
doins "${FILESDIR}"/logrotate.conf
|
||||
|
||||
use cron && install_cron_file
|
||||
|
||||
keepdir /etc/logrotate.d
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "The ${PN} binary is now installed under /usr/bin. Please"
|
||||
elog "update your links"
|
||||
elog
|
||||
if [[ -z ${REPLACING_VERSIONS} ]] ; then
|
||||
elog "If you wish to have logrotate e-mail you updates, please"
|
||||
elog "emerge virtual/mailx and configure logrotate in"
|
||||
elog "/etc/logrotate.conf appropriately"
|
||||
elog
|
||||
elog "Additionally, /etc/logrotate.conf may need to be modified"
|
||||
elog "for your particular needs. See man logrotate for details."
|
||||
fi
|
||||
}
|
@ -0,0 +1,105 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
inherit eutils systemd unpacker user
|
||||
|
||||
DESCRIPTION="general puppet client utils along with mcollective hiera and facter"
|
||||
HOMEPAGE="https://puppetlabs.com/"
|
||||
SRC_BASE="http://apt.puppetlabs.com/pool/xenial/puppet5/${PN:0:1}/${PN}/${PN}_${PV}-1xenial"
|
||||
SRC_URI="
|
||||
amd64? ( ${SRC_BASE}_amd64.deb )
|
||||
x86? ( ${SRC_BASE}_i386.deb )
|
||||
"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="puppetdb selinux"
|
||||
RESTRICT="strip"
|
||||
|
||||
CDEPEND="!app-admin/augeas
|
||||
!app-admin/mcollective
|
||||
!app-admin/puppet
|
||||
!dev-ruby/hiera
|
||||
!dev-ruby/facter
|
||||
!app-emulation/virt-what"
|
||||
|
||||
DEPEND="
|
||||
${CDEPEND}"
|
||||
RDEPEND="${CDEPEND}
|
||||
app-portage/eix
|
||||
sys-apps/dmidecode
|
||||
sys-libs/glibc
|
||||
>=sys-libs/readline-6.0
|
||||
<sys-libs/readline-7.0
|
||||
selinux? (
|
||||
sys-libs/libselinux[ruby]
|
||||
sec-policy/selinux-puppet
|
||||
)
|
||||
puppetdb? ( >=dev-ruby/puppetdb-termini-5.0.1 )"
|
||||
|
||||
S=${WORKDIR}
|
||||
|
||||
QA_PREBUILT="
|
||||
/opt/puppetlabs/puppet
|
||||
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/2.1.0/x86_64-linux/*
|
||||
/opt/puppetlabs/puppet/lib/ruby/2.1.0/x86_64-linux/mathn/*
|
||||
/opt/puppetlabs/puppet/lib/ruby/2.1.0/x86_64-linux/io/*
|
||||
/opt/puppetlabs/puppet/lib/ruby/2.1.0/x86_64-linux/dl/*
|
||||
/opt/puppetlabs/puppet/lib/ruby/2.1.0/x86_64-linux/racc/*
|
||||
/opt/puppetlabs/puppet/lib/ruby/2.1.0/x86_64-linux/enc/*
|
||||
/opt/puppetlabs/puppet/lib/ruby/2.1.0/x86_64-linux/json/ext/*
|
||||
/opt/puppetlabs/puppet/lib/ruby/2.1.0/x86_64-linux/rbconfig/*
|
||||
/opt/puppetlabs/puppet/lib/ruby/2.1.0/x86_64-linux/digest/*
|
||||
/opt/puppetlabs/puppet/lib/ruby/2.1.0/x86_64-linux/*
|
||||
/opt/puppetlabs/puppet/lib/engines/*
|
||||
/opt/puppetlabs/puppet/lib/virt-what/*
|
||||
/opt/puppetlabs/puppet/lib/*
|
||||
/opt/puppetlabs/puppet/bin/*"
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup puppet
|
||||
enewuser puppet -1 -1 /var/run/puppet puppet
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# conf.d
|
||||
doconfd etc/default/puppet
|
||||
doconfd etc/default/mcollective
|
||||
doconfd etc/default/pxp-agent
|
||||
# logrotate.d
|
||||
insinto /etc/logrotate.d
|
||||
doins etc/logrotate.d/mcollective
|
||||
doins etc/logrotate.d/pxp-agent
|
||||
# puppet itself
|
||||
insinto /etc/puppetlabs
|
||||
doins -r etc/puppetlabs/*
|
||||
# logdir for systemd
|
||||
dodir var/log/puppetlabs/puppet/
|
||||
fperms 0750 var/log/puppetlabs/puppet/
|
||||
# the rest
|
||||
insinto /opt
|
||||
dodir opt/puppetlabs/puppet/cache
|
||||
doins -r opt/*
|
||||
fperms 0750 /opt/puppetlabs/puppet/cache
|
||||
# init
|
||||
newinitd "${FILESDIR}/puppet.initd" puppet
|
||||
newinitd "${FILESDIR}/mcollective.initd" mcollective
|
||||
systemd_dounit lib/systemd/system/puppet.service
|
||||
systemd_dounit lib/systemd/system/mcollective.service
|
||||
systemd_dounit lib/systemd/system/pxp-agent.service
|
||||
systemd_newtmpfilesd "${FILESDIR}/puppet-agent.conf.tmpfilesd" puppet-agent.conf
|
||||
# symlinks
|
||||
chmod 0755 -R "${D}/opt/puppetlabs/puppet/bin/"
|
||||
chmod 0755 "${D}//opt/puppetlabs/puppet/lib/virt-what/virt-what-cpuid-helper"
|
||||
dosym /opt/puppetlabs/bin/facter /usr/bin/facter
|
||||
dosym /opt/puppetlabs/bin/hiera /usr/bin/hiera
|
||||
dosym /opt/puppetlabs/bin/mco /usr/bin/mco
|
||||
dosym /opt/puppetlabs/bin/puppet /usr/bin/puppet
|
||||
dosym /opt/puppetlabs/puppet/bin/mcollectived /usr/sbin/mcollectived
|
||||
dosym /opt/puppetlabs/puppet/bin/virt-what /usr/bin/virt-what
|
||||
dosym /opt/puppetlabs/puppet/bin/augparse /usr/bin/augparse
|
||||
dosym /opt/puppetlabs/puppet/bin/augtool /usr/bin/augtool
|
||||
dosym /opt/puppetlabs/puppet/bin/extlookup2hiera /usr/bin/extlookup2hiera
|
||||
}
|
@ -1,192 +0,0 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="6"
|
||||
|
||||
USE_RUBY="ruby21 ruby22 ruby23"
|
||||
|
||||
#RUBY_FAKEGEM_RECIPE_TEST="rspec3"
|
||||
|
||||
inherit xemacs-elisp-common eutils user ruby-fakegem versionator
|
||||
|
||||
DESCRIPTION="A system automation and configuration management software."
|
||||
HOMEPAGE="http://puppetlabs.com/"
|
||||
SRC_URI="http://downloads.puppetlabs.com/puppet/${P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0 GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~hppa ~ppc ~x86"
|
||||
IUSE="augeas diff doc emacs experimental ldap rrdtool selinux shadow sqlite vim-syntax xemacs"
|
||||
RESTRICT="test"
|
||||
|
||||
ruby_add_rdepend "
|
||||
dev-ruby/hiera
|
||||
>=dev-ruby/rgen-0.6.5
|
||||
dev-ruby/json:=
|
||||
>=dev-ruby/facter-3.0.0
|
||||
augeas? ( dev-ruby/ruby-augeas )
|
||||
diff? ( dev-ruby/diff-lcs )
|
||||
doc? ( dev-ruby/rdoc )
|
||||
ldap? ( dev-ruby/ruby-ldap )
|
||||
shadow? ( dev-ruby/ruby-shadow )
|
||||
sqlite? ( dev-ruby/sqlite3 )
|
||||
virtual/ruby-ssl"
|
||||
|
||||
# ruby_add_bdepend "
|
||||
# test? (
|
||||
# dev-ruby/mocha:0.14
|
||||
# =dev-ruby/rack-1*
|
||||
# dev-ruby/rspec-its
|
||||
# dev-ruby/rspec-collection_matchers
|
||||
# >=dev-ruby/vcr-2.9:2
|
||||
# >=dev-ruby/webmock-1.24:0
|
||||
# )"
|
||||
|
||||
DEPEND+=" ${DEPEND}
|
||||
xemacs? ( app-editors/xemacs )"
|
||||
RDEPEND+=" ${RDEPEND}
|
||||
rrdtool? ( >=net-analyzer/rrdtool-1.2.23[ruby] )
|
||||
selinux? (
|
||||
sys-libs/libselinux[ruby]
|
||||
sec-policy/selinux-puppet
|
||||
)
|
||||
vim-syntax? ( >=app-vim/puppet-syntax-3.0.1 )
|
||||
>=app-portage/eix-0.18.0"
|
||||
PDEPEND="emacs? ( >=app-emacs/puppet-mode-0.3-r1 )"
|
||||
|
||||
SITEFILE="50${PN}-mode-gentoo.el"
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup puppet
|
||||
enewuser puppet -1 -1 /var/lib/puppet puppet
|
||||
}
|
||||
|
||||
all_ruby_prepare() {
|
||||
# Avoid spec that require unpackaged json-schema.
|
||||
rm spec/lib/matchers/json.rb $( grep -Rl matchers/json spec) || die
|
||||
|
||||
# can't be run within portage.
|
||||
epatch "${FILESDIR}/puppet-fix-tests-4.7.0.patch"
|
||||
|
||||
# fix systemd path
|
||||
epatch "${FILESDIR}/puppet-systemd.patch"
|
||||
|
||||
if use experimental; then
|
||||
epatch "${FILESDIR}/43e2c935252b995134ce353e5e6312cf77aea480.patch"
|
||||
fi
|
||||
|
||||
# Use working version of mocha
|
||||
sed -i -e '1igem "mocha", "~>0.14.0"; gem "rack", "~>1.0"' spec/spec_helper.rb || die
|
||||
|
||||
# Avoid specs that can only run in the puppet.git repository. This
|
||||
# should be narrowed down to the specific specs.
|
||||
rm spec/integration/parser/compiler_spec.rb || die
|
||||
|
||||
# Avoid failing specs that need further investigation.
|
||||
sed -i -e '/should resolve external facts/,/^ end/ s:^:#:' \
|
||||
spec/integration/indirector/facts/facter_spec.rb || die
|
||||
sed -i -e "/describe 'cfacter'/,/^ end/ s:^:#:" spec/unit/defaults_spec.rb || die
|
||||
rm -f spec/unit/indirector/ldap_spec.rb \
|
||||
spec/unit/parser/functions/create_resources_spec.rb || die
|
||||
|
||||
# Avoid specs that rely on tools from other OSs
|
||||
rm -f spec/unit/provider/package/{dnf,tdnf,yum}_spec.rb \
|
||||
spec/unit/provider/user/directoryservice_spec.rb || die
|
||||
|
||||
# Avoid specs that depend on hiera-eyaml to avoid circular
|
||||
# dependencies
|
||||
rm -f spec/unit/functions/lookup_spec.rb || die
|
||||
|
||||
# Avoid specs that fail due to an unpackaged file
|
||||
sed -i -e '/when loading pp resource types using auto loading/,/^ end/ s:^:#:' spec/unit/pops/loaders/loaders_spec.rb || die
|
||||
}
|
||||
|
||||
all_ruby_compile() {
|
||||
if use xemacs ; then
|
||||
# Create a separate version for xemacs to be able to install
|
||||
# emacs and xemacs in parallel.
|
||||
mkdir ext/xemacs
|
||||
cp ext/emacs/* ext/xemacs/
|
||||
xemacs-elisp-compile ext/xemacs/puppet-mode.el
|
||||
fi
|
||||
}
|
||||
|
||||
each_ruby_install() {
|
||||
each_fakegem_install
|
||||
# dosym "/usr/$(get_libdir)/ruby/gems/$(ruby_get_version)/gems/${P}" "/usr/$(get_libdir)/ruby/gems/$(ruby_get_version)/gems/${PN}"
|
||||
}
|
||||
|
||||
all_ruby_install() {
|
||||
all_fakegem_install
|
||||
|
||||
# systemd stuffs
|
||||
insinto /usr/lib/systemd/system
|
||||
doins "${WORKDIR}/all/${P}/ext/systemd/puppet.service"
|
||||
|
||||
# tmpfiles stuff
|
||||
insinto /usr/lib/tmpfiles.d
|
||||
newins "${FILESDIR}/tmpfiles.d" "puppet.conf"
|
||||
|
||||
# openrc init stuff
|
||||
newinitd "${FILESDIR}"/puppet.init-4.x puppet
|
||||
newinitd "${FILESDIR}"/puppetmaster.init-4.x puppetmaster
|
||||
newconfd "${FILESDIR}"/puppetmaster.confd puppetmaster
|
||||
|
||||
keepdir /etc/puppetlabs/puppet/ssl
|
||||
|
||||
keepdir /var/lib/puppet/facts
|
||||
keepdir /var/lib/puppet/files
|
||||
fowners -R puppet:puppet /var/lib/puppet
|
||||
|
||||
fperms 0750 /var/lib/puppet
|
||||
|
||||
fperms 0750 /etc/puppetlabs
|
||||
fperms 0750 /etc/puppetlabs/puppet
|
||||
fperms 0750 /etc/puppetlabs/puppet/ssl
|
||||
fowners -R :puppet /etc/puppetlabs
|
||||
fowners -R :puppet /var/lib/puppet
|
||||
|
||||
if use xemacs ; then
|
||||
xemacs-elisp-install ${PN} ext/xemacs/puppet-mode.el*
|
||||
xemacs-elisp-site-file-install "${FILESDIR}/${SITEFILE}"
|
||||
fi
|
||||
|
||||
if use ldap ; then
|
||||
insinto /etc/openldap/schema; doins ext/ldap/puppet.schema
|
||||
fi
|
||||
|
||||
# ext and examples files
|
||||
for f in $(find ext examples -type f) ; do
|
||||
docinto "$(dirname ${f})"; dodoc "${f}"
|
||||
done
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog
|
||||
elog "Please, *don't* include the --ask option in EMERGE_EXTRA_OPTS as this could"
|
||||
elog "cause puppet to hang while installing packages."
|
||||
elog
|
||||
elog "Portage Puppet module with Gentoo-specific resources:"
|
||||
elog "http://forge.puppetlabs.com/gentoo/portage"
|
||||
elog
|
||||
|
||||
local v
|
||||
for v in ${REPLACING_VERSIONS}; do
|
||||
if [ "$(get_major_version $v)" = "3" ]; then
|
||||
elog
|
||||
elog "If you're upgrading from 3.x then please move everything in /etc/puppet to"
|
||||
elog "/etc/puppetlabs/puppet"
|
||||
elog "Also, puppet now uses config directories for modules and manifests."
|
||||
elog "See https://docs.puppetlabs.com/puppet/4.0/reference/upgrade_agent.html"
|
||||
elog "and https://docs.puppetlabs.com/puppet/4.0/reference/upgrade_server.html"
|
||||
elog "for more information."
|
||||
elog
|
||||
fi
|
||||
done
|
||||
|
||||
use xemacs && xemacs-elisp-site-regen
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
use xemacs && xemacs-elisp-site-regen
|
||||
}
|
@ -1,192 +0,0 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="6"
|
||||
|
||||
USE_RUBY="ruby21 ruby22 ruby23"
|
||||
|
||||
#RUBY_FAKEGEM_RECIPE_TEST="rspec3"
|
||||
|
||||
inherit xemacs-elisp-common eutils user ruby-fakegem versionator
|
||||
|
||||
DESCRIPTION="A system automation and configuration management software."
|
||||
HOMEPAGE="http://puppetlabs.com/"
|
||||
SRC_URI="http://downloads.puppetlabs.com/puppet/${P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0 GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~hppa ~ppc ~x86"
|
||||
IUSE="augeas diff doc emacs experimental ldap rrdtool selinux shadow sqlite vim-syntax xemacs"
|
||||
RESTRICT="test"
|
||||
|
||||
ruby_add_rdepend "
|
||||
dev-ruby/hiera
|
||||
>=dev-ruby/rgen-0.6.5
|
||||
dev-ruby/json:=
|
||||
>=dev-ruby/facter-3.0.0
|
||||
augeas? ( dev-ruby/ruby-augeas )
|
||||
diff? ( dev-ruby/diff-lcs )
|
||||
doc? ( dev-ruby/rdoc )
|
||||
ldap? ( dev-ruby/ruby-ldap )
|
||||
shadow? ( dev-ruby/ruby-shadow )
|
||||
sqlite? ( dev-ruby/sqlite3 )
|
||||
virtual/ruby-ssl"
|
||||
|
||||
# ruby_add_bdepend "
|
||||
# test? (
|
||||
# dev-ruby/mocha:0.14
|
||||
# =dev-ruby/rack-1*
|
||||
# dev-ruby/rspec-its
|
||||
# dev-ruby/rspec-collection_matchers
|
||||
# >=dev-ruby/vcr-2.9:2
|
||||
# >=dev-ruby/webmock-1.24:0
|
||||
# )"
|
||||
|
||||
DEPEND+=" ${DEPEND}
|
||||
xemacs? ( app-editors/xemacs )"
|
||||
RDEPEND+=" ${RDEPEND}
|
||||
rrdtool? ( >=net-analyzer/rrdtool-1.2.23[ruby] )
|
||||
selinux? (
|
||||
sys-libs/libselinux[ruby]
|
||||
sec-policy/selinux-puppet
|
||||
)
|
||||
vim-syntax? ( >=app-vim/puppet-syntax-3.0.1 )
|
||||
>=app-portage/eix-0.18.0"
|
||||
PDEPEND="emacs? ( >=app-emacs/puppet-mode-0.3-r1 )"
|
||||
|
||||
SITEFILE="50${PN}-mode-gentoo.el"
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup puppet
|
||||
enewuser puppet -1 -1 /var/lib/puppet puppet
|
||||
}
|
||||
|
||||
all_ruby_prepare() {
|
||||
# Avoid spec that require unpackaged json-schema.
|
||||
rm spec/lib/matchers/json.rb $( grep -Rl matchers/json spec) || die
|
||||
|
||||
# can't be run within portage.
|
||||
epatch "${FILESDIR}/puppet-fix-tests-4.7.0.patch"
|
||||
|
||||
# fix systemd path
|
||||
epatch "${FILESDIR}/puppet-systemd.patch"
|
||||
|
||||
if use experimental; then
|
||||
epatch "${FILESDIR}/43e2c935252b995134ce353e5e6312cf77aea480.patch"
|
||||
fi
|
||||
|
||||
# Use working version of mocha
|
||||
sed -i -e '1igem "mocha", "~>0.14.0"; gem "rack", "~>1.0"' spec/spec_helper.rb || die
|
||||
|
||||
# Avoid specs that can only run in the puppet.git repository. This
|
||||
# should be narrowed down to the specific specs.
|
||||
rm spec/integration/parser/compiler_spec.rb || die
|
||||
|
||||
# Avoid failing specs that need further investigation.
|
||||
sed -i -e '/should resolve external facts/,/^ end/ s:^:#:' \
|
||||
spec/integration/indirector/facts/facter_spec.rb || die
|
||||
sed -i -e "/describe 'cfacter'/,/^ end/ s:^:#:" spec/unit/defaults_spec.rb || die
|
||||
rm -f spec/unit/indirector/ldap_spec.rb \
|
||||
spec/unit/parser/functions/create_resources_spec.rb || die
|
||||
|
||||
# Avoid specs that rely on tools from other OSs
|
||||
rm -f spec/unit/provider/package/{dnf,tdnf,yum}_spec.rb \
|
||||
spec/unit/provider/user/directoryservice_spec.rb || die
|
||||
|
||||
# Avoid specs that depend on hiera-eyaml to avoid circular
|
||||
# dependencies
|
||||
rm -f spec/unit/functions/lookup_spec.rb || die
|
||||
|
||||
# Avoid specs that fail due to an unpackaged file
|
||||
sed -i -e '/when loading pp resource types using auto loading/,/^ end/ s:^:#:' spec/unit/pops/loaders/loaders_spec.rb || die
|
||||
}
|
||||
|
||||
all_ruby_compile() {
|
||||
if use xemacs ; then
|
||||
# Create a separate version for xemacs to be able to install
|
||||
# emacs and xemacs in parallel.
|
||||
mkdir ext/xemacs
|
||||
cp ext/emacs/* ext/xemacs/
|
||||
xemacs-elisp-compile ext/xemacs/puppet-mode.el
|
||||
fi
|
||||
}
|
||||
|
||||
each_ruby_install() {
|
||||
each_fakegem_install
|
||||
# dosym "/usr/$(get_libdir)/ruby/gems/$(ruby_get_version)/gems/${P}" "/usr/$(get_libdir)/ruby/gems/$(ruby_get_version)/gems/${PN}"
|
||||
}
|
||||
|
||||
all_ruby_install() {
|
||||
all_fakegem_install
|
||||
|
||||
# systemd stuffs
|
||||
insinto /usr/lib/systemd/system
|
||||
doins "${WORKDIR}/all/${P}/ext/systemd/puppet.service"
|
||||
|
||||
# tmpfiles stuff
|
||||
insinto /usr/lib/tmpfiles.d
|
||||
newins "${FILESDIR}/tmpfiles.d" "puppet.conf"
|
||||
|
||||
# openrc init stuff
|
||||
newinitd "${FILESDIR}"/puppet.init-4.x puppet
|
||||
newinitd "${FILESDIR}"/puppetmaster.init-4.x puppetmaster
|
||||
newconfd "${FILESDIR}"/puppetmaster.confd puppetmaster
|
||||
|
||||
keepdir /etc/puppetlabs/puppet/ssl
|
||||
|
||||
keepdir /var/lib/puppet/facts
|
||||
keepdir /var/lib/puppet/files
|
||||
fowners -R puppet:puppet /var/lib/puppet
|
||||
|
||||
fperms 0750 /var/lib/puppet
|
||||
|
||||
fperms 0750 /etc/puppetlabs
|
||||
fperms 0750 /etc/puppetlabs/puppet
|
||||
fperms 0750 /etc/puppetlabs/puppet/ssl
|
||||
fowners -R :puppet /etc/puppetlabs
|
||||
fowners -R :puppet /var/lib/puppet
|
||||
|
||||
if use xemacs ; then
|
||||
xemacs-elisp-install ${PN} ext/xemacs/puppet-mode.el*
|
||||
xemacs-elisp-site-file-install "${FILESDIR}/${SITEFILE}"
|
||||
fi
|
||||
|
||||
if use ldap ; then
|
||||
insinto /etc/openldap/schema; doins ext/ldap/puppet.schema
|
||||
fi
|
||||
|
||||
# ext and examples files
|
||||
for f in $(find ext examples -type f) ; do
|
||||
docinto "$(dirname ${f})"; dodoc "${f}"
|
||||
done
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog
|
||||
elog "Please, *don't* include the --ask option in EMERGE_EXTRA_OPTS as this could"
|
||||
elog "cause puppet to hang while installing packages."
|
||||
elog
|
||||
elog "Portage Puppet module with Gentoo-specific resources:"
|
||||
elog "http://forge.puppetlabs.com/gentoo/portage"
|
||||
elog
|
||||
|
||||
local v
|
||||
for v in ${REPLACING_VERSIONS}; do
|
||||
if [ "$(get_major_version $v)" = "3" ]; then
|
||||
elog
|
||||
elog "If you're upgrading from 3.x then please move everything in /etc/puppet to"
|
||||
elog "/etc/puppetlabs/puppet"
|
||||
elog "Also, puppet now uses config directories for modules and manifests."
|
||||
elog "See https://docs.puppetlabs.com/puppet/4.0/reference/upgrade_agent.html"
|
||||
elog "and https://docs.puppetlabs.com/puppet/4.0/reference/upgrade_server.html"
|
||||
elog "for more information."
|
||||
elog
|
||||
fi
|
||||
done
|
||||
|
||||
use xemacs && xemacs-elisp-site-regen
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
use xemacs && xemacs-elisp-site-regen
|
||||
}
|
@ -1,184 +0,0 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="5"
|
||||
|
||||
USE_RUBY="ruby21 ruby22"
|
||||
|
||||
RUBY_FAKEGEM_RECIPE_TEST="rspec3"
|
||||
|
||||
inherit elisp-common xemacs-elisp-common eutils user ruby-fakegem versionator
|
||||
|
||||
DESCRIPTION="A system automation and configuration management software."
|
||||
HOMEPAGE="http://puppetlabs.com/"
|
||||
SRC_URI="http://downloads.puppetlabs.com/puppet/${P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0 GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~hppa ~ppc ~x86"
|
||||
IUSE="augeas diff doc emacs experimental ldap rrdtool selinux shadow sqlite vim-syntax xemacs"
|
||||
RESTRICT="test"
|
||||
|
||||
ruby_add_rdepend "
|
||||
dev-ruby/hiera
|
||||
>=dev-ruby/rgen-0.6.5
|
||||
dev-ruby/json:=
|
||||
>=dev-ruby/facter-3.0.0
|
||||
augeas? ( dev-ruby/ruby-augeas )
|
||||
diff? ( dev-ruby/diff-lcs )
|
||||
doc? ( dev-ruby/rdoc )
|
||||
ldap? ( dev-ruby/ruby-ldap )
|
||||
shadow? ( dev-ruby/ruby-shadow )
|
||||
sqlite? ( dev-ruby/sqlite3 )
|
||||
virtual/ruby-ssl"
|
||||
|
||||
ruby_add_bdepend "
|
||||
test? (
|
||||
dev-ruby/mocha
|
||||
dev-ruby/rack
|
||||
dev-ruby/rspec-its
|
||||
)"
|
||||
# this should go in the above lists, but isn't because of test deps not being keyworded
|
||||
# dev-ruby/rspec-collection_matchers
|
||||
|
||||
DEPEND+=" ${DEPEND}
|
||||
emacs? ( virtual/emacs )
|
||||
xemacs? ( app-editors/xemacs )"
|
||||
RDEPEND+=" ${RDEPEND}
|
||||
rrdtool? ( >=net-analyzer/rrdtool-1.2.23[ruby] )
|
||||
selinux? (
|
||||
sys-libs/libselinux[ruby]
|
||||
sec-policy/selinux-puppet
|
||||
)
|
||||
vim-syntax? ( >=app-vim/puppet-syntax-3.0.1 )
|
||||
>=app-portage/eix-0.18.0"
|
||||
|
||||
SITEFILE="50${PN}-mode-gentoo.el"
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup puppet
|
||||
enewuser puppet -1 -1 /var/lib/puppet puppet
|
||||
}
|
||||
|
||||
all_ruby_prepare() {
|
||||
# Avoid spec that require unpackaged json-schema.
|
||||
rm spec/lib/matchers/json.rb $( grep -Rl matchers/json spec) || die
|
||||
|
||||
# can't be run within portage.
|
||||
epatch "${FILESDIR}/puppet-fix-tests-4.7.0.patch"
|
||||
|
||||
# fix systemd path
|
||||
epatch "${FILESDIR}/puppet-systemd.patch"
|
||||
|
||||
if use experimental; then
|
||||
epatch "${FILESDIR}/43e2c935252b995134ce353e5e6312cf77aea480.patch"
|
||||
fi
|
||||
|
||||
# Avoid specs that can only run in the puppet.git repository. This
|
||||
# should be narrowed down to the specific specs.
|
||||
rm spec/integration/parser/compiler_spec.rb || die
|
||||
|
||||
# Avoid failing spec that need further investigation.
|
||||
rm spec/unit/module_tool/metadata_spec.rb || die
|
||||
}
|
||||
|
||||
all_ruby_compile() {
|
||||
if use emacs ; then
|
||||
elisp-compile ext/emacs/puppet-mode.el
|
||||
fi
|
||||
|
||||
if use xemacs ; then
|
||||
# Create a separate version for xemacs to be able to install
|
||||
# emacs and xemacs in parallel.
|
||||
mkdir ext/xemacs
|
||||
cp ext/emacs/* ext/xemacs/
|
||||
xemacs-elisp-compile ext/xemacs/puppet-mode.el
|
||||
fi
|
||||
}
|
||||
|
||||
each_ruby_install() {
|
||||
each_fakegem_install
|
||||
# dosym "/usr/$(get_libdir)/ruby/gems/$(ruby_get_version)/gems/${P}" "/usr/$(get_libdir)/ruby/gems/$(ruby_get_version)/gems/${PN}"
|
||||
}
|
||||
|
||||
all_ruby_install() {
|
||||
all_fakegem_install
|
||||
|
||||
# systemd stuffs
|
||||
insinto /usr/lib/systemd/system
|
||||
doins "${WORKDIR}/all/${P}/ext/systemd/puppet.service"
|
||||
|
||||
# tmpfiles stuff
|
||||
insinto /usr/lib/tmpfiles.d
|
||||
newins "${FILESDIR}/tmpfiles.d" "puppet.conf"
|
||||
|
||||
# openrc init stuff
|
||||
newinitd "${FILESDIR}"/puppet.init-4.x puppet
|
||||
newinitd "${FILESDIR}"/puppetmaster.init-4.x puppetmaster
|
||||
newconfd "${FILESDIR}"/puppetmaster.confd puppetmaster
|
||||
|
||||
keepdir /etc/puppetlabs/puppet/ssl
|
||||
|
||||
keepdir /var/lib/puppet/facts
|
||||
keepdir /var/lib/puppet/files
|
||||
fowners -R puppet:puppet /var/lib/puppet
|
||||
|
||||
fperms 0750 /var/lib/puppet
|
||||
|
||||
fperms 0750 /etc/puppetlabs
|
||||
fperms 0750 /etc/puppetlabs/puppet
|
||||
fperms 0750 /etc/puppetlabs/puppet/ssl
|
||||
fowners -R :puppet /etc/puppetlabs
|
||||
fowners -R :puppet /var/lib/puppet
|
||||
|
||||
if use emacs ; then
|
||||
elisp-install ${PN} ext/emacs/puppet-mode.el*
|
||||
elisp-site-file-install "${FILESDIR}/${SITEFILE}"
|
||||
fi
|
||||
|
||||
if use xemacs ; then
|
||||
xemacs-elisp-install ${PN} ext/xemacs/puppet-mode.el*
|
||||
xemacs-elisp-site-file-install "${FILESDIR}/${SITEFILE}"
|
||||
fi
|
||||
|
||||
if use ldap ; then
|
||||
insinto /etc/openldap/schema; doins ext/ldap/puppet.schema
|
||||
fi
|
||||
|
||||
# ext and examples files
|
||||
for f in $(find ext examples -type f) ; do
|
||||
docinto "$(dirname ${f})"; dodoc "${f}"
|
||||
done
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog
|
||||
elog "Please, *don't* include the --ask option in EMERGE_EXTRA_OPTS as this could"
|
||||
elog "cause puppet to hang while installing packages."
|
||||
elog
|
||||
elog "Portage Puppet module with Gentoo-specific resources:"
|
||||
elog "http://forge.puppetlabs.com/gentoo/portage"
|
||||
elog
|
||||
|
||||
local v
|
||||
for v in ${REPLACING_VERSIONS}; do
|
||||
if [ "$(get_major_version $v)" = "3" ]; then
|
||||
elog
|
||||
elog "If you're upgrading from 3.x then please move everything in /etc/puppet to"
|
||||
elog "/etc/puppetlabs/puppet"
|
||||
elog "Also, puppet now uses config directories for modules and manifests."
|
||||
elog "See https://docs.puppetlabs.com/puppet/4.0/reference/upgrade_agent.html"
|
||||
elog "and https://docs.puppetlabs.com/puppet/4.0/reference/upgrade_server.html"
|
||||
elog "for more information."
|
||||
elog
|
||||
fi
|
||||
done
|
||||
|
||||
use emacs && elisp-site-regen
|
||||
use xemacs && xemacs-elisp-site-regen
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
use emacs && elisp-site-regen
|
||||
use xemacs && xemacs-elisp-site-regen
|
||||
}
|
@ -1,7 +1,7 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="5"
|
||||
EAPI="6"
|
||||
|
||||
USE_RUBY="ruby21 ruby22 ruby23"
|
||||
# need to get deps up to date for this
|
@ -1,89 +0,0 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
inherit flag-o-matic multilib systemd toolchain-funcs
|
||||
|
||||
DESCRIPTION="System performance tools for Linux"
|
||||
HOMEPAGE="http://pagesperso-orange.fr/sebastien.godard/"
|
||||
SRC_URI="${HOMEPAGE}${P}.tar.xz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS=""
|
||||
IUSE="debug nls lm_sensors selinux static"
|
||||
|
||||
CDEPEND="
|
||||
nls? ( virtual/libintl )
|
||||
lm_sensors? ( sys-apps/lm_sensors )
|
||||
"
|
||||
DEPEND="
|
||||
${CDEPEND}
|
||||
nls? ( sys-devel/gettext )
|
||||
"
|
||||
RDEPEND="
|
||||
${CDEPEND}
|
||||
selinux? ( sec-policy/selinux-sysstat )
|
||||
"
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-10.0.4-flags.patch
|
||||
"${FILESDIR}"/${PN}-11.0.4-cron.patch
|
||||
)
|
||||
|
||||
SYSSTAT_FAKE_RC_DIR=Gentoo-does-not-use-rc.d
|
||||
|
||||
src_prepare() {
|
||||
if use nls; then
|
||||
strip-linguas -i nls/
|
||||
local lingua pofile
|
||||
for pofile in nls/*.po; do
|
||||
lingua=${pofile/nls\/}
|
||||
lingua=${lingua/.po}
|
||||
if ! has ${lingua} ${LINGUAS}; then
|
||||
rm "nls/${lingua}.po" || die
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
tc-export AR
|
||||
use static && append-ldflags -static
|
||||
|
||||
sa_lib_dir=/usr/$(get_libdir)/sa \
|
||||
conf_dir=/etc \
|
||||
rcdir=${SYSSTAT_FAKE_RC_DIR} \
|
||||
econf \
|
||||
$(use_enable debug debuginfo) \
|
||||
$(use_enable lm_sensors sensors) \
|
||||
$(use_enable nls) \
|
||||
--enable-copy-only \
|
||||
--enable-documentation \
|
||||
--enable-install-cron \
|
||||
--with-systemdsystemunitdir=$(systemd_get_systemunitdir)
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake LFLAGS="${LDFLAGS}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
keepdir /var/log/sa
|
||||
|
||||
emake \
|
||||
CHOWN=true \
|
||||
DESTDIR="${D}" \
|
||||
DOC_DIR=/usr/share/doc/${PF} \
|
||||
MANGRPARG='' \
|
||||
install
|
||||
|
||||
dodoc -r contrib/
|
||||
|
||||
rm -r "${D}/${SYSSTAT_FAKE_RC_DIR}" || die
|
||||
newinitd "${FILESDIR}"/${PN}.init.d ${PN}
|
||||
systemd_dounit ${PN}.service
|
||||
|
||||
rm -f "${D}"usr/share/doc/${PF}/COPYING
|
||||
}
|
@ -0,0 +1,33 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit toolchain-funcs
|
||||
|
||||
DESCRIPTION="cpio-format archives"
|
||||
HOMEPAGE="http://members.chello.nl/k.holtman/afio.html"
|
||||
SRC_URI="http://members.chello.nl/k.holtman/${P}.tgz"
|
||||
|
||||
LICENSE="Artistic LGPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~sparc ~x86"
|
||||
|
||||
PATCHES=( "${FILESDIR}"/Makefile-r1.patch )
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
tc-export CC
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin "${PN}"
|
||||
doman "${PN}.1"
|
||||
dodoc ANNOUNCE-* HISTORY README SCRIPTS
|
||||
|
||||
local i
|
||||
for i in {1..4}; do
|
||||
docinto "script$i"
|
||||
dodoc "script$i"/*
|
||||
done
|
||||
}
|
@ -0,0 +1,418 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="5"
|
||||
|
||||
inherit eutils multilib qt4-r2 systemd user libtool
|
||||
|
||||
MY_PV=${PV/_beta/-b}
|
||||
MY_P=${PN}-${MY_PV}
|
||||
|
||||
DESCRIPTION="Featureful client/server network backup suite"
|
||||
HOMEPAGE="http://www.bacula.org/"
|
||||
SRC_URI="mirror://sourceforge/bacula/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="AGPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~sparc ~x86"
|
||||
IUSE="bacula-clientonly bacula-nodir bacula-nosd examples ipv6 libressl logwatch mysql postgres qt4 readline +sqlite ssl static tcpd vim-syntax X"
|
||||
|
||||
DEPEND="
|
||||
dev-libs/gmp:0
|
||||
!bacula-clientonly? (
|
||||
postgres? ( dev-db/postgresql:=[threads] )
|
||||
mysql? ( virtual/mysql )
|
||||
sqlite? ( dev-db/sqlite:3 )
|
||||
!bacula-nodir? ( virtual/mta )
|
||||
)
|
||||
qt4? (
|
||||
dev-qt/qtsvg:4
|
||||
x11-libs/qwt:5
|
||||
)
|
||||
logwatch? ( sys-apps/logwatch )
|
||||
tcpd? ( >=sys-apps/tcp-wrappers-7.6 )
|
||||
readline? ( sys-libs/readline:0 )
|
||||
static? (
|
||||
virtual/acl[static-libs]
|
||||
sys-libs/zlib[static-libs]
|
||||
dev-libs/lzo[static-libs]
|
||||
sys-libs/ncurses:=[static-libs]
|
||||
ssl? (
|
||||
!libressl? ( dev-libs/openssl:0=[static-libs] )
|
||||
libressl? ( dev-libs/libressl:0=[static-libs] )
|
||||
)
|
||||
)
|
||||
!static? (
|
||||
virtual/acl
|
||||
sys-libs/zlib
|
||||
dev-libs/lzo
|
||||
sys-libs/ncurses:=
|
||||
ssl? (
|
||||
!libressl? ( dev-libs/openssl:0= )
|
||||
libressl? ( dev-libs/libressl:0= )
|
||||
)
|
||||
)"
|
||||
RDEPEND="${DEPEND}
|
||||
!bacula-clientonly? (
|
||||
!bacula-nosd? (
|
||||
sys-block/mtx
|
||||
app-arch/mt-st
|
||||
)
|
||||
)
|
||||
vim-syntax? ( || ( app-editors/vim app-editors/gvim ) )"
|
||||
|
||||
REQUIRED_USE="!bacula-clientonly? ( ^^ ( mysql postgres sqlite ) )
|
||||
static? ( bacula-clientonly )"
|
||||
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
pkg_setup() {
|
||||
#XOR and !bacula-clientonly controlled by REQUIRED_USE
|
||||
use mysql && export mydbtype="mysql"
|
||||
use postgres && export mydbtype="postgresql"
|
||||
use sqlite && export mydbtype="sqlite3"
|
||||
|
||||
# create the daemon group and user
|
||||
if [ -z "$(egetent group bacula 2>/dev/null)" ]; then
|
||||
enewgroup bacula
|
||||
einfo
|
||||
einfo "The group 'bacula' has been created. Any users you add to this"
|
||||
einfo "group have access to files created by the daemons."
|
||||
einfo
|
||||
fi
|
||||
|
||||
if use bacula-clientonly && use static && use qt4; then
|
||||
ewarn
|
||||
ewarn "Building statically linked 'bat' is not supported. Ignorig 'qt4' useflag."
|
||||
ewarn
|
||||
fi
|
||||
|
||||
if ! use bacula-clientonly; then
|
||||
if [ -z "$(egetent passwd bacula 2>/dev/null)" ]; then
|
||||
enewuser bacula -1 -1 /var/lib/bacula bacula,disk,tape,cdrom,cdrw
|
||||
einfo
|
||||
einfo "The user 'bacula' has been created. Please see the bacula manual"
|
||||
einfo "for information about running bacula as a non-root user."
|
||||
einfo
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# adjusts default configuration files for several binaries
|
||||
# to /etc/bacula/<config> instead of ./<config>
|
||||
pushd src >&/dev/null || die
|
||||
for f in console/console.c dird/dird.c filed/filed.c \
|
||||
stored/bcopy.c stored/bextract.c stored/bls.c \
|
||||
stored/bscan.c stored/btape.c stored/stored.c \
|
||||
qt-console/main.cpp; do
|
||||
sed -i -e 's|^\(#define CONFIG_FILE "\)|\1/etc/bacula/|g' "${f}" \
|
||||
|| die "sed on ${f} failed"
|
||||
done
|
||||
popd >&/dev/null || die
|
||||
|
||||
# bug 466688 drop deprecated categories from Desktop file
|
||||
sed -i -e 's/Application;//' scripts/bat.desktop.in || die
|
||||
|
||||
# bug 466690 Use CXXFLAGS instead of CFLAGS
|
||||
sed -i -e 's/@CFLAGS@/@CXXFLAGS@/' autoconf/Make.common.in || die
|
||||
|
||||
# drop automatic install of unneeded documentation (for bug 356499)
|
||||
epatch "${FILESDIR}"/7.2.0/${PN}-7.2.0-doc.patch
|
||||
|
||||
# bug #310087
|
||||
epatch "${FILESDIR}"/5.2.3/${PN}-5.2.3-as-needed.patch
|
||||
|
||||
# bug #311161
|
||||
epatch "${FILESDIR}"/9.0.2/${PN}-9.0.2-lib-search-path.patch
|
||||
|
||||
# bat needs to respect LDFLAGS
|
||||
epatch "${FILESDIR}"/5.2.3/${PN}-5.2.3-ldflags.patch
|
||||
|
||||
# bug #328701
|
||||
epatch "${FILESDIR}"/5.2.3/${PN}-5.2.3-openssl-1.patch
|
||||
|
||||
epatch "${FILESDIR}"/9.0.2/${PN}-9.0.2-fix-static.patch
|
||||
|
||||
# fix soname in libbaccat.so bug #602952
|
||||
epatch "${FILESDIR}/bacula-fix-sonames.patch"
|
||||
|
||||
# do not strip binaries
|
||||
sed -i -e "s/strip /# strip /" src/filed/Makefile.in || die
|
||||
sed -i -e "s/strip /# strip /" src/console/Makefile.in || die
|
||||
|
||||
# fix file not found error during make depend
|
||||
epatch "${FILESDIR}"/7.0.2/${PN}-7.0.2-depend.patch
|
||||
|
||||
# Fix systemd unit files:
|
||||
# bug 497748
|
||||
sed -i -e '/Requires/d' platforms/systemd/*.service.in || die
|
||||
sed -i -e '/StandardOutput/d' platforms/systemd/*.service.in || die
|
||||
# bug 504370
|
||||
sed -i -e '/Alias=bacula-dir/d' platforms/systemd/bacula-dir.service.in || die
|
||||
# bug 584442 and 504368
|
||||
sed -i -e 's/@dir_user@/root/g' platforms/systemd/bacula-dir.service.in || die
|
||||
|
||||
# fix bundled libtool (bug 466696)
|
||||
# But first move directory with M4 macros out of the way.
|
||||
# It is only needed by autoconf and gives errors during elibtoolize.
|
||||
mv autoconf/libtool autoconf/libtool1 || die
|
||||
elibtoolize
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconf=''
|
||||
|
||||
if use bacula-clientonly; then
|
||||
myconf="${myconf} \
|
||||
$(use_enable bacula-clientonly client-only) \
|
||||
$(use_enable !static libtool) \
|
||||
$(use_enable static static-cons) \
|
||||
$(use_enable static static-fd)"
|
||||
else
|
||||
myconf="${myconf} \
|
||||
$(use_enable !bacula-nodir build-dird) \
|
||||
$(use_enable !bacula-nosd build-stored)"
|
||||
# bug #311099
|
||||
# database support needed by dir-only *and* sd-only
|
||||
# build as well (for building bscan, btape, etc.)
|
||||
myconf="${myconf}
|
||||
--with-${mydbtype}"
|
||||
if use mysql; then
|
||||
myconf="${myconf} \
|
||||
--disable-batch-insert"
|
||||
else
|
||||
myconf="${myconf} \
|
||||
--enable-batch-insert"
|
||||
fi
|
||||
fi
|
||||
|
||||
# do not build bat if 'static' clientonly
|
||||
if ! use bacula-clientonly || ! use static; then
|
||||
myconf="${myconf} \
|
||||
$(use_enable qt4 bat)"
|
||||
fi
|
||||
|
||||
myconf="${myconf} \
|
||||
$(use_with X x) \
|
||||
$(use_enable !readline conio) \
|
||||
$(use_enable readline) \
|
||||
$(use_with readline readline /usr) \
|
||||
$(use_with ssl openssl) \
|
||||
$(use_enable ipv6) \
|
||||
$(use_with tcpd tcp-wrappers)"
|
||||
|
||||
econf \
|
||||
--enable-acl \
|
||||
--libdir=/usr/$(get_libdir) \
|
||||
--docdir=/usr/share/doc/${PF} \
|
||||
--htmldir=/usr/share/doc/${PF}/html \
|
||||
--with-pid-dir=/var/run \
|
||||
--sysconfdir=/etc/bacula \
|
||||
--with-subsys-dir=/var/lock/subsys \
|
||||
--with-working-dir=/var/lib/bacula \
|
||||
--with-logdir=/var/lib/bacula \
|
||||
--with-scriptdir=/usr/libexec/bacula \
|
||||
--with-systemd=$(systemd_get_unitdir) \
|
||||
--with-dir-user=bacula \
|
||||
--with-dir-group=bacula \
|
||||
--with-sd-user=root \
|
||||
--with-sd-group=bacula \
|
||||
--with-fd-user=root \
|
||||
--with-fd-group=bacula \
|
||||
--enable-smartalloc \
|
||||
--disable-afs \
|
||||
--host=${CHOST} \
|
||||
${myconf}
|
||||
# correct configuration for QT based bat
|
||||
if use qt4 ; then
|
||||
pushd src/qt-console
|
||||
eqmake4
|
||||
popd
|
||||
fi
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# Make build log verbose (bug #447806)
|
||||
emake NO_ECHO=""
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install
|
||||
doicon scripts/bacula.png
|
||||
|
||||
# install bat icon and desktop file when enabled
|
||||
# (for some reason ./configure doesn't pick this up)
|
||||
if use qt4 && ! use static ; then
|
||||
doicon src/qt-console/images/bat_icon.png
|
||||
domenu scripts/bat.desktop
|
||||
fi
|
||||
|
||||
# remove some scripts we don't need at all
|
||||
rm -f "${D}"/usr/libexec/bacula/{bacula,bacula-ctl-dir,bacula-ctl-fd,bacula-ctl-sd,startmysql,stopmysql}
|
||||
|
||||
# rename statically linked apps
|
||||
if use bacula-clientonly && use static ; then
|
||||
pushd "${D}"/usr/sbin || die
|
||||
mv static-bacula-fd bacula-fd || die
|
||||
mv static-bconsole bconsole || die
|
||||
popd || die
|
||||
fi
|
||||
|
||||
# extra files which 'make install' doesn't cover
|
||||
if ! use bacula-clientonly; then
|
||||
# the database update scripts
|
||||
diropts -m0750
|
||||
insinto /usr/libexec/bacula/updatedb
|
||||
insopts -m0754
|
||||
doins "${S}"/updatedb/*
|
||||
fperms 0640 /usr/libexec/bacula/updatedb/README
|
||||
|
||||
# the logrotate configuration
|
||||
# (now unconditional wrt bug #258187)
|
||||
diropts -m0755
|
||||
insinto /etc/logrotate.d
|
||||
insopts -m0644
|
||||
newins "${S}"/scripts/logrotate bacula
|
||||
|
||||
# the logwatch scripts
|
||||
if use logwatch; then
|
||||
diropts -m0750
|
||||
dodir /usr/share/logwatch/scripts/services
|
||||
dodir /usr/share/logwatch/scripts/shared
|
||||
dodir /etc/logwatch/conf/logfiles
|
||||
dodir /etc/logwatch/conf/services
|
||||
pushd "${S}"/scripts/logwatch >&/dev/null || die
|
||||
emake DESTDIR="${D}" install
|
||||
popd >&/dev/null || die
|
||||
fi
|
||||
fi
|
||||
|
||||
if ! use qt4; then
|
||||
rm -vf "${D}"/usr/share/man/man1/bat.1*
|
||||
fi
|
||||
rm -vf "${D}"/usr/share/man/man1/bacula-tray-monitor.1*
|
||||
if use bacula-clientonly || use bacula-nodir; then
|
||||
rm -vf "${D}"/usr/share/man/man8/bacula-dir.8*
|
||||
rm -vf "${D}"/usr/share/man/man8/dbcheck.8*
|
||||
rm -vf "${D}"/usr/share/man/man1/bsmtp.1*
|
||||
rm -vf "${D}"/usr/libexec/bacula/create_*_database
|
||||
rm -vf "${D}"/usr/libexec/bacula/drop_*_database
|
||||
rm -vf "${D}"/usr/libexec/bacula/make_*_tables
|
||||
rm -vf "${D}"/usr/libexec/bacula/update_*_tables
|
||||
rm -vf "${D}"/usr/libexec/bacula/drop_*_tables
|
||||
rm -vf "${D}"/usr/libexec/bacula/grant_*_privileges
|
||||
rm -vf "${D}"/usr/libexec/bacula/*_catalog_backup
|
||||
fi
|
||||
if use bacula-clientonly || use bacula-nosd; then
|
||||
rm -vf "${D}"/usr/share/man/man8/bacula-sd.8*
|
||||
rm -vf "${D}"/usr/share/man/man8/bcopy.8*
|
||||
rm -vf "${D}"/usr/share/man/man8/bextract.8*
|
||||
rm -vf "${D}"/usr/share/man/man8/bls.8*
|
||||
rm -vf "${D}"/usr/share/man/man8/bscan.8*
|
||||
rm -vf "${D}"/usr/share/man/man8/btape.8*
|
||||
rm -vf "${D}"/usr/libexec/bacula/disk-changer
|
||||
rm -vf "${D}"/usr/libexec/bacula/mtx-changer
|
||||
rm -vf "${D}"/usr/libexec/bacula/dvd-handler
|
||||
fi
|
||||
|
||||
# documentation
|
||||
dodoc ChangeLog ReleaseNotes SUPPORT
|
||||
|
||||
# install examples (bug #457504)
|
||||
if use examples; then
|
||||
docinto examples/
|
||||
dodoc -r examples/*
|
||||
fi
|
||||
|
||||
# vim-files
|
||||
if use vim-syntax; then
|
||||
insinto /usr/share/vim/vimfiles/syntax
|
||||
doins scripts/bacula.vim
|
||||
insinto /usr/share/vim/vimfiles/ftdetect
|
||||
newins scripts/filetype.vim bacula_ft.vim
|
||||
fi
|
||||
|
||||
# setup init scripts
|
||||
myscripts="bacula-fd"
|
||||
if ! use bacula-clientonly; then
|
||||
if ! use bacula-nodir; then
|
||||
myscripts="${myscripts} bacula-dir"
|
||||
fi
|
||||
if ! use bacula-nosd; then
|
||||
myscripts="${myscripts} bacula-sd"
|
||||
fi
|
||||
fi
|
||||
for script in ${myscripts}; do
|
||||
# copy over init script and config to a temporary location
|
||||
# so we can modify them as needed
|
||||
cp "${FILESDIR}/${script}".confd "${T}/${script}".confd || die "failed to copy ${script}.confd"
|
||||
cp "${FILESDIR}/newscripts/${script}".initd "${T}/${script}".initd || die "failed to copy ${script}.initd"
|
||||
|
||||
# now set the database dependancy for the director init script
|
||||
case "${script}" in
|
||||
bacula-dir)
|
||||
case "${mydbtype}" in
|
||||
sqlite3)
|
||||
# sqlite databases don't have a daemon
|
||||
sed -i -e 's/need "%database%"/:/g' "${T}/${script}".initd || die
|
||||
;;
|
||||
*)
|
||||
# all other databases have daemons
|
||||
sed -i -e "s:%database%:${mydbtype}:" "${T}/${script}".initd || die
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
*)
|
||||
;;
|
||||
esac
|
||||
|
||||
# install init script and config
|
||||
newinitd "${T}/${script}".initd "${script}"
|
||||
newconfd "${T}/${script}".confd "${script}"
|
||||
done
|
||||
|
||||
systemd_dounit "${S}"/platforms/systemd/bacula-{dir,fd,sd}.service
|
||||
|
||||
# make sure the working directory exists
|
||||
diropts -m0750
|
||||
keepdir /var/lib/bacula
|
||||
|
||||
# make sure bacula group can execute bacula libexec scripts
|
||||
fowners -R root:bacula /usr/libexec/bacula
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if use bacula-clientonly; then
|
||||
fowners root:bacula /var/lib/bacula
|
||||
else
|
||||
fowners bacula:bacula /var/lib/bacula
|
||||
fi
|
||||
|
||||
if ! use bacula-clientonly && ! use bacula-nodir; then
|
||||
einfo
|
||||
einfo "If this is a new install, you must create the ${mydbtype} databases with:"
|
||||
einfo " /usr/libexec/bacula/create_${mydbtype}_database"
|
||||
einfo " /usr/libexec/bacula/make_${mydbtype}_tables"
|
||||
einfo " /usr/libexec/bacula/grant_${mydbtype}_privileges"
|
||||
einfo
|
||||
|
||||
ewarn "ATTENTION!"
|
||||
ewarn "The format of the database may have changed."
|
||||
ewarn "If you just upgraded from a version below 9.0.0 you must run"
|
||||
ewarn "'update_bacula_tables' now."
|
||||
ewarn "Make sure to have a backup of your catalog before."
|
||||
ewarn
|
||||
fi
|
||||
|
||||
if use sqlite; then
|
||||
einfo
|
||||
einfo "Be aware that Bacula does not officially support SQLite database anymore."
|
||||
einfo "Best use it only for a client-only installation. See Bug #445540."
|
||||
einfo
|
||||
fi
|
||||
|
||||
einfo "Please note that 'bconsole' will always be installed. To compile 'bat'"
|
||||
einfo "you have to enable 'USE=qt4'."
|
||||
einfo
|
||||
}
|
@ -0,0 +1,63 @@
|
||||
--- src/console/Makefile.in.orig 2017-07-25 19:03:05.664760298 +0200
|
||||
+++ src/console/Makefile.in 2017-07-25 19:05:43.576706091 +0200
|
||||
@@ -24,6 +24,7 @@
|
||||
CONSSRCS = console.c console_conf.c authenticate.c @CONS_SRC@
|
||||
CONSOBJS = console.o console_conf.o authenticate.o @CONS_OBJ@
|
||||
JSONOBJS = bbconsjson.o console_conf.o
|
||||
+ZLIBS=@ZLIBS@
|
||||
|
||||
# these are the objects that are changed by the .configure process
|
||||
EXTRAOBJS = @OBJLIST@
|
||||
@@ -50,18 +51,18 @@
|
||||
|
||||
bconsole: Makefile $(CONSOBJS) ../lib/libbac$(DEFAULT_ARCHIVE_TYPE) ../lib/libbaccfg$(DEFAULT_ARCHIVE_TYPE)
|
||||
$(LIBTOOL_LINK) $(CXX) -L../lib -L../cats $(LDFLAGS) $(CONS_LDFLAGS) -o $@ $(CONSOBJS) \
|
||||
- $(DLIB) $(CONS_LIBS) -lbaccfg -lbac -lm $(LIBS) $(GETTEXT_LIBS) \
|
||||
- $(OPENSSL_LIBS)
|
||||
+ $(DLIB) $(CONS_LIBS) -lbaccfg -lbac -lm $(ZLIBS) $(GETTEXT_LIBS) \
|
||||
+ $(OPENSSL_LIBS) $(LIBS)
|
||||
|
||||
bbconsjson: Makefile $(JSONOBJS) ../lib/libbac$(DEFAULT_ARCHIVE_TYPE) ../lib/libbaccfg$(DEFAULT_ARCHIVE_TYPE)
|
||||
$(LIBTOOL_LINK) $(CXX) -L../lib -L../cats $(LDFLAGS) $(CONS_LDFLAGS) -o $@ $(JSONOBJS) \
|
||||
- $(DLIB) $(CONS_LIBS) -lbaccfg -lbac -lm $(LIBS) $(GETTEXT_LIBS) \
|
||||
- $(OPENSSL_LIBS)
|
||||
+ $(DLIB) $(CONS_LIBS) -lbaccfg -lbac -lm $(ZLIBS) $(GETTEXT_LIBS) \
|
||||
+ $(OPENSSL_LIBS) $(LIBS)
|
||||
|
||||
static-bconsole: Makefile $(CONSOBJS) ../lib/libbac.a ../lib/libbaccfg$(DEFAULT_ARCHIVE_TYPE)
|
||||
$(LIBTOOL_LINK) $(CXX) -static -L../lib -L../cats $(LDFLAGS) $(CONS_LDFLAGS) -o $@ $(CONSOBJS) \
|
||||
- $(DLIB) $(CONS_LIBS) -lbaccfg -lbac -lm $(LIBS) $(GETTEXT_LIBS) \
|
||||
- $(OPENSSL_LIBS)
|
||||
+ $(DLIB) $(CONS_LIBS) -lbaccfg -lbac -lm $(ZLIBS) $(GETTEXT_LIBS) \
|
||||
+ $(OPENSSL_LIBS) $(LIBS)
|
||||
strip $@
|
||||
|
||||
|
||||
--- src/filed/Makefile.in.orig 2017-07-25 19:09:19.655852979 +0200
|
||||
+++ src/filed/Makefile.in 2017-07-25 19:11:39.519558592 +0200
|
||||
@@ -69,19 +69,19 @@
|
||||
bacula-fd: Makefile $(SVROBJS) ../findlib/libbacfind$(DEFAULT_ARCHIVE_TYPE) ../lib/libbaccfg$(DEFAULT_ARCHIVE_TYPE) ../lib/libbac$(DEFAULT_ARCHIVE_TYPE)
|
||||
@echo "Linking $@ ..."
|
||||
$(LIBTOOL_LINK) $(CXX) $(WLDFLAGS) $(LDFLAGS) -L../lib -L../findlib -o $@ $(SVROBJS) \
|
||||
- $(FDLIBS) $(ZLIBS) -lbacfind -lbaccfg -lbac -lm $(LIBS) \
|
||||
- $(DLIB) $(WRAPLIBS) $(GETTEXT_LIBS) $(OPENSSL_LIBS) $(CAP_LIBS) $(AFS_LIBS) $(LZO_LIBS)
|
||||
+ $(FDLIBS) $(ZLIBS) -lbacfind -lbaccfg -lbac -lm \
|
||||
+ $(DLIB) $(WRAPLIBS) $(GETTEXT_LIBS) $(OPENSSL_LIBS) $(LIBS) $(CAP_LIBS) $(AFS_LIBS) $(LZO_LIBS)
|
||||
|
||||
bfdjson: Makefile $(JSONOBJS) ../findlib/libbacfind$(DEFAULT_ARCHIVE_TYPE) ../lib/libbaccfg$(DEFAULT_ARCHIVE_TYPE) ../lib/libbac$(DEFAULT_ARCHIVE_TYPE) @WIN32@
|
||||
@echo "Linking $@ ..."
|
||||
$(LIBTOOL_LINK) $(CXX) $(WLDFLAGS) $(LDFLAGS) -L../lib -L../findlib -o $@ $(JSONOBJS) \
|
||||
- $(WIN32LIBS) $(FDLIBS) $(ZLIBS) -lbacfind -lbaccfg -lbac -lm $(LIBS) \
|
||||
- $(DLIB) $(WRAPLIBS) $(GETTEXT_LIBS) $(OPENSSL_LIBS) $(CAP_LIBS) $(AFS_LIBS) $(LZO_LIBS)
|
||||
+ $(WIN32LIBS) $(FDLIBS) $(ZLIBS) -lbacfind -lbaccfg -lbac -lm \
|
||||
+ $(DLIB) $(WRAPLIBS) $(GETTEXT_LIBS) $(OPENSSL_LIBS) $(LIBS) $(CAP_LIBS) $(AFS_LIBS) $(LZO_LIBS)
|
||||
|
||||
static-bacula-fd: Makefile $(SVROBJS) ../findlib/libbacfind.a ../lib/libbaccfg$(DEFAULT_ARCHIVE_TYPE) ../lib/libbac$(DEFAULT_ARCHIVE_TYPE)
|
||||
$(LIBTOOL_LINK) $(CXX) $(WLDFLAGS) $(LDFLAGS) -static -L../lib -L../findlib -o $@ $(SVROBJS) \
|
||||
- $(FDLIBS) $(ZLIBS) -lbacfind -lbaccfg -lbac -lm $(LIBS) \
|
||||
- $(DLIB) $(WRAPLIBS) $(GETTEXT_LIBS) $(OPENSSL_LIBS) $(CAP_LIBS) $(AFS_LIBS) $(LZO_LIBS)
|
||||
+ $(FDLIBS) $(ZLIBS) -lbacfind -lbaccfg -lbac -lm \
|
||||
+ $(DLIB) $(WRAPLIBS) $(GETTEXT_LIBS) $(OPENSSL_LIBS) $(LIBS) $(CAP_LIBS) $(AFS_LIBS) $(LZO_LIBS)
|
||||
strip $@
|
||||
|
||||
Makefile: $(srcdir)/Makefile.in $(topdir)/config.status
|
@ -0,0 +1,25 @@
|
||||
# If upgrading the old libraries gets linked first. So fix order of
|
||||
# lib search path.
|
||||
--- src/console/Makefile.in.orig 2017-07-26 15:03:07.000000000 +0200
|
||||
+++ src/console/Makefile.in 2017-07-23 18:31:57.000000000 +0200
|
||||
@@ -49,17 +49,17 @@
|
||||
|
||||
|
||||
bconsole: Makefile $(CONSOBJS) ../lib/libbac$(DEFAULT_ARCHIVE_TYPE) ../lib/libbaccfg$(DEFAULT_ARCHIVE_TYPE)
|
||||
- $(LIBTOOL_LINK) $(CXX) $(LDFLAGS) $(CONS_LDFLAGS) -L../lib -L../cats -o $@ $(CONSOBJS) \
|
||||
+ $(LIBTOOL_LINK) $(CXX) -L../lib -L../cats $(LDFLAGS) $(CONS_LDFLAGS) -o $@ $(CONSOBJS) \
|
||||
$(DLIB) $(CONS_LIBS) -lbaccfg -lbac -lm $(LIBS) $(GETTEXT_LIBS) \
|
||||
$(OPENSSL_LIBS)
|
||||
|
||||
bbconsjson: Makefile $(JSONOBJS) ../lib/libbac$(DEFAULT_ARCHIVE_TYPE) ../lib/libbaccfg$(DEFAULT_ARCHIVE_TYPE)
|
||||
- $(LIBTOOL_LINK) $(CXX) $(LDFLAGS) $(CONS_LDFLAGS) -L../lib -L../cats -o $@ $(JSONOBJS) \
|
||||
+ $(LIBTOOL_LINK) $(CXX) -L../lib -L../cats $(LDFLAGS) $(CONS_LDFLAGS) -o $@ $(JSONOBJS) \
|
||||
$(DLIB) $(CONS_LIBS) -lbaccfg -lbac -lm $(LIBS) $(GETTEXT_LIBS) \
|
||||
$(OPENSSL_LIBS)
|
||||
|
||||
static-bconsole: Makefile $(CONSOBJS) ../lib/libbac.a ../lib/libbaccfg$(DEFAULT_ARCHIVE_TYPE)
|
||||
- $(LIBTOOL_LINK) $(CXX) -static $(LDFLAGS) $(CONS_LDFLAGS) -L../lib -L../cats -o $@ $(CONSOBJS) \
|
||||
+ $(LIBTOOL_LINK) $(CXX) -static -L../lib -L../cats $(LDFLAGS) $(CONS_LDFLAGS) -o $@ $(CONSOBJS) \
|
||||
$(DLIB) $(CONS_LIBS) -lbaccfg -lbac -lm $(LIBS) $(GETTEXT_LIBS) \
|
||||
$(OPENSSL_LIBS)
|
||||
strip $@
|
@ -1,50 +0,0 @@
|
||||
# udev rules to set the access rights of CCID smart card readers
|
||||
# so they can be used by pcscd
|
||||
|
||||
# $Id: 92_pcscd_ccid.rules 6587 2013-04-05 16:31:55Z rousseau $
|
||||
|
||||
# Gemplus PCMCIA Card
|
||||
#SUBSYSTEMS=="pcmcia", DRIVERS=="serial_cs", ACTION=="add", ATTRS{prod_id1}=="Gemplus", ATTRS{prod_id2}=="SerialPort", ATTRS{prod_id3}=="GemPC Card", RUN+="/usr/sbin/pcscd --hotplug"
|
||||
|
||||
# If not adding the device, go away
|
||||
ACTION!="add", GOTO="pcscd_ccid_rules_end"
|
||||
SUBSYSTEM!="usb", GOTO="pcscd_ccid_rules_end"
|
||||
ENV{DEVTYPE}!="usb_device", GOTO="pcscd_ccid_rules_end"
|
||||
|
||||
# Kobil mIDentity
|
||||
ATTRS{idVendor}=="0d46", ATTRS{idProduct}=="4081", RUN+="/usr/sbin/Kobil_mIDentity_switch"
|
||||
|
||||
# generic CCID device (bInterfaceClass = 0x0b)
|
||||
# change group from default "root" to "pcscd"
|
||||
ENV{ID_USB_INTERFACES}=="*:0b0000:*", ENV{PCSCD}="1"
|
||||
|
||||
# set USB power management to auto. "power/level" has been deprecated in
|
||||
# Linux 2.6.35 and replaced by "power/control"
|
||||
ENV{ID_USB_INTERFACES}==":0b0000:", RUN+="/bin/sh -c 'echo auto > /sys/$devpath/power/level ; echo auto > /sys/$devpath/power/control'"
|
||||
|
||||
# non CCID generic (InterfaceClass: 0xFF)
|
||||
# CherrySmartTerminalST2XXX.txt
|
||||
ATTRS{idVendor}=="046a", ATTRS{idProduct}=="003e", ENV{PCSCD}="1"
|
||||
# DellSK-3106.txt
|
||||
ATTRS{idVendor}=="413c", ATTRS{idProduct}=="2100", ENV{PCSCD}="1"
|
||||
# MySmartPad.txt
|
||||
ATTRS{idVendor}=="09be", ATTRS{idProduct}=="0002", ENV{PCSCD}="1"
|
||||
# SCR3310-NTTCom USB SmartCard Reader
|
||||
ATTRS{idVendor}=="04e6", ATTRS{idProduct}=="511a", ENV{PCSCD}="1"
|
||||
# SCR331-DI USB Smart Card Reader
|
||||
ATTRS{idVendor}=="04e6", ATTRS{idProduct}=="5120", ENV{PCSCD}="1"
|
||||
# SCR331-DI.txt
|
||||
ATTRS{idVendor}=="04e6", ATTRS{idProduct}=="5111", ENV{PCSCD}="1"
|
||||
# SDI010.txt
|
||||
ATTRS{idVendor}=="04e6", ATTRS{idProduct}=="5121", ENV{PCSCD}="1"
|
||||
# SPR532.txt
|
||||
ATTRS{idVendor}=="04e6", ATTRS{idProduct}=="e003", ENV{PCSCD}="1"
|
||||
# Verisign_secure_storage_token.txt
|
||||
ATTRS{idVendor}=="08e6", ATTRS{idProduct}=="1359", ENV{PCSCD}="1"
|
||||
# Verisign_secure_token.txt
|
||||
ATTRS{idVendor}=="08e6", ATTRS{idProduct}=="ace0", ENV{PCSCD}="1"
|
||||
# SchlumbergerSema Cyberflex Access e-gate
|
||||
ATTRS{idVendor}=="0973", ATTRS{idProduct}=="0003", ENV{PCSCD}="1"
|
||||
|
||||
# All done
|
||||
LABEL="pcscd_ccid_rules_end"
|
@ -1,33 +0,0 @@
|
||||
From cf3778631f87ad03274ac94dcae7c7fbbd036913 Mon Sep 17 00:00:00 2001
|
||||
From: Kristian Fiskerstrand <kf@sumptuouscapital.com>
|
||||
Date: Tue, 22 Nov 2016 10:07:33 +0100
|
||||
Subject: [PATCH] gpgscm: Use shorter socket path lengts to improve test
|
||||
reliability
|
||||
|
||||
--
|
||||
As socket lengths are normally restricted to 108 characters
|
||||
(UNIX_PATH_MAX variable in /usr/include/linux/un.h), using 42 characters
|
||||
by default easily results in errors.
|
||||
---
|
||||
tests/gpgscm/tests.scm | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/tests/gpgscm/tests.scm b/tests/gpgscm/tests.scm
|
||||
index 72afa99..039ea86 100644
|
||||
--- a/tests/gpgscm/tests.scm
|
||||
+++ b/tests/gpgscm/tests.scm
|
||||
@@ -268,9 +268,9 @@
|
||||
(define (mkdtemp . components)
|
||||
(_mkdtemp (if (null? components)
|
||||
(path-join (getenv "TMP")
|
||||
- (string-append "gpgscm-" (get-isotime) "-"
|
||||
+ (string-append "gscm"
|
||||
(basename-suffix *scriptname* ".scm")
|
||||
- "-XXXXXX"))
|
||||
+ "XXXXXX"))
|
||||
(apply path-join components))))
|
||||
|
||||
(macro (with-temporary-working-directory form)
|
||||
--
|
||||
2.7.3
|
||||
|
@ -1,56 +0,0 @@
|
||||
https://lists.gnupg.org/pipermail/gnupg-devel/2017-March/032668.html
|
||||
|
||||
From c22a2a89d3bd3d08b3abb8e4e33df32b480338ec Mon Sep 17 00:00:00 2001
|
||||
From: Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
|
||||
Date: Tue, 7 Mar 2017 13:54:49 +0100
|
||||
Subject: [PATCH] gpgscm: Use system strlwr if available.
|
||||
|
||||
* tests/gpgscm/scheme.c: Define local strlwr only when HAVE_STRLWR is
|
||||
not defined in config.h.
|
||||
* tests/gpgscm/scheme-config.h: Remove hack.
|
||||
|
||||
Signed-off-by: Justus Winter <justus@g10code.com>
|
||||
---
|
||||
tests/gpgscm/scheme-config.h | 4 ----
|
||||
tests/gpgscm/scheme.c | 6 +++++-
|
||||
2 files changed, 5 insertions(+), 5 deletions(-)
|
||||
|
||||
diff --git a/tests/gpgscm/scheme-config.h b/tests/gpgscm/scheme-config.h
|
||||
index 2003498..15ca969 100644
|
||||
--- a/tests/gpgscm/scheme-config.h
|
||||
+++ b/tests/gpgscm/scheme-config.h
|
||||
@@ -30,7 +30,3 @@
|
||||
#define USE_PLIST 0
|
||||
#define USE_INTERFACE 1
|
||||
#define SHOW_ERROR_LINE 1
|
||||
-
|
||||
-#if __MINGW32__
|
||||
-# define USE_STRLWR 0
|
||||
-#endif /* __MINGW32__ */
|
||||
diff --git a/tests/gpgscm/scheme.c b/tests/gpgscm/scheme.c
|
||||
index b2ff721..af97c27 100644
|
||||
--- a/tests/gpgscm/scheme.c
|
||||
+++ b/tests/gpgscm/scheme.c
|
||||
@@ -12,6 +12,10 @@
|
||||
*
|
||||
*/
|
||||
|
||||
+#ifdef HAVE_CONFIG_H
|
||||
+# include <config.h>
|
||||
+#endif
|
||||
+
|
||||
#define _SCHEME_SOURCE
|
||||
#include "scheme-private.h"
|
||||
#ifndef WIN32
|
||||
@@ -88,7 +92,7 @@ static int stricmp(const char *s1, const char *s2)
|
||||
}
|
||||
#endif /* __APPLE__ */
|
||||
|
||||
-#if USE_STRLWR
|
||||
+#if USE_STRLWR && !defined(HAVE_STRLWR)
|
||||
static const char *strlwr(char *s) {
|
||||
const char *p=s;
|
||||
while(*s) {
|
||||
--
|
||||
2.10.2
|
||||
|
@ -1,19 +0,0 @@
|
||||
command-ssh: include ucred.h
|
||||
|
||||
In order to use ucred() when HAVE_SO_PEERCRED is defined, ucred.h needs
|
||||
to be included on Solaris.
|
||||
|
||||
https://bugs.gnupg.org/gnupg/issue2981
|
||||
|
||||
--- a/agent/command-ssh.c
|
||||
+++ b/agent/command-ssh.c
|
||||
@@ -40,6 +40,9 @@
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#include <assert.h>
|
||||
+#ifdef HAVE_UCRED_H
|
||||
+#include <ucred.h>
|
||||
+#endif
|
||||
|
||||
#include "agent.h"
|
||||
|
@ -1,85 +0,0 @@
|
||||
From 4ce4f2f683a17be3ddb93729f3f25014a97934ad Mon Sep 17 00:00:00 2001
|
||||
From: NIIBE Yutaka <gniibe@fsij.org>
|
||||
Date: Mon, 6 Mar 2017 10:26:11 +0900
|
||||
Subject: [PATCH 1/1] agent: For SSH, robustly handling scdaemon's errors.
|
||||
|
||||
* agent/command-ssh.c (card_key_list): Return 0 when
|
||||
agent_card_serialno returns an error.
|
||||
(ssh_handler_request_identities): Handle errors for card listing
|
||||
and proceed to other cases.
|
||||
--
|
||||
|
||||
GnuPG-bug-id: 2980
|
||||
|
||||
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
|
||||
---
|
||||
agent/command-ssh.c | 19 +++++++++----------
|
||||
1 file changed, 9 insertions(+), 10 deletions(-)
|
||||
|
||||
diff --git a/agent/command-ssh.c b/agent/command-ssh.c
|
||||
index 79b8f85..3ab41cf 100644
|
||||
--- a/agent/command-ssh.c
|
||||
+++ b/agent/command-ssh.c
|
||||
@@ -2393,13 +2393,12 @@ card_key_list (ctrl_t ctrl, char **r_serialno, strlist_t *result)
|
||||
err = agent_card_serialno (ctrl, r_serialno, NULL);
|
||||
if (err)
|
||||
{
|
||||
- if (gpg_err_code (err) == GPG_ERR_ENODEV)
|
||||
- return 0; /* Nothing available. */
|
||||
-
|
||||
- if (opt.verbose)
|
||||
+ if (gpg_err_code (err) != GPG_ERR_ENODEV && opt.verbose)
|
||||
log_info (_("error getting serial number of card: %s\n"),
|
||||
gpg_strerror (err));
|
||||
- return err;
|
||||
+
|
||||
+ /* Nothing available. */
|
||||
+ return 0;
|
||||
}
|
||||
|
||||
err = agent_card_cardlist (ctrl, result);
|
||||
@@ -2568,7 +2567,6 @@ ssh_handler_request_identities (ctrl_t ctrl,
|
||||
gpg_error_t err;
|
||||
int ret;
|
||||
ssh_control_file_t cf = NULL;
|
||||
- char *cardsn;
|
||||
gpg_error_t ret_err;
|
||||
|
||||
(void)request;
|
||||
@@ -2601,21 +2599,21 @@ ssh_handler_request_identities (ctrl_t ctrl,
|
||||
if (opt.verbose)
|
||||
log_info (_("error getting list of cards: %s\n"),
|
||||
gpg_strerror (err));
|
||||
- goto out;
|
||||
+ goto scd_out;
|
||||
}
|
||||
|
||||
for (sl = card_list; sl; sl = sl->next)
|
||||
{
|
||||
char *serialno0;
|
||||
+ char *cardsn;
|
||||
+
|
||||
err = agent_card_serialno (ctrl, &serialno0, sl->d);
|
||||
if (err)
|
||||
{
|
||||
if (opt.verbose)
|
||||
log_info (_("error getting serial number of card: %s\n"),
|
||||
gpg_strerror (err));
|
||||
- xfree (serialno);
|
||||
- free_strlist (card_list);
|
||||
- goto out;
|
||||
+ continue;
|
||||
}
|
||||
|
||||
xfree (serialno0);
|
||||
@@ -2640,6 +2638,7 @@ ssh_handler_request_identities (ctrl_t ctrl,
|
||||
free_strlist (card_list);
|
||||
}
|
||||
|
||||
+ scd_out:
|
||||
/* Then look at all the registered and non-disabled keys. */
|
||||
err = open_control_file (&cf, 0);
|
||||
if (err)
|
||||
--
|
||||
2.8.0.rc3
|
||||
|
@ -1,118 +0,0 @@
|
||||
diff -ur mhash-0.9.9.orig/lib/stdfns.c mhash-0.9.9/lib/stdfns.c
|
||||
--- mhash-0.9.9.orig/lib/stdfns.c Wed Apr 4 21:18:42 2007
|
||||
+++ mhash-0.9.9/lib/stdfns.c Mon May 28 16:08:38 2007
|
||||
@@ -152,12 +152,23 @@
|
||||
}
|
||||
}
|
||||
|
||||
+static void
|
||||
+mutils_memset8(void *s, __const mutils_word8 c, __const mutils_word32 n)
|
||||
+{
|
||||
+ mutils_word8 *stmp = s;
|
||||
+ mutils_word32 i;
|
||||
+
|
||||
+ for (i = 0; i < n; i++, stmp++)
|
||||
+ {
|
||||
+ *stmp = c;
|
||||
+ }
|
||||
+}
|
||||
+
|
||||
WIN32DLL_DEFINE
|
||||
void
|
||||
mutils_memset(void *s, __const mutils_word8 c, __const mutils_word32 n)
|
||||
{
|
||||
- mutils_word8 *stmp;
|
||||
- mutils_word32 *ltmp = (mutils_word32 *) s;
|
||||
+ mutils_word32 *ltmp;
|
||||
mutils_word32 lump;
|
||||
mutils_word32 i;
|
||||
mutils_word32 words;
|
||||
@@ -168,10 +179,22 @@
|
||||
return;
|
||||
}
|
||||
|
||||
+ if (n < 16)
|
||||
+ {
|
||||
+ return mutils_memset8(s, c, n);
|
||||
+ }
|
||||
+
|
||||
+ /* unaligned portion at beginning */
|
||||
+ remainder = (-(mutils_word32)s) & 0x3;
|
||||
+ mutils_memset8(s, c, remainder);
|
||||
+
|
||||
+ /* aligned words in the middle */
|
||||
+ ltmp = (mutils_word32 *) (s + remainder);
|
||||
+
|
||||
lump = (c << 24) + (c << 16) + (c << 8) + c;
|
||||
|
||||
- words = n >> 2;
|
||||
- remainder = n - (words << 2);
|
||||
+ words = (n - remainder) >> 2;
|
||||
+ remainder = n - remainder - (words << 2);
|
||||
|
||||
for (i = 0; i < words; i++, ltmp++)
|
||||
{
|
||||
@@ -178,12 +201,8 @@
|
||||
*ltmp = lump;
|
||||
}
|
||||
|
||||
- stmp = (mutils_word8 *) ltmp;
|
||||
-
|
||||
- for (i = 0; i < remainder; i++, stmp++)
|
||||
- {
|
||||
- *stmp = c;
|
||||
- }
|
||||
+ /* unaligned portion at end */
|
||||
+ return mutils_memset8(ltmp, c, remainder);
|
||||
}
|
||||
|
||||
static void
|
||||
@@ -275,6 +294,9 @@
|
||||
mutils_word32 *buffer;
|
||||
mutils_word32 *ptrIn;
|
||||
mutils_word32 *ptrOut;
|
||||
+ mutils_word8 *ptr8In;
|
||||
+ mutils_word8 *ptr8Out;
|
||||
+ mutils_word8 tmp8;
|
||||
mutils_word32 count = n * 4;
|
||||
|
||||
if (destructive == MUTILS_FALSE)
|
||||
@@ -295,10 +317,36 @@
|
||||
* data on a little-endian machine.
|
||||
*/
|
||||
|
||||
- for (loop = 0, ptrIn = x, ptrOut = buffer; loop < n; loop++, ptrOut++, ptrIn++)
|
||||
+ if ((mutils_word32)x & 0x3)
|
||||
{
|
||||
- *ptrOut = mutils_lend32(*ptrIn);
|
||||
+ ptr8In = (mutils_word8 *) x;
|
||||
+ ptr8Out = (mutils_word8 *) buffer;
|
||||
+ for (loop = 0; loop < n; loop++)
|
||||
+ {
|
||||
+#ifdef WORDS_BIGENDIAN
|
||||
+ tmp8 = ptr8In[0];
|
||||
+ ptr8Out[0] = ptr8In[3];
|
||||
+ ptr8Out[3] = tmp8;
|
||||
+ tmp8 = ptr8In[1];
|
||||
+ ptr8Out[1] = ptr8In[2];
|
||||
+ ptr8Out[2] = tmp8;
|
||||
+#else
|
||||
+ ptr8Out[0] = ptr8In[0];
|
||||
+ ptr8Out[1] = ptr8In[1];
|
||||
+ ptr8Out[2] = ptr8In[2];
|
||||
+ ptr8Out[3] = ptr8In[3];
|
||||
+#endif
|
||||
+ ptr8Out += 4;
|
||||
+ ptr8In += 4;
|
||||
+ }
|
||||
}
|
||||
+ else
|
||||
+ {
|
||||
+ for (loop = 0, ptrIn = x, ptrOut = buffer; loop < n; loop++, ptrOut++, ptrIn++)
|
||||
+ {
|
||||
+ *ptrOut = mutils_lend32(*ptrIn);
|
||||
+ }
|
||||
+ }
|
||||
|
||||
return(buffer);
|
||||
}
|
@ -1,18 +0,0 @@
|
||||
--- gpgwrap/src/Makefile 2010-02-11 13:26:29.000000000 -0500
|
||||
+++ gpgwrap/src/Makefile.new 2010-10-15 18:16:49.000000000 -0400
|
||||
@@ -1,5 +1,4 @@
|
||||
CC=${DIET} gcc -s -Wall -O2 -fomit-frame-pointer
|
||||
-STRIP=strip -R .note -R .comment
|
||||
RM=rm -f
|
||||
TARGET=../bin/gpgwrap
|
||||
|
||||
@@ -8,8 +7,7 @@
|
||||
all: ${TARGET}
|
||||
|
||||
${TARGET}: gpgwrap.c
|
||||
- ${CC} -o ${TARGET} gpgwrap.c
|
||||
- ${STRIP} ${TARGET} 2>/dev/null || true
|
||||
+ ${CC} -o ${TARGET} ${CFLAGS} ${LDFLAGS} gpgwrap.c
|
||||
|
||||
clean:
|
||||
${RM} ${TARGET}
|
@ -1,124 +0,0 @@
|
||||
From ca758f29c89d87581b244c652f7a14c8306cc994 Mon Sep 17 00:00:00 2001
|
||||
From: Alon Bar-Lev <alon.barlev@gmail.com>
|
||||
Date: Wed, 7 Jan 2015 14:43:37 +0200
|
||||
Subject: [PATCH] Add more EC conditionals
|
||||
|
||||
Upstream bug:
|
||||
https://sourceforge.net/p/xca/patches/16/
|
||||
|
||||
---
|
||||
lib/pki_scard.cpp | 12 ++++++++++++
|
||||
widgets/MW_help.cpp | 2 +-
|
||||
widgets/NewKey.cpp | 2 +-
|
||||
3 files changed, 14 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/lib/pki_scard.cpp b/lib/pki_scard.cpp
|
||||
index 444c81d..547c932 100644
|
||||
--- a/lib/pki_scard.cpp
|
||||
+++ b/lib/pki_scard.cpp
|
||||
@@ -237,7 +237,9 @@ pk11_attlist pki_scard::objectAttributesNoId(EVP_PKEY *pk, bool priv) const
|
||||
QByteArray ba;
|
||||
RSA *rsa = pk->pkey.rsa;
|
||||
DSA *dsa = pk->pkey.dsa;
|
||||
+#ifndef OPENSSL_NO_EC
|
||||
EC_KEY *ec = pk->pkey.ec;
|
||||
+#endif
|
||||
|
||||
pk11_attlist attrs(pk11_attr_ulong(CKA_CLASS,
|
||||
priv ? CKO_PRIVATE_KEY : CKO_PUBLIC_KEY));
|
||||
@@ -254,6 +256,7 @@ pk11_attlist pki_scard::objectAttributesNoId(EVP_PKEY *pk, bool priv) const
|
||||
pk11_attr_data(CKA_SUBPRIME, dsa->q, false) <<
|
||||
pk11_attr_data(CKA_BASE, dsa->g, false);
|
||||
break;
|
||||
+#ifndef OPENSSL_NO_EC
|
||||
case EVP_PKEY_EC:
|
||||
ba = i2d_bytearray(I2D_VOID(i2d_ECPKParameters),
|
||||
EC_KEY_get0_group(ec));
|
||||
@@ -261,6 +264,7 @@ pk11_attlist pki_scard::objectAttributesNoId(EVP_PKEY *pk, bool priv) const
|
||||
attrs << pk11_attr_ulong(CKA_KEY_TYPE, CKK_EC) <<
|
||||
pk11_attr_data(CKA_EC_PARAMS, ba);
|
||||
break;
|
||||
+#endif
|
||||
default:
|
||||
throw errorEx(QString("Unkown Keytype %d").arg(pk->type));
|
||||
|
||||
@@ -330,7 +334,9 @@ void pki_scard::store_token(slotid slot, EVP_PKEY *pkey)
|
||||
QByteArray ba;
|
||||
RSA *rsa = pkey->pkey.rsa;
|
||||
DSA *dsa = pkey->pkey.dsa;
|
||||
+#ifndef OPENSSL_NO_EC
|
||||
EC_KEY *ec = pkey->pkey.ec;
|
||||
+#endif
|
||||
pk11_attlist pub_atts;
|
||||
pk11_attlist priv_atts;
|
||||
QList<CK_OBJECT_HANDLE> objects;
|
||||
@@ -381,6 +387,7 @@ void pki_scard::store_token(slotid slot, EVP_PKEY *pkey)
|
||||
priv_atts << pk11_attr_data(CKA_VALUE, dsa->priv_key, false);
|
||||
pub_atts << pk11_attr_data(CKA_VALUE, dsa->pub_key, false);
|
||||
break;
|
||||
+#ifndef OPENSSL_NO_EC
|
||||
case EVP_PKEY_EC: {
|
||||
/* Public Key */
|
||||
BIGNUM *point;
|
||||
@@ -410,6 +417,7 @@ void pki_scard::store_token(slotid slot, EVP_PKEY *pkey)
|
||||
EC_KEY_get0_private_key(ec));
|
||||
break;
|
||||
}
|
||||
+#endif
|
||||
default:
|
||||
throw errorEx(QString("Unkown Keytype %d").arg(pkey->type));
|
||||
|
||||
@@ -459,11 +467,13 @@ QList<int> pki_scard::possibleHashNids()
|
||||
case CKM_DSA_SHA1: nids << NID_sha1; break;
|
||||
}
|
||||
break;
|
||||
+#ifndef OPENSSL_NO_EC
|
||||
case EVP_PKEY_EC:
|
||||
switch (mechanism) {
|
||||
case CKM_ECDSA_SHA1: nids << NID_sha1; break;
|
||||
}
|
||||
break;
|
||||
+#endif
|
||||
}
|
||||
}
|
||||
if (nids.count() == 0) {
|
||||
@@ -473,7 +483,9 @@ QList<int> pki_scard::possibleHashNids()
|
||||
NID_sha384 << NID_sha512 << NID_ripemd160;
|
||||
break;
|
||||
case EVP_PKEY_DSA:
|
||||
+#ifndef OPENSSL_NO_EC
|
||||
case EVP_PKEY_EC:
|
||||
+#endif
|
||||
nids << NID_sha1;
|
||||
break;
|
||||
}
|
||||
diff --git a/widgets/MW_help.cpp b/widgets/MW_help.cpp
|
||||
index 67faa2a..c13c309 100644
|
||||
--- a/widgets/MW_help.cpp
|
||||
+++ b/widgets/MW_help.cpp
|
||||
@@ -65,7 +65,7 @@ void MainWindow::about()
|
||||
}
|
||||
#endif
|
||||
#else
|
||||
- brainpool = "(Elliptic Curve Cryptography support disabled)"
|
||||
+ brainpool = "(Elliptic Curve Cryptography support disabled)";
|
||||
#endif
|
||||
openssl = SSLeay_version(SSLEAY_VERSION);
|
||||
qt = qVersion();
|
||||
diff --git a/widgets/NewKey.cpp b/widgets/NewKey.cpp
|
||||
index 824456d..0dba2c2 100644
|
||||
--- a/widgets/NewKey.cpp
|
||||
+++ b/widgets/NewKey.cpp
|
||||
@@ -79,8 +79,8 @@ class keyListItem
|
||||
*/
|
||||
ec_flags = CKF_EC_F_P | CKF_EC_F_2M;
|
||||
}
|
||||
- }
|
||||
#endif
|
||||
+ }
|
||||
printname = QString("%1 #%2 (%3 Key of %4 - %5 bits)").
|
||||
arg(ti.label()).arg(ti.serial()).
|
||||
arg(tl->name).
|
||||
--
|
||||
2.0.5
|
||||
|
@ -0,0 +1,16 @@
|
||||
--- /src/github.com/lxc/lxd/Makefile.orig 2016-07-11 23:34:40.299664675 +0000
|
||||
+++ /src/github.com/lxc/lxd/Makefile 2016-07-11 23:37:00.816018727 +0000
|
||||
@@ -13,13 +13,11 @@
|
||||
|
||||
.PHONY: default
|
||||
default:
|
||||
- go get -t -v -d ./...
|
||||
go install -v $(TAGS) $(DEBUG) ./...
|
||||
@echo "LXD built successfully"
|
||||
|
||||
.PHONY: client
|
||||
client:
|
||||
- go get -t -v -d ./...
|
||||
go install -v $(TAGS) $(DEBUG) ./lxc
|
||||
@echo "LXD client built successfully"
|
||||
|
@ -0,0 +1,27 @@
|
||||
# Group which owns the shared socket
|
||||
LXD_OPTIONS+=" --group lxd"
|
||||
|
||||
|
||||
|
||||
# Enable cpu profiling into the specified file
|
||||
#LXD_OPTIONS+=" --cpuprofile /tmp/lxc_cpu_profile"
|
||||
|
||||
# Enable memory profiling into the specified file
|
||||
#LXD_OPTIONS+=" --memprofile /tmp/lxc_mem_profile"
|
||||
|
||||
|
||||
|
||||
# Enables debug mode
|
||||
#LXD_OPTIONS+=" --debug"
|
||||
|
||||
# For debugging, print a complete stack trace every n seconds
|
||||
#LXD_OPTIONS+=" --print-goroutines-every 5"
|
||||
|
||||
# Enables verbose mode
|
||||
#LXD_OPTIONS+=" -v"
|
||||
|
||||
# Logfile to log to
|
||||
#LXD_OPTIONS+=" --logfile /var/log/lxd/lxd.log"
|
||||
|
||||
# Enables syslog logging
|
||||
#LXD_OPTIONS+=" --syslog"
|
@ -0,0 +1,46 @@
|
||||
#!/sbin/openrc-run
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
DAEMON=/usr/sbin/lxd
|
||||
PIDFILE=/run/lxd.pid
|
||||
|
||||
extra_commands="stopall"
|
||||
|
||||
depend() {
|
||||
need net
|
||||
use lxcfs
|
||||
}
|
||||
|
||||
start() {
|
||||
ebegin "Starting lxd server"
|
||||
|
||||
start-stop-daemon --start \
|
||||
--pidfile ${PIDFILE} \
|
||||
--exec ${DAEMON} \
|
||||
--background \
|
||||
--make-pidfile \
|
||||
-- \
|
||||
${LXD_OPTIONS}
|
||||
|
||||
eend $?
|
||||
}
|
||||
|
||||
stop() {
|
||||
if [ "$RC_GOINGDOWN" = "YES" ] || [ "$RC_REBOOT" = "YES" ]; then
|
||||
stopall
|
||||
else
|
||||
ebegin "Stopping lxd service (but not containers)"
|
||||
start-stop-daemon --stop --quiet -R TERM/45 -p ${PIDFILE}
|
||||
eend $?
|
||||
fi
|
||||
}
|
||||
|
||||
stopall() {
|
||||
ebegin "Stopping lxd service and containers"
|
||||
if "${DAEMON}" shutdown; then
|
||||
/etc/init.d/lxd zap
|
||||
rm -f ${PIDFILE}
|
||||
fi
|
||||
eend $?
|
||||
}
|
@ -0,0 +1,10 @@
|
||||
[Unit]
|
||||
Description=Container hypervisor based on LXC
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/sbin/lxd --group lxd
|
||||
KillMode=process
|
||||
Restart=on-failure
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
@ -0,0 +1,222 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
DESCRIPTION="Fast, dense and secure container management"
|
||||
HOMEPAGE="https://linuxcontainers.org/lxd/introduction/"
|
||||
EGO_PN_PARENT="github.com/lxc"
|
||||
EGO_PN="${EGO_PN_PARENT}/lxd"
|
||||
|
||||
# Maintained with https://github.com/hsoft/gentoo-ego-vendor-update
|
||||
EGO_VENDOR=(
|
||||
"github.com/dustinkirkland/golang-petname 1f4996aa8aa05ee066aaf9e3179d340b48c6da74"
|
||||
"github.com/golang/protobuf ab9f9a6dab164b7d1246e0e688b0ab7b94d8553e"
|
||||
"github.com/gorilla/mux ac112f7d75a0714af1bd86ab17749b31f7809640"
|
||||
"github.com/gorilla/websocket a69d9f6de432e2c6b296a947d8a5ee88f68522cf"
|
||||
"github.com/gosexy/gettext 74466a0a0c4a62fea38f44aa161d4bbfbe79dd6b"
|
||||
"github.com/jessevdk/go-flags 6cf8f02b4ae8ba723ddc64dcfd403e530c06d927"
|
||||
"github.com/mattn/go-colorable ad5389df28cdac544c99bd7b9161a0b5b6ca9d1b"
|
||||
"github.com/mattn/go-runewidth 97311d9f7767e3d6f422ea06661bc2c7a19e8a5d"
|
||||
"github.com/mattn/go-sqlite3 6654e412c3c7eabb310d920cf73a2102dbf8c632"
|
||||
"github.com/olekukonko/tablewriter be5337e7b39e64e5f91445ce7e721888dbab7387"
|
||||
"github.com/pborman/uuid e790cca94e6cc75c7064b1332e63811d4aae1a53"
|
||||
"github.com/stretchr/testify 890a5c3458b43e6104ff5da8dfa139d013d77544"
|
||||
"github.com/syndtr/gocapability db04d3cc01c8b54962a58ec7e491717d06cfcc16"
|
||||
"github.com/go-stack/stack 817915b46b97fd7bb80e8ab6b69f01a53ac3eebf"
|
||||
"github.com/mattn/go-isatty fc9e8d8ef48496124e79ae0df75490096eccf6fe"
|
||||
"github.com/juju/errors c7d06af17c68cd34c835053720b21f6549d9b0ee"
|
||||
"golang.org/x/crypto b176d7def5d71bdd214203491f89843ed217f420 github.com/golang/crypto"
|
||||
"golang.org/x/net 1c05540f6879653db88113bc4a2b70aec4bd491f github.com/golang/net"
|
||||
"golang.org/x/sync f52d1811a62927559de87708c8913c1650ce4f26 github.com/golang/sync"
|
||||
"golang.org/x/text e56139fd9c5bc7244c76116c68e500765bb6db6b github.com/golang/text"
|
||||
"golang.org/x/tools 84a35ef54dff3c5596983e180ec10919fc432242 github.com/golang/tools"
|
||||
"golang.org/x/sys 9f7170bcd8e9f4d3691c06401119c46a769a1e03 github.com/golang/sys"
|
||||
"gopkg.in/check.v1 20d25e2804050c1cd24a7eea1e7a6447dd0e74ec github.com/go-check/check"
|
||||
"gopkg.in/flosch/pongo2.v3 5e81b817a0c48c1c57cdf1a9056cf76bdee02ca9 github.com/flosch/pongo2"
|
||||
"gopkg.in/inconshreveable/log15.v2 b105bd37f74e5d9dc7b6ad7806715c7a2b83fd3f github.com/inconshreveable/log15"
|
||||
"gopkg.in/lxc/go-lxc.v2 1a2cf29ce27f74298fe70acbf817ca2f46cf7457 github.com/lxc/go-lxc"
|
||||
"gopkg.in/tomb.v2 d5d1b5820637886def9eef33e03a27a9f166942c github.com/go-tomb/tomb"
|
||||
"gopkg.in/yaml.v2 eb3733d160e74a9c7e442f435eb3bea458e1d19f github.com/go-yaml/yaml"
|
||||
)
|
||||
|
||||
ARCHIVE_URI="https://${EGO_PN}/archive/${P}.tar.gz -> ${P}.tar.gz"
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
# Portage complains about zh_Hans missing, but repoman doesn't like it when it's there.
|
||||
PLOCALES="de el fr it ja nl ru sr sv tr zh"
|
||||
IUSE="+daemon nls test"
|
||||
|
||||
# IUSE and PLOCALES must be defined before l10n inherited
|
||||
inherit bash-completion-r1 golang-build l10n linux-info systemd user golang-vcs-snapshot
|
||||
|
||||
SRC_URI="${ARCHIVE_URI}
|
||||
${EGO_VENDOR_URI}"
|
||||
|
||||
DEPEND="
|
||||
>=dev-lang/go-1.7.1
|
||||
dev-libs/protobuf
|
||||
nls? ( sys-devel/gettext )
|
||||
test? (
|
||||
app-misc/jq
|
||||
dev-db/sqlite
|
||||
net-misc/curl
|
||||
sys-devel/gettext
|
||||
)
|
||||
"
|
||||
|
||||
RDEPEND="
|
||||
daemon? (
|
||||
app-arch/xz-utils
|
||||
>=app-emulation/lxc-2.0.7[seccomp]
|
||||
net-dns/dnsmasq[dhcp,ipv6]
|
||||
net-misc/rsync[xattr]
|
||||
sys-apps/iproute2[ipv6]
|
||||
sys-fs/squashfs-tools
|
||||
virtual/acl
|
||||
)
|
||||
"
|
||||
|
||||
CONFIG_CHECK="
|
||||
~BRIDGE
|
||||
~DUMMY
|
||||
~IP6_NF_NAT
|
||||
~IP6_NF_TARGET_MASQUERADE
|
||||
~IPV6
|
||||
~IP_NF_NAT
|
||||
~IP_NF_TARGET_MASQUERADE
|
||||
~MACVLAN
|
||||
~NETFILTER_XT_MATCH_COMMENT
|
||||
~NET_IPGRE
|
||||
~NET_IPGRE_DEMUX
|
||||
~NET_IPIP
|
||||
~NF_NAT_MASQUERADE_IPV4
|
||||
~NF_NAT_MASQUERADE_IPV6
|
||||
~VXLAN
|
||||
"
|
||||
|
||||
ERROR_BRIDGE="BRIDGE: needed for network commands"
|
||||
ERROR_DUMMY="DUMMY: needed for network commands"
|
||||
ERROR_IP6_NF_NAT="IP6_NF_NAT: needed for network commands"
|
||||
ERROR_IP6_NF_TARGET_MASQUERADE="IP6_NF_TARGET_MASQUERADE: needed for network commands"
|
||||
ERROR_IPV6="IPV6: needed for network commands"
|
||||
ERROR_IP_NF_NAT="IP_NF_NAT: needed for network commands"
|
||||
ERROR_IP_NF_TARGET_MASQUERADE="IP_NF_TARGET_MASQUERADE: needed for network commands"
|
||||
ERROR_MACVLAN="MACVLAN: needed for network commands"
|
||||
ERROR_NETFILTER_XT_MATCH_COMMENT="NETFILTER_XT_MATCH_COMMENT: needed for network commands"
|
||||
ERROR_NET_IPGRE="NET_IPGRE: needed for network commands"
|
||||
ERROR_NET_IPGRE_DEMUX="NET_IPGRE_DEMUX: needed for network commands"
|
||||
ERROR_NET_IPIP="NET_IPIP: needed for network commands"
|
||||
ERROR_NF_NAT_MASQUERADE_IPV4="NF_NAT_MASQUERADE_IPV4: needed for network commands"
|
||||
ERROR_NF_NAT_MASQUERADE_IPV6="NF_NAT_MASQUERADE_IPV6: needed for network commands"
|
||||
ERROR_VXLAN="VXLAN: needed for network commands"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${P}-dont-go-get.patch"
|
||||
)
|
||||
|
||||
# KNOWN ISSUES:
|
||||
# - Translations may not work. I've been unsuccessful in forcing
|
||||
# localized output. Anyway, upstream (Canonical) doesn't install the
|
||||
# message files.
|
||||
|
||||
src_prepare() {
|
||||
default_src_prepare
|
||||
|
||||
# Warn on unhandled locale changes
|
||||
l10n_find_plocales_changes "${S}/src/${EGO_PN}/po" "" .po
|
||||
|
||||
# Examples in go-lxc make our build fail.
|
||||
rm -rf "${S}/src/${EGO_PN}/vendor/gopkg.in/lxc/go-lxc.v2/examples" || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
export GOPATH="${S}"
|
||||
|
||||
cd "${S}/src/${EGO_PN}" || die "Failed to change to deep src dir"
|
||||
|
||||
tmpgoroot="${T}/goroot"
|
||||
if use daemon; then
|
||||
# Build binaries
|
||||
emake
|
||||
else
|
||||
# build client tool
|
||||
emake client
|
||||
fi
|
||||
|
||||
use nls && emake build-mo
|
||||
}
|
||||
|
||||
src_test() {
|
||||
if use daemon; then
|
||||
# Go native tests should succeed
|
||||
golang-build_src_test
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# Installs all src,pkg to /usr/lib/go-gentoo
|
||||
golang-build_src_install
|
||||
|
||||
cd "${S}" || die "can't cd into ${S}"
|
||||
dobin bin/lxc
|
||||
if use daemon; then
|
||||
dosbin bin/lxd
|
||||
dobin bin/fuidshift
|
||||
fi
|
||||
|
||||
cd "src/${EGO_PN}" || die "can't cd into ${S}/src/${EGO_PN}"
|
||||
|
||||
if use nls; then
|
||||
local lingua
|
||||
for lingua in ${PLOCALES}; do
|
||||
if use linguas_${lingua}; then
|
||||
domo po/${lingua}.mo
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
if use daemon; then
|
||||
newinitd "${FILESDIR}"/${P}.initd lxd
|
||||
newconfd "${FILESDIR}"/${P}.confd lxd
|
||||
|
||||
systemd_newunit "${FILESDIR}"/${P}.service ${PN}.service
|
||||
fi
|
||||
|
||||
newbashcomp config/bash/lxd-client lxc
|
||||
|
||||
dodoc AUTHORS CONTRIBUTING.md README.md doc/*
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
einfo
|
||||
einfo "Consult https://wiki.gentoo.org/wiki/LXD for more information,"
|
||||
einfo "including a Quick Start."
|
||||
|
||||
# The messaging below only applies to daemon installs
|
||||
use daemon || return 0
|
||||
|
||||
# The control socket will be owned by (and writeable by) this group.
|
||||
enewgroup lxd
|
||||
|
||||
# Ubuntu also defines an lxd user but it appears unused (the daemon
|
||||
# must run as root)
|
||||
|
||||
einfo
|
||||
einfo "Though not strictly required, some features are enabled at run-time"
|
||||
einfo "when the relevant helper programs are detected:"
|
||||
einfo "- sys-apps/apparmor"
|
||||
einfo "- sys-fs/btrfs-progs"
|
||||
einfo "- sys-fs/lvm2"
|
||||
einfo "- sys-fs/lxcfs"
|
||||
einfo "- sys-fs/zfs"
|
||||
einfo "- sys-process/criu"
|
||||
einfo
|
||||
einfo "Since these features can't be disabled at build-time they are"
|
||||
einfo "not USE-conditional."
|
||||
einfo
|
||||
einfo "Networks with bridge.mode=fan are unsupported due to requiring"
|
||||
einfo "a patched kernel and iproute2."
|
||||
}
|
@ -1,7 +1,9 @@
|
||||
DIST virt-what-1.12.tar.gz 147144 SHA256 2592082f5b2caa93d3967b7c275a3afabfe49de9f051fdf0da6ded59e2c11b1c SHA512 629e452419a01b86cd5442c4294b5aea6fc475522d7a350ac8e727b59e63948915c755fe6cae16f7824749059662bb0fbd4557a2aa56c098b407037a35881735 WHIRLPOOL a3f9a519c183950a766fe407f8e814a131e2586d738fa0fdbf341d0755bbf726e58da9cde594a8b7c32b9c27094c442ff95b6d3e5adaf92b57d96710383453d3
|
||||
DIST virt-what-1.15.tar.gz 163117 SHA256 7ab9220d4682eadf9139c6afe62d33ebd273fff69e49054279caba5514937c41 SHA512 b85d02eb632328031be93dd33be1e42603e55182c4458fca9b9d98465ff7487fc399d01ebd117a8311960091c1b166547380b9a54c0054ebf2c0aa454d9a41e5 WHIRLPOOL 6d5d439f5617ef80f4cdda752717cce7025669e518f6fb327a5e7595935153ba58ea8271e4ed84c203d3888b877f60ae136f54aca97bd4f79a1cc18bf2365480
|
||||
DIST virt-what-1.18.tar.gz 173703 SHA256 bc42dd8214a6f30a1e6f2478faf12c41ecf0a0c8b9e493241f02416ae28162f4 SHA512 8085a38111d5664f411f5bb9d2ee221bc22e5b0f2d993e8d518718b3f63b16ba73e052b1623c090493cf8fef52fd237ba823377503a32b4b7d03cc5380d5c613 WHIRLPOOL e5b496a0cabc65ec9553a6fd55d4a30e8f7501683af384107a40999c4c393ebc21dae37a67a1f377bb224f5e369af281a44adc468ba68072f2b137cb9d66c6f1
|
||||
EBUILD virt-what-1.12.ebuild 496 SHA256 381bfa0e8d702fa054c5482d7d6d2938f9c5b6368146bcae580fc4a4ea4d49d7 SHA512 d1d376cd0270cfb18d2db9af21dc6e7968623f246ad70def2f89cc3a8a7535c2230fdaf98aef5f1b805719917fb337ad103a694790a88777c5441ac6b515cf28 WHIRLPOOL 5b31c31fe3decf00d824cfb1e0b5343649e6e6cd2316ecf0e42932ca0bf75139430a03fb16e9cbf4c81e98eb858c175821deaf8081b54eb0ca254232c82645a6
|
||||
EBUILD virt-what-1.15.ebuild 486 SHA256 48db7e6982ac79e1967e4582d8a0177215927aa350945cf4697383dc7cba92f4 SHA512 bd6be7716b1f6214ff64ac3c4b79414ed11a4958391083e0ebc8f80dedf2c2c99919d43e0ecebf06ce465b5535053d061dfdc24852111cba48eff12ced78d50d WHIRLPOOL 15a5a9d51cc52c321a03a5cd2b36fbc84355da802def9ce04d00da9148b968b40fc2da77c68934b5f12a24298962f5162c618d4bfce8feb49e6e7832c6548d93
|
||||
EBUILD virt-what-1.18.ebuild 611 SHA256 6ccae693bff68a2feafe0f8b37976476a1388754c4ed965fa4d374f8bced43f7 SHA512 d5eccd41fd994e48a7b8a25675bc9ee7fd6b77395c8f505045774e368798c6675b14232c4de12c9b445ca863812c24757fdc60a8d6689917dfd5941db42694bc WHIRLPOOL 38dfc8f241fe6ba07d44a92e859d5e001b9eaca0138125e87c6be168bab717b42a39d79666f85ee0e2ec49791bbfc2086d55bf86c30815c12b5010a2412b485a
|
||||
MISC ChangeLog 2741 SHA256 58eb4e07a8f96e2e7ccb2ddba0bc788e7bb0fb1d58b521f8e5af5267058245ca SHA512 451723b4e8db5e6cd5f3db3a9b8a0f6fc92c9a1a0d7d582b0b8ded5acc153e916f3c718f883bd694e0a2b88a78dc90cd4f371924f6c73d2baae7c37bb90d76ba WHIRLPOOL db8e359e101f255131f3c4a830a4c0a47283013c04badc8d4010ccfa724053b8c8d68c08977552a32be220137bf0f05774c3070dd603df1215e41c10da08dd35
|
||||
MISC ChangeLog-2015 2123 SHA256 9624a27899d13aeb2b5b699838ad2127b527ff9652558e4e5947303113f39a91 SHA512 77b82e4e94dfd3ca584a9d9257439da2f3410748e0206f5de1e3641ee1a5ba6948c41e499db9e8a0de68305bd736aa92c58ff7f2c718113e6291b6ae92a2a92a WHIRLPOOL 2b8a7220e10de9bc3724dd01a4a6f2063ee08050eee4d58697d461103671966d45ab9fe0afa5eebbc260f45289aee22b8c0818ecc1c919680db6fa387640adff
|
||||
MISC metadata.xml 456 SHA256 0eb0c67988b9859d773f87d2f6d7bbf8f9ca45b1391a5cffe04a2512bad67a6e SHA512 9b3ce56970ef01166980d6e5275bf4d740c47c044ab531cedeaac4e606d369f2c65b22fd8d8387332f0428ed7d9970d8b7e6363b48cb73c5b3326c7b463906bd WHIRLPOOL d6365ce01f2a538f495f6f7a9bc37a3374363e7523b2870621328ab76a4edfc1020f958e10ab9e6491b98f6f1f29f9f036c92de89c0b188b610f4f097ab98900
|
||||
|
@ -0,0 +1,24 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
DESCRIPTION="Detects if the current machine is running in a virtual machine"
|
||||
HOMEPAGE="https://people.redhat.com/~rjones/virt-what/"
|
||||
SRC_URI="https://people.redhat.com/~rjones/virt-what/files/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
|
||||
IUSE="dmi"
|
||||
|
||||
DEPEND="dev-lang/perl"
|
||||
RDEPEND="app-shells/bash
|
||||
dmi? ( sys-apps/dmidecode )"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# Pretends to be POSIX sh while it is not
|
||||
sed -e 's:/bin/sh:/bin/bash:' -i virt-what.in || die
|
||||
}
|
@ -1,7 +1,8 @@
|
||||
AUX quickfuzz-0.1_p20160920-derive-2.6.patch 663 SHA256 4df070290c76890c3981b07f1befe40fa5342933f6afe99fc4c1f48924c82af5 SHA512 c604134457566e226d0254451988c848cb10d5ec5a8ea6ae5387ad7813eadacc31fbf72e1072ec57ff650c813d0656a7bbdabb65c1e69d125cbd858258baff72 WHIRLPOOL b758f407b1fec1b9f1d0131b35e48a7e6099cbf887289d0edd8d3277ba32619958ede7f57670418ee07ea5d7e2be9f743526e9beb0ca7d707d325d07682eac9c
|
||||
AUX quickfuzz-0.1_p20160920-directory-1.3.patch 267 SHA256 882647f1fcea623095b5a21cb2bd9335148cb13278d9d3274a83f5822676c1ab SHA512 cd1cbe40b93c324caf8a687742ffb8fc9e5caab4dbfc18a3292d392e6b8fa74b30c3f9ef40342047c9cf8cca29de11ffa1121b6dbed3ec0495fd5706a8e6a0c5 WHIRLPOOL 4bb017d69f73129e00517b5745d0b24d17e8a3ec3a1ad6fda1f3ff6fccbc907121a110833a60944d313a84247b2358fc4b51ef248b218c61de0561a231c4a0c4
|
||||
AUX quickfuzz-0.1_p20160920-ghc-8.0.2_rc1.patch 250 SHA256 d7eea96e36b9f54d14db2b7f1129871c450e8ad4a4ec33bf33fecc3999d16d9c SHA512 f1eab2915fc5175b35b6f4d92ed9a04d215058b5f131f43f9b584d80613a2cf59a701688433871c9a165dfdce21577e9c6ebbbaba5b0bcd4a6a1b13ff789a3ca WHIRLPOOL f67c2c3dab9d3586cdb2ca7205174403d5fa1bf30117c385e436ea85df47c34cf6bcfc7bd7176d30fc1e66b9b8df9c640ddc0eb3749044be56a039aebbf1a7c2
|
||||
DIST quickfuzz-0.1_p20160920.tar.gz 1073894 SHA256 141d50c58f104ff9a35c649a7fa21fb18b4501a81bed1e56551067af8f7fedb7 SHA512 52068c35cef580e4719f1b7128ae069a80581f176adc4a2abbbdfc7fc48849e4ff1c228d342b7eaddc780e5b50eabb285b398c334753fca0dc70d3d3ec9f55f8 WHIRLPOOL a60fadaeb3e5e1ac8664865ea797dafe539e053370a30973a0ab785ee3401d6c5d5e40ecdef7cf85a1842f190bc0f7770cf9f0f1ef8c659444ad815e878d634a
|
||||
EBUILD quickfuzz-0.1_p20160920.ebuild 4151 SHA256 badbf8315f5e89ea42f2ac170b22ef7a8460b731c473fb0961a8397af6e9d9b4 SHA512 14a5756b1bbd386ed1ea5dbefcf279f4a37b7141c7781ebcdee2c2432e72c06c5b617e596093ac8cf34fc9faad5dee2f5802baef5239680daf26ca04809c94e6 WHIRLPOOL c45e3e569c69cdaa885583e701d530d82026d6028a813bde5ab00c37de25c11fe89db946033ee547cba1beeaa7122b14423f7812b36a079a6133381f32c28279
|
||||
EBUILD quickfuzz-0.1_p20160920.ebuild 4188 SHA256 72d38e51216a280e1a90851fc0a4e9bc6a040a3a772531a5994b268a07d80d35 SHA512 d49800f4b9bb9a527af576f5b1d3e5485b52a1ac9cba167ffef623eea7f74c654c1e8cdaf76cad4e31633ba2fcbfb1bae6fbf1df1ac6ab0ae7681c63bbd8a79c WHIRLPOOL a54003b18230d88b49434d7efdece2f8c576d5b3e1f4f6ed5d6ab1145e359056cf93307658be49829056852e3054bb2f5e4443352a8b0a563440b8cf064f2609
|
||||
EBUILD quickfuzz-9999.ebuild 4726 SHA256 69365b6c10ae989a010e74a43246824c6e48e3a979273608125d5ea05ab9ef02 SHA512 cd8523998adee21241edbc8aa3db85530d76cfd19f25ba6987c83da12f38889b8edd26dd4fc25c0ff6b6fed5ed70aa1c467838c828138b343f37e116ffc95940 WHIRLPOOL f9d3c842ffdfc459ece0c78a09c0ad2bd9eed8de2b6085a1f8ee64897c052deebfe76bd19d5e4428c8a9720b9b794840280659172d67013f32675b91b7da43cd
|
||||
MISC ChangeLog 2988 SHA256 9422f375638e3d7d50e2d7be07f6050c1507474c22dc351f2369065ccef3bbf9 SHA512 e455e0bff07d6297bc7d1facc4bddd6fc843b14b1db4125be9a867b420dd955cade2923cf150f6ac25cd9ac5876c8d63339ef852b7b76b93c2963ffdad4a0a39 WHIRLPOOL f3353dd0c0cc9aeb64fc39a8a9cccef90f077653a12a32f5c0b6278cbe9d9de962fac70f7cd1e9c5e079f49872fadb4cab33ac4195dba639cde8e050445e14fa
|
||||
MISC metadata.xml 805 SHA256 7f05a960ffc599ef6d029c19c20e96cdf506ed94db72e69a43e985286478ed8d SHA512 c0546197822adc83a8339312fcbf88d3f81effe6689508d4b1bbe34c42a91b407be5539713599ba087985d6780db4788f328a7f7a3d4925fe7d4ca03ec115989 WHIRLPOOL 83bf15c6097e654a16530a8517d6d4abcdab83b00e69c42fca40b1448dbf2b2f1e2eba02b3de7d93d88dab2e63acc457a3d2c2da089cf2aa2e980366a254fbf8
|
||||
|
@ -0,0 +1,21 @@
|
||||
diff --git a/src/DeriveShow.hs b/src/DeriveShow.hs
|
||||
index c11dd03..40cc205 100644
|
||||
--- a/src/DeriveShow.hs
|
||||
+++ b/src/DeriveShow.hs
|
||||
@@ -1,5 +1,5 @@
|
||||
{-# LANGUAGE TemplateHaskell #-}
|
||||
+{-# LANGUAGE StandaloneDeriving #-}
|
||||
module DeriveShow where
|
||||
|
||||
-import Data.Derive.Show
|
||||
import Data.DeriveTH
|
||||
@@ -12,3 +12,2 @@ isArbInsName = isinsName ''Show
|
||||
devShow :: Name -> Q [Dec]
|
||||
-devShow = megaderive (derive makeShow) isArbInsName
|
||||
-
|
||||
+devShow = megaderive (\n -> [d| deriving instance Show $(return (ConT n)) |]) isArbInsName
|
||||
--- a/QuickFuzz.cabal
|
||||
+++ b/QuickFuzz.cabal
|
||||
@@ -75,0 +75,1 @@ executable QuickFuzz
|
||||
+ default-extensions: StandaloneDeriving
|
||||
|
@ -1,5 +1,7 @@
|
||||
DIST dateutils-0.4.1.tar.xz 611460 SHA256 6ccce48975fc4d3af2e27c7893e181c46ab5df1cb37e4a428b4b521a77d55278 SHA512 c13461de6dad483b0014692a2319a7bf9ed1677415b8ee168131b397086f75725eb8b4e833d8b4a22f4aa726d6aca74be2597c2e07ef75a036cfea9bf67ccf1b WHIRLPOOL 2b6770306363f2653b0ddbdb12badc19927179dab707f5460c48f3219b96a475b5a0b6d451de5bba0f6567c7d348c40a6a2fdcf2afecc1e42034c832f7bc0177
|
||||
DIST dateutils-0.4.2.tar.xz 620196 SHA256 ecdae892584098ee9d8f5b14bd555fd63e09d1199cb75aac6b02f09c7e2eb46b SHA512 0b6e98bd9402dc3629122c3d68ab54df547ce779806661cc01df3625ab7cedb429d943ef46e151653283c1ac6c557f4bf14b3b5adaafbcac1d0a86c6d12895fd WHIRLPOOL 2de8ca88d0ce36f2b2f4af4af8e57a02adc5230cf937345c9e58704c7887b2d03427ad3aa076a54e6bce2ece8dc7320c9219c7e391c7227dc04d8d77825b80ef
|
||||
EBUILD dateutils-0.4.1.ebuild 613 SHA256 c647a8f3ca18d138b3c5bbcf57e21f14c56f19ef4a97b364a051e65d49b6f997 SHA512 d1b489a9ae82c30cf2f5160d86dffee4e1b180361d50e440f2f59d392d82056e65fe9d1c04906c65836de1293a026bee5c1cc8674454d92d7ba00e609b3e361a WHIRLPOOL 3527ea19600c98940dcaa99a2f36ea86f7d43c92c6a6bbdd377e461dcbeb76b0242ee4ca7f2813ce8b393113120b853bed5fd6d53343a252bf9841acf8eae860
|
||||
EBUILD dateutils-0.4.2.ebuild 609 SHA256 eb21f3908f16ca9c1a9434d78ab851f469540c205c810e1c2d2f9e303e85e5f9 SHA512 a6d34dcf92bd0de32e8fd6debdcd8ebd6bfb368ffdf9f0285e1be385ce154e774b31c2ff72fdb22492fb567d13aab2d286b220be250752395b72cf8a57d112ea WHIRLPOOL 4732d99866a67a9f4d4828c888a7b4e8e23579ae6883e0979b9972c9e7214c50840f86879496611845ebd487cef9cd5c8173bdd70e0c5e4d2afe3e1d8c148336
|
||||
MISC ChangeLog 4143 SHA256 4100b89889ab8b2822b5882406479686fed6f0cb142b3146e17ccfa9e9a90a30 SHA512 351283880d8ebc04ddc7df4c9cfbebb814367cc0fbf7085ea7f887f0e105e834b93755bd55850ca54b80238c5c347b2e18ce784efe60b8e7dcddee319b7e00c2 WHIRLPOOL 630c099248f6f2f2db2f97a7cf7fe677fbb244f828cd9c983e83b7d8c5a1114a46b1a3ba1823b6019025e2958b51855f4f87a1efc4c00c11b211d0ce1054d2c9
|
||||
MISC ChangeLog-2015 3488 SHA256 7e33c6c4b6f912855a878f94529de381c881b1833edaefd54ac5b789a65394be SHA512 9e6d06629619fb2337d077bf51b628cce1445aabc20b2c618911c2eae1126cdbfc2cfcd9a538a367592d3f0e01fe6e751c685f3323beedb6d118fbf42a088028 WHIRLPOOL 7fd6d64b3263671b7e84b074677dc3582b32e500f11eb7d582781178002aaaed774ca8ed4f6221d97c7fb10ae0874f90b93003894963975cf34b3b18e968cd04
|
||||
MISC metadata.xml 333 SHA256 dc4c49d493d5b55baae1a696607fcff3d04156afebd2239e177371f251aac0c8 SHA512 a1308350546b711fdddab0b90f257fcffa15f74855d9a08172b0a38d4d859b748150e17270b1534dc97d949143be5f39d8822dfcfc030b2a60f601c3551b9172 WHIRLPOOL 041249797f20972f828e7db1d6c1bff7dfae0a5290013ec1315b1dc0c0a279ba4acb5e77d5778e0825226e55f19a59114d2eb8dc47043bf113740460f2ceba85
|
||||
|
@ -0,0 +1,31 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
DESCRIPTION="command line date and time utilities"
|
||||
HOMEPAGE="https://hroptatyr.github.com/dateutils/"
|
||||
SRC_URI="https://bitbucket.org/hroptatyr/${PN}/downloads/${P}.tar.xz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
DEPEND="app-arch/xz-utils
|
||||
sys-libs/timezone-data"
|
||||
|
||||
# bug 429810
|
||||
RDEPEND="!sys-fabric/dapl"
|
||||
|
||||
src_configure() {
|
||||
econf --docdir=/usr/share/doc/${PF}
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake CFLAGS="${CFLAGS}"
|
||||
}
|
||||
|
||||
src_test() {
|
||||
# parallel tests failure
|
||||
emake CFLAGS="${CFLAGS}" -j1 check
|
||||
}
|
@ -0,0 +1,72 @@
|
||||
From e95103c40d0541fbcdb4b84b000832d9b1b83b8d Mon Sep 17 00:00:00 2001
|
||||
From: Sergei Trofimovich <slyfox@gentoo.org>
|
||||
Date: Sat, 19 Aug 2017 10:34:41 +0100
|
||||
Subject: [PATCH] scanelf: fix out-of-bounds access in ia64
|
||||
|
||||
commit 2eb852129394f97dae89c0ff1f9f48637edcb0e9
|
||||
slightly changed decoder and added unchecked
|
||||
read from elf header:
|
||||
|
||||
```
|
||||
switch (EGET(dpltrel->d_un.d_val)) { \
|
||||
case DT_REL: \
|
||||
rel = REL##B(elf->vdata + EGET(drel->d_un.d_val)); \
|
||||
```
|
||||
|
||||
On ia64 'EGET(drel->d_un.d_val)' returns absolute address:
|
||||
|
||||
```
|
||||
$ dumpelf bug/luatex
|
||||
...
|
||||
/* Dynamic tag #31 'DT_RELA' 0x97E310 */
|
||||
{
|
||||
.d_tag = 0x7 ,
|
||||
.d_un = {
|
||||
.d_val = 0x4000000000031C30 ,
|
||||
.d_ptr = 0x4000000000031C30 ,
|
||||
},
|
||||
},
|
||||
```
|
||||
|
||||
That causes 'scanelf' crash on binaries like 'luatex'.
|
||||
|
||||
This change restores check and loudly skips such sections:
|
||||
scanelf: bug/luatex: DT_RELA is out of file range
|
||||
|
||||
Bug: https://bugs.gentoo.org/624356
|
||||
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
|
||||
---
|
||||
scanelf.c | 12 ++++++++++++
|
||||
1 file changed, 12 insertions(+)
|
||||
|
||||
diff --git a/scanelf.c b/scanelf.c
|
||||
index 1ead891..a054408 100644
|
||||
--- a/scanelf.c
|
||||
+++ b/scanelf.c
|
||||
@@ -607,11 +607,23 @@ static char *scanelf_file_textrels(elfobj *elf, char *found_textrels, char *foun
|
||||
} \
|
||||
switch (EGET(dpltrel->d_un.d_val)) { \
|
||||
case DT_REL: \
|
||||
+ if (EGET(drel->d_un.d_val) >= (uint64_t)elf->len - sizeof (drel->d_un.d_val)) { \
|
||||
+ rel = NULL; \
|
||||
+ rela = NULL; \
|
||||
+ warn("%s: DT_REL is out of file range", elf->filename); \
|
||||
+ break; \
|
||||
+ } \
|
||||
rel = REL##B(elf->vdata + EGET(drel->d_un.d_val)); \
|
||||
rela = NULL; \
|
||||
pltrel = DT_REL; \
|
||||
break; \
|
||||
case DT_RELA: \
|
||||
+ if (EGET(drel->d_un.d_val) >= (uint64_t)elf->len - sizeof (drel->d_un.d_val)) { \
|
||||
+ rel = NULL; \
|
||||
+ rela = NULL; \
|
||||
+ warn("%s: DT_RELA is out of file range", elf->filename); \
|
||||
+ break; \
|
||||
+ } \
|
||||
rel = NULL; \
|
||||
rela = RELA##B(elf->vdata + EGET(drel->d_un.d_val)); \
|
||||
pltrel = DT_RELA; \
|
||||
--
|
||||
2.14.1
|
||||
|
@ -0,0 +1,58 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit eutils toolchain-funcs unpacker
|
||||
|
||||
DESCRIPTION="ELF utils that can check files for security relevant properties"
|
||||
HOMEPAGE="https://wiki.gentoo.org/index.php?title=Project:Hardened/PaX_Utilities"
|
||||
SRC_URI="mirror://gentoo/${P}.tar.xz
|
||||
https://dev.gentoo.org/~vapier/dist/${P}.tar.xz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE="caps debug python seccomp"
|
||||
|
||||
RDEPEND="caps? ( >=sys-libs/libcap-2.24 )
|
||||
python? ( dev-python/pyelftools )
|
||||
seccomp? ( sys-libs/libseccomp )"
|
||||
DEPEND="${RDEPEND}
|
||||
caps? ( virtual/pkgconfig )
|
||||
seccomp? ( virtual/pkgconfig )
|
||||
app-arch/xz-utils"
|
||||
|
||||
PATCHES=("${FILESDIR}"/${P}-scanelf-fix-out-of-bounds-access-in-ia64.patch)
|
||||
|
||||
_emake() {
|
||||
emake \
|
||||
USE_CAP=$(usex caps) \
|
||||
USE_DEBUG=$(usex debug) \
|
||||
USE_PYTHON=$(usex python) \
|
||||
USE_SECCOMP=$(usex seccomp) \
|
||||
"$@"
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# Avoid slow configure+gnulib+make if on an up-to-date Linux system
|
||||
if use prefix || ! use kernel_linux || \
|
||||
has_version '<sys-libs/glibc-2.10'
|
||||
then
|
||||
econf $(use_with caps) $(use_with debug) $(use_with python) $(use_with seccomp)
|
||||
else
|
||||
tc-export CC PKG_CONFIG
|
||||
fi
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
_emake
|
||||
}
|
||||
|
||||
src_test() {
|
||||
_emake check
|
||||
}
|
||||
|
||||
src_install() {
|
||||
_emake DESTDIR="${D}" PKGDOCDIR='$(DOCDIR)'/${PF} install
|
||||
}
|
@ -1,78 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="4"
|
||||
|
||||
inherit eutils linux-info toolchain-funcs
|
||||
|
||||
MY_PN='spacenav'
|
||||
DESCRIPTION="The spacenavd daemon provides free alternative to the 3dxserv daemon"
|
||||
HOMEPAGE="http://spacenav.sourceforge.net/"
|
||||
SRC_URI="mirror://sourceforge/project/${MY_PN}/${MY_PN}%20daemon/${PN}%20${PV}/${P}.tar.gz"
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ppc64 x86"
|
||||
IUSE="X"
|
||||
|
||||
RDEPEND="X? ( x11-apps/xdpyinfo )"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
pkg_setup() {
|
||||
CONFIG_CHECK="~INPUT_EVDEV"
|
||||
ERROR_CFG="Your kernel needs INPUT_EVDEV for the spacenavd to work properly"
|
||||
check_extra_config
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/${P}-destdir.patch
|
||||
epatch "${FILESDIR}"/${P}-custom-flags.patch
|
||||
epatch "${FILESDIR}"/${P}-no-x11.patch
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
--enable-opt --enable-ldopt \
|
||||
$(use_enable X x11)
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake CC=$(tc-getCC)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# Config file
|
||||
insinto /etc
|
||||
newins "${S}/doc/example-spnavrc" spnavrc.sample || die
|
||||
|
||||
# Init script
|
||||
newinitd "${FILESDIR}/spnavd" spacenavd || die
|
||||
|
||||
# Install udev rule but leave activiation to the user
|
||||
# since Xorg may be configured to grab the device already
|
||||
insinto /etc/udev/rules.d
|
||||
newins "${FILESDIR}"/99-space-navigator.rules 99-space-navigator.rules.ignored || die
|
||||
|
||||
# Daemon
|
||||
dobin "${S}/spacenavd"
|
||||
use X && dobin "${S}/spnavd_ctl"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "To start the Spacenav daemon system-wide by default"
|
||||
elog "you should add it to the default runlevel :"
|
||||
elog "\`rc-update add spacenavd default\`"
|
||||
elog
|
||||
if use X; then
|
||||
elog "To start generating Spacenav X events by default"
|
||||
elog "you should add this command in your user startup"
|
||||
elog "scripts such as .gnomerc or .xinitrc :"
|
||||
elog "\`spnavd_ctl x11 start\`"
|
||||
elog
|
||||
fi
|
||||
elog "If you want to auto-start the daemon when you plug in"
|
||||
elog "a SpaceNavigator device, activate the related udev rule :"
|
||||
elog "\`sudo ln -s 99-space-navigator.rules.ignored /etc/udev/rules.d/99-space-navigator.rules\`"
|
||||
elog
|
||||
ewarn "You must restart spnavd \`/etc/init.d/spacenavd restart\` to run"
|
||||
ewarn "the new version of the daemon."
|
||||
}
|
@ -1,78 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="4"
|
||||
|
||||
inherit eutils linux-info toolchain-funcs udev
|
||||
|
||||
MY_PN='spacenav'
|
||||
DESCRIPTION="The spacenavd daemon provides free alternative to the 3dxserv daemon"
|
||||
HOMEPAGE="http://spacenav.sourceforge.net/"
|
||||
SRC_URI="mirror://sourceforge/project/${MY_PN}/${MY_PN}%20daemon/${PN}%20${PV}/${P}.tar.gz"
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ppc64 x86"
|
||||
IUSE="X"
|
||||
|
||||
RDEPEND="X? ( x11-apps/xdpyinfo )"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
pkg_setup() {
|
||||
CONFIG_CHECK="~INPUT_EVDEV"
|
||||
ERROR_CFG="Your kernel needs INPUT_EVDEV for the spacenavd to work properly"
|
||||
check_extra_config
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/${P}-destdir.patch
|
||||
epatch "${FILESDIR}"/${P}-custom-flags.patch
|
||||
epatch "${FILESDIR}"/${P}-no-x11.patch
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
--enable-opt --enable-ldopt \
|
||||
$(use_enable X x11)
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake CC="$(tc-getCC)"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# Config file
|
||||
insinto /etc
|
||||
newins "${S}/doc/example-spnavrc" spnavrc.sample
|
||||
|
||||
# Init script
|
||||
newinitd "${FILESDIR}/spnavd" spacenavd
|
||||
|
||||
# Install udev rule but leave activiation to the user
|
||||
# since Xorg may be configured to grab the device already
|
||||
insinto "$(get_udevdir)"
|
||||
newins "${FILESDIR}"/99-space-navigator.rules 99-space-navigator.rules.ignored
|
||||
|
||||
# Daemon
|
||||
dobin "${S}/spacenavd"
|
||||
use X && dobin "${S}/spnavd_ctl"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "To start the Spacenav daemon system-wide by default"
|
||||
elog "you should add it to the default runlevel :"
|
||||
elog "\`rc-update add spacenavd default\`"
|
||||
elog
|
||||
if use X; then
|
||||
elog "To start generating Spacenav X events by default"
|
||||
elog "you should add this command in your user startup"
|
||||
elog "scripts such as .gnomerc or .xinitrc :"
|
||||
elog "\`spnavd_ctl x11 start\`"
|
||||
elog
|
||||
fi
|
||||
elog
|
||||
elog "If you want to auto-start the daemon when you plug in"
|
||||
elog "a SpaceNavigator device, activate the related udev rule :"
|
||||
elog "\`sudo ln -s $(get_udevdir)/rules.d/99-space-navigator.rules.ignored /etc/udev/rules.d\`"
|
||||
ewarn "You must restart spnavd \`/etc/init.d/spacenavd restart\` to run"
|
||||
ewarn "the new version of the daemon."
|
||||
}
|
@ -1,5 +1,7 @@
|
||||
DIST dia2code-0.8.8.tar.gz 480548 SHA256 b7431a3f8a9f703397e4b849f304897a2c7150a378fe6069ae17cd2bfc1e6294 SHA512 15dfbad66fc7855f0ccc31cfd32488de13380653dcd72a7a47cfcec60727aea265373da3b829f2bb62c4aade5cb06b0cb884fa29b197545a5268b03c75e717a2 WHIRLPOOL 2cbdfaab1e733c4752ca7457a2763b539a1ed48eb351e6bd62264757fa862a11dc1f012a8d957cd05d3e199e88649b2b9c68cf8058e1da52ddc070053e35d6ba
|
||||
DIST dia2code-1.0.0.tar.gz 946967 SHA256 c7746379cd15267fc3f600af16f77490e28f3becd260b7440f53776239ad491d SHA512 6669352e624fddc94aaaa36a30263ad591494d473ca09e662a9de90902e4b4a7a7eb6d3de9b28cf162c63ebeea36f86b33822d510ac87ce97c5f196c761bac85 WHIRLPOOL 4ae059ee2e4fce0e08a45dcfce24b368a3945c87cbab587886567c1ed916689b3e6ee3c626825e1a4d27925cd8de3a29f0d1c68c9f4b0032729ea9b248cbf396
|
||||
EBUILD dia2code-0.8.8.ebuild 486 SHA256 ed6f0e3cccb5c743ccec80470100dfbac054ecdd7b750f44eecab609b0a6a6d2 SHA512 20c38596850599b0223b339ffb48ed0071ce0891fe456b705981225c7afc70c77eb5e111be722511656e9f1cf121fb95949a8a43aaa7c2918684a5e54ea1c4a9 WHIRLPOOL be258b1fa536fef5630a9c6f8f5c4c3d064b5bb749ff4deaf96de2468d76d8834ecd1a1525ad3f37e153e34eaf912fbc3e8df2252df4b07145ca8bc78c4eddfd
|
||||
EBUILD dia2code-1.0.0.ebuild 657 SHA256 92e70177f5fad0a8b97cf7b0e38288b470f91c2c8541bfa5c53ed90887882716 SHA512 5eba7af867588c3c401d41a052909d12ca45aa8d4457b504d7a3047aed1ed05697ab37065f0e1e4f1da46ca60b785dad811a55fec16d225b3922071f585b5af1 WHIRLPOOL 56d605be7d793185db49bfdd65c34d5e6f09eb3f455beaed95ae40ab8502543d3f80fc80433820d91593a4fa4657fdc0baffc76750a7635764cc0d3d3b57c870
|
||||
MISC ChangeLog 3209 SHA256 7263c400da7ed1e4fe05e6aadb19ad8a5d9702693946c3f2b05f7d48fd9ac4fc SHA512 a407761669fb0d132ec3de8188d995f1c2b6d0c18e381af69b2765869314b6cba3737880bd4e389d9e700e11875298cce8d75e9c3928188e915dcf0513672d8b WHIRLPOOL 10db5f0740362146c8519b9f23b74ecc8fd03943814b75a844738aa3f30ec50a87939806e10066449f9a9a066dffde8427fa36656a95062c9d6959266c42af8b
|
||||
MISC ChangeLog-2015 4363 SHA256 e846c1c664317657dfa44a0210062b2b4d0902219e607d78329d26be9ecc2366 SHA512 c2156d80b8c55f374f011735194df9c39535de301668322aff934d91e7b0163295df2aea47ff1e1784d0a92a5b25b92829d5a5f9eb0c63788de052c15f1b7b88 WHIRLPOOL 0d68f9fd3a537c28f6388eb2e5cf9c50fa074197356659ee3959cd0d8d389e4c27d5192add6edd73e4c87e43bbc453a1a3a2da42109bca10fa9b77901d6de410
|
||||
MISC metadata.xml 331 SHA256 3c734fdba3d32ebcebd6ecb1a3d8fb7c3bfb7d9de7a6b31e65d96bf01d72cd10 SHA512 3c08e8ed607a264bed5a4c299bb433f0b4fb930d3a3272740c300e7e0a5f8d852a7d0fa80ef7f1e7bd1dc44c1b9e85814141d8b8cc31b403a95971b8c5b27494 WHIRLPOOL ec2fd5fae1fd76881d7824a9a8c8d75f77de5640cfe43a353bc5cb78f07108f7356e8025035be604af50cc3eccbf5a0afca28c520dce86b8c2af123793ba4aff
|
||||
|
@ -0,0 +1,32 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
inherit gnome2
|
||||
|
||||
DESCRIPTION="Convert UML diagrams produced with Dia to various source code flavours"
|
||||
HOMEPAGE="http://dia2code.sourceforge.net/"
|
||||
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ia64 ~ppc ~sparc ~x86"
|
||||
IUSE="test"
|
||||
|
||||
RDEPEND="${DEPEND}"
|
||||
DEPEND="
|
||||
dev-libs/libxml2
|
||||
test? ( app-shells/bash )
|
||||
"
|
||||
|
||||
src_prepare() {
|
||||
# Script makes use of arrays
|
||||
sed -e 's:/bin/sh:/bin/bash:' \
|
||||
-i tests/tests.sh || die
|
||||
gnome2_src_prepare
|
||||
}
|
||||
|
||||
src_install() {
|
||||
gnome2_src_install
|
||||
doman docs/dia2code.1
|
||||
}
|
@ -1,86 +0,0 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
KDE_LINGUAS="bs ca ca@valencia cs da de el en_GB es et eu fi fr gl
|
||||
hu it kk nds nl pl pt pt_BR ro ru sk sv tr uk zh_CN zh_TW"
|
||||
KDE_HANDBOOK="optional"
|
||||
VIRTUALX_REQUIRED="test"
|
||||
VIRTUALDBUS_TEST="true"
|
||||
inherit kde4-base
|
||||
|
||||
DESCRIPTION="Personal finance manager by KDE"
|
||||
HOMEPAGE="https://kmymoney.org/"
|
||||
if [[ ${KDE_BUILD_TYPE} = release ]]; then
|
||||
SRC_URI="mirror://kde/stable/${PN}/${PV}/src/${P}.tar.xz"
|
||||
fi
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="4"
|
||||
KEYWORDS="amd64 x86"
|
||||
IUSE="debug calendar doc hbci ofx pim quotes weboob"
|
||||
|
||||
COMMON_DEPEND="
|
||||
>=app-crypt/gpgme-1.7.0[cxx]
|
||||
<app-office/libalkimia-6.0.0
|
||||
dev-libs/gmp:0=
|
||||
dev-libs/libgpg-error
|
||||
x11-misc/shared-mime-info
|
||||
calendar? ( dev-libs/libical:= )
|
||||
hbci? (
|
||||
>=net-libs/aqbanking-5.5.1
|
||||
>=sys-libs/gwenhywfar-4.15.3[qt4]
|
||||
)
|
||||
ofx? ( >=dev-libs/libofx-0.9.4 )
|
||||
pim? ( $(add_kdeapps_dep kdepimlibs) )
|
||||
weboob? ( www-client/weboob )
|
||||
"
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
quotes? ( dev-perl/Finance-Quote )
|
||||
"
|
||||
DEPEND="${COMMON_DEPEND}
|
||||
dev-libs/boost
|
||||
virtual/pkgconfig
|
||||
doc? ( app-doc/doxygen )
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${P}-tests.patch"
|
||||
"${FILESDIR}/${P}-alkimia-detect.patch"
|
||||
"${FILESDIR}/${P}-fix-csvdialog.patch"
|
||||
"${FILESDIR}/${P}-soversion.patch"
|
||||
"${FILESDIR}/${P}-gpgmepp.patch"
|
||||
"${FILESDIR}/${P}-kdepimlibs-optional.patch"
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
kde4-base_src_prepare
|
||||
|
||||
# don't install as executable
|
||||
sed -i kmymoney/CMakeLists.txt \
|
||||
-e "/install.*kmymoney.appdata/ s/PROGRAMS/FILES/" || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DUSE_QT_DESIGNER=OFF
|
||||
-DENABLE_LIBICAL=$(usex calendar)
|
||||
-DUSE_DEVELOPER_DOC=$(usex doc)
|
||||
-DENABLE_KBANKING=$(usex hbci)
|
||||
-DENABLE_LIBOFX=$(usex ofx)
|
||||
$(cmake-utils_use_find_package pim KdepimLibs)
|
||||
-DENABLE_WEBOOB=$(usex weboob)
|
||||
)
|
||||
kde4-base_src_configure
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
kde4-base_src_compile
|
||||
use doc && kde4-base_src_compile apidoc
|
||||
}
|
||||
|
||||
src_install() {
|
||||
use doc && HTML_DOCS=("${BUILD_DIR}/apidocs/html/")
|
||||
kde4-base_src_install
|
||||
}
|
@ -1,5 +1,7 @@
|
||||
DIST skrooge-2.8.1.tar.xz 19299556 SHA256 8f166db74a27db0ce0ea197f89dfd021224afc3e4875e36438a4496f10746460 SHA512 864de0c9e8876b87ab4100b0d48ea8e573655ebad5175333230ff715faa46077b96e25b91e767da864196960de14df9b9fee5b561e4d51b03a80fb58a070755f WHIRLPOOL 12d1455493fd32dd61cb0543a2365444f0fd1fa5b08214760f7c3b58836c3ac55a480f322cbea61eb13675b9698531fa860f8a2b4c9a915a789fc95bedc8b269
|
||||
DIST skrooge-2.9.0.tar.xz 19310412 SHA256 ad02403026b649203f0381cc599a7754d36f41cc75cc03d14e63bfdb666e7bb5 SHA512 cbcd1e9c00509d6aa387f83f3a245b20c856e936095d8bb16ec7ab6898131a24edda8a4e9ee20323c7d04ab56194b8d4720a77b8d10699e64e8dbacbe9bb868c WHIRLPOOL 2ecc558add9160c724e2ff9623baa205e54ce45b385f63cc1d2151ce75dc79c65e7608abf419721761c19f3cffbe80a16db9876bdc4cc756d531a85a42bbec28
|
||||
EBUILD skrooge-2.8.1.ebuild 2381 SHA256 6dee210510cb7ea3b744c4fcced7d3cf026b7006030e2b72f886d839a83715f6 SHA512 48965d06ce6a30339f4a699ebf154bc86eb1858b4cc61d652847e654475bfd0d2d1140e473b2a5a7489547cb2a8e6ed0e68bacf3e70014b0dea910a601ef7b7d WHIRLPOOL 22fa3bc7c35de362f0d9e51ca307b0e70baa4d4fd0c498596aeac0a143850778e04a67068d44c3310f884552867cdf9b9fee957f52e5e13f6ba218734e9e7836
|
||||
EBUILD skrooge-2.9.0.ebuild 2361 SHA256 3e626a6ab46695c5496c8044e357a21c19132bc73080b455722bec42ac9aa421 SHA512 a51798d7b27710b38753f8a02be92fd91fe2258e89ba49545961f7b995964e6813fdabb250e1b58015b2358ca4bc623c7ff02c0ad0c4c14c728e46e91b2f1d1b WHIRLPOOL c43a36e4f33f18a15ff26dd6fb082a71ef217420cfe7472c30305ef1991c18fa4cc367e4054887d7b7c9abfd1198a3d93ecdb80b78bcf6c77aa26789eaa83b41
|
||||
MISC ChangeLog 5561 SHA256 1110215fd08a502383ffbf0423e129641ee4e2ea414870a3b69818f0c78c1452 SHA512 df19ef19bbc8271c422d023c058cd8f09d5fd9af3feeb89d4d6a0a6c53115f63d8c67a6ed08d6a137d96228335132f699018470b743fff0842f6fec9c96b81d4 WHIRLPOOL 40fa6f40a4b1c4062fcf86a2edf42098a9631f7acb882c0ca1d8ded6b54a5a6ee3f2830f79e39debeefb9ca499b2372e6f4ca8b4f71e8fe3e1cc58ebac475c82
|
||||
MISC ChangeLog-2015 8892 SHA256 a428dc33a49b06f1c0fc4112bcf8a410e52e5b3c54bbaf852fcfddc3435f611c SHA512 091c8d08ff7e915d806b73a348b695f6dd753ab8467ba9435b20d5823aac546ef60efd3d133f0a862c4bae0ec107d77c0d8457ff90ee373ff00acb9c7f9df92e WHIRLPOOL fed33ca76b80601d2aedb861872862bb3431b3f37cb34ddbeea02d322c766bd67a053d544e179aeef8a2f7ba2b482f9e984469fcdef56751d3c265048f6d20a8
|
||||
MISC metadata.xml 400 SHA256 1825b5ed49f1564202924631d9168f8c37966157f6e4c7da29fb8f875801bcf1 SHA512 50120cec8f5798f6b104c6e1fd05b831f2f280e2f3bab8aa66667a3da1bb351a955b671d16cf4e30b44b0738625424fe4a32bb8a677947d147031964e108dcb0 WHIRLPOOL 52eb2aeb63da65ed1aea3e9d2a02bce49df2795f43af23966fb4bfdf3e8f04dd3b10736abc14df8483231f222c0d86f860f803b5c21e66d3919cc5f0c9716822
|
||||
|
@ -0,0 +1,96 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
KDE_HANDBOOK="optional"
|
||||
KDE_TEST="forceoptional"
|
||||
QT_MINIMAL="5.7.1"
|
||||
VIRTUALX_REQUIRED="test"
|
||||
inherit kde5
|
||||
|
||||
DESCRIPTION="Personal finances manager, aiming at being simple and intuitive"
|
||||
HOMEPAGE="http://www.skrooge.org/"
|
||||
[[ ${PV} == 9999 ]] || SRC_URI="mirror://kde/stable/${PN}/${P}.tar.xz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="activities designer kde ofx"
|
||||
|
||||
COMMON_DEPEND="
|
||||
$(add_frameworks_dep karchive)
|
||||
$(add_frameworks_dep kcompletion)
|
||||
$(add_frameworks_dep kconfig)
|
||||
$(add_frameworks_dep kconfigwidgets)
|
||||
$(add_frameworks_dep kcoreaddons)
|
||||
$(add_frameworks_dep kdbusaddons)
|
||||
$(add_frameworks_dep ki18n)
|
||||
$(add_frameworks_dep kiconthemes)
|
||||
$(add_frameworks_dep kio)
|
||||
$(add_frameworks_dep kitemviews)
|
||||
$(add_frameworks_dep knewstuff)
|
||||
$(add_frameworks_dep knotifications)
|
||||
$(add_frameworks_dep knotifyconfig)
|
||||
$(add_frameworks_dep kparts)
|
||||
$(add_frameworks_dep kservice)
|
||||
$(add_frameworks_dep ktextwidgets)
|
||||
$(add_frameworks_dep kwallet)
|
||||
$(add_frameworks_dep kwidgetsaddons)
|
||||
$(add_frameworks_dep kxmlgui)
|
||||
$(add_qt_dep qtconcurrent)
|
||||
$(add_qt_dep qtdbus)
|
||||
$(add_qt_dep qtdeclarative 'widgets')
|
||||
$(add_qt_dep qtgui)
|
||||
$(add_qt_dep qtprintsupport)
|
||||
$(add_qt_dep qtscript)
|
||||
$(add_qt_dep qtsql)
|
||||
$(add_qt_dep qtsvg)
|
||||
$(add_qt_dep qtwebkit)
|
||||
$(add_qt_dep qtwidgets)
|
||||
$(add_qt_dep qtxml)
|
||||
app-crypt/qca:2[qt5]
|
||||
dev-db/sqlcipher
|
||||
dev-libs/grantlee:5
|
||||
activities? ( $(add_frameworks_dep kactivities) )
|
||||
kde? ( $(add_frameworks_dep krunner) )
|
||||
ofx? ( dev-libs/libofx )
|
||||
"
|
||||
DEPEND="${COMMON_DEPEND}
|
||||
$(add_frameworks_dep kguiaddons)
|
||||
$(add_frameworks_dep kjobwidgets)
|
||||
$(add_frameworks_dep kwindowsystem)
|
||||
dev-libs/libxslt
|
||||
virtual/pkgconfig
|
||||
x11-misc/shared-mime-info
|
||||
designer? (
|
||||
$(add_frameworks_dep kdesignerplugin)
|
||||
$(add_qt_dep designer)
|
||||
)
|
||||
"
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
!app-office/skrooge:4
|
||||
"
|
||||
|
||||
REQUIRED_USE="test? ( designer )"
|
||||
|
||||
# hangs + installs files
|
||||
RESTRICT+=" test"
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DSKG_BUILD_TEST=$(usex test)
|
||||
-DSKG_DESIGNER=$(usex designer)
|
||||
$(cmake-utils_use_find_package activities KF5Activities)
|
||||
$(cmake-utils_use_find_package kde KF5Runner)
|
||||
$(cmake-utils_use_find_package ofx LibOfx)
|
||||
)
|
||||
|
||||
kde5_src_configure
|
||||
}
|
||||
|
||||
src_test() {
|
||||
local mycmakeargs=(
|
||||
-DSKG_BUILD_TEST=ON
|
||||
)
|
||||
kde5_src_test
|
||||
}
|
@ -1,6 +1,8 @@
|
||||
DIST gspell-1.2.3.tar.xz 395360 SHA256 a64e158e47a6e2b8ec9a3a1fea98a416f78a13e275c909b2ed488494ff835f82 SHA512 b45f17e8707187a070d4c5d4f91e4bcbd4108e596519c2900d7ca1f35050b6b397ed8c012fa25e179dddaf8b9c3a356b26c6070698f8333dff00c57a72e47198 WHIRLPOOL 1b6f22740d2b5597c20aa6d84e3e9e0b0b50c2fccfd811f49c99dff5e3762bc91a7582f223711f0f37a95c37d302b40697bd3517c170e8991cad4d556398875f
|
||||
DIST gspell-1.4.1.tar.xz 408996 SHA256 442f88fecd7f9e00a6a9d0af2d762744dd3c119217ff11d6739500f75b0f10be SHA512 ded60e876598d8b6002ea28aa9a0d8f84c56c3a46d245df051949f5400f605a666279e42949bf2bfb365cf31f4618f1ce657dd3b81ed748af1036eddc1e67f6d WHIRLPOOL 5d76db642cad3dcfdc58d7a2a5b81768b16f7c29829646c8d6517e6fbc835389affc06372b9e339bfade388debd57d3d389920b2bd1e605b1e3cbbcfdbb61f64
|
||||
DIST gspell-1.4.2.tar.xz 407356 SHA256 a59ba7e747bfbe93f6e511d7df3169d1530b518b46ca620cbc000fecbcdf0399 SHA512 00f53d3ca47a4ba1af1e8b4983a41dc6df8a9788898b45ffdd161a3fc8de28024cc985f49fbb872912c0a94addbca3b28ce2edda70eeb206a794e2bcf65e4a5e WHIRLPOOL a657ad0b6d3c41fccee2ddf09cf220acd8e59dbe687b78d61e1c25a6bf03e5033efa988587fbe511428562be85593bffefa47ee3188d48e929cca32c8aeddccf
|
||||
EBUILD gspell-1.2.3.ebuild 993 SHA256 72e03d48586896509e342c81b8d5fb0ccad200d9bb1f563cc3c93a0913365693 SHA512 10dea47cbf272ecf8453a13e78b92d2d4555aec588277b1cd59ca060457f33ef96784bef944e3fc1c073c2f526ce07866fe8fc4d671d087b1ac3c08148f10e13 WHIRLPOOL 0dc1d0e8306ad7e93c5957326a15a04ac373cb3c292b438ed06009b7b96a7b1a4e96a32e64dbafae49cecd064b95ab3573ef6fd486a86c25b486b9ad6f318f1b
|
||||
EBUILD gspell-1.4.1.ebuild 962 SHA256 7a0a1fcd6b452fa5411e71c5545e8e930b8092beb74ff7301e70e725eb2523ce SHA512 7e930978ff6535e377a5009804703afcca050560073ffb80492cd3be722a8620938cf10aae6a8a8904c6f7081f4046416b63c774aab0a20c662ce336d889a4da WHIRLPOOL 7669bd2d421dbcdd21733a5e86ef2b4bbff88ccd7831b8af26fde9293fb5c1c629cbd4a05088287b69904829ddf8a05d7599fe7b3d0e40635dfe12d4e6d60fd2
|
||||
EBUILD gspell-1.4.2.ebuild 967 SHA256 c21e58b545b6700379e590a4a1d14e0372958374a14893b203120fc1ffc53fda SHA512 2b80bf4af6b51713e22d339793403b5e61b5f353ff0ee815e69a08bba2b4e2570e74c3ed208ad1cf9e93dcacf9e4eee49361ae8ed6ea761739b54bbfda0d7bb5 WHIRLPOOL 19d33273f26928710943a8102786f8f9502f4e3b4d14ae7a2a9eb6a044b02086edbb1b2e6421af7af9188d99ac1f6d00f630bb2a26247993c3bc850e81f803d3
|
||||
MISC ChangeLog 3567 SHA256 ae6d642448f7ae3c2f04bf92117b589c3233bc580b4e030d3fcf3e5467f5acbe SHA512 ba0e8a838c8a13c825d074f90e21e6c2ffd7839f9b1d66b0ed875b03f4e4f194f1189d4d97ac430f5e7d3d468a3b8614b247a14c5195f79efffefa31aa56add6 WHIRLPOOL c9a27ae579cb419b1e1fb0605fd72516d80eb769b7f8a32aa2f9fccff9526aae9427a5d6b8049b84796c71c9090147095fdd24c42733f7dc5e8b4e0928e1ede4
|
||||
MISC metadata.xml 249 SHA256 4505b0bfeadff287958620b7dc7b7209699065a8f17139a237a5dd409a726a97 SHA512 c40662134899a5c9f0369a1017806f35adf3280a0b3c91726f7a8ca6012a073a8b471583f5bfb6fe95faac1dcf607e8e2e43f8c91d48ec46f4a8824e2f551506 WHIRLPOOL 333a938ee1d2124595596c572697bf5ebad523a92ba12005cfb12e6bb6270881a94a911f0cc9c1cf2bb571559e8271e07dfd307dabe50058236dbe7103562b92
|
||||
|
@ -0,0 +1,46 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="6"
|
||||
VALA_USE_DEPEND="vapigen"
|
||||
|
||||
inherit gnome2 vala virtualx
|
||||
|
||||
DESCRIPTION="Spell check library for GTK+ applications"
|
||||
HOMEPAGE="https://wiki.gnome.org/Projects/gspell"
|
||||
|
||||
LICENSE="LGPL-2.1+"
|
||||
SLOT="0/1" # subslot = libgspell-1 soname version
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~ppc ~x86"
|
||||
|
||||
IUSE="+introspection vala"
|
||||
REQUIRED_USE="vala? ( introspection )"
|
||||
|
||||
RDEPEND="
|
||||
app-text/iso-codes
|
||||
>=app-text/enchant-1.6.0
|
||||
>=dev-libs/glib-2.44:2
|
||||
>=x11-libs/gtk+-3.20:3[introspection?]
|
||||
introspection? ( >=dev-libs/gobject-introspection-1.42.0:= )
|
||||
vala? ( $(vala_depend) )
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
>=dev-util/gtk-doc-am-1.25
|
||||
>=sys-devel/gettext-0.19.4
|
||||
virtual/pkgconfig
|
||||
"
|
||||
|
||||
src_prepare() {
|
||||
use vala && vala_src_prepare
|
||||
gnome2_src_prepare
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
gnome2_src_configure \
|
||||
$(use_enable introspection) \
|
||||
$(use_enable vala)
|
||||
}
|
||||
|
||||
src_test() {
|
||||
virtx emake check
|
||||
}
|
@ -1,8 +1,7 @@
|
||||
AUX kchmviewer-7.7-force-qtwebkit.patch 960 SHA256 68897ddf16904f9c45c36ecbfce5023a9f01075993c1068c04c2d769e2e3d7a7 SHA512 bb93256211bc7390acb52b142da5cd12dc4c8220fdf745c6b5dcc93bfba8880272ad0134c868409afe5fe6ea3bcae47cebe1aaab13cdead6556bf15bd838b549 WHIRLPOOL 09884f831c08945921d975e289f1f07adc2a66ad583add5f3644cf2171be584744798b007e6fe8f1c6fac5bb3908ae199eaee00f3d7223440228f4e9991523c1
|
||||
AUX kchmviewer-7.7-underlinking.patch 300 SHA256 bb9345a0ecaf70e06cfad06c6c2dbbfca79c3462e1f4bb459e80ecaa31ea58cc SHA512 004056e7ba232a80f76fe7a8955a2ef621d8148f7c594c78ae3136dca7ca8d3c39e8ab3081f75b3181bef3c9a720601cc7e65ba371b95853faa4bf845e80d0ec WHIRLPOOL a89e0c5399a888c3a08100fed176ad310f9c47dea5fc390b5b8b4d72a31a0aa98f12b7c7ff200c8362e2368b95157f91d7e58590e940803718487ba6fd84b693
|
||||
DIST kchmviewer-7.7.tar.gz 345952 SHA256 27cbac45c786b1718550a87e6f86010e161302b426c6396ff2a3091b913b17dd SHA512 e217db388f99142114e4de6735916d46c9d89f144390b58dffd739ed7246048c23af75c2eb9effba3e942a21564f9205265155a93a21d6343bea83a26fd99070 WHIRLPOOL 94230893add520861605edc09979f98774cc553f95b30364860afb130e5a77cbafa487fa5623d7d063bbec350a3b5d845ecd54072556128fc9c7a7d1d24dfa46
|
||||
EBUILD kchmviewer-7.7-r1.ebuild 960 SHA256 6d47a4cba587de8d23bede6229420dda8ef90a62fe134552ba3b93d59090cf15 SHA512 bdc948149065739ed8fb5f8c7734e53ae87799b2c66bdad3f60c17e2b5e939c4c53a0485a2225a31149ce17a7a84516b10f248937b981efa2ee21b93cc76d4a2 WHIRLPOOL 12255da0697c676649e40816d2036ec1531d118e8df43d97e1abdcbb031bf6119425934a911161a710e7d5d6365a878714e268e336c431008f0fc52dc72db644
|
||||
EBUILD kchmviewer-7.7.ebuild 1093 SHA256 04e7587165fbd412fdf11c9c8dd419d6cb05e0a917f237948704fb9ac794466e SHA512 a4797950112c587c2d1ad3cff607a8b217d6df78ed9082804f340dda40ecd1789d75019222388af3c9cdf6417d413eaec41ca79e07b8e6b711c7c73450815daf WHIRLPOOL 765281fe922a1c943d9a69922bc65bdc817b32b46db284f178c6547893bc336460569557c17342af62bfba6931288c486f2cd6bd17639a3d603a96808e92e34a
|
||||
EBUILD kchmviewer-7.7-r1.ebuild 958 SHA256 539d737a4436a5f892494711123be4aac0f1c926968a86425324e81b2dfd87b4 SHA512 960de65730bdd95a7db91a6d77f90f3b547050ec9f74246053d6fbf6daf57ef885b8d85c20d6bf7fe5276b94fca6254706fad64cca29e229b0f4b9bf87a29b8b WHIRLPOOL 122dfe9ad3d4ba57e3c490a7d98a0e2bdcd3161fead1ff84a3cafb8bd3cb7e66110cd8560ffdc228852339c9a997335c1f73e1eb9c5595d3683b30aa2eeb18a1
|
||||
MISC ChangeLog 4994 SHA256 516c4c0a3a41d51d2d8681b2cf9902223cda9c5ab96e641b892289a0e6fd8fee SHA512 312e2e3aa458a64d0cb68be5b3e3950a2bebe30856fa6a96acfa5ecb1e040c059e3413a14a5ffc67d81aa8179f0a13ffe3e14ec80405170bccb513d2546ac8c1 WHIRLPOOL 9457c6224b431c4074db5e5362c9a83bf452947839b83ed39349c25fa607ac3e0e9847c487790d30b6479c2c8dfee6722806298df470b6e53e415839bd2b6ea4
|
||||
MISC ChangeLog-2015 14663 SHA256 e996690c43ff97bde0bf0c32fd4da13e53528534622d0a4a9e2c33eed2f6bdf4 SHA512 a02093d2c8f5079fe9b540d165d9c47e28dbf09e6fc536d5f8f079ea72b60bcb6ae3e4b852373d88138c24687dfc0e0fb868cea28ff87eeef6069631ff2733b7 WHIRLPOOL b1bc229a28e8d6c07cd8b9033051af8947fbad8a050850c07afe46d4b0a9000b41a15b77b6931cb82ae36e6943c1b332417873f0267d45a25d5fcd062bf4dd7c
|
||||
MISC metadata.xml 979 SHA256 6304106ca2b3cbdee33cca87322532448d241a6da31e4df069cefef4f2971699 SHA512 e7786881fccd93bebb9ee1e0904d18b9eb1c6604f36aecd44673f3cd59c09955a9bde08bf765efee3422bc9c514d59040375e770f960163640acc0577642d399 WHIRLPOOL d4ddd0691b2c09d5b67eb2eb5210ae2ff781de939a5d6888214a69b1244ebde0cd1e9dd3adb3110283b08f71a136680df97d9ee3d9f3a37c2bc4854ceb8de815
|
||||
|
@ -1,64 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit fdo-mime qmake-utils
|
||||
|
||||
DESCRIPTION="Feature rich chm file viewer, based on Qt"
|
||||
HOMEPAGE="http://www.kchmviewer.net/"
|
||||
SRC_URI="mirror://sourceforge/kchmviewer/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3+"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="
|
||||
dev-libs/chmlib
|
||||
dev-libs/libzip:=
|
||||
dev-qt/qtcore:5
|
||||
dev-qt/qtdbus:5
|
||||
dev-qt/qtgui:5
|
||||
dev-qt/qtnetwork:5
|
||||
dev-qt/qtprintsupport:5
|
||||
dev-qt/qtwebkit:5
|
||||
dev-qt/qtwidgets:5
|
||||
dev-qt/qtxml:5
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${P}-force-qtwebkit.patch"
|
||||
"${FILESDIR}/${P}-underlinking.patch"
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
# bug #579430
|
||||
sed -i \
|
||||
-e "s:zip:zip;:g" \
|
||||
packages/kchmviewer.desktop || die "Failed to fix desktop file"
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
eqmake5
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dodoc ChangeLog DBUS-bindings FAQ README
|
||||
doicon packages/kchmviewer.png
|
||||
|
||||
dobin bin/kchmviewer
|
||||
domenu packages/kchmviewer.desktop
|
||||
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
fdo-mime_desktop_database_update
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
fdo-mime_desktop_database_update
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue