parent
7d686eb65b
commit
c7e67b4b1e
Binary file not shown.
Binary file not shown.
@ -0,0 +1,85 @@
|
||||
# Copyright 1999-2018 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
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/stretch/puppet5/${PN:0:1}/${PN}/${PN}_${PV}-1stretch"
|
||||
SRC_URI="
|
||||
amd64? ( ${SRC_BASE}_amd64.deb )
|
||||
x86? ( ${SRC_BASE}_i386.deb )"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="puppetdb selinux"
|
||||
RESTRICT="strip"
|
||||
|
||||
CDEPEND="!app-admin/augeas
|
||||
!app-admin/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:0/7
|
||||
sys-libs/ncurses:0[tinfo]
|
||||
selinux? (
|
||||
sys-libs/libselinux[ruby]
|
||||
sec-policy/selinux-puppet
|
||||
)
|
||||
puppetdb? ( >=dev-ruby/puppetdb-termini-5.0.1 )"
|
||||
|
||||
S=${WORKDIR}
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup puppet
|
||||
enewuser puppet -1 -1 /var/run/puppet puppet
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# conf.d
|
||||
doconfd etc/default/puppet
|
||||
doconfd etc/default/mcollective
|
||||
doconfd etc/default/pxp-agent
|
||||
# logrotate.d
|
||||
insinto /etc/logrotate.d
|
||||
doins etc/logrotate.d/pxp-agent
|
||||
# puppet itself
|
||||
insinto /etc/puppetlabs
|
||||
doins -r etc/puppetlabs/*
|
||||
# logdir for systemd
|
||||
dodir var/log/puppetlabs/puppet/
|
||||
fperms 0750 var/log/puppetlabs/puppet/
|
||||
# the rest
|
||||
insinto /opt
|
||||
dodir opt/puppetlabs/puppet/cache
|
||||
doins -r opt/*
|
||||
fperms 0750 /opt/puppetlabs/puppet/cache
|
||||
# init
|
||||
newinitd "${FILESDIR}/puppet.initd" puppet
|
||||
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
|
||||
}
|
@ -0,0 +1,144 @@
|
||||
# Copyright 1999-2018 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="6"
|
||||
|
||||
USE_RUBY="ruby23 ruby24 ruby25"
|
||||
|
||||
RUBY_FAKEGEM_RECIPE_TEST="rspec3"
|
||||
|
||||
RUBY_FAKEGEM_TASK_DOC="doc:all"
|
||||
|
||||
RUBY_FAKEGEM_EXTRAINSTALL="locales"
|
||||
|
||||
inherit eutils user ruby-fakegem 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 ~arm ~hppa ~ppc ~ppc64 ~x86"
|
||||
IUSE="augeas diff doc emacs ldap rrdtool selinux shadow sqlite vim-syntax"
|
||||
RESTRICT="test"
|
||||
|
||||
ruby_add_rdepend "
|
||||
dev-ruby/hiera
|
||||
dev-ruby/json:=
|
||||
>=dev-ruby/facter-3.0.0
|
||||
augeas? ( dev-ruby/ruby-augeas )
|
||||
diff? ( dev-ruby/diff-lcs )
|
||||
doc? ( dev-ruby/rdoc )
|
||||
ldap? ( dev-ruby/ruby-ldap )
|
||||
shadow? ( dev-ruby/ruby-shadow )
|
||||
sqlite? ( dev-ruby/sqlite3 )
|
||||
virtual/ruby-ssl
|
||||
dev-ruby/hocon"
|
||||
|
||||
ruby_add_bdepend "
|
||||
doc? ( dev-ruby/yard )
|
||||
test? (
|
||||
dev-ruby/mocha
|
||||
dev-ruby/rack
|
||||
dev-ruby/rspec-its
|
||||
)"
|
||||
# this should go in the above lists, but isn't because of test deps not being keyworded
|
||||
# dev-ruby/rspec-collection_matchers
|
||||
|
||||
RDEPEND+=" ${RDEPEND}
|
||||
rrdtool? ( >=net-analyzer/rrdtool-1.2.23[ruby] )
|
||||
selinux? (
|
||||
sys-libs/libselinux[ruby]
|
||||
sec-policy/selinux-puppet
|
||||
)
|
||||
vim-syntax? ( >=app-vim/puppet-syntax-3.0.1 )
|
||||
>=app-portage/eix-0.18.0"
|
||||
PDEPEND="emacs? ( >=app-emacs/puppet-mode-0.3-r1 )"
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup puppet
|
||||
enewuser puppet -1 -1 /var/lib/puppet puppet
|
||||
}
|
||||
|
||||
all_ruby_prepare() {
|
||||
# Avoid spec that require unpackaged json-schema.
|
||||
rm spec/lib/matchers/json.rb $( grep -Rl matchers/json spec) || die
|
||||
|
||||
# can't be run within portage.
|
||||
epatch "${FILESDIR}/puppet-fix-tests-4.7.0.patch"
|
||||
|
||||
# fix systemd path
|
||||
epatch "${FILESDIR}/puppet-systemd.patch"
|
||||
|
||||
# Avoid specs that can only run in the puppet.git repository. This
|
||||
# should be narrowed down to the specific specs.
|
||||
rm spec/integration/parser/compiler_spec.rb || die
|
||||
|
||||
# Avoid failing spec that need further investigation.
|
||||
rm spec/unit/module_tool/metadata_spec.rb || die
|
||||
}
|
||||
|
||||
each_ruby_install() {
|
||||
each_fakegem_install
|
||||
# dosym "/usr/$(get_libdir)/ruby/gems/$(ruby_get_version)/gems/${P}" "/usr/$(get_libdir)/ruby/gems/$(ruby_get_version)/gems/${PN}"
|
||||
}
|
||||
|
||||
all_ruby_install() {
|
||||
all_fakegem_install
|
||||
|
||||
# systemd stuffs
|
||||
insinto /usr/lib/systemd/system
|
||||
doins "${WORKDIR}/all/${P}/ext/systemd/puppet.service"
|
||||
|
||||
# tmpfiles stuff
|
||||
insinto /usr/lib/tmpfiles.d
|
||||
newins "${FILESDIR}/tmpfiles.d" "puppet.conf"
|
||||
|
||||
# openrc init stuff
|
||||
newinitd "${FILESDIR}"/puppet.init-4.x puppet
|
||||
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 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
|
||||
|
||||
for v in ${REPLACING_VERSIONS}; do
|
||||
if [ "$(get_major_version $v)" = "4" ]; then
|
||||
elog
|
||||
elog "Please see the following url for the release notes for puppet-5"
|
||||
elog "https://docs.puppet.com/puppet/5.0/release_notes.html#if-youre-upgrading-from-puppet-4x"
|
||||
elog
|
||||
fi
|
||||
done
|
||||
}
|
@ -1,3 +1,3 @@
|
||||
DIST salt-2016.11.9.tar.gz 10062996 BLAKE2B 5176d04d07a69de21c9c136c201d334614c5675fd78e306a0160fae829b633441cd859f4ba1a0822dfbb9ae716475c53f6eb058187d4acc8a5770dd4ceace577 SHA512 896fd27c111e926e246b51d00b69d41c8f4d25ec0c034c9ff3dc5414f5e93592fd637cdeaecf02b3b98a4e5a7ce478bfda86b15497961078374608d76516593d
|
||||
DIST salt-2017.7.7.tar.gz 11131480 BLAKE2B ea01c8894433cf96697c830d58184bfefca52dcd1be9b1c398270acc229886eeb41edf83d1498fc500f23209fc4e56ba8471da88383bd4c1a9338262423477fb SHA512 01cba364e2dcb5021b2b3b738462645c84332bbf31c0fa82f017fc583a097dccde308fd86be54d2b429921f34c89a4a40b942385c3bc139eb11753d155664063
|
||||
DIST salt-2018.3.2.tar.gz 12996445 BLAKE2B 8411fb0891e23ce8e35157662a0a45c0c5b13b62f3fd21cc4bbe5152f923a98b27cb5bee4fb8cb3e6ec5c9daed1afa27baf4b570b94f9f40eddc0891f72829e9 SHA512 142ebe13638d7e6dd0aecc9f0325002d30e115fe8688f5f74cbeb7ff21020327d65ded0dcd845e55362b97568b696887fa22243d66d5eadef65f97152d4775d3
|
||||
DIST salt-2016.11.10.tar.gz 10058200 BLAKE2B 4b6a42f6bf56421bc19458686ec23a1f945ceeb68b4ce7059fde036ba98d677fc8b61cb0f0c6ab249304b2f07d1b0250f6b91e7c443e12868649bf88f4d44d43 SHA512 e767e2c4c20e3a49a748b2699e4c640610280c0ba1c5955d94daffc7c36991ee632f02a50e338c65b35da146e234c36cc732214174b9bc5cbd62316b9ee40c28
|
||||
DIST salt-2017.7.8.tar.gz 12060430 BLAKE2B b2dde1b6f43bbb9b9db29b70dfd57591ae0e490e35ec7f4895b68b444ff77f9e997321d73697f791d345756abf451f11891b5f78a97c537c35dfe8bd24c43bbc SHA512 1e5123ee3dc194a33cf5da1e68a0419230b2b4eea26e7f66bf2d64754f0dbef9012abfbd498015f6b675725e580d72abf13c151b106639597337498b1fd42238
|
||||
DIST salt-2018.3.3.tar.gz 13953724 BLAKE2B 353f4ee23747f02200116157823b038fc8d361fb88f5f531a147d6c81497ba3f6cebf5a5abf4ac7f81199439bbf8a9cc46e03cdd76bfbb3c39f2b31a6158ca5c SHA512 f00ed83d5ec9d4767d7215fae8569ec560db61a0c8ded17469026e682e367c19811d33c6c53590a275ee24ad897a0eac09d8fde8ae9320d8706d6459ff3cc6da
|
||||
|
@ -1,25 +1,29 @@
|
||||
diff --git a/tests/unit/fileserver/test_roots.py b/tests/unit/fileserver/test_roots.py
|
||||
index cc9c8dbce9..a50a240c25 100644
|
||||
index 23f3b26874..bf0b55c385 100644
|
||||
--- a/tests/unit/fileserver/test_roots.py
|
||||
+++ b/tests/unit/fileserver/test_roots.py
|
||||
@@ -164,12 +164,6 @@ class RootsTest(TestCase, AdaptedConfigurationTestCaseMixin, LoaderModuleMockMix
|
||||
@@ -173,16 +173,6 @@ class RootsTest(TestCase, AdaptedConfigurationTestCaseMixin, LoaderModuleMockMix
|
||||
ret = roots.dir_list({'saltenv': 'base'})
|
||||
self.assertIn('empty_dir', ret)
|
||||
|
||||
- def test_symlink_list(self):
|
||||
- if self.test_symlink_list_file_roots:
|
||||
- self.opts['file_roots'] = self.test_symlink_list_file_roots
|
||||
- ret = roots.symlink_list({'saltenv': 'base'})
|
||||
- self.assertDictEqual(ret, {'dest_sym': 'source_sym'})
|
||||
-
|
||||
- orig_file_roots = self.opts['file_roots']
|
||||
- try:
|
||||
- if self.test_symlink_list_file_roots:
|
||||
- self.opts['file_roots'] = self.test_symlink_list_file_roots
|
||||
- ret = roots.symlink_list({'saltenv': 'base'})
|
||||
- self.assertDictEqual(ret, {'dest_sym': 'source_sym'})
|
||||
- finally:
|
||||
- if self.test_symlink_list_file_roots:
|
||||
- self.opts['file_roots'] = orig_file_roots
|
||||
|
||||
class RootsLimitTraversalTest(TestCase, AdaptedConfigurationTestCaseMixin):
|
||||
|
||||
class RootsLimitTraversalTest(TestCase, AdaptedConfigurationTestCaseMixin):
|
||||
diff --git a/tests/unit/modules/test_inspect_collector.py b/tests/unit/modules/test_inspect_collector.py
|
||||
index 0d37519a9e..c18be8d592 100644
|
||||
index c2a86d9e5e..421cab9b52 100644
|
||||
--- a/tests/unit/modules/test_inspect_collector.py
|
||||
+++ b/tests/unit/modules/test_inspect_collector.py
|
||||
@@ -59,44 +59,6 @@ class InspectorCollectorTestCase(TestCase):
|
||||
@@ -61,44 +61,6 @@ class InspectorCollectorTestCase(TestCase):
|
||||
inspector.pidfile,
|
||||
os.sep + os.sep.join(['foo', 'pid', 'bar.pid']))
|
||||
|
Binary file not shown.
@ -0,0 +1,84 @@
|
||||
# Copyright 1999-2018 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
PYTHON_COMPAT=( python2_7 python3_4 python3_5 python3_6 )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Cloud instance initialisation magic"
|
||||
HOMEPAGE="https://launchpad.net/cloud-init"
|
||||
SRC_URI="https://launchpad.net/${PN}/trunk/${PV}/+download/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="test"
|
||||
|
||||
# remove prettytable in 17.2
|
||||
CDEPEND="
|
||||
dev-python/jinja[${PYTHON_USEDEP}]
|
||||
dev-python/oauthlib[${PYTHON_USEDEP}]
|
||||
dev-python/pyserial[${PYTHON_USEDEP}]
|
||||
>=dev-python/configobj-5.0.2[${PYTHON_USEDEP}]
|
||||
dev-python/pyyaml[${PYTHON_USEDEP}]
|
||||
dev-python/requests[${PYTHON_USEDEP}]
|
||||
dev-python/jsonpatch[${PYTHON_USEDEP}]
|
||||
dev-python/jsonschema[${PYTHON_USEDEP}]
|
||||
dev-python/six[${PYTHON_USEDEP}]
|
||||
"
|
||||
DEPEND="
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
test? (
|
||||
${CDEPEND}
|
||||
>=dev-python/httpretty-0.7.1[${PYTHON_USEDEP}]
|
||||
dev-python/mock[${PYTHON_USEDEP}]
|
||||
dev-python/nose[${PYTHON_USEDEP}]
|
||||
dev-python/unittest2[${PYTHON_USEDEP}]
|
||||
dev-python/coverage[${PYTHON_USEDEP}]
|
||||
dev-python/contextlib2[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
RDEPEND="
|
||||
${CDEPEND}
|
||||
net-analyzer/macchanger
|
||||
sys-apps/iproute2
|
||||
sys-fs/growpart
|
||||
virtual/logger
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${P}-fix-packages-module.patch
|
||||
"${FILESDIR}"/${P}-gentoo-support-upstream-templates.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
# Fix location of documentation installation
|
||||
sed -i "s:USR + '/share/doc/cloud-init:USR + '/share/doc/${PF}:" setup.py || die
|
||||
distutils-r1_src_prepare
|
||||
}
|
||||
|
||||
python_test() {
|
||||
# Do not use Makefile target as it does not setup environment correclty
|
||||
esetup.py nosetests -v --where cloudinit --where tests/unittests || die
|
||||
}
|
||||
|
||||
python_install() {
|
||||
distutils-r1_python_install --init-system=sysvinit_openrc,systemd --distro gentoo
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
keepdir /etc/cloud
|
||||
|
||||
distutils-r1_python_install_all
|
||||
|
||||
# installs as non-executable
|
||||
chmod +x "${D}"/etc/init.d/*
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "cloud-init-local needs to be run in the boot runlevel because it"
|
||||
elog "modifies services in the default runlevel. When a runlevel is started"
|
||||
elog "it is cached, so modifications that happen to the current runlevel"
|
||||
elog "while you are in it are not acted upon."
|
||||
}
|
@ -0,0 +1,25 @@
|
||||
From e894c6f57b88305cdf6e4e2b1543475b2e02f436 Mon Sep 17 00:00:00 2001
|
||||
From: Gilles Dartiguelongue <eva@gentoo.org>
|
||||
Date: Tue, 23 Oct 2018 18:59:58 +0200
|
||||
Subject: [PATCH 1/2] Fix Gentoo package installation command
|
||||
|
||||
---
|
||||
cloudinit/distros/gentoo.py | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/cloudinit/distros/gentoo.py b/cloudinit/distros/gentoo.py
|
||||
index dc57717d..98ac41ca 100644
|
||||
--- a/cloudinit/distros/gentoo.py
|
||||
+++ b/cloudinit/distros/gentoo.py
|
||||
@@ -192,7 +192,7 @@ class Distro(distros.Distro):
|
||||
if pkgs is None:
|
||||
pkgs = []
|
||||
|
||||
- cmd = list('emerge')
|
||||
+ cmd = ['emerge']
|
||||
# Redirect output
|
||||
cmd.append("--quiet")
|
||||
|
||||
--
|
||||
2.19.0
|
||||
|
@ -0,0 +1,91 @@
|
||||
From 946ce2b005a71e9922654af79bce51fefa16c3d4 Mon Sep 17 00:00:00 2001
|
||||
From: Gilles Dartiguelongue <eva@gentoo.org>
|
||||
Date: Wed, 24 Oct 2018 10:52:46 +0200
|
||||
Subject: [PATCH 2/2] Add support for gentoo in cloud.cfg and templates
|
||||
|
||||
---
|
||||
config/cloud.cfg.tmpl | 8 ++++++--
|
||||
templates/hosts.gentoo.tmpl | 24 ++++++++++++++++++++++++
|
||||
tools/render-cloudcfg | 2 +-
|
||||
3 files changed, 31 insertions(+), 3 deletions(-)
|
||||
create mode 100644 templates/hosts.gentoo.tmpl
|
||||
|
||||
diff --git a/config/cloud.cfg.tmpl b/config/cloud.cfg.tmpl
|
||||
index 1fef133a..f66b5f7e 100644
|
||||
--- a/config/cloud.cfg.tmpl
|
||||
+++ b/config/cloud.cfg.tmpl
|
||||
@@ -134,7 +134,7 @@ cloud_final_modules:
|
||||
# (not accessible to handlers/transforms)
|
||||
system_info:
|
||||
# This will affect which distro class gets used
|
||||
-{% if variant in ["centos", "debian", "fedora", "rhel", "suse", "ubuntu", "freebsd"] %}
|
||||
+{% if variant in ["centos", "debian", "fedora", "rhel", "suse", "ubuntu", "freebsd", "gentoo"] %}
|
||||
distro: {{ variant }}
|
||||
{% else %}
|
||||
# Unknown/fallback distro.
|
||||
@@ -172,7 +172,7 @@ system_info:
|
||||
primary: http://ports.ubuntu.com/ubuntu-ports
|
||||
security: http://ports.ubuntu.com/ubuntu-ports
|
||||
ssh_svcname: ssh
|
||||
-{% elif variant in ["centos", "rhel", "fedora", "suse"] %}
|
||||
+{% elif variant in ["centos", "rhel", "fedora", "suse", "gentoo"] %}
|
||||
# Default user name + that default users groups (if added/used)
|
||||
default_user:
|
||||
name: {{ variant }}
|
||||
@@ -180,6 +180,10 @@ system_info:
|
||||
gecos: {{ variant }} Cloud User
|
||||
{% if variant == "suse" %}
|
||||
groups: [cdrom, users]
|
||||
+{% elif variant == "gentoo" %}
|
||||
+ groups: [users, wheel]
|
||||
+ primary_group: users
|
||||
+ no-user-group: true
|
||||
{% else %}
|
||||
groups: [wheel, adm, systemd-journal]
|
||||
{% endif %}
|
||||
diff --git a/templates/hosts.gentoo.tmpl b/templates/hosts.gentoo.tmpl
|
||||
new file mode 100644
|
||||
index 00000000..cd045fa6
|
||||
--- /dev/null
|
||||
+++ b/templates/hosts.gentoo.tmpl
|
||||
@@ -0,0 +1,24 @@
|
||||
+## template:jinja
|
||||
+{#
|
||||
+This file /etc/cloud/templates/hosts.gentoo.tmpl is only utilized
|
||||
+if enabled in cloud-config. Specifically, in order to enable it
|
||||
+you need to add the following to config:
|
||||
+ manage_etc_hosts: True
|
||||
+-#}
|
||||
+# Your system has configured 'manage_etc_hosts' as True.
|
||||
+# As a result, if you wish for changes to this file to persist
|
||||
+# then you will need to either
|
||||
+# a.) make changes to the master file in /etc/cloud/templates/hosts.gentoo.tmpl
|
||||
+# b.) change or remove the value of 'manage_etc_hosts' in
|
||||
+# /etc/cloud/cloud.cfg or cloud-config from user-data
|
||||
+#
|
||||
+# The following lines are desirable for IPv4 capable hosts
|
||||
+127.0.0.1 {{fqdn}} {{hostname}}
|
||||
+127.0.0.1 localhost.localdomain localhost
|
||||
+127.0.0.1 localhost4.localdomain4 localhost4
|
||||
+
|
||||
+# The following lines are desirable for IPv6 capable hosts
|
||||
+::1 {{fqdn}} {{hostname}}
|
||||
+::1 localhost.localdomain localhost
|
||||
+::1 localhost6.localdomain6 localhost6
|
||||
+
|
||||
diff --git a/tools/render-cloudcfg b/tools/render-cloudcfg
|
||||
index 8b7cb875..d109044e 100755
|
||||
--- a/tools/render-cloudcfg
|
||||
+++ b/tools/render-cloudcfg
|
||||
@@ -4,7 +4,7 @@ import argparse
|
||||
import os
|
||||
import sys
|
||||
|
||||
-VARIANTS = ["bsd", "centos", "fedora", "rhel", "suse", "ubuntu", "unknown"]
|
||||
+VARIANTS = ["bsd", "centos", "fedora", "gentoo", "rhel", "suse", "ubuntu", "unknown"]
|
||||
|
||||
if "avoid-pep8-E402-import-not-top-of-file":
|
||||
_tdir = os.path.abspath(os.path.join(os.path.dirname(__file__), ".."))
|
||||
--
|
||||
2.19.0
|
||||
|
Binary file not shown.
Binary file not shown.
@ -1,98 +0,0 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=4
|
||||
JAVA_PKG_IUSE="doc examples"
|
||||
|
||||
inherit eutils java-pkg-2 java-ant-2
|
||||
|
||||
DESCRIPTION="An open-source AVR electronics prototyping platform"
|
||||
HOMEPAGE="https://arduino.cc/ https://github.com/arduino/"
|
||||
SRC_URI="https://${PN}.googlecode.com/files/${P}-src.tar.gz
|
||||
mirror://gentoo/arduino-icons.tar.bz2"
|
||||
LICENSE="GPL-2 GPL-2+ LGPL-2 CC-BY-SA-3.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 x86"
|
||||
RESTRICT="strip binchecks"
|
||||
IUSE=""
|
||||
|
||||
COMMONDEP="
|
||||
dev-java/jna:0
|
||||
>dev-java/rxtx-2.1:2"
|
||||
|
||||
RDEPEND="${COMMONDEP}
|
||||
dev-embedded/avrdude
|
||||
dev-embedded/uisp
|
||||
sys-devel/crossdev
|
||||
>=virtual/jre-1.5"
|
||||
|
||||
DEPEND="${COMMONDEP}
|
||||
>=virtual/jdk-1.5"
|
||||
|
||||
EANT_GENTOO_CLASSPATH="jna,rxtx-2"
|
||||
EANT_EXTRA_ARGS="-Dversion=${PV}"
|
||||
EANT_BUILD_TARGET="build"
|
||||
JAVA_ANT_REWRITE_CLASSPATH="yes"
|
||||
|
||||
java_prepare() {
|
||||
# Remove the libraries to ensure the system
|
||||
# libraries are used
|
||||
rm build/linux/dist/tools/avrdude* || die
|
||||
rm build/linux/dist/lib/* || die
|
||||
rm app/lib/* || die
|
||||
rm -rf app/src/processing/app/macosx || die
|
||||
# Patch build/build.xml - remove local jar files
|
||||
# for rxtx and ecj (use system wide versions)
|
||||
epatch "${FILESDIR}"/${PN}-1.0.1-build.xml.patch
|
||||
|
||||
# Patch launcher script to include rxtx class/ld paths
|
||||
epatch "${FILESDIR}"/${PN}-1.0.3-script.patch
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
eant -f core/build.xml
|
||||
EANT_GENTOO_CLASSPATH_EXTRA="../core/core.jar"
|
||||
eant -f app/build.xml
|
||||
eant "${EANT_EXTRA_ARGS}" -f build/build.xml
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cd "${S}"/build/linux/work || die
|
||||
java-pkg_dojar lib/core.jar lib/pde.jar
|
||||
java-pkg_dolauncher ${PN} --pwd /usr/share/${PN} --main processing.app.Base
|
||||
|
||||
if use examples; then
|
||||
java-pkg_doexamples examples
|
||||
docompress -x /usr/share/doc/${PF}/examples/
|
||||
fi
|
||||
|
||||
if use doc; then
|
||||
dodoc revisions.txt "${S}"/readme.txt
|
||||
dohtml -r reference
|
||||
java-pkg_dojavadoc "${S}"/build/javadoc/everything
|
||||
fi
|
||||
|
||||
insinto "/usr/share/${PN}/"
|
||||
doins -r hardware libraries
|
||||
fowners -R root:uucp "/usr/share/${PN}/hardware"
|
||||
|
||||
insinto "/usr/share/${PN}/lib"
|
||||
doins -r lib/*.txt lib/theme lib/*.jpg
|
||||
|
||||
# use system avrdude
|
||||
# patching class files is too hard
|
||||
dosym /usr/bin/avrdude "/usr/share/${PN}/hardware/tools/avrdude"
|
||||
dosym /etc/avrdude.conf "/usr/share/${PN}/hardware/tools/avrdude.conf"
|
||||
|
||||
# install menu and icons
|
||||
domenu "${FILESDIR}/${PN}.desktop"
|
||||
for sz in 16 24 32 48 128 256; do
|
||||
newicon -s $sz \
|
||||
"${WORKDIR}/${PN}-icons/debian_icons_${sz}x${sz}_apps_${PN}.png" \
|
||||
"${PN}.png"
|
||||
done
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
[ ! -x /usr/bin/avr-g++ ] && ewarn "Missing avr-g++; you need to crossdev -s4 avr"
|
||||
}
|
@ -1,107 +0,0 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
JAVA_PKG_IUSE="doc examples"
|
||||
|
||||
inherit java-pkg-2 java-ant-2
|
||||
|
||||
DESCRIPTION="An open-source AVR electronics prototyping platform"
|
||||
HOMEPAGE="https://arduino.cc/ https://github.com/arduino/"
|
||||
SRC_URI="
|
||||
https://github.com/arduino/Arduino/archive/${PV}.tar.gz -> arduino-src-${PV}.tar.gz
|
||||
mirror://gentoo/arduino-icons.tar.bz2
|
||||
"
|
||||
|
||||
LICENSE="GPL-2 GPL-2+ LGPL-2 CC-BY-SA-3.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
RESTRICT="strip binchecks"
|
||||
|
||||
S="${WORKDIR}/Arduino-${PV}"
|
||||
|
||||
CDEPEND="
|
||||
dev-java/jna:0
|
||||
>dev-java/rxtx-2.1:2"
|
||||
|
||||
RDEPEND="
|
||||
${CDEPEND}
|
||||
dev-embedded/avrdude
|
||||
dev-embedded/uisp
|
||||
sys-devel/crossdev
|
||||
>=virtual/jre-1.6"
|
||||
|
||||
DEPEND="
|
||||
${CDEPEND}
|
||||
>=virtual/jdk-1.6"
|
||||
|
||||
EANT_GENTOO_CLASSPATH="jna,rxtx-2"
|
||||
EANT_EXTRA_ARGS="-Dversion=${PV}"
|
||||
EANT_BUILD_TARGET="build"
|
||||
JAVA_ANT_REWRITE_CLASSPATH="yes"
|
||||
|
||||
src_prepare() {
|
||||
# Remove the libraries to ensure the system
|
||||
# libraries are used
|
||||
rm -rv \
|
||||
build/linux/dist/tools/avrdude* \
|
||||
build/linux/dist/lib/* \
|
||||
app/lib/* \
|
||||
app/src/processing/app/macosx || die
|
||||
# Patch build/build.xml - remove local jar files
|
||||
# for rxtx and ecj (use system wide versions)
|
||||
epatch \
|
||||
"${FILESDIR}"/${PN}-1.0.1-build.xml.patch \
|
||||
"${FILESDIR}"/${PN}-1.0.3-script.patch
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
eant -f core/build.xml
|
||||
EANT_GENTOO_CLASSPATH_EXTRA="../core/core.jar"
|
||||
eant -f app/build.xml
|
||||
eant "${EANT_EXTRA_ARGS}" -f build/build.xml
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cd "${S}"/build/linux/work || die
|
||||
java-pkg_dojar lib/core.jar lib/pde.jar
|
||||
java-pkg_dolauncher ${PN} --pwd /usr/share/${PN} --main processing.app.Base
|
||||
|
||||
if use examples; then
|
||||
java-pkg_doexamples examples
|
||||
docompress -x /usr/share/doc/${PF}/examples/
|
||||
fi
|
||||
|
||||
if use doc; then
|
||||
DOCS=( revisions.txt "${S}"/readme.txt )
|
||||
HTML_DOCS=( reference )
|
||||
einstalldocs
|
||||
java-pkg_dojavadoc "${S}"/build/javadoc/everything
|
||||
fi
|
||||
|
||||
insinto "/usr/share/${PN}/"
|
||||
doins -r hardware libraries
|
||||
fowners -R root:uucp "/usr/share/${PN}/hardware"
|
||||
|
||||
insinto "/usr/share/${PN}/lib"
|
||||
doins -r lib/*.txt lib/theme lib/*.jpg
|
||||
|
||||
# use system avrdude
|
||||
# patching class files is too hard
|
||||
dosym /usr/bin/avrdude "/usr/share/${PN}/hardware/tools/avrdude"
|
||||
dosym /etc/avrdude.conf "/usr/share/${PN}/hardware/tools/avrdude.conf"
|
||||
|
||||
# install menu and icons
|
||||
domenu "${FILESDIR}/${PN}.desktop"
|
||||
for sz in 16 24 32 48 128 256; do
|
||||
newicon -s $sz \
|
||||
"${WORKDIR}/${PN}-icons/debian_icons_${sz}x${sz}_apps_${PN}.png" \
|
||||
"${PN}.png"
|
||||
done
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
[[ ! -x /usr/bin/avr-g++ ]] && ewarn "Missing avr-g++; you need to crossdev -s4 avr"
|
||||
}
|
@ -1,38 +0,0 @@
|
||||
--- arduino-1.0.1/build/build.xml 2012-04-09 00:16:12.000000000 +0100
|
||||
+++ arduino-1.0.1/build/build.xml 2012-06-25 06:12:09.000000000 +0100
|
||||
@@ -24,9 +24,9 @@
|
||||
<fileset dir=".." id="runtime.jars">
|
||||
<include name="core/core.jar" />
|
||||
<include name="app/pde.jar" />
|
||||
- <include name="app/lib/ecj.jar" />
|
||||
+<!-- <include name="app/lib/ecj.jar" /> -->
|
||||
<include name="app/lib/jna.jar" />
|
||||
- <include name="app/lib/RXTXcomm.jar" />
|
||||
+<!-- <include name="app/lib/RXTXcomm.jar" /> -->
|
||||
<include name="app/lib/ant.jar" />
|
||||
<include name="app/lib/ant-launcher.jar" />
|
||||
</fileset>
|
||||
@@ -361,16 +361,18 @@
|
||||
</target>
|
||||
|
||||
<target name="linux64-build" depends="linux-build" description="Build linux (64-bit) version">
|
||||
- <copy tofile="linux/work/hardware/tools/avrdude" file="linux/dist/tools/avrdude64" overwrite="true" />
|
||||
- <copy tofile="linux/work/lib/librxtxSerial.so" file="linux/dist/lib/librxtxSerial64.so" overwrite="true" />
|
||||
+<!-- <copy tofile="linux/work/hardware/tools/avrdude" file="linux/dist/tools/avrdude64" overwrite="true" /> -->
|
||||
+<!-- <copy tofile="linux/work/lib/librxtxSerial.so" file="linux/dist/lib/librxtxSerial64.so" overwrite="true" /> -->
|
||||
|
||||
- <chmod perm="755" file="linux/work/hardware/tools/avrdude" />
|
||||
+<!-- <chmod perm="755" file="linux/work/hardware/tools/avrdude" /> -->
|
||||
|
||||
<!-- Unzip AVR tools -->
|
||||
- <exec executable="tar" dir="linux/work/hardware">
|
||||
+<!-- Removed by Paulj - use system installed instead -->
|
||||
+<!-- <exec executable="tar" dir="linux/work/hardware">
|
||||
<arg value="-xjf"/>
|
||||
<arg value="../../avr_tools_linux64.tar.bz2"/>
|
||||
- </exec>
|
||||
+ </exec>
|
||||
+-->
|
||||
</target>
|
||||
|
||||
<target name="linux32-run" depends="linux32-build"
|
@ -1,20 +0,0 @@
|
||||
diff --git a/build/linux/dist/arduino b/build/linux/dist/arduino
|
||||
index b5eb9db..3f3b4aa 100644
|
||||
--- a/build/linux/dist/arduino
|
||||
+++ b/build/linux/dist/arduino
|
||||
@@ -10,11 +10,13 @@ for LIB in \
|
||||
lib/*.jar \
|
||||
;
|
||||
do
|
||||
- CLASSPATH="${CLASSPATH}:${LIB}"
|
||||
+ CLASSPATH="${CLASSPATH+$CLASSPATH:}${LIB}"
|
||||
+
|
||||
done
|
||||
+CLASSPATH="${CLASSPATH+$CLASSPATH:}:$(java-config -dp rxtx-2)"
|
||||
export CLASSPATH
|
||||
|
||||
-LD_LIBRARY_PATH=`pwd`/lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}
|
||||
+LD_LIBRARY_PATH="$(java-config -di rxtx-2)${LD_LIBRARY_PATH+:$LD_LIBRARY_PATH}"
|
||||
export LD_LIBRARY_PATH
|
||||
|
||||
export PATH="${APPDIR}/java/bin:${PATH}"
|
Binary file not shown.
@ -0,0 +1,28 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit rebar
|
||||
|
||||
DESCRIPTION="Logging framework for Erlang/OTP"
|
||||
HOMEPAGE="https://github.com/erlang-lager/lager"
|
||||
SRC_URI="https://github.com/erlang-lager/${PN}/archive/${PV}.tar.gz
|
||||
-> ${P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~ia64 ~ppc ~sparc ~x86"
|
||||
|
||||
DEPEND=">=dev-erlang/goldrush-0.1.9
|
||||
>=dev-lang/erlang-17.1"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
DOCS=( README.md TODO )
|
||||
|
||||
src_prepare() {
|
||||
rebar_src_prepare
|
||||
sed -i '/goldrush/d' rebar.config.script
|
||||
# 'priv' directory contains only edoc.css, but doc isn't going to be built.
|
||||
rm -r "${S}/priv" || die
|
||||
}
|
@ -1 +1,2 @@
|
||||
DIST luerl-0.2.tar.gz 94603 BLAKE2B 47e04b93791c6e9342878a1d3da8f1b757822e5fcf7278fc7f13441e1bacd96c3716744d303ce087d8f0dbc98b2c8c74c32777f291470e02b02f9c7bdd26eeb7 SHA512 80fb76609ad42df880d67919c352785781adb1d815b4c625bb93c35caf17ecf5455e82aab61f95c6c2f522d554b2858748d295db7c487c26e90c6afa957faaec
|
||||
DIST luerl-0.3.tar.gz 95182 BLAKE2B eca0317c823fb3649f87e6e872780e06aa6288f7e7fb10dcdff345680f0112e2928a54bd061bc258e95da160ddd335500c6ed123e1e8cf77d37822634c42da05 SHA512 490e4cd5d26b18d4102e83b6a8440fd31588f3888ac1942c44ac0985f68250b440eabeecdae648f076a6b8290a5ae838a59e0a517d745c5febfbc00b6d5dba44
|
||||
|
@ -0,0 +1,20 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit rebar
|
||||
|
||||
DESCRIPTION="Lua in Erlang"
|
||||
HOMEPAGE="https://github.com/rvirding/luerl"
|
||||
SRC_URI="https://github.com/rvirding/${PN}/archive/v${PV}.tar.gz
|
||||
-> ${P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~ia64 ~ppc ~sparc ~x86"
|
||||
|
||||
DEPEND=">=dev-lang/erlang-17.1"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
DOCS=( README.md )
|
@ -1,2 +1,3 @@
|
||||
DIST meck-0.8.12.tar.gz 50998 BLAKE2B fc87c0472e5e5063b2247366654e8fd5d6310e8f16e3f324ad721cab35e88527f2bacd7eb0d686a44137ebe758d77a24357002c29ff2e979fb54efc82c8ff160 SHA512 d70c878474a300465c7b439f25d363362f376135f0bf5f9a1e74e2c620a59b20ceb0e47d2cf0dc44ae80ec5215c60f696084b21aa94d72220632d8012827147d
|
||||
DIST meck-0.8.3.tar.gz 232910 BLAKE2B 8ea00214e5760eba20b4aaf0c2e9d16643ac764c7225df1f1f841cc9614820cbd707ce5e24761dc416d15e997ac5a76844ce4b7f1dc3f2e6d908378ad8949077 SHA512 2009bba7d9e7825142c335a03f3f67ef1a9407fa0f93d360c3f4854851af789dc3ad65935e42b1f0bc69d0f47a8854d311eaf68628a4088d1bcbe05c4010c5bd
|
||||
DIST meck-0.8.4.tar.gz 234157 BLAKE2B 0f8abb2bda2afa3c41e18d51ec8ba6add17e69343f298c595dc4c6e6edab05770c875e158ba73314e1f5289bf6692bc5bf1e779e0e9edbe7d39a88ba44724be0 SHA512 e6d8caf385e93daef70382f2efac59215628cc200dfaeb74437571d24131b49eb8328af452133ce3c9393d14a1f84b90c2432c83af25cf0cb17cd19a236373a7
|
||||
|
@ -0,0 +1,25 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit rebar
|
||||
|
||||
DESCRIPTION="Mocking library for Erlang"
|
||||
HOMEPAGE="https://github.com/eproxus/meck"
|
||||
SRC_URI="https://github.com/eproxus/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~ia64 ~ppc ~sparc ~x86"
|
||||
IUSE="test"
|
||||
|
||||
CDEPEND=">=dev-lang/erlang-17.1"
|
||||
DEPEND="${CDEPEND}
|
||||
test? ( >=dev-erlang/hamcrest-0.1.0_p20150103 )"
|
||||
RDEPEND="${CDEPEND}"
|
||||
|
||||
DOCS=( CHANGELOG.md NOTICE README.md )
|
||||
|
||||
# Tests need rebar3. The build somewhat works with rebar2.
|
||||
RESTRICT="test"
|
@ -1,2 +1,3 @@
|
||||
DIST p1_mysql-1.0.1.tar.gz 19329 BLAKE2B b5904a12e8ce5c1b58ff789adb5df7fd9040b8a874b6e1054f3086fa1c28b1347e21d6809fa00fb8281816d2bfaccd7889cb2c2665376a40e87b36eaf315e269 SHA512 2e5d3baa255ab7b6d3271e633793bfb265648b260c104256980a1229ea20bf3701d8f665f65fb4785272ea7e4e6a346a262ffbf609de10aec6d8029ef1d4f567
|
||||
DIST p1_mysql-1.0.2.tar.gz 19512 BLAKE2B 8cf7cded80d6ca1239019f3d1bbb7d4babbe0336a09b6c8ebb55e116eeb592e35a6f332ee6950c78ac6559a3850bdc1dbfa50ded2d30e008deb8e8d50b5c86d2 SHA512 ac0656b3134cfae47161a4643188784cf71e8ea19bbd5856e58d4f1d508a8771534975a631da51e7574e5adb3f64cdd250ab59ab7e9138fd5cb865e80522bd11
|
||||
DIST p1_mysql-1.0.8.tar.gz 21914 BLAKE2B 74c5ab5358347cd956b6d5fec2f96dedd97a0e832c39db8d44b4e7bd810d94237f87a70fe779c54e5e45efe0c574edfb7df1e608cafae226452fb8eb7d0b92a5 SHA512 68382135f96f3edb51fbdd6381a03773f99f39b9fbbcd63add159a7fe6f37a9f19f1ffa39eb248d9b490926ff3c6f393aac6449cf0d88c10eee50c807aba1ab7
|
||||
|
@ -0,0 +1,20 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit rebar
|
||||
|
||||
DESCRIPTION="Pure Erlang MySQL driver"
|
||||
HOMEPAGE="https://github.com/processone/p1_mysql"
|
||||
SRC_URI="https://github.com/processone/${PN}/archive/${PV}.tar.gz
|
||||
-> ${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~ia64 ~ppc ~sparc ~x86"
|
||||
|
||||
DEPEND=">=dev-lang/erlang-17.1"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
DOCS=( CHANGELOG.md README.md )
|
@ -1 +1,2 @@
|
||||
DIST p1_oauth2-0.6.1.tar.gz 212804 BLAKE2B 571341aaa4d3a4bac6ac2f8f46d2e4b9caf5e00622a392635d79ff11b520a3cab71d360220c99a46035ce851974d975d69a71ac9b1be626c9b126941fc4a73cf SHA512 2509d48775579a26178fb5a082e628a8487c986b1b4d4abe974b653a1e0b7605bed934d59f6d62927582bdb95a53ba454816d326d99a77c5360928c4973ade4a
|
||||
DIST p1_oauth2-0.6.3.tar.gz 213860 BLAKE2B a610f7911ce46c30760dd8da42531ff1f4e4953f3158a42f360cec9090ca9901647bdedff5eacd7416e34bb64987cedcbb675c1c39de3a4172e337ec50c07495 SHA512 634606530f90810fb998baf26d14afc092699144506c9be771e74d5c965698d81b93bdc35ce53ff94d0b3ad1c4557a16660cfe74bc75586fbab2baa45b1d9c46
|
||||
|
@ -0,0 +1,36 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit rebar
|
||||
|
||||
DESCRIPTION="Erlang OAuth 2.0 implementation"
|
||||
HOMEPAGE="https://github.com/processone/p1_oauth2"
|
||||
SRC_URI="https://github.com/processone/${PN}/archive/${PV}.tar.gz
|
||||
-> ${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~ia64 ~ppc ~sparc ~x86"
|
||||
IUSE="test"
|
||||
|
||||
CDEPEND=">=dev-lang/erlang-17.1"
|
||||
DEPEND="${CDEPEND}
|
||||
test? (
|
||||
>=dev-erlang/meck-0.8.7
|
||||
>=dev-erlang/proper-1.1_p20150814
|
||||
)"
|
||||
RDEPEND="${CDEPEND}"
|
||||
|
||||
DOCS=( CHANGELOG.md README.md )
|
||||
|
||||
src_prepare() {
|
||||
rebar_src_prepare
|
||||
rebar_remove_deps rebar.test.config
|
||||
sed -e '/, warnings_as_errors/d' -i rebar.test.config || die
|
||||
}
|
||||
|
||||
src_test() {
|
||||
erebar -C rebar.test.config compile eunit
|
||||
}
|
@ -1,3 +1,4 @@
|
||||
DIST p1_pgsql-1.1.0.tar.gz 18634 BLAKE2B 9049192142f43bd4685de59cb62e38139058111066720dcfb4a5ad67670823739789b9d291efa046d102f1042f1726467cdf6c455d5e8567928b5029fef4cb80 SHA512 0907d7aba238dfc561aea4b536aff198b7eb9f365cdd3e0a0f826201299cd146802629572862684b2b1b336341afd1778abe471056b09d14b21953a7c3cb4ba4
|
||||
DIST p1_pgsql-1.1.1.tar.gz 18797 BLAKE2B e6374d98c2417074130f4cf6cedcc54b51ed0d57dd9f28e3d1dee6ace47fe3d807eab4906b25ec392affa09243fe30fc98cb4b8231d50ae1b2b9048428027b89 SHA512 6eaf443528d410a23086b267acbd6ebebe1503e0dc079ff9774d8c30018857c97a29f8aae67dfc9a399c35fdb7aa6e800cfe22a0b4d7836db286e05c9c7f4fad
|
||||
DIST p1_pgsql-1.1.2.tar.gz 19347 BLAKE2B fc8d052dd77037b20a99fc147c55392c4d731eef6f098b6b805c4441e44b7a16ce6dce44c88ac2fa325d47fbadfa11fdc9c75b1f2039112699c2ab1b1dc6af42 SHA512 e5ead1e41e5dd0b9ec1ff96e6d133b8a5eaea38f6eb343391f5a7cc9757c3255730b147a621a8d55f7e0be2798186aedba0af2434ed96a981fa8f19c4ba8927e
|
||||
DIST p1_pgsql-1.1.6.tar.gz 20545 BLAKE2B 17e5f2dc5f08ff830ae2b17a80950e45a0df7f939b8d42bf6a4a373c76818997c040b57f5db4cca3d0767d98c4684c0f61a610822d4c43c5138e61589cf57b8f SHA512 7bed2f44a134cdae1738c2a09257a406fe292a0f6bfb587eecb6597c1b4c6e9ea45d2ed6022ccc6a9a00fe008e4d99b2df4896ac2f0654e1daf7369a39dd60c9
|
||||
|
@ -0,0 +1,20 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit rebar
|
||||
|
||||
DESCRIPTION="Pure Erlang PostgreSQL driver"
|
||||
HOMEPAGE="https://github.com/processone/p1_pgsql"
|
||||
SRC_URI="https://github.com/processone/${PN}/archive/${PV}.tar.gz
|
||||
-> ${P}.tar.gz"
|
||||
|
||||
LICENSE="ErlPL-1.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~ia64 ~ppc ~sparc ~x86"
|
||||
|
||||
DEPEND=">=dev-lang/erlang-17.1"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
DOCS=( CHANGELOG.md README.md )
|
@ -1 +1,2 @@
|
||||
DIST proper-1.2.tar.gz 291892 BLAKE2B 6c69f449c8794c1a957c78e7c478385bb4590f13752856c8695fadcad5f25943da8939d028b21e8615042fccda20561479e1906e4e1c701c281d29123000bd65 SHA512 07030eaf63d7e28d5df168ab6b49bf1ad1850b962453079f8421ce4b682caa0e6bf166a71e7abebff3d61c3ada7da86fe3b6ffee3a8ddadb9686e75733cbf75e
|
||||
DIST proper-1.3.tar.gz 385139 BLAKE2B ff161c9ef694a039105a4ef863952b1a9377bcdfcecebe760de15bfe722291aaf2098a1e187357c6c30586024313f746abf52c89f6c337977deb6caeb448d404 SHA512 4d57ad4fb2a73aedbc9d839c953f0a844bc13acfbcc7e7ec2f0fcf3570a6b877589c1684a28e30dea93f469f6a7ab6db46bb95bb9b539721f6273eb6909dd2bf
|
||||
|
@ -0,0 +1,24 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit rebar
|
||||
|
||||
DESCRIPTION="QuickCheck-inspired property-based testing tool for Erlang"
|
||||
HOMEPAGE="https://github.com/manopapad/proper"
|
||||
SRC_URI="https://github.com/manopapad/proper/archive/v${PV}.tar.gz
|
||||
-> ${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~ia64 ~ppc ~sparc ~x86"
|
||||
|
||||
DEPEND=">=dev-lang/erlang-17.1"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
DOCS=( README.md THANKS )
|
||||
|
||||
src_configure() {
|
||||
./configure
|
||||
}
|
@ -1 +1,2 @@
|
||||
DIST sqlite3-1.1.5.tar.gz 1833901 BLAKE2B 19b02655962e4f70b01826e1346c93119a2a9bc8474083b0cb7719cdf8096d7fe7e33c3e8f17bb1d1bf11e32f4f9707fc2bb15ba6bfa848d2318a9e6c517d85b SHA512 894f39ba0760d15c4adf396d277cc30414c28acbc62135395af6939f769cab9237e836d5c3dcb5250c41917bec3db577902c01dbad1d2600480b3647c3c61c30
|
||||
DIST sqlite3-1.1.6.tar.gz 1834834 BLAKE2B 43b8bb8c10888aebd8842ffe410c1aa2506606dd99c551778b08b2c70788c4bce201758a0bb950e949d25a1d49351c17e2d225c2ad165588378d166959b7485a SHA512 f3781c186f4f677340bf752884559e9afe745726b6e8dfeb8b701ab34a5e58af0e7dba8bd852443f44fac874a1af66970ea29b044ff2f0cfbbeafbb4996cdc8d
|
||||
|
@ -0,0 +1,26 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit rebar
|
||||
|
||||
MY_PN="erlang-sqlite3"
|
||||
MY_P="${MY_PN}-${PV}"
|
||||
|
||||
DESCRIPTION="SQLite gen_server port for Erlang"
|
||||
HOMEPAGE="https://github.com/processone/erlang-sqlite3"
|
||||
SRC_URI="https://github.com/processone/${MY_PN}/archive/${PV}.tar.gz
|
||||
-> ${P}.tar.gz"
|
||||
|
||||
LICENSE="ErlPL-1.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~ia64 ~ppc ~sparc ~x86"
|
||||
|
||||
DEPEND=">=dev-lang/erlang-17.1
|
||||
dev-db/sqlite:3"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
DOCS=( AUTHORS README.md )
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
@ -0,0 +1,21 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit rebar
|
||||
|
||||
DESCRIPTION="Fast Stringprep implementation for Erlang and Elixir"
|
||||
HOMEPAGE="https://github.com/processone/stringprep"
|
||||
SRC_URI="https://github.com/processone/${PN}/archive/${PV}.tar.gz
|
||||
-> ${P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0 tcltk"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~ia64 ~ppc ~sparc ~x86"
|
||||
|
||||
DEPEND=">=dev-erlang/p1_utils-1.0.13
|
||||
>=dev-lang/erlang-17.1"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
DOCS=( CHANGELOG.md README.md )
|
@ -1 +1,2 @@
|
||||
DIST xmpp-1.1.9.tar.gz 370926 BLAKE2B 908ce986831300a3f62609a6b95cdbab42028cbbbe1bffe30fbe9865956de2a86d791dc9c807295c50a4e1945e85f5e16f9e7d03ee4e1cf4e96638e7e6a63aff SHA512 13af5699966c8e9c0568356a3620ce6861549b0091e1889c957a91b4384ed24dd98a04422fcfed07470fc94ad9e49459e7942fc5aa9c5e5fd1a20f3efd5fdd1f
|
||||
DIST xmpp-1.2.5.tar.gz 459997 BLAKE2B 73157baa9b4616a76472f76f0e290efc1312b6ea6171edd09636562ee0a7b733bd82459dcb324ae8fc279d8a61b4dd0f2dfabb44013d921063abb1a0a4d859f4 SHA512 93aaec3a31e6b6ce2aebcdbf3e21ec78746f7ba40363f5e7186c184397af9dc3da33f8da40c732b1dfa8805683383a56b2407978e50a0e8652a09b55bb230f66
|
||||
|
@ -0,0 +1,31 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit rebar
|
||||
|
||||
DESCRIPTION="XMPP parsing and serialization library on top of Fast XML"
|
||||
HOMEPAGE="https://github.com/processone/xmpp"
|
||||
SRC_URI="https://github.com/processone/${PN}/archive/${PV}.tar.gz
|
||||
-> ${P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~ia64 ~ppc ~sparc ~x86"
|
||||
IUSE="test"
|
||||
|
||||
RDEPEND=">=dev-erlang/ezlib-1.0.4
|
||||
>=dev-erlang/fast_tls-1.0.14
|
||||
>=dev-erlang/fast_xml-1.1.34
|
||||
>=dev-erlang/p1_utils-1.0.13
|
||||
>=dev-erlang/stringprep-1.0.14
|
||||
dev-lang/erlang"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
DOCS=( CHANGELOG.md )
|
||||
|
||||
src_prepare() {
|
||||
rebar_src_prepare
|
||||
rebar_fix_include_path fast_xml
|
||||
}
|
Binary file not shown.
@ -1,6 +1,4 @@
|
||||
DIST elixir-1.4.5.tar.gz 1829098 BLAKE2B bc8e2beafe53c3af507215d913558e295370ed8d3731c8b013f5d1cd2ad1d8a4fad4b3fe1a7ee3397470916f6f6687436ecbaa06c85c47f4b52aa0331b7dad23 SHA512 3fe659a739ded54bfc7d05a96acf3061c860e44cfd7700651d138c7e21997c5703cc62d2bd3b7a258b27064bb222dfdcdc01e4d017451f522f9658a039073611
|
||||
DIST elixir-1.6.5.tar.gz 2075889 BLAKE2B 73586354f3672ef7892b462781e8e94ab913548b4753129a08e4864f222590e95b310c55df628e4e42015bed642569a7183624c2d107cd07dac560ba2b9a57fa SHA512 e2cf9c2d9198da32cefb841cae4ce64bb52eb28239bbffb6d991916cfdee420b242773664efa7381eb4609c67438ab608f5f96ca2c403b54ecdd9bfdddf91a95
|
||||
DIST elixir-1.6.6.tar.gz 2078742 BLAKE2B 4a793ac55db97c1d604d5f0012758d039f4a26eff5866a2ad2b90010f8477a8f62cc8f01a391f93133c927c5da5494b6d10b76f087a4af1206da977b0ec14a17 SHA512 62010100274b99423bb6a660e34ef53a702250a09371ef4b49ec03a3afe8761611b3734aea31763afa361560eb74c6d23e022d4d9bc4453c1bdef36bb37f9b4d
|
||||
DIST elixir-1.7.1.tar.gz 2139430 BLAKE2B 71fb91134ec707f254cdc5aa36e9335c2a5855b8d65f5a42a75df7dc7e690b342531748e36cfca051cb751eed5487e39b5ef03fc3af35871ca389033ea79ab14 SHA512 f1d5f1f1c5df78673b318d69e1863e2780ad7cd54b050ac6ac9767a07952828a91d749bf16cd6c8d384d3a0c5b6154683d93086121787b5f03783113d8bd3b2c
|
||||
DIST elixir-1.7.2.tar.gz 2140217 BLAKE2B d29889a89ab4f29cfb0ee9be75ad62db0ca70f59dfaf75a740b0647ba74d8e1c93e19adea74ef9722e315c011ef6c316fc73da08ee192bb9344ac4130ee46549 SHA512 b105014530f8d68b1b3f15b0199c38efeacdcfc8595269a4ed0275f653e747fce60e6bc0fc94c34a056a6ebbaaf312f061f1aba37988dd984e6b717e856bbab8
|
||||
DIST elixir-1.7.3.tar.gz 2140430 BLAKE2B 5f5d4d094de9c6412488444241991693d9f14afeddd087077ac1e4aba4a4f825ccf04196778f9e00d56f90c90e5b584dcfc0a286e7beabad3eb22a292661fea2 SHA512 67c8de5a85eefc5f7d7ed42ec8b96cb34937cea6c94eb1f2c27237fc0b4c51b2eb39d65c2a4dce4788cb6ed1879fb1839cd8d73c66be71b0b4895952dc228f05
|
||||
DIST elixir-1.7.4.tar.gz 2139938 BLAKE2B 8515fbbb89db64efbda8834f2368ee4391a4e0ed042812a059f0d640b0c9028bec330ba192aaec7988d83635bbc25d2a6891236571c3817a76f6477594899b94 SHA512 594e76601e0d6f7eeddfcaa9b76a2e5c66f702a497599fffc5e9255790c18ac5e00b986fc45fd3b90335522f51272bcd4bcf2b9f8951b94eebfb1d56ac7cebc2
|
||||
|
@ -1,32 +0,0 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit multilib
|
||||
|
||||
DESCRIPTION="Elixir programming language"
|
||||
HOMEPAGE="https://elixir-lang.org"
|
||||
SRC_URI="https://github.com/elixir-lang/elixir/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0 ErlPL-1.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~ia64 ~ppc ~sparc ~x86"
|
||||
IUSE=""
|
||||
|
||||
DEPEND=">=dev-lang/erlang-18[ssl]"
|
||||
# 'mix' tool collides with sci-biology/phylip, bug #537514
|
||||
RDEPEND="${DEPEND}
|
||||
!!sci-biology/phylip
|
||||
"
|
||||
|
||||
RESTRICT=test # needs debug symbols
|
||||
|
||||
src_compile() {
|
||||
emake Q=""
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" LIBDIR="$(get_libdir)" PREFIX="${EPREFIX}/usr" install
|
||||
dodoc README.md CHANGELOG.md CODE_OF_CONDUCT.md
|
||||
}
|
@ -1,32 +0,0 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit multilib
|
||||
|
||||
DESCRIPTION="Elixir programming language"
|
||||
HOMEPAGE="https://elixir-lang.org"
|
||||
SRC_URI="https://github.com/elixir-lang/elixir/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0 ErlPL-1.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~ia64 ~ppc ~sparc ~x86"
|
||||
IUSE=""
|
||||
|
||||
DEPEND=">=dev-lang/erlang-18[ssl]"
|
||||
# 'mix' tool collides with sci-biology/phylip, bug #537514
|
||||
RDEPEND="${DEPEND}
|
||||
!!sci-biology/phylip
|
||||
"
|
||||
|
||||
RESTRICT=test # needs debug symbols
|
||||
|
||||
src_compile() {
|
||||
emake Q=""
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" LIBDIR="$(get_libdir)" PREFIX="${EPREFIX}/usr" install
|
||||
dodoc README.md CHANGELOG.md CODE_OF_CONDUCT.md
|
||||
}
|
@ -0,0 +1,228 @@
|
||||
# Copyright 1999-2018 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
export CBUILD=${CBUILD:-${CHOST}}
|
||||
export CTARGET=${CTARGET:-${CHOST}}
|
||||
|
||||
MY_PV=${PV/_/}
|
||||
|
||||
inherit toolchain-funcs
|
||||
|
||||
BOOTSTRAP_DIST="https://dev.gentoo.org/~williamh/dist"
|
||||
BOOTSTRAP_VERSION="bootstrap-1.8"
|
||||
BOOTSTRAP_URI="
|
||||
amd64? ( ${BOOTSTRAP_DIST}/go-linux-amd64-${BOOTSTRAP_VERSION}.tbz )
|
||||
arm? ( ${BOOTSTRAP_DIST}/go-linux-arm-${BOOTSTRAP_VERSION}.tbz )
|
||||
arm64? ( ${BOOTSTRAP_DIST}/go-linux-arm64-${BOOTSTRAP_VERSION}.tbz )
|
||||
ppc64? (
|
||||
${BOOTSTRAP_DIST}/go-linux-ppc64-${BOOTSTRAP_VERSION}.tbz
|
||||
${BOOTSTRAP_DIST}/go-linux-ppc64le-${BOOTSTRAP_VERSION}.tbz
|
||||
)
|
||||
s390? ( ${BOOTSTRAP_DIST}/go-linux-s390x-${BOOTSTRAP_VERSION}.tbz )
|
||||
x86? ( ${BOOTSTRAP_DIST}/go-linux-386-${BOOTSTRAP_VERSION}.tbz )
|
||||
amd64-fbsd? ( ${BOOTSTRAP_DIST}/go-freebsd-amd64-${BOOTSTRAP_VERSION}.tbz )
|
||||
x86-fbsd? ( ${BOOTSTRAP_DIST}/go-freebsd-386-${BOOTSTRAP_VERSION}.tbz )
|
||||
x64-macos? ( ${BOOTSTRAP_DIST}/go-darwin-amd64-${BOOTSTRAP_VERSION}.tbz )
|
||||
x64-solaris? ( ${BOOTSTRAP_DIST}/go-solaris-amd64-${BOOTSTRAP_VERSION}.tbz )
|
||||
"
|
||||
|
||||
case ${PV} in
|
||||
*9999*)
|
||||
EGIT_REPO_URI="https://github.com/golang/go.git"
|
||||
inherit git-r3
|
||||
;;
|
||||
*)
|
||||
SRC_URI="https://storage.googleapis.com/golang/go${MY_PV}.src.tar.gz "
|
||||
S="${WORKDIR}"/go
|
||||
case ${PV} in
|
||||
*_beta*|*_rc*) ;;
|
||||
*)
|
||||
KEYWORDS="-* ~amd64 ~arm ~arm64 ~ppc64 ~s390 ~x86 ~amd64-fbsd ~x86-fbsd ~x64-macos ~x64-solaris"
|
||||
# The upstream tests fail under portage but pass if the build is
|
||||
# run according to their documentation [1].
|
||||
# I am restricting the tests on released versions until this is
|
||||
# solved.
|
||||
# [1] https://golang.org/issues/18442
|
||||
RESTRICT="test"
|
||||
;;
|
||||
esac
|
||||
esac
|
||||
SRC_URI+="!gccgo? ( ${BOOTSTRAP_URI} )"
|
||||
|
||||
DESCRIPTION="A concurrent garbage collected and typesafe programming language"
|
||||
HOMEPAGE="https://golang.org"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0/${PV}"
|
||||
IUSE="gccgo"
|
||||
|
||||
DEPEND="gccgo? ( >=sys-devel/gcc-5[go] )"
|
||||
RDEPEND="!<dev-go/go-tools-0_pre20150902"
|
||||
|
||||
# These test data objects have writable/executable stacks.
|
||||
QA_EXECSTACK="
|
||||
usr/lib/go/src/debug/elf/testdata/*.obj
|
||||
usr/lib/go/src/go/internal/gccgoimporter/testdata/escapeinfo.gox
|
||||
usr/lib/go/src/go/internal/gccgoimporter/testdata/unicode.gox
|
||||
usr/lib/go/src/go/internal/gccgoimporter/testdata/time.gox
|
||||
"
|
||||
|
||||
# Do not complain about CFLAGS, etc, since Go doesn't use them.
|
||||
QA_FLAGS_IGNORED='.*'
|
||||
|
||||
REQUIRES_EXCLUDE="/usr/lib/go/src/debug/elf/testdata/*"
|
||||
|
||||
# The tools in /usr/lib/go should not cause the multilib-strict check to fail.
|
||||
QA_MULTILIB_PATHS="usr/lib/go/pkg/tool/.*/.*"
|
||||
|
||||
# Do not strip this package. Stripping is unsupported upstream and may
|
||||
# fail.
|
||||
RESTRICT+=" strip"
|
||||
|
||||
DOCS=(
|
||||
AUTHORS
|
||||
CONTRIBUTING.md
|
||||
CONTRIBUTORS
|
||||
PATENTS
|
||||
README.md
|
||||
)
|
||||
|
||||
go_arch()
|
||||
{
|
||||
# By chance most portage arch names match Go
|
||||
local portage_arch=$(tc-arch $@)
|
||||
case "${portage_arch}" in
|
||||
x86) echo 386;;
|
||||
x64-*) echo amd64;;
|
||||
ppc64) [[ $(tc-endian $@) = big ]] && echo ppc64 || echo ppc64le ;;
|
||||
s390) echo s390x ;;
|
||||
*) echo "${portage_arch}";;
|
||||
esac
|
||||
}
|
||||
|
||||
go_arm()
|
||||
{
|
||||
case "${1:-${CHOST}}" in
|
||||
armv5*) echo 5;;
|
||||
armv6*) echo 6;;
|
||||
armv7*) echo 7;;
|
||||
*)
|
||||
die "unknown GOARM for ${1:-${CHOST}}"
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
go_os()
|
||||
{
|
||||
case "${1:-${CHOST}}" in
|
||||
*-linux*) echo linux;;
|
||||
*-darwin*) echo darwin;;
|
||||
*-freebsd*) echo freebsd;;
|
||||
*-netbsd*) echo netbsd;;
|
||||
*-openbsd*) echo openbsd;;
|
||||
*-solaris*) echo solaris;;
|
||||
*-cygwin*|*-interix*|*-winnt*)
|
||||
echo windows
|
||||
;;
|
||||
*)
|
||||
die "unknown GOOS for ${1:-${CHOST}}"
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
go_tuple()
|
||||
{
|
||||
echo "$(go_os $@)_$(go_arch $@)"
|
||||
}
|
||||
|
||||
go_cross_compile()
|
||||
{
|
||||
[[ $(go_tuple ${CBUILD}) != $(go_tuple) ]]
|
||||
}
|
||||
|
||||
pkg_pretend()
|
||||
{
|
||||
# make.bash does not understand cross-compiling a cross-compiler
|
||||
if [[ $(go_tuple) != $(go_tuple ${CTARGET}) ]]; then
|
||||
die "CHOST CTARGET pair unsupported: CHOST=${CHOST} CTARGET=${CTARGET}"
|
||||
fi
|
||||
}
|
||||
|
||||
src_unpack()
|
||||
{
|
||||
if [[ ${PV} = 9999 ]]; then
|
||||
git-r3_src_unpack
|
||||
fi
|
||||
default
|
||||
}
|
||||
|
||||
src_compile()
|
||||
{
|
||||
export GOROOT_BOOTSTRAP="${WORKDIR}"/go-$(go_os)-$(go_arch)-bootstrap
|
||||
if use gccgo; then
|
||||
mkdir -p "${GOROOT_BOOTSTRAP}/bin" || die
|
||||
local go_binary=$(gcc-config --get-bin-path)/go-$(gcc-major-version)
|
||||
[[ -x ${go_binary} ]] || go_binary=$(
|
||||
find "${EPREFIX}"/usr/${CHOST}/gcc-bin/*/go-$(gcc-major-version) |
|
||||
sort -V | tail -n1)
|
||||
[[ -x ${go_binary} ]] ||
|
||||
die "go-$(gcc-major-version): command not found"
|
||||
ln -s "${go_binary}" "${GOROOT_BOOTSTRAP}/bin/go" || die
|
||||
fi
|
||||
export GOROOT_FINAL="${EPREFIX}"/usr/lib/go
|
||||
export GOROOT="$(pwd)"
|
||||
export GOBIN="${GOROOT}/bin"
|
||||
|
||||
# Go's build script does not use BUILD/HOST/TARGET consistently. :(
|
||||
export GOHOSTARCH=$(go_arch ${CBUILD})
|
||||
export GOHOSTOS=$(go_os ${CBUILD})
|
||||
export CC=$(tc-getBUILD_CC)
|
||||
|
||||
export GOARCH=$(go_arch)
|
||||
export GOOS=$(go_os)
|
||||
export CC_FOR_TARGET=$(tc-getCC)
|
||||
export CXX_FOR_TARGET=$(tc-getCXX)
|
||||
if [[ ${ARCH} == arm ]]; then
|
||||
export GOARM=$(go_arm)
|
||||
fi
|
||||
einfo "GOROOT_BOOTSTRAP is ${GOROOT_BOOTSTRAP}"
|
||||
|
||||
cd src
|
||||
./make.bash || die "build failed"
|
||||
}
|
||||
|
||||
src_test()
|
||||
{
|
||||
go_cross_compile && return 0
|
||||
|
||||
cd src
|
||||
PATH="${GOBIN}:${PATH}" \
|
||||
./run.bash -no-rebuild || die "tests failed"
|
||||
}
|
||||
|
||||
src_install()
|
||||
{
|
||||
local bin_path f x
|
||||
|
||||
dodir /usr/lib/go
|
||||
|
||||
# There is a known issue which requires the source tree to be installed [1].
|
||||
# Once this is fixed, we can consider using the doc use flag to control
|
||||
# installing the doc and src directories.
|
||||
# [1] https://golang.org/issue/2775
|
||||
#
|
||||
# deliberately use cp to retain permissions
|
||||
cp -R api bin doc lib pkg misc src test "${ED}"/usr/lib/go
|
||||
if go_cross_compile; then
|
||||
bin_path="bin/$(go_tuple)"
|
||||
else
|
||||
bin_path=bin
|
||||
fi
|
||||
for x in ${bin_path}/*; do
|
||||
f=${x##*/}
|
||||
dosym ../lib/go/${bin_path}/${f} /usr/bin/${f}
|
||||
done
|
||||
einstalldocs
|
||||
}
|
Binary file not shown.
@ -0,0 +1,353 @@
|
||||
diff --git a/plugins/ntlm.c b/plugins/ntlm.c
|
||||
index 79ea47c..554a00d 100644
|
||||
--- a/plugins/ntlm.c
|
||||
+++ b/plugins/ntlm.c
|
||||
@@ -417,6 +417,29 @@ static unsigned char *P24(unsigned char *P24, unsigned char *P21,
|
||||
return P24;
|
||||
}
|
||||
|
||||
+static HMAC_CTX *_plug_HMAC_CTX_new(const sasl_utils_t *utils)
|
||||
+{
|
||||
+ utils->log(NULL, SASL_LOG_DEBUG, "_plug_HMAC_CTX_new()");
|
||||
+
|
||||
+#if OPENSSL_VERSION_NUMBER >= 0x10100000L
|
||||
+ return HMAC_CTX_new();
|
||||
+#else
|
||||
+ return utils->malloc(sizeof(EVP_MD_CTX));
|
||||
+#endif
|
||||
+}
|
||||
+
|
||||
+static void _plug_HMAC_CTX_free(HMAC_CTX *ctx, const sasl_utils_t *utils)
|
||||
+{
|
||||
+ utils->log(NULL, SASL_LOG_DEBUG, "_plug_HMAC_CTX_free()");
|
||||
+
|
||||
+#if OPENSSL_VERSION_NUMBER >= 0x10100000L
|
||||
+ HMAC_CTX_free(ctx);
|
||||
+#else
|
||||
+ HMAC_cleanup(ctx);
|
||||
+ utils->free(ctx);
|
||||
+#endif
|
||||
+}
|
||||
+
|
||||
static unsigned char *V2(unsigned char *V2, sasl_secret_t *passwd,
|
||||
const char *authid, const char *target,
|
||||
const unsigned char *challenge,
|
||||
@@ -424,7 +447,7 @@ static unsigned char *V2(unsigned char *V2, sasl_secret_t *passwd,
|
||||
const sasl_utils_t *utils,
|
||||
char **buf, unsigned *buflen, int *result)
|
||||
{
|
||||
- HMAC_CTX ctx;
|
||||
+ HMAC_CTX *ctx = NULL;
|
||||
unsigned char hash[EVP_MAX_MD_SIZE];
|
||||
char *upper;
|
||||
unsigned int len;
|
||||
@@ -435,6 +458,10 @@ static unsigned char *V2(unsigned char *V2, sasl_secret_t *passwd,
|
||||
SETERROR(utils, "cannot allocate NTLMv2 hash");
|
||||
*result = SASL_NOMEM;
|
||||
}
|
||||
+ else if ((ctx = _plug_HMAC_CTX_new(utils)) == NULL) {
|
||||
+ SETERROR(utils, "cannot allocate HMAC CTX");
|
||||
+ *result = SASL_NOMEM;
|
||||
+ }
|
||||
else {
|
||||
/* NTLMv2hash = HMAC-MD5(NTLMhash, unicode(ucase(authid + domain))) */
|
||||
P16_nt(hash, passwd, utils, buf, buflen, result);
|
||||
@@ -449,17 +476,18 @@ static unsigned char *V2(unsigned char *V2, sasl_secret_t *passwd,
|
||||
HMAC(EVP_md5(), hash, MD4_DIGEST_LENGTH, *buf, 2 * len, hash, &len);
|
||||
|
||||
/* V2 = HMAC-MD5(NTLMv2hash, challenge + blob) + blob */
|
||||
- HMAC_Init(&ctx, hash, len, EVP_md5());
|
||||
- HMAC_Update(&ctx, challenge, NTLM_NONCE_LENGTH);
|
||||
- HMAC_Update(&ctx, blob, bloblen);
|
||||
- HMAC_Final(&ctx, V2, &len);
|
||||
- HMAC_cleanup(&ctx);
|
||||
+ HMAC_Init_ex(ctx, hash, len, EVP_md5(), NULL);
|
||||
+ HMAC_Update(ctx, challenge, NTLM_NONCE_LENGTH);
|
||||
+ HMAC_Update(ctx, blob, bloblen);
|
||||
+ HMAC_Final(ctx, V2, &len);
|
||||
|
||||
/* the blob is concatenated outside of this function */
|
||||
|
||||
*result = SASL_OK;
|
||||
}
|
||||
|
||||
+ if (ctx) _plug_HMAC_CTX_free(ctx, utils);
|
||||
+
|
||||
return V2;
|
||||
}
|
||||
|
||||
diff --git a/plugins/otp.c b/plugins/otp.c
|
||||
index dd73065..d1e9bf4 100644
|
||||
--- a/plugins/otp.c
|
||||
+++ b/plugins/otp.c
|
||||
@@ -96,6 +96,28 @@ static algorithm_option_t algorithm_options[] = {
|
||||
{NULL, 0, NULL}
|
||||
};
|
||||
|
||||
+static EVP_MD_CTX *_plug_EVP_MD_CTX_new(const sasl_utils_t *utils)
|
||||
+{
|
||||
+ utils->log(NULL, SASL_LOG_DEBUG, "_plug_EVP_MD_CTX_new()");
|
||||
+
|
||||
+#if OPENSSL_VERSION_NUMBER >= 0x10100000L
|
||||
+ return EVP_MD_CTX_new();
|
||||
+#else
|
||||
+ return utils->malloc(sizeof(EVP_MD_CTX));
|
||||
+#endif
|
||||
+}
|
||||
+
|
||||
+static void _plug_EVP_MD_CTX_free(EVP_MD_CTX *ctx, const sasl_utils_t *utils)
|
||||
+{
|
||||
+ utils->log(NULL, SASL_LOG_DEBUG, "_plug_EVP_MD_CTX_free()");
|
||||
+
|
||||
+#if OPENSSL_VERSION_NUMBER >= 0x10100000L
|
||||
+ EVP_MD_CTX_free(ctx);
|
||||
+#else
|
||||
+ utils->free(ctx);
|
||||
+#endif
|
||||
+}
|
||||
+
|
||||
/* Convert the binary data into ASCII hex */
|
||||
void bin2hex(unsigned char *bin, int binlen, char *hex)
|
||||
{
|
||||
@@ -116,17 +138,16 @@ void bin2hex(unsigned char *bin, int binlen, char *hex)
|
||||
* swabbing bytes if necessary.
|
||||
*/
|
||||
static void otp_hash(const EVP_MD *md, char *in, size_t inlen,
|
||||
- unsigned char *out, int swab)
|
||||
+ unsigned char *out, int swab, EVP_MD_CTX *mdctx)
|
||||
{
|
||||
- EVP_MD_CTX mdctx;
|
||||
char hash[EVP_MAX_MD_SIZE];
|
||||
unsigned int i;
|
||||
int j;
|
||||
unsigned hashlen;
|
||||
|
||||
- EVP_DigestInit(&mdctx, md);
|
||||
- EVP_DigestUpdate(&mdctx, in, inlen);
|
||||
- EVP_DigestFinal(&mdctx, hash, &hashlen);
|
||||
+ EVP_DigestInit(mdctx, md);
|
||||
+ EVP_DigestUpdate(mdctx, in, inlen);
|
||||
+ EVP_DigestFinal(mdctx, hash, &hashlen);
|
||||
|
||||
/* Fold the result into 64 bits */
|
||||
for (i = OTP_HASH_SIZE; i < hashlen; i++) {
|
||||
@@ -149,7 +170,9 @@ static int generate_otp(const sasl_utils_t *utils,
|
||||
char *secret, char *otp)
|
||||
{
|
||||
const EVP_MD *md;
|
||||
- char *key;
|
||||
+ EVP_MD_CTX *mdctx = NULL;
|
||||
+ char *key = NULL;
|
||||
+ int r = SASL_OK;
|
||||
|
||||
if (!(md = EVP_get_digestbyname(alg->evp_name))) {
|
||||
utils->seterror(utils->conn, 0,
|
||||
@@ -157,23 +180,32 @@ static int generate_otp(const sasl_utils_t *utils,
|
||||
return SASL_FAIL;
|
||||
}
|
||||
|
||||
+ if ((mdctx = _plug_EVP_MD_CTX_new(utils)) == NULL) {
|
||||
+ SETERROR(utils, "cannot allocate MD CTX");
|
||||
+ r = SASL_NOMEM;
|
||||
+ goto done;
|
||||
+ }
|
||||
+
|
||||
if ((key = utils->malloc(strlen(seed) + strlen(secret) + 1)) == NULL) {
|
||||
SETERROR(utils, "cannot allocate OTP key");
|
||||
- return SASL_NOMEM;
|
||||
+ r = SASL_NOMEM;
|
||||
+ goto done;
|
||||
}
|
||||
|
||||
/* initial step */
|
||||
strcpy(key, seed);
|
||||
strcat(key, secret);
|
||||
- otp_hash(md, key, strlen(key), otp, alg->swab);
|
||||
+ otp_hash(md, key, strlen(key), otp, alg->swab, mdctx);
|
||||
|
||||
/* computation step */
|
||||
while (seq-- > 0)
|
||||
- otp_hash(md, otp, OTP_HASH_SIZE, otp, alg->swab);
|
||||
+ otp_hash(md, otp, OTP_HASH_SIZE, otp, alg->swab, mdctx);
|
||||
|
||||
- utils->free(key);
|
||||
+ done:
|
||||
+ if (key) utils->free(key);
|
||||
+ if (mdctx) _plug_EVP_MD_CTX_free(mdctx, utils);
|
||||
|
||||
- return SASL_OK;
|
||||
+ return r;
|
||||
}
|
||||
|
||||
static int parse_challenge(const sasl_utils_t *utils,
|
||||
@@ -693,7 +725,8 @@ static int strptrcasecmp(const void *arg1, const void *arg2)
|
||||
|
||||
/* Convert the 6 words into binary data */
|
||||
static int word2bin(const sasl_utils_t *utils,
|
||||
- char *words, unsigned char *bin, const EVP_MD *md)
|
||||
+ char *words, unsigned char *bin, const EVP_MD *md,
|
||||
+ EVP_MD_CTX *mdctx)
|
||||
{
|
||||
int i, j;
|
||||
char *c, *word, buf[OTP_RESPONSE_MAX+1];
|
||||
@@ -752,13 +785,12 @@ static int word2bin(const sasl_utils_t *utils,
|
||||
|
||||
/* alternate dictionary */
|
||||
if (alt_dict) {
|
||||
- EVP_MD_CTX mdctx;
|
||||
char hash[EVP_MAX_MD_SIZE];
|
||||
int hashlen;
|
||||
|
||||
- EVP_DigestInit(&mdctx, md);
|
||||
- EVP_DigestUpdate(&mdctx, word, strlen(word));
|
||||
- EVP_DigestFinal(&mdctx, hash, &hashlen);
|
||||
+ EVP_DigestInit(mdctx, md);
|
||||
+ EVP_DigestUpdate(mdctx, word, strlen(word));
|
||||
+ EVP_DigestFinal(mdctx, hash, &hashlen);
|
||||
|
||||
/* use lowest 11 bits */
|
||||
x = ((hash[hashlen-2] & 0x7) << 8) | hash[hashlen-1];
|
||||
@@ -802,6 +834,7 @@ static int verify_response(server_context_t *text, const sasl_utils_t *utils,
|
||||
char *response)
|
||||
{
|
||||
const EVP_MD *md;
|
||||
+ EVP_MD_CTX *mdctx = NULL;
|
||||
char *c;
|
||||
int do_init = 0;
|
||||
unsigned char cur_otp[OTP_HASH_SIZE], prev_otp[OTP_HASH_SIZE];
|
||||
@@ -815,6 +848,11 @@ static int verify_response(server_context_t *text, const sasl_utils_t *utils,
|
||||
return SASL_FAIL;
|
||||
}
|
||||
|
||||
+ if ((mdctx = _plug_EVP_MD_CTX_new(utils)) == NULL) {
|
||||
+ SETERROR(utils, "cannot allocate MD CTX");
|
||||
+ return SASL_NOMEM;
|
||||
+ }
|
||||
+
|
||||
/* eat leading whitespace */
|
||||
c = response;
|
||||
while (isspace((int) *c)) c++;
|
||||
@@ -824,7 +862,7 @@ static int verify_response(server_context_t *text, const sasl_utils_t *utils,
|
||||
r = hex2bin(c+strlen(OTP_HEX_TYPE), cur_otp, OTP_HASH_SIZE);
|
||||
}
|
||||
else if (!strncasecmp(c, OTP_WORD_TYPE, strlen(OTP_WORD_TYPE))) {
|
||||
- r = word2bin(utils, c+strlen(OTP_WORD_TYPE), cur_otp, md);
|
||||
+ r = word2bin(utils, c+strlen(OTP_WORD_TYPE), cur_otp, md, mdctx);
|
||||
}
|
||||
else if (!strncasecmp(c, OTP_INIT_HEX_TYPE,
|
||||
strlen(OTP_INIT_HEX_TYPE))) {
|
||||
@@ -834,7 +872,7 @@ static int verify_response(server_context_t *text, const sasl_utils_t *utils,
|
||||
else if (!strncasecmp(c, OTP_INIT_WORD_TYPE,
|
||||
strlen(OTP_INIT_WORD_TYPE))) {
|
||||
do_init = 1;
|
||||
- r = word2bin(utils, c+strlen(OTP_INIT_WORD_TYPE), cur_otp, md);
|
||||
+ r = word2bin(utils, c+strlen(OTP_INIT_WORD_TYPE), cur_otp, md, mdctx);
|
||||
}
|
||||
else {
|
||||
SETERROR(utils, "unknown OTP extended response type");
|
||||
@@ -843,14 +881,14 @@ static int verify_response(server_context_t *text, const sasl_utils_t *utils,
|
||||
}
|
||||
else {
|
||||
/* standard response, try word first, and then hex */
|
||||
- r = word2bin(utils, c, cur_otp, md);
|
||||
+ r = word2bin(utils, c, cur_otp, md, mdctx);
|
||||
if (r != SASL_OK)
|
||||
r = hex2bin(c, cur_otp, OTP_HASH_SIZE);
|
||||
}
|
||||
|
||||
if (r == SASL_OK) {
|
||||
/* do one more hash (previous otp) and compare to stored otp */
|
||||
- otp_hash(md, cur_otp, OTP_HASH_SIZE, prev_otp, text->alg->swab);
|
||||
+ otp_hash(md, cur_otp, OTP_HASH_SIZE, prev_otp, text->alg->swab, mdctx);
|
||||
|
||||
if (!memcmp(prev_otp, text->otp, OTP_HASH_SIZE)) {
|
||||
/* update the secret with this seq/otp */
|
||||
@@ -879,23 +917,28 @@ static int verify_response(server_context_t *text, const sasl_utils_t *utils,
|
||||
*new_resp++ = '\0';
|
||||
}
|
||||
|
||||
- if (!(new_chal && new_resp))
|
||||
- return SASL_BADAUTH;
|
||||
+ if (!(new_chal && new_resp)) {
|
||||
+ r = SASL_BADAUTH;
|
||||
+ goto done;
|
||||
+ }
|
||||
|
||||
if ((r = parse_challenge(utils, new_chal, &alg, &seq, seed, 1))
|
||||
!= SASL_OK) {
|
||||
- return r;
|
||||
+ goto done;
|
||||
}
|
||||
|
||||
- if (seq < 1 || !strcasecmp(seed, text->seed))
|
||||
- return SASL_BADAUTH;
|
||||
+ if (seq < 1 || !strcasecmp(seed, text->seed)) {
|
||||
+ r = SASL_BADAUTH;
|
||||
+ goto done;
|
||||
+ }
|
||||
|
||||
/* find the MDA */
|
||||
if (!(md = EVP_get_digestbyname(alg->evp_name))) {
|
||||
utils->seterror(utils->conn, 0,
|
||||
"OTP algorithm %s is not available",
|
||||
alg->evp_name);
|
||||
- return SASL_BADAUTH;
|
||||
+ r = SASL_BADAUTH;
|
||||
+ goto done;
|
||||
}
|
||||
|
||||
if (!strncasecmp(c, OTP_INIT_HEX_TYPE, strlen(OTP_INIT_HEX_TYPE))) {
|
||||
@@ -903,7 +946,7 @@ static int verify_response(server_context_t *text, const sasl_utils_t *utils,
|
||||
}
|
||||
else if (!strncasecmp(c, OTP_INIT_WORD_TYPE,
|
||||
strlen(OTP_INIT_WORD_TYPE))) {
|
||||
- r = word2bin(utils, new_resp, new_otp, md);
|
||||
+ r = word2bin(utils, new_resp, new_otp, md, mdctx);
|
||||
}
|
||||
|
||||
if (r == SASL_OK) {
|
||||
@@ -914,7 +957,10 @@ static int verify_response(server_context_t *text, const sasl_utils_t *utils,
|
||||
memcpy(text->otp, new_otp, OTP_HASH_SIZE);
|
||||
}
|
||||
}
|
||||
-
|
||||
+
|
||||
+ done:
|
||||
+ if (mdctx) _plug_EVP_MD_CTX_free(mdctx, utils);
|
||||
+
|
||||
return r;
|
||||
}
|
||||
|
||||
@@ -1443,8 +1489,10 @@ int otp_server_plug_init(const sasl_utils_t *utils,
|
||||
*pluglist = otp_server_plugins;
|
||||
*plugcount = 1;
|
||||
|
||||
+#if OPENSSL_VERSION_NUMBER < 0x10100000L
|
||||
/* Add all digests */
|
||||
OpenSSL_add_all_digests();
|
||||
+#endif
|
||||
|
||||
return SASL_OK;
|
||||
}
|
||||
@@ -1844,8 +1892,10 @@ int otp_client_plug_init(sasl_utils_t *utils,
|
||||
*pluglist = otp_client_plugins;
|
||||
*plugcount = 1;
|
||||
|
||||
+#if OPENSSL_VERSION_NUMBER < 0x10100000L
|
||||
/* Add all digests */
|
||||
OpenSSL_add_all_digests();
|
||||
+#endif
|
||||
|
||||
return SASL_OK;
|
||||
}
|
||||
--- a/saslauthd/lak.c
|
||||
+++ b/saslauthd/lak.c
|
||||
@@ -729,7 +729,7 @@ int lak_init(
|
||||
return rc;
|
||||
}
|
||||
|
||||
-#ifdef HAVE_OPENSSL
|
||||
+#if defined(HAVE_OPENSSL) && OPENSSL_VERSION_NUMBER < 0x10100000L
|
||||
OpenSSL_add_all_digests();
|
||||
#endif
|
||||
|
@ -1,2 +1,3 @@
|
||||
DIST libmspack-0.6alpha.tar.gz 476992 BLAKE2B 3ff510e108e12741b661a4960f204ce268572f79917d4ec18e105d09cee3f515d76e02a2432717ad6c2118c7eb191b51902ce86e3c5b441ee269740816b2a392 SHA512 7ba4a584d335c2d703628a3c179bc0d323574632357cdfe04622f960dcc4ef970b5739799397b6802d44a312f7ed9d589b4be223facf044bbfdbfd76d9c7405d
|
||||
DIST libmspack-0.7.1alpha.tar.gz 486840 BLAKE2B f97abba7b261cced6e5c500c50243920c44ae8bc245e54386c4568e17989f2bad2c3316d83ebbd75220b50b09ed4ded156965e9aa430bd207aaa6b7c6218d800 SHA512 e903629a34c29099a261a108e4eb9cda485ab999bbc3383e3cd6a39715077d00b26a1c641b0f3df0eef60d2e15a7ef623379df0cfe25b99d4eda080529ffec7b
|
||||
DIST libmspack-0.8alpha.tar.gz 488869 BLAKE2B 346609f86e1668f012794c89704991d9e1c206f73f47febcc6c32b6523819f00bf13aeafb250611b73ab8eb25764a6ada0cecaf138452ece64674784aeaeaedd SHA512 d178afc4d2eded204594c81af1c91be17d3be4f1a09829e08c103023aa7badc6b2595e9ec13cc7f77e3262d2cd874ed40ce6da01695c5c839682562740d2bf0a
|
||||
|
@ -0,0 +1,63 @@
|
||||
# Copyright 1999-2018 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="7"
|
||||
|
||||
inherit autotools multilib-minimal
|
||||
|
||||
MY_PV="${PV/_alpha/alpha}"
|
||||
MY_P="${PN}-${MY_PV}"
|
||||
|
||||
DESCRIPTION="A library for Microsoft compression formats"
|
||||
HOMEPAGE="https://www.cabextract.org.uk/libmspack/"
|
||||
SRC_URI="https://www.cabextract.org.uk/libmspack/libmspack-${MY_PV}.tar.gz"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
|
||||
IUSE="debug doc static-libs utils"
|
||||
|
||||
DEPEND=""
|
||||
RDEPEND="
|
||||
utils? ( !app-arch/mscompress )
|
||||
"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
eautoreconf
|
||||
|
||||
multilib_copy_sources
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
ECONF_SOURCE="${S}" econf \
|
||||
$(use_enable debug) \
|
||||
$(use_enable static-libs static)
|
||||
}
|
||||
|
||||
multilib_src_test() {
|
||||
if multilib_is_native_abi; then
|
||||
default
|
||||
cd "${S}"/test && "${BUILD_DIR}"/test/cabd_test || die
|
||||
fi
|
||||
}
|
||||
|
||||
multilib_src_install_all() {
|
||||
DOCS=(AUTHORS ChangeLog NEWS README TODO)
|
||||
use doc && HTML_DOCS=(doc/*)
|
||||
default_src_install
|
||||
if use doc; then
|
||||
rm "${ED%/}"/usr/share/doc/"${PF}"/html/{Makefile*,Doxyfile*} || die
|
||||
fi
|
||||
if ! use utils; then
|
||||
rm "${ED%/}"/usr/bin/* || die
|
||||
fi
|
||||
|
||||
find "${ED}" -name '*.la' -delete || die
|
||||
if ! use static-libs ; then
|
||||
find "${ED}" -name "*.a" -delete || die
|
||||
fi
|
||||
}
|
Binary file not shown.
@ -1 +1,2 @@
|
||||
DIST wsproto-0.11.0.tar.gz 41179 BLAKE2B 72486adde659e96910bcc56efe5f3ddd71d962e2844e332eabea2a0cbe5574678be85d330fdd54f951f679dfe5b1c185641a30169cc6cd9ac6c4ed066c6a3533 SHA512 583e030dc88971b3733e5e84e5fbaa70d6043d01485cabbbf45470baa31e4f511aea55e108132fc298aeae0031542af7bdd22b7ae25b11832179025a2fde4bdd
|
||||
DIST wsproto-0.12.0.tar.gz 45252 BLAKE2B 1be690faba6665b11e2e1c1725935addb132d7008f0ae81e7d5c383a152a5d79389287b3c152cb380e0bdfc97a3438e2a48b62f3c8acf6b501427bc617225ec0 SHA512 159b7f67eff60c2514cfca17036d95017109fe251def6cec132998ac82a037484e3e248d4335539fd03491f56c491a7cf51582aa3f74a44d7d150220a875b18d
|
||||
|
@ -0,0 +1,33 @@
|
||||
# Copyright 1999-2018 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python2_7 python3_{5,6,7} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="WebSockets state-machine based protocol implementation"
|
||||
HOMEPAGE="https://github.com/python-hyper/wsproto https://pypi.python.org/pypi/wsproto"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="test"
|
||||
|
||||
RDEPEND="
|
||||
=dev-python/h11-0.8*[${PYTHON_USEDEP}]
|
||||
virtual/python-enum34[${PYTHON_USEDEP}]
|
||||
"
|
||||
DEPEND="
|
||||
${RDEPEND}
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
test? (
|
||||
dev-python/pytest[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
python_test() {
|
||||
py.test -v || die "Testing failed"
|
||||
}
|
Binary file not shown.
Binary file not shown.
@ -0,0 +1 @@
|
||||
DIST rebar3 694889 BLAKE2B 3a8f5562a0c984caf5d7b3ba1063a90bf110a60cea316eaf88f5199b890e186f85193dc0302b36dc31051d3552912c8d1582f563f989df97ee28364a3f47512a SHA512 8fb5c7737d70fc7a706b1e124ab660550e8637da9258338016ab2e260f1c6d662548ef723705cd18210050d052e79945578623d9e9892e08dbfdb9cb04fd89fb
|
@ -0,0 +1,28 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>aidecoe@gentoo.org</email>
|
||||
<name>Amadeusz Żołnowski</name>
|
||||
</maintainer>
|
||||
<longdescription lang="en">
|
||||
Rebar3 is an Erlang tool that makes it easy to create, develop, and
|
||||
release Erlang libraries, applications, and systems in a repeatable
|
||||
manner.
|
||||
|
||||
Rebar3 will:
|
||||
|
||||
- respect and enforce standard Erlang/OTP conventions for project
|
||||
structure so they are easily reusable by the community;
|
||||
- manage source dependencies and Erlang packages while ensuring
|
||||
repeatable builds;
|
||||
- handle build artifacts, paths, and libraries such that standard
|
||||
development tools can be used without a headache;
|
||||
- adapt to projects of all sizes on almost any platform;
|
||||
- treat documentation as a feature, and errors or lack of documentation
|
||||
as a bug.
|
||||
</longdescription>
|
||||
<upstream>
|
||||
<remote-id type="github">erlang/rebar3</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
@ -0,0 +1,31 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
MY_PN=${P#-bin}
|
||||
MY_P=${MY_PN}-${PV}
|
||||
|
||||
DESCRIPTION="A sophisticated build-tool for Erlang projects that follows OTP principles"
|
||||
HOMEPAGE="https://github.com/erlang/rebar3"
|
||||
|
||||
SRC_URI="https://github.com/erlang/rebar3/releases/download/${PV}/rebar3"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="3"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
RDEPEND="dev-lang/erlang"
|
||||
DEPEND=""
|
||||
|
||||
S="${WORKDIR}"
|
||||
|
||||
QA_PREBUILT="/usr/bin/rebar3"
|
||||
|
||||
src_unpack() {
|
||||
cp -v "${DISTDIR}/${A}" "${S}/" || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin rebar3
|
||||
}
|
Binary file not shown.
Binary file not shown.
@ -0,0 +1,26 @@
|
||||
$NetBSD: patch-libgnomevfs_gnome-vfs-ssl.c,v 1.1 2018/02/16 13:18:26 wiz Exp $
|
||||
|
||||
struct SSL is opaque in openssl-1.1; and the SSL_free() man page
|
||||
says that one should not free members of it manually (in both
|
||||
the openssl-1.0 and openssl-1.1 man pages).
|
||||
|
||||
--- libgnomevfs/gnome-vfs-ssl.c.orig 2010-02-09 12:16:14.000000000 +0000
|
||||
+++ libgnomevfs/gnome-vfs-ssl.c
|
||||
@@ -400,9 +400,6 @@ gnome_vfs_ssl_create_from_fd (GnomeVFSSS
|
||||
}
|
||||
}
|
||||
|
||||
- if (ssl->private->ssl->ctx)
|
||||
- SSL_CTX_free (ssl->private->ssl->ctx);
|
||||
-
|
||||
SSL_free (ssl->private->ssl);
|
||||
g_free (ssl->private);
|
||||
g_free (ssl);
|
||||
@@ -705,7 +702,6 @@ gnome_vfs_ssl_destroy (GnomeVFSSSL *ssl,
|
||||
}
|
||||
}
|
||||
|
||||
- SSL_CTX_free (ssl->private->ssl->ctx);
|
||||
SSL_free (ssl->private->ssl);
|
||||
close (ssl->private->sockfd);
|
||||
if (ssl->private->timeout)
|
Binary file not shown.
@ -0,0 +1,10 @@
|
||||
--- a/src/fnactions.cpp 2016-06-06 17:41:50.425121940 +0200
|
||||
+++ b/src/fnactions.cpp 2018-10-24 20:10:45.872718660 +0200
|
||||
@@ -17,6 +17,7 @@
|
||||
*/
|
||||
|
||||
#include <QDesktopWidget>
|
||||
+#include <QIcon>
|
||||
#include <QTimer>
|
||||
|
||||
#include <KLocalizedString>
|
Binary file not shown.
Binary file not shown.
@ -1,2 +1,2 @@
|
||||
DIST pulseeffects-3.2.3.tar.gz 648968 BLAKE2B aef2aaacacc41020c5f14582c91b53ba84f3e56d7cf4a13a955769ff80796ae21cbc0ecad9b2c3e24985a6a6daf86888c3a8c6e2387b917860336e73fa8c0d6b SHA512 802068c867b9708e7503e0beb65fb5aaf9ff4916b98048634a443f701864db00e5401de42ff58ed3e5fe9430af6caae74efe8f0b1b0e3e2c9d48dcb7c7e6a400
|
||||
DIST pulseeffects-4.3.8.tar.gz 1020024 BLAKE2B 07cc1341a9c829c6e9e4f820337ee993b16e4d014636ad89793952059af5814754682035841b4307a700d2681e49aec5cd4138cdf13fafc79e60557d8087a362 SHA512 3c6537daf2fd3205ecb42ee91cc01ce2a4b28ec2ecfe32c978f70e8334fef667369c684b1ea2dfdd0537fe70d10084a1c758da7757f5473d1dafba6110dc03c7
|
||||
DIST pulseeffects-4.3.9.tar.gz 1019494 BLAKE2B ddc2cb818a520b9a5fe9d88078a058e1a6e1c27225f6ffd41979bd5ebd5349f6fcdbb64766ee6b45759c059ad31859ad88de8f28fc4c7242275147b6eca18d81 SHA512 90d18ca3154baa685d9b421371c6a5098a11feb4f154d9b19865bb7b54d074aca703f803fbb40f29dd758b1090d3c12656268b59410d3249d4f34a8a1707953f
|
||||
|
Binary file not shown.
@ -1,3 +1,6 @@
|
||||
DIST unifi-video.Ubuntu16.04_amd64.v3.10.0-beta.1.deb 151614954 BLAKE2B 2c43a9f7d497164ed8bace7cd19c6ed88a8b066669ea85af2dcc3bfd7d6eb23140d32c695b48a7793b76822024190d934d651b38dbccb4cfe4de6e8f0ce5114d SHA512 c84fd0477d42fcb79a6e24f11bca593da6862987cce9e213099695a75a63930928c009ceb99c7921b1db1499a2e617a82400e941c1c069b454a9301e8e295f8f
|
||||
DIST unifi-video.Ubuntu16.04_amd64.v3.9.10-beta.1.deb 116146196 BLAKE2B 5becd4bfe7e94066a34e809dd3485b906e39d0d79bb81a302ae9168147ef9f1517df5345ba521175b05847299abc556304f75801cd188c7868211217ef3dad59 SHA512 d5b5f9fb458a463f177212c157fdd2293b6bc696f28539347d64ed8c540408321a2683ac7cb350f4a665d1d83dc216b7f849214b6c51ee392b85451a4c9b33c2
|
||||
DIST unifi-video.Ubuntu16.04_amd64.v3.9.7.deb 117374890 BLAKE2B b0f274da3052471472cd2405ec0a5d79fd97cbc30f014ede42a004dcffc4d27b9b5ecc36f32b4f60f8c47ba73b85795d2851345f5472b85192cf836bfb929173 SHA512 9a0f48d81f3935baad4004681cabe2ff46f4f86f8770c260c98fbd724de2949427de8ec706d86d612a9ccbcda69ca227aa4a123c3208e0a4ab7c0a51540c06f8
|
||||
DIST unifi-video.Ubuntu16.04_amd64.v3.9.8-beta.1.deb 117380976 BLAKE2B 7fea704c3b780d51c3d0fc1de24b74654ba438b5223b368bbd6b42110b98fb22f0aa29816b6acec9961a9fa4f6dbace54361c64c4c12ae6a39b855c9e91702a1 SHA512 a4782c3b5319d7bc54d5df3dc64fdfec86e729636cc2e5479d7ca3a8f5112c57c83c0ac421be3cc0ce88975d6f47dd7bb57743d6802164531fdafed2bbe484bb
|
||||
DIST unifi-video.Ubuntu16.04_amd64.v3.9.8-beta.2.deb 117447150 BLAKE2B f42a916e6ce78d02306559f9bb5c09e2a065facbe3abe3055a921b0a11dd7826f36c119eebda3495c8410560b6d5134e8cbbfb5c5a019e575e6fc4cc803e76b2 SHA512 0d9fc72a45fb0e87c7fc98c389c02336d12263d69ce96f17e255e354781ba84882f1f9cf4a4baa14e2638646491273407ccce93e020e75e3703405b48a2a13dc
|
||||
DIST unifi-video.Ubuntu16.04_amd64.v3.9.9.deb 117449304 BLAKE2B 0d3805481d587ee4b96265b69c82e27a35867895ae0a5d6496fd81eea4da946928ae2c7fd8d4184e5fb330d7ea6c94a835eaf17deb4e9598b784bb48d29494e3 SHA512 fc5023377c26484589680c3e4496e6b7c05d16b5c167a587dc026f6d9797d6974fe22eec164afbc62ecaf980f1e51ab828f85e9dd8b0dd31214fe54a93e97f4f
|
||||
|
@ -0,0 +1,83 @@
|
||||
# Copyright 1999-2018 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit systemd user
|
||||
|
||||
MY_PV="${PV/_beta/-beta.}"
|
||||
DESCRIPTION="UniFi Video Server"
|
||||
HOMEPAGE="https://www.ubnt.com/download/unifi-video/"
|
||||
SRC_URI="https://dl.ubnt.com/firmwares/ufv/v${MY_PV}/unifi-video.Ubuntu16.04_amd64.v${MY_PV}.deb"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS=""
|
||||
IUSE=""
|
||||
RESTRICT="mirror"
|
||||
|
||||
DEPEND=""
|
||||
RDEPEND="dev-db/mongodb
|
||||
dev-java/commons-daemon
|
||||
sys-apps/lsb-release
|
||||
sys-libs/libcap
|
||||
virtual/jre:1.8"
|
||||
|
||||
S=${WORKDIR}
|
||||
QA_PREBUILT="usr/lib*/${PN}/lib/*.so usr/lib*/${PN}/bin/*"
|
||||
|
||||
pkg_setup() {
|
||||
enewuser ${PN}
|
||||
enewgroup ${PN}
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
default
|
||||
unpack "${WORKDIR}"/data.tar.gz
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
eapply "${FILESDIR}"/commons-daemon-move.patch
|
||||
sed -i usr/sbin/${PN} \
|
||||
-e '/require_root$/d' \
|
||||
-e '/update_limits$/d' \
|
||||
-e '/ulimit/d' \
|
||||
-e '/coredump_filter/d' || die
|
||||
default
|
||||
}
|
||||
|
||||
src_install() {
|
||||
static_dir="/usr/$(get_libdir)/${PN}"
|
||||
#install static data
|
||||
insinto ${static_dir}
|
||||
doins -r usr/lib/${PN}/*
|
||||
fperms -R +x ${static_dir}/bin
|
||||
fowners -R ${PN}:${PN} ${static_dir}/conf/evostream/
|
||||
|
||||
#wrapper to work around mongodb-3.6 compat issue
|
||||
exeinto ${static_dir}/bin/
|
||||
newexe "${FILESDIR}"/mongod-wrapper mongod
|
||||
|
||||
#prepare runtime-data dirs which live in /var but are symlinked from static
|
||||
#data dir, and are writable by non-root user
|
||||
dodir /var/log/${PN}
|
||||
fowners ${PN}:${PN} /var/log/${PN}
|
||||
dosym ../../../var/log/${PN} ${static_dir}/logs
|
||||
|
||||
dodir /var/lib/${PN}/work
|
||||
fowners ${PN}:${PN} /var/lib/${PN}/work
|
||||
dosym ../../../var/lib/${PN}/work ${static_dir}/work
|
||||
|
||||
keepdir /var/lib/${PN}/data
|
||||
fowners ${PN}:${PN} /var/lib/${PN}/data
|
||||
dosym ../../../var/lib/${PN}/data ${static_dir}/data
|
||||
|
||||
echo "CONFIG_PROTECT=\"/var/lib/${PN}/data/system.properties\"" > "${T}"/99${PN}
|
||||
doenvd "${T}"/99${PN}
|
||||
|
||||
into /usr
|
||||
dosbin usr/sbin/${PN}
|
||||
|
||||
newinitd "${FILESDIR}"/${PN}.initd ${PN}
|
||||
systemd_dounit "${FILESDIR}"/${PN}.service
|
||||
}
|
@ -0,0 +1,83 @@
|
||||
# Copyright 1999-2018 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit systemd user
|
||||
|
||||
MY_PV="${PV/_beta/-beta.}"
|
||||
DESCRIPTION="UniFi Video Server"
|
||||
HOMEPAGE="https://www.ubnt.com/download/unifi-video/"
|
||||
SRC_URI="https://dl.ubnt.com/firmwares/ufv/v${MY_PV}/unifi-video.Ubuntu16.04_amd64.v${MY_PV}.deb"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS=""
|
||||
IUSE=""
|
||||
RESTRICT="mirror"
|
||||
|
||||
DEPEND=""
|
||||
RDEPEND="dev-db/mongodb
|
||||
dev-java/commons-daemon
|
||||
sys-apps/lsb-release
|
||||
sys-libs/libcap
|
||||
virtual/jre:1.8"
|
||||
|
||||
S=${WORKDIR}
|
||||
QA_PREBUILT="usr/lib*/${PN}/lib/*.so usr/lib*/${PN}/bin/*"
|
||||
|
||||
pkg_setup() {
|
||||
enewuser ${PN}
|
||||
enewgroup ${PN}
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
default
|
||||
unpack "${WORKDIR}"/data.tar.gz
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
eapply "${FILESDIR}"/commons-daemon-move.patch
|
||||
sed -i usr/sbin/${PN} \
|
||||
-e '/require_root$/d' \
|
||||
-e '/update_limits$/d' \
|
||||
-e '/ulimit/d' \
|
||||
-e '/coredump_filter/d' || die
|
||||
default
|
||||
}
|
||||
|
||||
src_install() {
|
||||
static_dir="/usr/$(get_libdir)/${PN}"
|
||||
#install static data
|
||||
insinto ${static_dir}
|
||||
doins -r usr/lib/${PN}/*
|
||||
fperms -R +x ${static_dir}/bin
|
||||
fowners -R ${PN}:${PN} ${static_dir}/conf/evostream/
|
||||
|
||||
#wrapper to work around mongodb-3.6 compat issue
|
||||
exeinto ${static_dir}/bin/
|
||||
newexe "${FILESDIR}"/mongod-wrapper mongod
|
||||
|
||||
#prepare runtime-data dirs which live in /var but are symlinked from static
|
||||
#data dir, and are writable by non-root user
|
||||
dodir /var/log/${PN}
|
||||
fowners ${PN}:${PN} /var/log/${PN}
|
||||
dosym ../../../var/log/${PN} ${static_dir}/logs
|
||||
|
||||
dodir /var/lib/${PN}/work
|
||||
fowners ${PN}:${PN} /var/lib/${PN}/work
|
||||
dosym ../../../var/lib/${PN}/work ${static_dir}/work
|
||||
|
||||
keepdir /var/lib/${PN}/data
|
||||
fowners ${PN}:${PN} /var/lib/${PN}/data
|
||||
dosym ../../../var/lib/${PN}/data ${static_dir}/data
|
||||
|
||||
echo "CONFIG_PROTECT=\"/var/lib/${PN}/data/system.properties\"" > "${T}"/99${PN}
|
||||
doenvd "${T}"/99${PN}
|
||||
|
||||
into /usr
|
||||
dosbin usr/sbin/${PN}
|
||||
|
||||
newinitd "${FILESDIR}"/${PN}.initd ${PN}
|
||||
systemd_dounit "${FILESDIR}"/${PN}.service
|
||||
}
|
@ -0,0 +1,83 @@
|
||||
# Copyright 1999-2018 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit systemd user
|
||||
|
||||
MY_PV="${PV/_beta/-beta.}"
|
||||
DESCRIPTION="UniFi Video Server"
|
||||
HOMEPAGE="https://www.ubnt.com/download/unifi-video/"
|
||||
SRC_URI="https://dl.ubnt.com/firmwares/ufv/v${MY_PV}/unifi-video.Ubuntu16.04_amd64.v${MY_PV}.deb"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE=""
|
||||
RESTRICT="mirror"
|
||||
|
||||
DEPEND=""
|
||||
RDEPEND="dev-db/mongodb
|
||||
dev-java/commons-daemon
|
||||
sys-apps/lsb-release
|
||||
sys-libs/libcap
|
||||
virtual/jre:1.8"
|
||||
|
||||
S=${WORKDIR}
|
||||
QA_PREBUILT="usr/lib*/${PN}/lib/*.so usr/lib*/${PN}/bin/*"
|
||||
|
||||
pkg_setup() {
|
||||
enewuser ${PN}
|
||||
enewgroup ${PN}
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
default
|
||||
unpack "${WORKDIR}"/data.tar.gz
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
eapply "${FILESDIR}"/commons-daemon-move.patch
|
||||
sed -i usr/sbin/${PN} \
|
||||
-e '/require_root$/d' \
|
||||
-e '/update_limits$/d' \
|
||||
-e '/ulimit/d' \
|
||||
-e '/coredump_filter/d' || die
|
||||
default
|
||||
}
|
||||
|
||||
src_install() {
|
||||
static_dir="/usr/$(get_libdir)/${PN}"
|
||||
#install static data
|
||||
insinto ${static_dir}
|
||||
doins -r usr/lib/${PN}/*
|
||||
fperms -R +x ${static_dir}/bin
|
||||
fowners -R ${PN}:${PN} ${static_dir}/conf/evostream/
|
||||
|
||||
#wrapper to work around mongodb-3.6 compat issue
|
||||
exeinto ${static_dir}/bin/
|
||||
newexe "${FILESDIR}"/mongod-wrapper mongod
|
||||
|
||||
#prepare runtime-data dirs which live in /var but are symlinked from static
|
||||
#data dir, and are writable by non-root user
|
||||
dodir /var/log/${PN}
|
||||
fowners ${PN}:${PN} /var/log/${PN}
|
||||
dosym ../../../var/log/${PN} ${static_dir}/logs
|
||||
|
||||
dodir /var/lib/${PN}/work
|
||||
fowners ${PN}:${PN} /var/lib/${PN}/work
|
||||
dosym ../../../var/lib/${PN}/work ${static_dir}/work
|
||||
|
||||
keepdir /var/lib/${PN}/data
|
||||
fowners ${PN}:${PN} /var/lib/${PN}/data
|
||||
dosym ../../../var/lib/${PN}/data ${static_dir}/data
|
||||
|
||||
echo "CONFIG_PROTECT=\"/var/lib/${PN}/data/system.properties\"" > "${T}"/99${PN}
|
||||
doenvd "${T}"/99${PN}
|
||||
|
||||
into /usr
|
||||
dosbin usr/sbin/${PN}
|
||||
|
||||
newinitd "${FILESDIR}"/${PN}.initd ${PN}
|
||||
systemd_dounit "${FILESDIR}"/${PN}.service
|
||||
}
|
Binary file not shown.
@ -1 +1 @@
|
||||
Wed, 24 Oct 2018 11:08:32 +0000
|
||||
Thu, 25 Oct 2018 05:38:37 +0000
|
||||
|
@ -1 +1 @@
|
||||
Wed, 24 Oct 2018 11:08:32 +0000
|
||||
Thu, 25 Oct 2018 05:38:37 +0000
|
||||
|
Binary file not shown.
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue