parent
db5ce888aa
commit
31e68fc1c6
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,91 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
inherit systemd unpacker tmpfiles
|
||||
|
||||
DESCRIPTION="general puppet client utils along with hiera and facter"
|
||||
HOMEPAGE="https://puppetlabs.com/"
|
||||
SRC_URI="amd64? ( http://apt.puppetlabs.com/pool/focal/puppet/${PN:0:1}/${PN}/${PN}_${PV}-1focal_amd64.deb )
|
||||
arm64? ( http://apt.puppetlabs.com/pool/focal/puppet/${PN:0:1}/${PN}/${PN}_${PV}-1focal_arm64.deb )"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm64"
|
||||
IUSE="puppetdb selinux"
|
||||
RESTRICT="strip"
|
||||
|
||||
# virtual/libcrypt:= is in here despite being a pre-built package
|
||||
# to ensure that the has_version logic for the symlink doesn't become stale
|
||||
CDEPEND="!app-admin/puppet
|
||||
!dev-ruby/hiera
|
||||
!dev-ruby/facter
|
||||
app-emulation/virt-what
|
||||
acct-user/puppet
|
||||
acct-group/puppet
|
||||
virtual/libcrypt:="
|
||||
|
||||
DEPEND="
|
||||
${CDEPEND}
|
||||
app-admin/augeas"
|
||||
RDEPEND="${CDEPEND}
|
||||
app-portage/eix
|
||||
sys-apps/dmidecode
|
||||
sys-libs/libselinux
|
||||
sys-libs/glibc
|
||||
sys-libs/readline:0/8
|
||||
sys-libs/libxcrypt[compat]
|
||||
sys-libs/ncurses:0[tinfo]
|
||||
selinux? (
|
||||
sys-libs/libselinux[ruby]
|
||||
sec-policy/selinux-puppet
|
||||
)
|
||||
puppetdb? ( >=dev-ruby/puppetdb-termini-5.0.1 )"
|
||||
|
||||
S=${WORKDIR}
|
||||
|
||||
QA_PREBUILT="*"
|
||||
|
||||
src_install() {
|
||||
# conf.d
|
||||
doconfd etc/default/puppet
|
||||
doconfd etc/default/pxp-agent
|
||||
# logrotate.d
|
||||
insinto /etc/logrotate.d
|
||||
doins etc/logrotate.d/pxp-agent
|
||||
# puppet itself
|
||||
insinto /etc/puppetlabs
|
||||
doins -r etc/puppetlabs/*
|
||||
# logdir for systemd
|
||||
keepdir var/log/puppetlabs/puppet/
|
||||
chmod 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.initd2" puppet
|
||||
systemd_dounit lib/systemd/system/puppet.service
|
||||
systemd_dounit lib/systemd/system/pxp-agent.service
|
||||
newtmpfiles usr/lib/tmpfiles.d/puppet-agent.conf puppet-agent.conf
|
||||
# symlinks
|
||||
chmod 0755 -R "${D}/opt/puppetlabs/puppet/bin/"
|
||||
dosym ../../opt/puppetlabs/bin/facter /usr/bin/facter
|
||||
dosym ../../opt/puppetlabs/bin/hiera /usr/bin/hiera
|
||||
dosym ../../opt/puppetlabs/bin/puppet /usr/bin/puppet
|
||||
|
||||
# Handling of the path to the crypt library during the ongoing migration
|
||||
# from glibc[crypt] to libxcrypt
|
||||
# https://www.gentoo.org/support/news-items/2021-07-23-libxcrypt-migration.html
|
||||
if has_version "sys-libs/glibc[crypt]"; then
|
||||
local crypt_target='../../../../usr/lib64/xcrypt/libcrypt.so.1'
|
||||
else
|
||||
local crypt_target='../../../../usr/lib/libcrypt.so.1'
|
||||
fi
|
||||
dosym $crypt_target /opt/puppetlabs/puppet/lib/libcrypt.so.1
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
tmpfiles_process puppet-agent.conf
|
||||
}
|
@ -1,3 +1,4 @@
|
||||
DIST puppet-5.5.22.tar.gz 2998132 BLAKE2B 8662c89190d0904fe44ffeca1cf9a9ddca40d57ba6fb2d1e644ca353ceb55b1ca3a91416f1eef2975233c9c4498784e7d7280c111ea0cc070870cadc69341d99 SHA512 5332b084a63bdf244672cc4751022c84a1cc50d3f394a13bdcbccf7fcf4ebea67953e88957f23046608bf25e9182548449be824c18289cb2bf1e3ed29b40dc58
|
||||
DIST puppet-7.19.0.tar.gz 2817098 BLAKE2B d2d756aa236461963ac260167f9500693ea94f1b2ce7b6f881c55712f78668ce5935528a74d3a77e5b02123aeb4404c1bbfc91237622dcb68e686e920302acb9 SHA512 952ae1e77e9d9aaa0a0a731f408550fd3bf483dda9bbb12845e534e6208321db774325da8621f36535d7601bd7b8611098e486ef733428b7108f613f5dade4e0
|
||||
DIST puppet-7.20.0.tar.gz 2817232 BLAKE2B 479c4e162230371bd69509844fcd97d0d3392eb2e66578b38e6dc120dd3dd15804d73f70c1b29f1f3d9e57af539f82e605a86c9afff15e78ff48ddf482432c4d SHA512 6774bf03ad0ee80c0fd2cd8ebad60da56df7ed9818a526084fc2cf1ba2fecc81555fff200f5feef2b5d7a2275d90f44b24160de7221d682de470b511a7051f7f
|
||||
DIST puppet-7.21.0.tar.gz 2819997 BLAKE2B 96de8ceefeea12c51288e05af5d7b126811d23388492053b0d581856f11976f0492064eb89bc585ff7f455df537d5c04fb318814945a158d531d32efdd54ff02 SHA512 b0fbdf63391054d0496c67be963f98e3d85e3a1536e50d6a3f09d0c49110bb4c92bebdc38a48cd50e824e27268150cda0643c6df0edb01b3587f00a591645ee6
|
||||
|
@ -0,0 +1,127 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="7"
|
||||
|
||||
USE_RUBY="ruby24 ruby25 ruby26 ruby27"
|
||||
RUBY_FAKEGEM_RECIPE_TEST="rspec3"
|
||||
RUBY_FAKEGEM_TASK_DOC="doc:all"
|
||||
RUBY_FAKEGEM_EXTRAINSTALL="locales"
|
||||
|
||||
inherit ruby-fakegem systemd tmpfiles
|
||||
|
||||
DESCRIPTION="A system automation and configuration management software"
|
||||
HOMEPAGE="https://puppet.com/"
|
||||
SRC_URI="http://downloads.puppetlabs.com/puppet/${P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0 GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~x86"
|
||||
IUSE="augeas diff doc emacs ldap rrdtool selinux shadow sqlite vim-syntax"
|
||||
RESTRICT="test"
|
||||
|
||||
ruby_add_rdepend "
|
||||
dev-ruby/hiera
|
||||
dev-ruby/json:=
|
||||
dev-ruby/semantic_puppet
|
||||
>=dev-ruby/facter-3.0.0
|
||||
dev-ruby/concurrent-ruby
|
||||
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
|
||||
acct-user/puppet
|
||||
acct-group/puppet"
|
||||
PDEPEND="emacs? ( >=app-emacs/puppet-mode-0.3-r1 )"
|
||||
|
||||
all_ruby_prepare() {
|
||||
# Avoid spec that require unpackaged json-schema.
|
||||
rm spec/lib/matchers/json.rb $( grep -Rl matchers/json spec) || die
|
||||
|
||||
# fix systemd path
|
||||
eapply -p0 "${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
|
||||
systemd_dounit "${WORKDIR}/all/${P}/ext/systemd/puppet.service"
|
||||
|
||||
# tmpfiles stuff
|
||||
newtmpfiles "${FILESDIR}/tmpfiles.d" "puppet.conf"
|
||||
|
||||
# openrc init stuff
|
||||
newinitd "${FILESDIR}"/puppet.init-4.x puppet
|
||||
|
||||
keepdir /etc/puppetlabs/puppet/ssl
|
||||
|
||||
keepdir /var/lib/puppet/facts
|
||||
keepdir /var/lib/puppet/files
|
||||
fowners -R puppet:puppet /var/lib/puppet
|
||||
|
||||
fperms 0750 /var/lib/puppet
|
||||
|
||||
fperms 0750 /etc/puppetlabs
|
||||
fperms 0750 /etc/puppetlabs/puppet
|
||||
fperms 0750 /etc/puppetlabs/puppet/ssl
|
||||
fowners -R :puppet /etc/puppetlabs
|
||||
fowners -R :puppet /var/lib/puppet
|
||||
|
||||
# ext and examples files
|
||||
for f in $(find ext examples -type f) ; do
|
||||
docinto "$(dirname ${f})"
|
||||
dodoc "${f}"
|
||||
done
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
tmpfiles_process puppet.conf
|
||||
|
||||
elog
|
||||
elog "Please, *don't* include the --ask option in EMERGE_EXTRA_OPTS as this could"
|
||||
elog "cause puppet to hang while installing packages."
|
||||
elog
|
||||
elog "Portage Puppet module with Gentoo-specific resources:"
|
||||
elog "http://forge.puppetlabs.com/gentoo/portage"
|
||||
elog
|
||||
elog "If updating from puppet 5 to 6, keep in mind that webrick (server/master)"
|
||||
elog "suppert was removed for >=6.x, please migrate to puppetserver if you have"
|
||||
elog "not already done so."
|
||||
elog
|
||||
}
|
@ -1,2 +1,3 @@
|
||||
DIST puppetserver-7.9.1.tar.gz 66383400 BLAKE2B 1804191a5453ebe55c5744687cce2f6d062e397be7b29a44d2749d0880ea20995ddbd9efdc9ddcde17021c011ff5b665f3e215e49143424f7fe470d915c3b6d1 SHA512 2b8e43220480cad0d1140fdc08491bf7296b72c2eb228da56d5b569f6b39dad1c3968af1942d3a1d1b34a57d994aaa2b91edff20f1d54905477a77f3062b580c
|
||||
DIST puppetserver-7.9.2.tar.gz 59729859 BLAKE2B 15f9261ae81f280735080a75e083b4bbc5d4b9404bd52f02180173b6cab2ebfe20e38950dd6c94c5167478293056ac562994ff27a7ad955c69621c13ffa808e1 SHA512 0c047554e10ecf36d000c9f702b759e27b8168f1f2207d9b8e904c9579d8e37d8540327d898b0a9e1812ca3223aa15b7cf4da46d7a4247e5d4b8f1596f9d5f26
|
||||
DIST puppetserver-7.9.3.tar.gz 59951239 BLAKE2B 818eee0e7bd115e0b335b1e13d7b0016933190e95a3bf71ad2498f87097de4251a1e6e2f9dfb933a1ee49c981ae0adf74f9994ec0e36a4b77aad567ab00e1fdd SHA512 d2ce573bf15c0db7cb7a9fd0a35a8286acc77ca9b2eddfe0f2dd8549034793600c04973d9f8a72ab543282325f18795727e05a723b3a3b67b027b382ded3d3eb
|
||||
|
@ -0,0 +1,131 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit systemd tmpfiles
|
||||
|
||||
DESCRIPTION="Puppet Server is the next-generation application for managing Puppet agents"
|
||||
HOMEPAGE="http://docs.puppetlabs.com/puppetserver/"
|
||||
SRC_URI="https://downloads.puppetlabs.com/puppet/${P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
IUSE="puppetdb"
|
||||
# will need the same keywords in puppet-agent (puppet-agent now has arm64)
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
RDEPEND+="
|
||||
>=virtual/jdk-1.8.0
|
||||
app-admin/puppet-agent[puppetdb?]"
|
||||
DEPEND+="acct-user/puppet
|
||||
acct-group/puppet"
|
||||
|
||||
src_prepare() {
|
||||
sed -i 's/sysconfig\/puppetserver/default\/puppetserver/g' ext/redhat/puppetserver.service || die
|
||||
sed -i 's/sysconfig\/puppetserver/default\/puppetserver/g' ext/bin/puppetserver || die
|
||||
sed -i 's/sysconfig\/puppetserver/default\/puppetserver/g' install.sh || die
|
||||
sed -i 's/var\/run/run/g' ext/config/conf.d/puppetserver.conf || die
|
||||
sed -i 's/var\/run/run/g' ext/redhat/puppetserver.service || die
|
||||
sed -i 's/var\/run/run/g' install.sh || die
|
||||
default
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
einfo "not compiling"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
insinto /opt/puppetlabs/server/apps/puppetserver
|
||||
insopts -m0774
|
||||
doins ext/ezbake-functions.sh
|
||||
insopts -m0644
|
||||
doins ext/ezbake.manifest
|
||||
doins puppet-server-release.jar
|
||||
insinto /etc/puppetlabs/puppetserver
|
||||
doins ext/config/logback.xml
|
||||
doins ext/config/request-logging.xml
|
||||
insinto /etc/puppetlabs/puppetserver/services.d
|
||||
doins ext/system-config/services.d/bootstrap.cfg
|
||||
doins ext/config/services.d/ca.cfg
|
||||
insinto /etc/puppetlabs/puppetserver/conf.d
|
||||
doins ext/config/conf.d/puppetserver.conf
|
||||
doins ext/config/conf.d/auth.conf
|
||||
doins ext/config/conf.d/global.conf
|
||||
doins ext/config/conf.d/web-routes.conf
|
||||
doins ext/config/conf.d/metrics.conf
|
||||
doins ext/config/conf.d/webserver.conf
|
||||
insopts -m0755
|
||||
insinto /opt/puppetlabs/server/apps/puppetserver/scripts
|
||||
doins install.sh
|
||||
insinto /opt/puppetlabs/server/apps/puppetserver/cli/apps
|
||||
doins ext/cli/ca
|
||||
doins ext/cli/irb
|
||||
doins ext/cli/foreground
|
||||
doins ext/cli/gem
|
||||
doins ext/cli/ruby
|
||||
doins ext/cli/reload
|
||||
doins ext/cli/start
|
||||
doins ext/cli/stop
|
||||
insinto /opt/puppetlabs/server/apps/puppetserver/cli
|
||||
doins ext/cli_defaults/cli-defaults.sh
|
||||
insinto /opt/puppetlabs/server/apps/puppetserver/bin
|
||||
doins ext/bin/puppetserver
|
||||
insopts -m0644
|
||||
dodir /opt/puppetlabs/server/bin
|
||||
dosym ../apps/puppetserver/bin/puppetserver /opt/puppetlabs/server/bin/puppetserver
|
||||
dodir /opt/puppetlabs/bin
|
||||
dosym ../server/apps/puppetserver/bin/puppetserver /opt/puppetlabs/bin/puppetserver
|
||||
dosym ../../opt/puppetlabs/server/apps/puppetserver/bin/puppetserver /usr/bin/puppetserver
|
||||
dodir /opt/puppetlabs/server/apps/puppetserver/config/services.d
|
||||
# other sys stuff
|
||||
dodir /etc/puppetlabs/code
|
||||
# needed for systemd
|
||||
keepdir /var/log/puppetlabs/puppetserver
|
||||
dodir /etc/puppetlabs/puppet/ssl
|
||||
fowners -R puppet:puppet /etc/puppetlabs/puppet/ssl
|
||||
fperms -R 771 /etc/puppetlabs/puppet/ssl
|
||||
# systemd type things
|
||||
insinto /etc/systemd/system/puppetserver.service.d/
|
||||
systemd_dounit ext/redhat/puppetserver.service
|
||||
insinto /etc/default
|
||||
newins ext/default puppetserver
|
||||
# normal init type tasks
|
||||
dosym ../default/puppetserver /etc/conf.d/puppetserver
|
||||
newinitd "${FILESDIR}/puppetserver.init-r1" puppetserver
|
||||
# misc
|
||||
insinto /etc/logrotate.d
|
||||
newins ext/puppetserver.logrotate.conf puppetserver
|
||||
# cleanup
|
||||
dodir /opt/puppetlabs/server/data/puppetserver/jruby-gems
|
||||
fowners -R puppet:puppet /opt/puppetlabs/server/data
|
||||
fperms -R 775 /opt/puppetlabs/server/data/puppetserver
|
||||
fperms -R 700 /var/log/puppetlabs/puppetserver
|
||||
insinto /opt/puppetlabs/server/data
|
||||
doins ext/build-scripts/jruby-gem-list.txt
|
||||
doins ext/build-scripts/mri-gem-list-no-dependencies.txt
|
||||
newtmpfiles ext/puppetserver.tmpfiles.conf puppetserver.conf
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
tmpfiles_process puppetserver.conf
|
||||
|
||||
elog "to install you may want to run the following:"
|
||||
elog
|
||||
elog "puppet config set --section master vardir /opt/puppetlabs/server/data/puppetserver"
|
||||
elog "puppet config set --section master logdir /var/log/puppetlabs/puppetserver"
|
||||
elog "puppet config set --section master rundir /run/puppetlabs/puppetserver"
|
||||
elog "puppet config set --section master pidfile /run/puppetlabs/puppetserver/puppetserver.pid"
|
||||
elog "puppet config set --section master codedir /etc/puppetlabs/code"
|
||||
elog
|
||||
elog "# install puppetserver gems"
|
||||
elog "cd /opt/puppetlabs/server/apps/puppetserver"
|
||||
elog "echo \"jruby-puppet: { gem-home: ${DESTDIR}/opt/puppetlabs/server/data/puppetserver/vendored-jruby-gems }\" > jruby.conf"
|
||||
elog "while read LINE; do"
|
||||
elog " java -cp puppet-server-release.jar:jruby-9k.jar clojure.main -m puppetlabs.puppetserver.cli.gem --config jruby.conf -- install --no-document \$(echo \$LINE |awk '{print \$1}') --version \$(echo \$LINE |awk '{print \$2}')"
|
||||
elog "done < /opt/puppetlabs/server/data/jruby-gem-list.txt"
|
||||
elog "echo \"jruby-puppet: { gem-home: ${DESTDIR}/opt/puppetlabs/puppet/lib/ruby/vendor_gems }\" > jruby.conf"
|
||||
elog "while read LINE; do"
|
||||
elog " java -cp puppet-server-release.jar:jruby-9k.jar clojure.main -m puppetlabs.puppetserver.cli.gem --config jruby.conf -- install --no-document --ignore-dependencies \$(echo \$LINE |awk '{print \$1}') --version \$(echo \$LINE |awk '{print \$2}')"
|
||||
elog "done < /opt/puppetlabs/server/data/mri-gem-list-no-dependencies.txt"
|
||||
}
|
Binary file not shown.
@ -1,2 +1,3 @@
|
||||
DIST bareos-20.0.8.tar.gz 13429247 BLAKE2B 5576cf738fccad0ac39f7c92e8da01f4925d58e4373c8bc19f68ddb8cc8d6a07bf73dfd39bd2111766ccd20ce2da224680b8ab9adf7b84421874ae916e633f75 SHA512 1da30d0ff2f1fda2c4a41ec6d41ec60e3212b1bdb153c7f397931580894f31e36ab84f655d263aed47b9eb21e68ef7e59ec3b7bbd4f2c8981ae04b84733ffb68
|
||||
DIST bareos-21.1.2.tar.gz 11582588 BLAKE2B e7e02b3897d7e377cc79d9d0880da821f1b81d1f54891d89e704e78f51471cdf94b5a02ffe2f4ed54dec38bf37ccc757bf1641c3b678a04e401f48484ed3c941 SHA512 acdc787ff828add93c81b2b7d293dec90f2aa22aa3aee3002662bd30e88dc0dc58b753bb63ca7c111fac6c7eeea888938236c1169f92ed6cec27941036c7b6b1
|
||||
DIST bareos-21.1.5.tar.gz 11655244 BLAKE2B 18ef42669cfdd7a663910fa1ce9b46f12eab0aa3a2106e9877dc3d341e9a7b309c21bc1768d4873d626938fcbb2084884a85d6dcef0aa2834b117aef1034d28f SHA512 637c6c0500ff31bb2c87f27d87f908d49836191afb880de4b636432b9c20433ec6f32f5805aaa7fb57f2f99a0201c51802c8d213ee5573642698f74da4cb06b7
|
||||
|
@ -0,0 +1,393 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_{8..10} )
|
||||
CMAKE_WARN_UNUSED_CLI=no
|
||||
#CMAKE_REMOVE_MODULES=yes
|
||||
|
||||
inherit python-any-r1 systemd cmake tmpfiles
|
||||
|
||||
DESCRIPTION="Featureful client/server network backup suite"
|
||||
HOMEPAGE="https://www.bareos.org/"
|
||||
SRC_URI="https://github.com/${PN}/${PN}/archive/Release/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
RESTRICT="mirror"
|
||||
|
||||
LICENSE="AGPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="X acl ceph clientonly +director glusterfs ipv6 jansson lmdb
|
||||
logwatch mysql ndmp +postgres readline scsi-crypto
|
||||
sqlite static +storage-daemon systemd tcpd vim-syntax vmware xattr"
|
||||
|
||||
# get cmake variables from core/cmake/BareosSetVariableDefaults.cmake
|
||||
DEPEND="
|
||||
!app-backup/bacula
|
||||
acct-group/${PN}
|
||||
!x86? (
|
||||
ceph? ( sys-cluster/ceph )
|
||||
)
|
||||
glusterfs? ( sys-cluster/glusterfs )
|
||||
lmdb? ( dev-db/lmdb )
|
||||
dev-libs/gmp:0
|
||||
!clientonly? (
|
||||
acct-user/${PN}
|
||||
postgres? ( dev-db/postgresql:*[threads] )
|
||||
mysql? ( virtual/mysql )
|
||||
sqlite? ( dev-db/sqlite:3 )
|
||||
director? (
|
||||
virtual/mta
|
||||
jansson? ( dev-libs/jansson:= )
|
||||
)
|
||||
)
|
||||
logwatch? ( sys-apps/logwatch )
|
||||
ndmp? ( net-libs/rpcsvc-proto )
|
||||
tcpd? ( sys-apps/tcp-wrappers )
|
||||
readline? ( sys-libs/readline:0 )
|
||||
static? (
|
||||
acl? ( virtual/acl[static-libs] )
|
||||
sys-libs/zlib[static-libs]
|
||||
dev-libs/lzo[static-libs]
|
||||
sys-libs/ncurses:=[static-libs]
|
||||
dev-libs/openssl:0=[static-libs]
|
||||
)
|
||||
!static? (
|
||||
acl? ( virtual/acl )
|
||||
dev-libs/lzo
|
||||
dev-libs/openssl:0=
|
||||
sys-libs/ncurses:=
|
||||
sys-libs/zlib
|
||||
)
|
||||
"
|
||||
RDEPEND="${DEPEND}
|
||||
!clientonly? (
|
||||
storage-daemon? (
|
||||
sys-block/mtx
|
||||
app-arch/mt-st
|
||||
)
|
||||
)
|
||||
vim-syntax? ( || ( app-editors/vim app-editors/gvim ) )
|
||||
"
|
||||
BDEPEND="${PYTHON_DEPS}"
|
||||
|
||||
REQUIRED_USE="
|
||||
!clientonly? ( || ( mysql postgres sqlite ) )
|
||||
static? ( clientonly )
|
||||
x86? ( !ceph )
|
||||
"
|
||||
|
||||
S=${WORKDIR}/${PN}-Release-${PV}
|
||||
|
||||
src_prepare() {
|
||||
use mysql && export mydbtypes+=( mysql )
|
||||
use postgres && export mydbtypes+=( postgresql )
|
||||
use sqlite && export mydbtypes+=( sqlite )
|
||||
|
||||
# enables default database driver in catalog
|
||||
pushd core/src/defaultconfigs >&/dev/null || die
|
||||
sed -i -e 's/#dbdriver/dbdriver/' -e '/XXX_REPLACE_WITH_DATABASE_DRIVER_XXX/d' $(grep -rl XXX_REPLACE_WITH_DATABASE_DRIVER_XXX) \
|
||||
|| die "sed on MyCatalog.conf.in failed"
|
||||
popd >&/dev/null || die
|
||||
|
||||
# fix gentoo platform support
|
||||
eapply -p1 "${FILESDIR}/${PN}-20.0.2-cmake-gentoo.patch"
|
||||
|
||||
# fix missing DESTDIR in symlink creation
|
||||
sed -i '/bareos-symlink-default-db-backend.cmake/d' "${S}/core/src/cats/CMakeLists.txt"
|
||||
|
||||
# disable dird and stored plugins, because of
|
||||
# py2 dependency
|
||||
cd "${S}/core/src/plugins"
|
||||
cmake_comment_add_subdirectory dird
|
||||
cmake_comment_add_subdirectory stored
|
||||
cd -
|
||||
|
||||
CMAKE_USE_DIR="$S/core"
|
||||
cmake_src_prepare
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=()
|
||||
|
||||
CMAKE_USE_DIR="$S/core"
|
||||
|
||||
pushd core/platforms >&/dev/null || die
|
||||
cmake_comment_add_subdirectory '${DISTNAME}'
|
||||
popd >&/dev/null || die
|
||||
|
||||
if use clientonly; then
|
||||
mycmakeargs+=(
|
||||
-Dclient-only=ON
|
||||
-Dstatic-cons=$(usex static)
|
||||
-Dstatic-fd=$(usex static)
|
||||
)
|
||||
fi
|
||||
|
||||
for useflag in acl ipv6 ndmp scsi-crypto \
|
||||
systemd mysql lmdb; do
|
||||
mycmakeargs+=( -D$useflag=$(usex $useflag) )
|
||||
done
|
||||
|
||||
mycmakeargs+=(
|
||||
-DHAVE_PYTHON=0
|
||||
-DDEFAULT_DB_TYPE=${mydbtypes[0]}
|
||||
-Darchivedir=/var/lib/bareos/storage
|
||||
-Dbackenddir=/usr/$(get_libdir)/${PN}/backend
|
||||
-Dbasename="`hostname -s`"
|
||||
-Dbatch-insert=yes
|
||||
-Dbsrdir=/var/lib/bareos/bsr
|
||||
-Dconfdir=/etc/bareos
|
||||
-Dcoverage=no
|
||||
-Ddb_password=`cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 16 | head -n 1`
|
||||
-Ddir-group=bareos
|
||||
-Ddir-password="`cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1`"
|
||||
-Ddir-user=bareos
|
||||
-Ddocdir=/usr/share/doc/${PF}
|
||||
-Ddynamic-cats-backends=yes
|
||||
-Ddynamic-storage-backends=yes
|
||||
-Dfd-group=bareos
|
||||
-Dfd-password="`cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1`"
|
||||
-Dfd-user=root
|
||||
-Dhost=${CHOST}
|
||||
-Dhostname="`hostname -s`"
|
||||
-Dhtmldir=/usr/share/doc/${PF}/html
|
||||
-Dlibdir=/usr/$(get_libdir)
|
||||
-Dlogdir=/var/log/bareos
|
||||
-Dmandir=/usr/share/man
|
||||
-Dmon-dir-password="`cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1`"
|
||||
-Dmon-fd-password="`cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1`"
|
||||
-Dmon-sd-password="`cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1`"
|
||||
-Dmysql=$(usex mysql)
|
||||
-Dopenssl=yes
|
||||
-Dpiddir=/run/bareos
|
||||
-Dplugindir=/usr/$(get_libdir)/${PN}/plugin
|
||||
-Dpostgresql=$(usex postgres)
|
||||
-Dsbin-perm=0755
|
||||
-Dsbindir=/usr/sbin
|
||||
-Dscriptdir=/usr/libexec/bareos
|
||||
-Dsd-group=bareos
|
||||
-Dsd-password="`cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1`"
|
||||
-Dsd-user=root
|
||||
-Dsqlite3=$(usex sqlite)
|
||||
-Dsubsysdir=/run/lock/subsys
|
||||
-Dsysconfdir=/etc
|
||||
-Dworkingdir=/var/lib/bareos
|
||||
-Dx=$(usex X)
|
||||
)
|
||||
|
||||
# disable droplet support for now as it does not build with gcc 10
|
||||
# ... and this is a bundled lib, which should have its own package
|
||||
cd core && cmake_comment_add_subdirectory "src/droplet"
|
||||
|
||||
cmake_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cmake_src_install
|
||||
|
||||
# remove some scripts we don't need at all
|
||||
rm -f "${D}"/usr/libexec/bareos/{bareos,bareos-ctl-dir,bareos-ctl-fd,bareos-ctl-sd,startmysql,stopmysql}
|
||||
rm -f "${D}"/usr/sbin/bareos
|
||||
|
||||
# remove upstream init scripts and systemd units
|
||||
rm -f "${D}"/etc/init.d/bareos-* "${D}"/lib/systemd/system/bareos-*.service
|
||||
|
||||
# remove misc stuff we do not need in production
|
||||
rm -f "${D}"/etc/bareos/bareos-regress.conf
|
||||
rm -f "${D}"/etc/logrotate.d/bareos-dir
|
||||
|
||||
# get rid of py2 stuff
|
||||
rm -rf "$D"/usr/lib64/python2.7
|
||||
rm -f "$D"/usr/lib64/bareos/plugin/python-fd.so
|
||||
if ! use vmware; then
|
||||
rm -f "$D"/usr/lib64/bareos/plugin/{BareosFdPluginVMware.py,bareos-fd-vmware.py}
|
||||
fi
|
||||
|
||||
# rename statically linked apps
|
||||
if use clientonly && use static ; then
|
||||
pushd "${D}"/usr/sbin || die
|
||||
mv static-bareos-fd bareos-fd || die
|
||||
mv static-bconsole bconsole || die
|
||||
popd || die
|
||||
fi
|
||||
|
||||
# extra files which 'make install' doesn't cover
|
||||
if ! use clientonly; then
|
||||
# the logrotate configuration
|
||||
# (now unconditional wrt bug #258187)
|
||||
diropts -m0755
|
||||
insinto /etc/logrotate.d
|
||||
insopts -m0644
|
||||
newins "${S}"/core/scripts/logrotate bareos
|
||||
|
||||
# the logwatch scripts
|
||||
if use logwatch; then
|
||||
diropts -m0750
|
||||
dodir /etc/log.d/scripts/services
|
||||
dodir /etc/log.d/scripts/shared
|
||||
dodir /etc/log.d/conf/logfiles
|
||||
dodir /etc/log.d/conf/services
|
||||
pushd "${S}"/core/scripts/logwatch >&/dev/null || die
|
||||
|
||||
into /etc/log.d/scripts/services
|
||||
dobin bareos
|
||||
|
||||
into /etc/log.d/scripts/shared
|
||||
dobin applybareosdate
|
||||
|
||||
insinto /etc/log.d/conf/logfiles
|
||||
newins logfile.bareos.conf bareos.conf
|
||||
|
||||
insinto /etc/log.d/conf/services
|
||||
newins services.bareos.conf bareos.conf
|
||||
|
||||
popd >&/dev/null || die
|
||||
fi
|
||||
fi
|
||||
|
||||
rm -vf "${D}"/usr/share/man/man1/bareos-bwxconsole.1*
|
||||
if use clientonly || ! use director; then
|
||||
rm -vf "${D}"/usr/share/man/man8/bareos-dir.8*
|
||||
rm -vf "${D}"/usr/share/man/man8/bareos-dbcheck.8*
|
||||
rm -vf "${D}"/usr/share/man/man1/bsmtp.1*
|
||||
rm -vf "${D}"/usr/share/man/man8/bwild.8*
|
||||
rm -vf "${D}"/usr/share/man/man8/bregex.8*
|
||||
rm -vf "${D}"/usr/share/man/man8/bpluginfo.8*
|
||||
rm -vf "${D}"/usr/libexec/bareos/create_*_database
|
||||
rm -vf "${D}"/usr/libexec/bareos/drop_*_database
|
||||
rm -vf "${D}"/usr/libexec/bareos/make_*_tables
|
||||
rm -vf "${D}"/usr/libexec/bareos/update_*_tables
|
||||
rm -vf "${D}"/usr/libexec/bareos/drop_*_tables
|
||||
rm -vf "${D}"/usr/libexec/bareos/grant_*_privileges
|
||||
rm -vf "${D}"/usr/libexec/bareos/*_catalog_backup
|
||||
fi
|
||||
if use clientonly || ! use storage-daemon; then
|
||||
rm -vf "${D}"/usr/share/man/man8/bareos-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/bareos/disk-changer
|
||||
rm -vf "${D}"/usr/libexec/bareos/mtx-changer
|
||||
rm -vf "${D}"/usr/libexec/bareos/dvd-handler
|
||||
rm -vf "${D}"/etc/bareos/mtx-changer.conf
|
||||
fi
|
||||
if ! use scsi-crypto; then
|
||||
rm -vf "${D}"/usr/share/man/man8/bscrypto.8*
|
||||
fi
|
||||
|
||||
# documentation
|
||||
dodoc README.md
|
||||
dodoc core/README.configsubdirectories
|
||||
use glusterfs dodoc core/README.glusterfs
|
||||
use ndmp && dodoc core/README.NDMP
|
||||
use scsi-crypto && dodoc core/README.scsicrypto
|
||||
|
||||
# vim-files
|
||||
if use vim-syntax; then
|
||||
insinto /usr/share/vim/vimfiles/syntax
|
||||
doins core/scripts/bareos.vim
|
||||
insinto /usr/share/vim/vimfiles/ftdetect
|
||||
newins core/scripts/filetype.vim bareos_ft.vim
|
||||
fi
|
||||
|
||||
# setup init scripts
|
||||
myscripts="bareos-fd"
|
||||
if ! use clientonly; then
|
||||
if use director; then
|
||||
myscripts+=" bareos-dir"
|
||||
fi
|
||||
if use storage-daemon; then
|
||||
myscripts+=" bareos-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}/${script}".initd "${T}/${script}".initd || die "failed to copy ${script}.initd"
|
||||
|
||||
# now set the database dependency for the director init script
|
||||
case "${script}" in
|
||||
bareos-dir)
|
||||
sed -i -e "s:%databasetypes%:${mydbtypes[*]}:" "${T}/${script}".confd || die
|
||||
;;
|
||||
*)
|
||||
;;
|
||||
esac
|
||||
|
||||
# install init script and config
|
||||
newinitd "${T}/${script}".initd "${script}"
|
||||
newconfd "${T}/${script}".confd "${script}"
|
||||
done
|
||||
|
||||
# install systemd unit files
|
||||
if use systemd; then
|
||||
if ! use clientonly; then
|
||||
use director && systemd_dounit "${FILESDIR}"/bareos-dir.service
|
||||
use storage-daemon && systemd_dounit "${FILESDIR}"/bareos-sd.service
|
||||
fi
|
||||
systemd_dounit "${FILESDIR}"/bareos-fd.service
|
||||
fi
|
||||
|
||||
# make sure the working directory exists
|
||||
diropts -m0750
|
||||
keepdir /var/lib/bareos
|
||||
keepdir /var/lib/bareos/storage
|
||||
|
||||
diropts -m0755 -o bareos -g bareos
|
||||
keepdir /var/log/bareos
|
||||
|
||||
newtmpfiles "${FILESDIR}"/tmpfiles.d-bareos.conf bareos.conf
|
||||
|
||||
# make sure bareos group can execute bareos libexec scripts
|
||||
fowners -R root:bareos /usr/libexec/bareos
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
tmpfiles_process bareos.conf
|
||||
|
||||
if use clientonly; then
|
||||
fowners root:bareos /var/lib/bareos
|
||||
else
|
||||
fowners bareos:bareos /var/lib/bareos
|
||||
fi
|
||||
|
||||
if ! use clientonly && use director; then
|
||||
einfo
|
||||
einfo "If this is a new install, you must create the database:"
|
||||
if use postgres; then
|
||||
einfo
|
||||
einfo "For postgresql:"
|
||||
einfo " su postgres -c '/usr/libexec/bareos/create_bareos_database postgresql'"
|
||||
einfo " su postgres -c '/usr/libexec/bareos/make_bareos_tables postgresql'"
|
||||
einfo " su postgres -c '/usr/libexec/bareos/grant_bareos_privileges postgresql'"
|
||||
fi
|
||||
if use mysql; then
|
||||
einfo
|
||||
einfo "For mysql:"
|
||||
einfo
|
||||
einfo " Make sure root has direct access to your mysql server. You may want to"
|
||||
einfo " create a /root/.my.cnf file with"
|
||||
einfo " [client]"
|
||||
einfo " user=root"
|
||||
einfo " password=YourPasswordForAccessingMysqlAsRoot"
|
||||
einfo " before running:"
|
||||
einfo " /usr/libexec/bareos/create_bareos_database mysql"
|
||||
einfo " /usr/libexec/bareos/make_bareos_tables mysql"
|
||||
einfo " /usr/libexec/bareos/grant_bareos_privileges mysql"
|
||||
fi
|
||||
einfo
|
||||
fi
|
||||
|
||||
if use sqlite; then
|
||||
einfo
|
||||
einfo "Be aware that Bareos does not officially support SQLite database."
|
||||
einfo "Best use it only for a client-only installation. See Bug #445540."
|
||||
einfo
|
||||
einfo "It is strongly recommended to use either postgresql or mysql as"
|
||||
einfo "catalog database backend."
|
||||
fi
|
||||
}
|
@ -0,0 +1,24 @@
|
||||
diff -urw bareos-Release-20.0.2.orig/core/cmake/distname.sh bareos-Release-20.0.2/core/cmake/distname.sh
|
||||
--- bareos-Release-20.0.2.orig/core/cmake/distname.sh 2021-06-10 06:07:18.000000000 -0930
|
||||
+++ bareos-Release-20.0.2/core/cmake/distname.sh 2021-08-15 17:07:37.168216517 -0930
|
||||
@@ -153,7 +153,7 @@
|
||||
elif test -f /etc/gentoo-release
|
||||
then
|
||||
PLATFORM=gentoo
|
||||
- DISTVER=`awk '/version / { print $5 }' < /etc/gentoo-release`
|
||||
+ DISTVER=`awk '/release / { print $5 }' < /etc/gentoo-release`
|
||||
elif test -f /etc/debian_version
|
||||
then
|
||||
if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
|
||||
diff -urw bareos-Release-20.0.2.orig/core/platforms/CMakeLists.txt bareos-Release-20.0.2/core/platforms/CMakeLists.txt
|
||||
--- bareos-Release-20.0.2.orig/core/platforms/CMakeLists.txt 2021-06-10 06:07:18.000000000 -0930
|
||||
+++ bareos-Release-20.0.2/core/platforms/CMakeLists.txt 2021-08-15 17:07:37.549226558 -0930
|
||||
@@ -30,6 +30,8 @@
|
||||
message(STATUS "adding subdirectories debian and univention")
|
||||
add_subdirectory(debian)
|
||||
add_subdirectory(univention)
|
||||
+ elseif(${PLATFORM} STREQUAL gentoo)
|
||||
+ message(STATUS "PLATFORM: " ${PLATFORM})
|
||||
elseif(${PLATFORM} STREQUAL hpux)
|
||||
message(STATUS "PLATFORM: " ${PLATFORM})
|
||||
elseif(${PLATFORM} STREQUAL archlinux)
|
@ -0,0 +1,16 @@
|
||||
#!/sbin/openrc-run
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
depend() {
|
||||
use dns
|
||||
}
|
||||
|
||||
start_pre() {
|
||||
checkpath --directory --owner root:root --mode 00755 /run/bareos
|
||||
}
|
||||
|
||||
command="/usr/sbin/bareos-dir"
|
||||
command_args="-f ${DIR_OPTIONS}"
|
||||
command_background="true"
|
||||
pidfile="/run/bareos/bareos-dir.9101.pid"
|
@ -1,30 +1,24 @@
|
||||
#!/sbin/openrc-run
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
depend() {
|
||||
use dns bareos-fd bareos-sd
|
||||
}
|
||||
|
||||
start() {
|
||||
ebegin "Starting bareos director"
|
||||
# g+w until #631598 is resolved
|
||||
checkpath -d -m 0770 -o root:bareos /run/bareos
|
||||
start-stop-daemon --start --quiet --exec /usr/sbin/bareos-dir \
|
||||
-- ${DIR_OPTIONS}
|
||||
# harden pid file until #631598 is resolved
|
||||
ewaitfile 10 /run/bareos/bareos-dir.9101.pid
|
||||
chown root:bareos /run/bareos/bareos-dir.9101.pid
|
||||
eend $?
|
||||
start_pre() {
|
||||
checkpath --directory --owner root:bareos --mode 01775 /run/bareos
|
||||
if [[ -e /run/bareos/bareos-dir.9101.pid && $(stat -c %U /run/bareos/bareos-dir.9101.pid) != "root" ]]; then
|
||||
eerror "SECURITY ALERT: bareos owned pidfile found! (see #631598)"
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
|
||||
stop() {
|
||||
ebegin "Stopping bareos director"
|
||||
# check pid file until #631598 is resolved
|
||||
if [[ $(stat -c %U /run/bareos/bareos-dir.9101.pid) != "root" ]]; then
|
||||
eerror "SECURITY ALERT: pid file is not root owned anymore?! (see #631598)"
|
||||
else
|
||||
start-stop-daemon --stop --quiet --pidfile /run/bareos/bareos-dir.9101.pid
|
||||
fi
|
||||
eend $?
|
||||
start_post() {
|
||||
ewaitfile 10 /run/bareos/bareos-dir.9101.pid
|
||||
checkpath --file --owner root:bareos /run/bareos/bareos-dir.9101.pid
|
||||
}
|
||||
|
||||
command="/usr/sbin/bareos-dir"
|
||||
command_args="${DIR_OPTIONS}"
|
||||
pidfile="/run/bareos/bareos-dir.9101.pid"
|
||||
|
@ -0,0 +1,12 @@
|
||||
#!/sbin/openrc-run
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
depend() {
|
||||
use dns
|
||||
}
|
||||
|
||||
command="/usr/sbin/bareos-fd"
|
||||
command_args="-f ${DIR_OPTIONS}"
|
||||
command_background="true"
|
||||
pidfile="/run/bareos/bareos-fd.9102.pid"
|
@ -0,0 +1,16 @@
|
||||
#!/sbin/openrc-run
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
depend() {
|
||||
use dns
|
||||
}
|
||||
|
||||
start_pre() {
|
||||
checkpath --directory --owner root:root --mode 00755 /run/bareos
|
||||
}
|
||||
|
||||
command="/usr/sbin/bareos-sd"
|
||||
command_args="-f ${DIR_OPTIONS}"
|
||||
command_background="true"
|
||||
pidfile="/run/bareos/bareos-dir.9103.pid"
|
@ -1,30 +1,24 @@
|
||||
#!/sbin/openrc-run
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
depend() {
|
||||
use dns
|
||||
}
|
||||
|
||||
start() {
|
||||
ebegin "Starting bareos storage daemon"
|
||||
# g+w until #631598 is resolved
|
||||
checkpath -d -m 0770 -o root:bareos /run/bareos
|
||||
start-stop-daemon --start --quiet --exec /usr/sbin/bareos-sd \
|
||||
-- ${SD_OPTIONS}
|
||||
# harden pid file until #631598 is resolved
|
||||
ewaitfile 10 /run/bareos/bareos-sd.9103.pid
|
||||
chown root:bareos /run/bareos/bareos-sd.9103.pid
|
||||
eend $?
|
||||
start_pre() {
|
||||
checkpath --directory --owner root:bareos --mode 01775 /run/bareos
|
||||
if [[ -e /run/bareos/bareos-sd.9103.pid && $(stat -c %U /run/bareos/bareos-sd.9103.pid) != "root" ]]; then
|
||||
eerror "SECURITY ALERT: bareos owned pidfile found! (see #631598)"
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
|
||||
stop() {
|
||||
ebegin "Stopping bareos storage daemon"
|
||||
# check pid file until #631598 is resolved
|
||||
if [[ $(stat -c %U /run/bareos/bareos-sd.9103.pid) != "root" ]]; then
|
||||
eerror "SECURITY ALERT: pid file is not root owned anymore?! (see #631598)"
|
||||
else
|
||||
start-stop-daemon --stop --quiet --pidfile /run/bareos/bareos-sd.9103.pid
|
||||
fi
|
||||
eend $?
|
||||
start_post() {
|
||||
ewaitfile 10 /run/bareos/bareos-sd.9103.pid
|
||||
checkpath --file --owner root:bareos /run/bareos/bareos-sd.9103.pid
|
||||
}
|
||||
|
||||
command="/usr/sbin/bareos-sd"
|
||||
command_args="${SD_OPTIONS}"
|
||||
pidfile="/run/bareos/bareos-sd.9103.pid"
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1 +1,2 @@
|
||||
DIST langkit-22.0.0.tar.gz 1008946 BLAKE2B 2b4ee37c9af1c95f9a6e9ad81f37b6bb112d5bd70f36b78e95d969580eacc1101b824ea24de39d04ccf8bc9f9850906fa1c660a29de05e90d12106b10792c37d SHA512 4c6207b650ae8352c65f3edda3192fc66c9b5d2c351665d78ca83b549960a0a41e7828e8974cb8daa3c415281b50253aa15a247407bcedc2c13e573aaa804909
|
||||
DIST langkit-23.0.0.tar.gz 1178557 BLAKE2B c3b81cafea3afcfd90a87192dca5abd0f19c5ff4e195515dd7c4df70824bf328c24855a6761264b89bf44a56afc8dd77b78fbf322c6f92299082507aa65d61e5 SHA512 6cc6adacb157a47ebc8da46591e45a4ff212fba2cd5ac80c12adb2e84f4508735d98dc68ffce86aa5e5e8d873e6f51efb4f88f4d76a190b9eb0024bf69deefc1
|
||||
|
@ -0,0 +1,10 @@
|
||||
--- a/langkit/parsers.py 2022-12-08 23:09:42.178267815 +0100
|
||||
+++ b/langkit/parsers.py 2022-12-08 22:33:40.755660102 +0100
|
||||
@@ -1306,6 +1306,7 @@
|
||||
# ... and we want to memoize the result.
|
||||
self.cached_type = None
|
||||
|
||||
+ @property
|
||||
def can_parse_token_node(self) -> bool:
|
||||
return all(p.can_parse_token_node for p in self.parsers)
|
||||
|
@ -0,0 +1,104 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_{8..10} )
|
||||
ADA_COMPAT=( gnat_2021 gcc_12_2_0 )
|
||||
|
||||
DISTUTILS_USE_SETUPTOOLS=no
|
||||
inherit distutils-r1 ada multiprocessing
|
||||
|
||||
DESCRIPTION="A Python framework to generate language parsers"
|
||||
HOMEPAGE="https://www.adacore.com/community"
|
||||
SRC_URI="https://github.com/AdaCore/${PN}/archive/refs/tags/v${PV}.tar.gz
|
||||
-> ${P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0/${PV}"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="+shared static-libs static-pic"
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}
|
||||
${ADA_REQUIRED_USE}
|
||||
|| ( shared static-libs static-pic )"
|
||||
|
||||
RDEPEND="${PYTHON_DEPS}
|
||||
${ADA_DEPS}
|
||||
dev-ada/gnatcoll-bindings[${ADA_USEDEP},gmp,iconv,shared?,static-libs?,static-pic?]
|
||||
dev-python/mako[${PYTHON_USEDEP}]
|
||||
dev-python/pyyaml[${PYTHON_USEDEP}]
|
||||
dev-python/funcy[${PYTHON_USEDEP}]
|
||||
dev-python/docutils[${PYTHON_USEDEP}]
|
||||
dev-python/mypy[${PYTHON_USEDEP}]
|
||||
dev-python/types-gdb[${PYTHON_USEDEP}]
|
||||
dev-python/types-docutils[${PYTHON_USEDEP}]
|
||||
dev-ada/e3-core[${PYTHON_USEDEP}]"
|
||||
BDEPEND="${RDEPEND}"
|
||||
|
||||
PATCHES=( "${FILESDIR}"/${P}-gentoo.patch )
|
||||
|
||||
python_prepare_all() {
|
||||
distutils-r1_python_prepare_all
|
||||
cd testsuite/tests
|
||||
|
||||
# missing gprbuild option to build libraries static/relocatable
|
||||
rm -r {langkit_support,adalog,misc/link_two_libs} || die
|
||||
rm -r misc/standalone || die
|
||||
|
||||
# other failures
|
||||
rm -r misc/docstrings_lkt_roles || die
|
||||
}
|
||||
|
||||
python_compile_all() {
|
||||
build () {
|
||||
rm -f langkit/support/obj/dev/*lexch
|
||||
gprbuild -j$(makeopts_jobs) -p -v \
|
||||
-XLIBRARY_TYPE=$1 -P langkit/support/langkit_support.gpr -XBUILD_MODE=dev \
|
||||
-cargs:Ada ${ADAFLAGS} -cargs:C ${CFLAGS} || die "gprbuild failed"
|
||||
}
|
||||
if use shared; then
|
||||
build relocatable
|
||||
fi
|
||||
if use static-libs; then
|
||||
build static
|
||||
fi
|
||||
if use static-pic; then
|
||||
build static-pic
|
||||
fi
|
||||
gprbuild -j$(makeopts_jobs) -p -v \
|
||||
-P sigsegv_handler/langkit_sigsegv_handler.gpr -XBUILD_MODE=dev \
|
||||
-cargs:Ada ${ADAFLAGS} -cargs:C ${CFLAGS} || die "gprbuild failed"
|
||||
}
|
||||
|
||||
python_test_all() {
|
||||
export GPR_PROJECT_PATH="${S}"/langkit/support
|
||||
${EPYTHON} ./manage.py make --no-langkit-support || die
|
||||
eval $(./manage.py setenv)
|
||||
${EPYTHON} ./manage.py test -v \
|
||||
--disable-ocaml \
|
||||
--disable-gdb \
|
||||
--disable-tear-up-builds \
|
||||
--restricted-env \
|
||||
--jobs $(makeopts_jobs) \
|
||||
|& tee langkit.testOut
|
||||
grep -qw FAIL langkit.testOut && die
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
build () {
|
||||
gprinstall -v -P langkit/support/langkit_support.gpr -p -XBUILD_MODE=dev \
|
||||
--prefix="${D}"/usr --build-var=LIBRARY_TYPE \
|
||||
--build-var=LANGKIT_SUPPORT_LIBRARY_TYPE \
|
||||
--sources-subdir=include/langkit_support \
|
||||
-XLIBRARY_TYPE=$1 --build-name=$1 || die
|
||||
}
|
||||
if use static-libs; then
|
||||
build static
|
||||
fi
|
||||
if use static-pic; then
|
||||
build static-pic
|
||||
fi
|
||||
if use shared; then
|
||||
build relocatable
|
||||
fi
|
||||
}
|
Binary file not shown.
@ -1,3 +1,3 @@
|
||||
DIST godot-3.5.1-stable.tar.xz 24153448 BLAKE2B 9d61276a2d82ef4f4487ec1046b7fa58f2b3626640b2db25c1f98c3f8e2ff40eddcf943fd9ffaaf6814fbafbbe7ef1d3f642d77af953b87731cff570ac3a5473 SHA512 59e5ca88534f542562971efb83b76561705f9ca8761311f01b4453857e7ae046c17cadd0d5ca6f6f56e262b5031294a8b9ad970fa6ffc95e1a6a1e1bae48d55f
|
||||
DIST godot-4.0-beta6.tar.xz 31397808 BLAKE2B bd67aa9e1447a9caf6c914545262df3f04c181a729dd62cf02c8caaf9e96592a56a9387e15ba3d0050fc57911ba31f5782e609bedd00e3da39cc199d214d7353 SHA512 921aa694380458763cda552791b2bd9976913444dd24b8be8038f37d94a666ba18f72bee2365222d7e7130acd916766833c69a810693725d525bca1c986b6055
|
||||
DIST godot-4.0-beta7.tar.xz 31508396 BLAKE2B e6f65bd345dda8360ce7ab4234ba045f301b66b0e7b1cda31652e78d96ab023c368ded982fd33d583cf55ec481fda05bcc734abe094e7b18707a73973533c22b SHA512 72e6b52a35d2f077a21339d5c07a36529d10aa05d6d1d1d975b91b42ce6a08f7804cd88b7760ebaa0165a65bc318d2ef971458ecfb7743e579d1b040086b7fd4
|
||||
DIST godot-4.0-beta8.tar.xz 31575000 BLAKE2B 27c3f18f1106684e8a4381a5a54240a6513ca3319c1cfc533a6c0b9021474e7246eded4a00f8242df41412b98fd11d38974add72cee4f6936fcc01507b801125 SHA512 f18c22bb7a29062c6bd3106f87656f0eadab3befb2715942bcf114850bf818b9530eb14859480bb82cb5c77a5cecd6f98ed5006643b5cf3b016ee21b1f07f022
|
||||
|
@ -0,0 +1,41 @@
|
||||
* add option to respect AR
|
||||
(respecting PKG_CONFIG is handled in the ebuild)
|
||||
* don't strip even with debug symbols disabled
|
||||
* fix icu unbundling underlinking
|
||||
* handle recastnavigation unbundling
|
||||
--- a/SConstruct
|
||||
+++ b/SConstruct
|
||||
@@ -239,4 +239,5 @@
|
||||
opts.Add("CXX", "C++ compiler")
|
||||
opts.Add("CC", "C compiler")
|
||||
+opts.Add("AR", "Archiver")
|
||||
opts.Add("LINK", "Linker")
|
||||
opts.Add("CCFLAGS", "Custom flags for both the C and C++ compilers")
|
||||
@@ -545,10 +546,4 @@
|
||||
else:
|
||||
env.Append(CCFLAGS=["-g2"])
|
||||
- else:
|
||||
- if methods.using_clang(env) and not methods.is_vanilla_clang(env):
|
||||
- # Apple Clang, its linker doesn't like -s.
|
||||
- env.Append(LINKFLAGS=["-Wl,-S", "-Wl,-x", "-Wl,-dead_strip"])
|
||||
- else:
|
||||
- env.Append(LINKFLAGS=["-s"])
|
||||
|
||||
if env["optimize"] == "speed":
|
||||
--- a/platform/linuxbsd/detect.py
|
||||
+++ b/platform/linuxbsd/detect.py
|
||||
@@ -221,5 +221,5 @@
|
||||
|
||||
if not env["builtin_icu"]:
|
||||
- env.ParseConfig("pkg-config icu-uc --cflags --libs")
|
||||
+ env.ParseConfig("pkg-config icu-i18n --cflags --libs")
|
||||
|
||||
if not env["builtin_harfbuzz"]:
|
||||
@@ -232,4 +232,7 @@
|
||||
env.ParseConfig("pkg-config libenet --cflags --libs")
|
||||
|
||||
+ if not env["builtin_recast"]:
|
||||
+ env.ParseConfig("pkg-config recastnavigation --cflags --libs")
|
||||
+
|
||||
if not env["builtin_squish"]:
|
||||
env.ParseConfig("pkg-config libsquish --cflags --libs")
|
Binary file not shown.
@ -1,2 +1 @@
|
||||
DIST byte-buddy-1.12.14.tar.gz 1857258 BLAKE2B 6957246f6689d1bdfdc6277ad752e03df0ae47c62b0afded77c94cdd41e00cc736517d0e4e5d5f8c59be519262a03864cde9bffa4ae53e5a7daeed84a519967f SHA512 5035be16fbdf2f7e8e2c93b87ee5f9adc927a19fd3b7d9fcd262906d8d21532cef8111084c3d6d0b75e101df0bfee19bf9177bc6a7d4b18cf0f26146fba4f147
|
||||
DIST byte-buddy-1.12.18.tar.gz 1924438 BLAKE2B 278ac97d60e62c7d44142a01da94113b29b483bff532f08fca7e345f383a4ddf83cb8c4d0544bce1879bb26909d048a76562cd816c4e9cb06695127ed849f08c SHA512 637e041f97981b85cd13ffecb0de47206b5c99d8b98561561414d8a599f5d53a6e047ba3ad9bc88ca030125221df3ebe49d6eff18a4093f4027d8cbf34a483b0
|
||||
|
@ -1,202 +0,0 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
# Skeleton command:
|
||||
# java-ebuilder --generate-ebuild --workdir . --pom pom.xml --download-uri https://github.com/raphw/byte-buddy/archive/byte-buddy-1.12.14.tar.gz --slot 0 --keywords "~amd64 ~arm ~arm64 ~ppc64 ~x86" --ebuild byte-buddy-1.12.14.ebuild
|
||||
|
||||
EAPI=8
|
||||
|
||||
JAVA_PKG_IUSE="doc source test"
|
||||
MAVEN_ID="net.bytebuddy:byte-buddy-agent:1.12.14"
|
||||
JAVA_TESTING_FRAMEWORKS="junit-4"
|
||||
|
||||
inherit java-pkg-2 java-pkg-simple
|
||||
|
||||
DESCRIPTION="Offers convenience for attaching an agent to the local or a remote VM"
|
||||
HOMEPAGE="https://bytebuddy.net"
|
||||
SRC_URI="https://github.com/raphw/${PN}/archive/${P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~arm arm64 ppc64 x86"
|
||||
|
||||
DEPEND="
|
||||
>=virtual/jdk-11:*
|
||||
dev-java/asm:9
|
||||
dev-java/findbugs-annotations:0
|
||||
dev-java/jna:4
|
||||
dev-java/jsr305:0
|
||||
test? (
|
||||
dev-java/mockito:4
|
||||
)
|
||||
"
|
||||
|
||||
RDEPEND=">=virtual/jre-1.8:*"
|
||||
|
||||
S="${WORKDIR}/${PN}-${P}"
|
||||
|
||||
JAVA_CLASSPATH_EXTRA="
|
||||
asm-9
|
||||
findbugs-annotations
|
||||
jsr305
|
||||
jna-4
|
||||
"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
# https://github.com/raphw/byte-buddy/blob/byte-buddy-1.12.14/byte-buddy-agent/pom.xml#L132-L166
|
||||
cat > byte-buddy-agent/src/main/java/module-info.java <<-EOF
|
||||
module net.bytebuddy.agent {
|
||||
requires java.instrument;
|
||||
requires static jdk.attach;
|
||||
requires static com.sun.jna;
|
||||
requires static com.sun.jna.platform;
|
||||
requires java.base;
|
||||
exports net.bytebuddy.agent;
|
||||
exports net.bytebuddy.agent.utility.nullability;
|
||||
}
|
||||
EOF
|
||||
|
||||
# adjustment for recent mockito versions
|
||||
sed \
|
||||
-e 's:verifyZeroInteractions:verifyNoInteractions:g' \
|
||||
-i byte-buddy-dep/src/test/java/net/bytebuddy/*.java \
|
||||
-i byte-buddy-dep/src/test/java/net/bytebuddy/*/*Test.java \
|
||||
-i byte-buddy-dep/src/test/java/net/bytebuddy/*/*/*Test.java \
|
||||
-i byte-buddy-dep/src/test/java/net/bytebuddy/*/*/*/*Test.java \
|
||||
-i byte-buddy-dep/src/test/java/net/bytebuddy/*/*/*/*/*Test.java \
|
||||
|| die
|
||||
|
||||
# instead of shading byte-buddy-dep we move it into byte-buddy.
|
||||
mv byte-buddy{-dep,}/src/main/java || die "cannot move sources"
|
||||
mv byte-buddy{-dep,}/src/test || die "cannot move tests"
|
||||
|
||||
# https://github.com/raphw/byte-buddy/blob/byte-buddy-1.12.14/byte-buddy/pom.xml#L159-L195
|
||||
cat > byte-buddy/src/main/java/module-info.java <<-EOF
|
||||
module net.bytebuddy {
|
||||
requires static java.instrument;
|
||||
requires static java.management;
|
||||
requires static jdk.unsupported;
|
||||
requires static net.bytebuddy.agent;
|
||||
requires static com.sun.jna;
|
||||
requires static com.sun.jna.platform;
|
||||
requires java.base;
|
||||
exports net.bytebuddy;
|
||||
exports net.bytebuddy.agent.builder;
|
||||
exports net.bytebuddy.asm;
|
||||
exports net.bytebuddy.build;
|
||||
exports net.bytebuddy.description;
|
||||
exports net.bytebuddy.description.annotation;
|
||||
exports net.bytebuddy.description.enumeration;
|
||||
exports net.bytebuddy.description.field;
|
||||
exports net.bytebuddy.description.method;
|
||||
exports net.bytebuddy.description.modifier;
|
||||
exports net.bytebuddy.description.type;
|
||||
exports net.bytebuddy.dynamic;
|
||||
exports net.bytebuddy.dynamic.loading;
|
||||
exports net.bytebuddy.dynamic.scaffold;
|
||||
exports net.bytebuddy.dynamic.scaffold.inline;
|
||||
exports net.bytebuddy.dynamic.scaffold.subclass;
|
||||
exports net.bytebuddy.implementation;
|
||||
exports net.bytebuddy.implementation.attribute;
|
||||
exports net.bytebuddy.implementation.auxiliary;
|
||||
exports net.bytebuddy.implementation.bind;
|
||||
exports net.bytebuddy.implementation.bind.annotation;
|
||||
exports net.bytebuddy.implementation.bytecode;
|
||||
exports net.bytebuddy.implementation.bytecode.assign;
|
||||
exports net.bytebuddy.implementation.bytecode.assign.primitive;
|
||||
exports net.bytebuddy.implementation.bytecode.assign.reference;
|
||||
exports net.bytebuddy.implementation.bytecode.collection;
|
||||
exports net.bytebuddy.implementation.bytecode.constant;
|
||||
exports net.bytebuddy.implementation.bytecode.member;
|
||||
exports net.bytebuddy.matcher;
|
||||
exports net.bytebuddy.pool;
|
||||
exports net.bytebuddy.utility;
|
||||
exports net.bytebuddy.utility.nullability;
|
||||
exports net.bytebuddy.utility.privilege;
|
||||
exports net.bytebuddy.utility.visitor;
|
||||
}
|
||||
EOF
|
||||
# We don't bundle, hence cannot export them
|
||||
# exports net.bytebuddy.jar.asm;
|
||||
# exports net.bytebuddy.jar.asm.signature;
|
||||
# exports net.bytebuddy.jar.asm.commons;
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
einfo "Compiling byte-buddy-agent.jar"
|
||||
JAVA_SRC_DIR="byte-buddy-agent/src/main/java"
|
||||
JAVA_RESOURCE_DIRS="byte-buddy-agent/src/main/resources"
|
||||
JAVA_JAR_FILENAME="byte-buddy-agent.jar"
|
||||
java-pkg-simple_src_compile
|
||||
JAVA_GENTOO_CLASSPATH_EXTRA+=":byte-buddy-agent.jar"
|
||||
rm -r target || die
|
||||
|
||||
einfo "Compiling byte-buddy.jar"
|
||||
JAVA_SRC_DIR="byte-buddy/src/main/java"
|
||||
JAVA_RESOURCE_DIRS=()
|
||||
JAVA_JAR_FILENAME="byte-buddy.jar"
|
||||
JAVA_MAIN_CLASS="net.bytebuddy.build.Plugin\$Engine\$Default"
|
||||
java-pkg-simple_src_compile
|
||||
JAVA_GENTOO_CLASSPATH_EXTRA+=":byte-buddy.jar"
|
||||
rm -r target || die
|
||||
|
||||
if use doc; then
|
||||
einfo "Compiling javadocs"
|
||||
JAVA_SRC_DIR=(
|
||||
"byte-buddy-agent/src/main/java"
|
||||
"byte-buddy-dep/src/main/java"
|
||||
)
|
||||
JAVA_JAR_FILENAME="ignoreme.jar"
|
||||
java-pkg-simple_src_compile
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
JAVA_TEST_GENTOO_CLASSPATH="junit-4,mockito-4"
|
||||
|
||||
# einfo "Setting -Djava.library.path"
|
||||
# This would work only after manually adding libjnidispatch.so to /usr/share/jna-4/lib/jna.jar,
|
||||
# done with ( jar -uf /usr/share/jna-4/lib/jna.jar -C . com/sun/jna/linux-x86-64/libjnidispatch )
|
||||
# JAVA_TEST_EXTRA_ARGS=( -Djava.library.path+="$(java-config -i jna-4)" com.sun.jna.Native )
|
||||
# Otherwise fails with:
|
||||
# Exception in thread "main" java.lang.UnsatisfiedLinkError: Native library (com/sun/jna/linux-x86-64/libjnidispatch.so) not found in resource path
|
||||
|
||||
einfo "Testing byte-buddy-agent"
|
||||
JAVA_TEST_SRC_DIR="byte-buddy-agent/src/test/java"
|
||||
# Native library (com/sun/jna/linux-x86-64/libjnidispatch.so) not found in resource path
|
||||
JAVA_TEST_EXCLUDES=(
|
||||
net.bytebuddy.agent.VirtualMachineAttachmentTest
|
||||
)
|
||||
java-pkg-simple_src_test
|
||||
|
||||
einfo "Testing byte-buddy"
|
||||
JAVA_TEST_SRC_DIR="byte-buddy/src/test/java"
|
||||
JAVA_TEST_RESOURCE_DIRS=(
|
||||
byte-buddy/src/test/resources
|
||||
byte-buddy/src/test/precompiled*
|
||||
)
|
||||
|
||||
# what "mvn test" does with java 17 is:
|
||||
# Tests run: 10022, Failures: 0, Errors: 0, Skipped: 0
|
||||
JAVA_TEST_EXCLUDES+=(
|
||||
net.bytebuddy.pool.TypePoolDefaultMethodDescriptionTest # 39 tests
|
||||
net.bytebuddy.build.CachedReturnPluginTest # 44 tests
|
||||
net.bytebuddy.build.CachedReturnPluginOtherTest # 4 tests
|
||||
)
|
||||
java-pkg-simple_src_test
|
||||
}
|
||||
|
||||
src_install() {
|
||||
java-pkg_dojar "byte-buddy-agent.jar"
|
||||
java-pkg_dojar "byte-buddy.jar"
|
||||
|
||||
if use doc; then
|
||||
java-pkg_dojavadoc target/api
|
||||
fi
|
||||
|
||||
if use source; then
|
||||
java-pkg_dosrc "byte-buddy-agent/src/main/java/*"
|
||||
java-pkg_dosrc "byte-buddy/src/main/java/*"
|
||||
fi
|
||||
}
|
@ -1,24 +0,0 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
JAVA_PKG_IUSE="doc source"
|
||||
|
||||
inherit java-pkg-2 java-pkg-simple
|
||||
|
||||
DESCRIPTION="Java code for LZMA compression and decompression"
|
||||
HOMEPAGE="https://www.7-zip.org/"
|
||||
SRC_URI="https://www.7-zip.org/a/${PN}${PV/./}.7z"
|
||||
|
||||
LICENSE="public-domain"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~arm ~arm64 x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND=">=virtual/jre-1.8:*"
|
||||
DEPEND=">=virtual/jdk-1.8:*"
|
||||
BDEPEND="app-arch/p7zip"
|
||||
|
||||
S="${WORKDIR}/Java"
|
||||
|
||||
JAVA_SRC_DIR="SevenZip"
|
Binary file not shown.
@ -0,0 +1,11 @@
|
||||
--- a/deps/llvm.mk
|
||||
+++ b/deps/llvm.mk
|
||||
@@ -94,7 +94,7 @@ endif
|
||||
LLVM_CMAKE += -DLLVM_TOOLS_INSTALL_DIR=$(call rel_path,$(build_prefix),$(build_depsbindir))
|
||||
LLVM_CMAKE += -DLLVM_UTILS_INSTALL_DIR=$(call rel_path,$(build_prefix),$(build_depsbindir))
|
||||
LLVM_CMAKE += -DLLVM_INCLUDE_UTILS=ON -DLLVM_INSTALL_UTILS=ON
|
||||
-LLVM_CMAKE += -DLLVM_BINDINGS_LIST="" -DLLVM_INCLUDE_DOCS=Off -DLLVM_ENABLE_TERMINFO=Off -DHAVE_HISTEDIT_H=Off -DHAVE_LIBEDIT=Off
|
||||
+LLVM_CMAKE += -DLLVM_BINDINGS_LIST="" -DLLVM_ENABLE_BINDINGS=OFF -DLLVM_INCLUDE_DOCS=Off -DLLVM_ENABLE_TERMINFO=Off -DHAVE_HISTEDIT_H=Off -DHAVE_LIBEDIT=Off
|
||||
ifeq ($(LLVM_ASSERTIONS), 1)
|
||||
LLVM_CMAKE += -DLLVM_ENABLE_ASSERTIONS:BOOL=ON
|
||||
endif # LLVM_ASSERTIONS
|
@ -0,0 +1,178 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
# correct versions for stdlibs are in deps/checksums
|
||||
# for everything else, run with network-sandbox and wait for the crash
|
||||
|
||||
EAPI=8
|
||||
|
||||
# 1.8.2 still sits on LLVM 13, bug: https://bugs.gentoo.org/876184
|
||||
MY_LLVM_V=13.0.1
|
||||
|
||||
inherit flag-o-matic pax-utils toolchain-funcs optfeature
|
||||
|
||||
DESCRIPTION="High-performance programming language for technical computing"
|
||||
HOMEPAGE="https://julialang.org/
|
||||
https://github.com/JuliaLang/julia/"
|
||||
SRC_URI="https://github.com/JuliaLang/julia/releases/download/v${PV}/${P}-full.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
RDEPEND="
|
||||
app-arch/p7zip
|
||||
dev-libs/gmp:0=
|
||||
dev-libs/libgit2:0
|
||||
>=dev-libs/libpcre2-10.23:0=[jit,unicode]
|
||||
dev-libs/mpfr:0=
|
||||
>=dev-libs/libutf8proc-2.6.1:0=[-cjk]
|
||||
>=dev-util/patchelf-0.13
|
||||
>=net-libs/mbedtls-2.2
|
||||
net-misc/curl[http2,ssh]
|
||||
sci-libs/amd:0=
|
||||
sci-libs/arpack:0=
|
||||
sci-libs/camd:0=
|
||||
sci-libs/ccolamd:0=
|
||||
sci-libs/cholmod:0=
|
||||
sci-libs/colamd:0=
|
||||
sci-libs/fftw:3.0=[threads]
|
||||
sci-libs/openlibm:0=
|
||||
sci-libs/spqr:0=
|
||||
sci-libs/umfpack:0=
|
||||
>=sci-mathematics/dsfmt-2.2.4
|
||||
>=sys-libs/libunwind-1.1:0=
|
||||
sys-libs/zlib:0=
|
||||
>=virtual/blas-3.6
|
||||
virtual/lapack
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="
|
||||
dev-util/cmake
|
||||
virtual/pkgconfig
|
||||
"
|
||||
|
||||
PATCHES=( "${FILESDIR}"/${PN}-1.8.0-llvm-no-bindings.patch )
|
||||
|
||||
# Huge thanks to Arch Linux developers for the patches.
|
||||
archlinux_uri="https://raw.githubusercontent.com/archlinux/svntogit-community/packages/julia/trunk/"
|
||||
archlinux_patches=(
|
||||
074d761f.patch
|
||||
ed9851b0.patch
|
||||
julia-hardcoded-libs.patch
|
||||
julia-libunwind-1.6.patch
|
||||
julia-llvm-14.patch
|
||||
julia-system-cblas.patch
|
||||
make-install-no-build.patch
|
||||
)
|
||||
for archlinux_patch in ${archlinux_patches[@]} ; do
|
||||
archlinux_patch_name="${PN}-1.8.0-${archlinux_patch}"
|
||||
SRC_URI+="
|
||||
${archlinux_uri}/${archlinux_patch}
|
||||
-> ${archlinux_patch_name}
|
||||
"
|
||||
PATCHES+=( "${DISTDIR}/${archlinux_patch_name}" )
|
||||
done
|
||||
|
||||
src_unpack() {
|
||||
local tounpack=( ${A} )
|
||||
# the main source tree, followed by deps
|
||||
unpack "${tounpack[0]}"
|
||||
|
||||
mkdir -p "${S}/deps/srccache/"
|
||||
for i in "${tounpack[@]:1}"; do
|
||||
cp "${DISTDIR}/${i}" "${S}/deps/srccache/${i#julia-}" || die
|
||||
done
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# Sledgehammer:
|
||||
# - prevent fetching of bundled stuff in compile and install phase
|
||||
# - respect CFLAGS
|
||||
# - respect EPREFIX and Gentoo specific paths
|
||||
|
||||
sed -i \
|
||||
-e "\|SHIPFLAGS :=|c\\SHIPFLAGS := ${CFLAGS}" \
|
||||
Make.inc || die
|
||||
|
||||
sed -i \
|
||||
-e "s|ar -rcs|$(tc-getAR) -rcs|g" \
|
||||
src/Makefile || die
|
||||
|
||||
# disable doc install starting git fetching
|
||||
sed -i -e 's~install: $(build_depsbindir)/stringreplace $(BUILDROOT)/doc/_build/html/en/index.html~install: $(build_depsbindir)/stringreplace~' Makefile || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# bug #855602
|
||||
filter-lto
|
||||
|
||||
# julia does not play well with the system versions of libuv
|
||||
# USE_SYSTEM_LIBM=0 implies using external openlibm
|
||||
cat <<-EOF > Make.user
|
||||
LOCALBASE:="${EPREFIX}/usr"
|
||||
override prefix:="${EPREFIX}/usr"
|
||||
override libdir:="\$(prefix)/$(get_libdir)"
|
||||
override CC:=$(tc-getCC)
|
||||
override CXX:=$(tc-getCXX)
|
||||
override AR:=$(tc-getAR)
|
||||
|
||||
BUNDLE_DEBUG_LIBS:=0
|
||||
USE_BINARYBUILDER:=0
|
||||
USE_SYSTEM_CSL:=1
|
||||
USE_SYSTEM_LLVM:=0
|
||||
USE_SYSTEM_LIBUNWIND:=1
|
||||
USE_SYSTEM_PCRE:=1
|
||||
USE_SYSTEM_LIBM:=0
|
||||
USE_SYSTEM_OPENLIBM:=1
|
||||
USE_SYSTEM_DSFMT:=1
|
||||
USE_SYSTEM_BLAS:=1
|
||||
USE_SYSTEM_LAPACK:=1
|
||||
USE_SYSTEM_LIBBLASTRAMPOLINE:=0
|
||||
USE_SYSTEM_GMP:=1
|
||||
USE_SYSTEM_MPFR:=1
|
||||
USE_SYSTEM_LIBSUITESPARSE:=1
|
||||
USE_SYSTEM_LIBUV:=0
|
||||
USE_SYSTEM_UTF8PROC:=1
|
||||
USE_SYSTEM_MBEDTLS:=1
|
||||
USE_SYSTEM_LIBSSH2:=1
|
||||
USE_SYSTEM_NGHTTP2:=1
|
||||
USE_SYSTEM_CURL:=1
|
||||
USE_SYSTEM_LIBGIT2:=1
|
||||
USE_SYSTEM_PATCHELF:=1
|
||||
USE_SYSTEM_ZLIB:=1
|
||||
USE_SYSTEM_P7ZIP:=1
|
||||
VERBOSE:=1
|
||||
EOF
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# Julia accesses /proc/self/mem on Linux
|
||||
addpredict /proc/self/mem
|
||||
|
||||
emake
|
||||
pax-mark m "$(file usr/bin/julia-* | awk -F : '/ELF/ {print $1}')"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake -j1 install DESTDIR="${D}"
|
||||
dodoc CONTRIBUTING.md HISTORY.md NEWS.md README.md THIRDPARTY.md
|
||||
|
||||
local llvmslot=$(ver_cut 1 ${MY_LLVM_V})
|
||||
cp "${S}/usr/lib/libLLVM-${llvmslot}jl.so" "${ED}/usr/$(get_libdir)/julia/" || die
|
||||
cp "${S}/usr/lib/libLLVM-${MY_LLVM_V}jl.so" "${ED}/usr/$(get_libdir)/julia/" || die
|
||||
|
||||
mv "${ED}"/usr/etc/julia "${ED}"/etc || die
|
||||
rmdir "${ED}"/usr/etc || die
|
||||
mv "${ED}"/usr/share/doc/julia/html "${ED}"/usr/share/doc/"${PF}" || die
|
||||
rmdir "${ED}"/usr/share/doc/julia || die
|
||||
|
||||
# The appdata directory is deprecated.
|
||||
mv "${ED}"/usr/share/{appdata,metainfo}/ || die
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
optfeature "Julia Plots" sci-visualization/gr
|
||||
}
|
Binary file not shown.
@ -1,2 +1,3 @@
|
||||
DIST intel-compute-runtime-22.39.24347.tar.gz 5774278 BLAKE2B 27a288470f852ec87fae95a946fb87c9850cfc03e99bb869ebd474043d06f8b7beb2873b49d8fe4cc26f7db298c64d7b76d6bda6e6618c1ee8d1a9b658d5f45d SHA512 aef167fd4cc31d32c411ab54cf5f0e5fe13cda7e8fe4eac6aa3f9bf391b7ce9d51033d986d9c5e854c8f1492cce5022463e4b8b0ddc49319ef7bf362435808d5
|
||||
DIST intel-compute-runtime-22.43.24558.tar.gz 5858180 BLAKE2B bed2ccd84424f8b4b76483d1cbffa9f587e666b8a24555d51de1edcfa23651a54b7d6b219fb27512cd8438127aa46945b181b3e94699444f36a05976b0b1206d SHA512 130849d1c3ef6586abbec3a3eb96397e6b5e861d17576b68b75d18023a4864938f82067079ea0d5475a8ac4f02cd0056d74d6b634894cbb5d0e23bef1c12fae0
|
||||
DIST intel-compute-runtime-22.43.24595.35.tar.gz 5880869 BLAKE2B c9d4a16e9908427b69154a5a6550e4eec47bcce4fa811a9121c54de75bcd3e17e1d4cff8b1fa7486b2ffe0dd01f7fae06e5fd3b1d241378dcf521d1f8822bedb SHA512 0aab6cc16f7d523819c9a9eb58fba916c3b06c4be450c94cfc30b36038c768d6ddb79937ded7d9df68b7bdc97679756450c1c54844caed1655ddc688a6ae8a54
|
||||
|
@ -0,0 +1,79 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
CMAKE_BUILD_TYPE="Release"
|
||||
MY_PN="${PN/intel-/}"
|
||||
MY_P="${MY_PN}-${PV}"
|
||||
|
||||
inherit cmake flag-o-matic
|
||||
|
||||
DESCRIPTION="Intel Graphics Compute Runtime for oneAPI Level Zero and OpenCL Driver"
|
||||
HOMEPAGE="https://github.com/intel/compute-runtime"
|
||||
SRC_URI="https://github.com/intel/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="+l0 +vaapi"
|
||||
|
||||
RDEPEND=">=media-libs/gmmlib-22.1.7:="
|
||||
|
||||
DEPEND="
|
||||
${DEPEND}
|
||||
>=dev-libs/intel-metrics-library-0_pre20220930:=
|
||||
dev-libs/libnl:3
|
||||
dev-libs/libxml2:2
|
||||
>=dev-util/intel-graphics-compiler-1.0.12149.1
|
||||
>=dev-util/intel-graphics-system-controller-0.8.4:=
|
||||
media-libs/mesa
|
||||
>=virtual/opencl-3
|
||||
l0? ( >=dev-libs/level-zero-1.8.5:= )
|
||||
vaapi? (
|
||||
x11-libs/libdrm[video_cards_intel]
|
||||
media-libs/libva
|
||||
)
|
||||
"
|
||||
|
||||
BDEPEND="virtual/pkgconfig"
|
||||
|
||||
DOCS=( "README.md" "FAQ.md" )
|
||||
|
||||
PATCHES=( "${FILESDIR}/${PN}-22.24.23453-remove-fortify-sources.patch" )
|
||||
|
||||
src_prepare() {
|
||||
# Remove '-Werror' from default
|
||||
sed -e '/Werror/d' -i CMakeLists.txt || die
|
||||
|
||||
cmake_src_prepare
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# See https://github.com/intel/compute-runtime/issues/531
|
||||
filter-flags -flto=* -flto
|
||||
|
||||
local mycmakeargs=(
|
||||
-DCCACHE_ALLOWED="OFF"
|
||||
-DCMAKE_INSTALL_PREFIX="${EPREFIX}/usr"
|
||||
-DCMAKE_INSTALL_LIBDIR="$(get_libdir)"
|
||||
-DBUILD_WITH_L0="$(usex l0)"
|
||||
-DDISABLE_LIBVA="$(usex !vaapi)"
|
||||
-DNEO__METRICS_LIBRARY_INCLUDE_DIR="${ESYSROOT}/usr/include"
|
||||
-DKHRONOS_GL_HEADERS_DIR="${ESYSROOT}/usr/include"
|
||||
-DOCL_ICD_VENDORDIR="${EPREFIX}/etc/OpenCL/vendors"
|
||||
-DSUPPORT_DG1="ON"
|
||||
-Wno-dev
|
||||
|
||||
# See https://github.com/intel/intel-graphics-compiler/issues/204
|
||||
# -DNEO_DISABLE_BUILTINS_COMPILATION="ON"
|
||||
|
||||
# If enabled, tests are automatically run during
|
||||
# the compile phase and we cannot run them because
|
||||
# they require permissions to access the hardware.
|
||||
-DSKIP_UNIT_TESTS="1"
|
||||
)
|
||||
|
||||
cmake_src_configure
|
||||
}
|
@ -0,0 +1 @@
|
||||
DIST kirigami-addons-0.6.1.tar.xz 83396 BLAKE2B b40ff06f709484715bb560a3fb146deff0b2be13157524ebfe1d22e6ec9e5bfd699f9b51d170f13b18f68c73cc02710a4189cd367d7f1766336e381956e1c59a SHA512 472730551d952b623ef329c7a9615d26f36b0b5f8b55f5aecb3d9b315799713431aad6e87e402862746cd1cbea745a9042b10696479f54a0ce3773787718226b
|
@ -0,0 +1,44 @@
|
||||
# Copyright 2021-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
ECM_QTHELP=true
|
||||
ECM_TEST=true
|
||||
KFMIN=5.99.0
|
||||
QTMIN=5.15.5
|
||||
VIRTUALX_REQUIRED=test
|
||||
inherit ecm kde.org
|
||||
|
||||
if [[ ${KDE_BUILD_TYPE} = release ]]; then
|
||||
SRC_URI="mirror://kde/stable/${PN}/${P}.tar.xz"
|
||||
KEYWORDS="~amd64"
|
||||
fi
|
||||
|
||||
DESCRIPTION="Visual end user components for Kirigami-based applications"
|
||||
HOMEPAGE="https://invent.kde.org/libraries/kirigami-addons"
|
||||
|
||||
LICENSE="|| ( GPL-2 GPL-3 LGPL-3 ) LGPL-2.1+"
|
||||
SLOT="5"
|
||||
IUSE=""
|
||||
|
||||
COMMON_DEPEND="
|
||||
>=dev-qt/qtdeclarative-${QTMIN}:5
|
||||
>=dev-qt/qtgui-${QTMIN}:5
|
||||
>=dev-qt/qtquickcontrols2-${QTMIN}:5
|
||||
>=kde-frameworks/ki18n-${KFMIN}:5
|
||||
>=kde-frameworks/kirigami-${KFMIN}:5
|
||||
"
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
>=kde-frameworks/plasma-${KFMIN}:5
|
||||
>=kde-frameworks/qqc2-desktop-style-${KFMIN}:5
|
||||
"
|
||||
DEPEND="${COMMON_DEPEND}
|
||||
test? (
|
||||
>=dev-qt/qtmultimedia-${QTMIN}:5[gstreamer,qml]
|
||||
media-libs/gst-plugins-base:1.0[ogg,vorbis]
|
||||
media-libs/gst-plugins-bad:1.0
|
||||
media-libs/gst-plugins-good:1.0
|
||||
x11-themes/sound-theme-freedesktop
|
||||
)
|
||||
"
|
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>kde@gentoo.org</email>
|
||||
<name>Gentoo KDE Project</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<bugs-to>https://bugs.kde.org/</bugs-to>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
@ -1 +1,2 @@
|
||||
DIST kweathercore-0.6.tar.xz 54000 BLAKE2B 3ecdd9e059f09d1c96f8defe3e9f664431891c73523aadde41d06dcacdd9829b12d1659f2a9abb70cc4ee9ea0eb1d0041c97f8d5d01d7181514a521147296a41 SHA512 0cc3a5422052fd4d3bedac36c3c017d1ed5c21c4200f6e747dc478bab55f7207d9207a9ea472c340397cd2433a020b92adb6ab39f054b4cd6c72cf01949d18d2
|
||||
DIST kweathercore-0.7.tar.xz 57016 BLAKE2B c9fb519e681b5570a60daf224b75f98616a406b1fbdfff49baa771d55031a8f893fdac9cbfed71dedac8f06dc9a11033171f2e22bfc15285e323185a46149c83 SHA512 385514d6ca499db12f243c443e6815b1a5458f4a87da962ea73c5f324c58614fbc854d21d6e5359ee69e7766e75c9144966fd953639a51a09f56a8461d158da8
|
||||
|
@ -0,0 +1,35 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
ECM_NONGUI="true"
|
||||
ECM_QTHELP="true"
|
||||
ECM_TEST="true"
|
||||
KFMIN=5.99.0
|
||||
QTMIN=5.15.5
|
||||
inherit ecm kde.org
|
||||
|
||||
DESCRIPTION="Library for retrieval of weather information including forecasts and alerts"
|
||||
|
||||
if [[ ${KDE_BUILD_TYPE} = release ]]; then
|
||||
SRC_URI="mirror://kde/stable/${PN}/${PV}/${P}.tar.xz"
|
||||
KEYWORDS="~amd64 ~arm64"
|
||||
fi
|
||||
LICENSE="LGPL-2+"
|
||||
SLOT="5"
|
||||
|
||||
DEPEND="
|
||||
>=dev-qt/qtnetwork-${QTMIN}:5
|
||||
>=dev-qt/qtpositioning-${QTMIN}:5
|
||||
>=kde-frameworks/kholidays-${KFMIN}:5
|
||||
>=kde-frameworks/ki18n-${KFMIN}:5
|
||||
"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
src_test() {
|
||||
local myctestargs=(
|
||||
-E "locationquerytest"
|
||||
)
|
||||
ecm_src_test
|
||||
}
|
@ -1,2 +1,3 @@
|
||||
DIST libmodbus-3.1.10.tar.gz 463325 BLAKE2B ea1c54e52f0927e9e97b2303b35925d6a40b30f1eed881eeed2d05a229c858ebdde6212431699e24a331744b30f447dfe6704c7ca0d4eb73d193ae5b5055c4b3 SHA512 d9a56d2cd3285823b287b6bf4f79741f2e626e09cfc1872405a306e8dcc0f64c15695e8aee45614071c615cd248b87293ef2351c830120a515d28303bad0ccee
|
||||
DIST libmodbus-3.1.8.tar.gz 459999 BLAKE2B e5cb17dd260f3d0a25aedb2cecaa35f21c116458b0a46c7fe3ecc51d6ceb162fa387bb3ad18ff78c89f39645184ecc5bb164ef7cef2d091d2727750bdb0e429a SHA512 1158ac52cf92d3f8f8afaa23b67e841018f94c09521464a4c28ab724f7f2beb0eb567d574c2d81cfb1e3df9436cd2635b52a886656985b27df3a27693957d2df
|
||||
DIST libmodbus-3.1.9.tar.gz 462649 BLAKE2B 2812b49a908af7906b596c0389050d688294ba415ee7e92211d8a8fb8868ec80388737fb2f7224e59b51861ee76b72cc7464a47b55ba5d086e89c9ff7d0f981b SHA512 6b26049939409ceba7dbafc079138553977dafac5284fdb39e1481c1d2ac29bef22123496819356f9e29d73705d3a9c71075823f0ad102293c4d9efd06fac00c
|
||||
|
@ -0,0 +1,31 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DESCRIPTION="Modbus library which supports RTU communication over a serial line or a TCP link"
|
||||
HOMEPAGE="https://libmodbus.org/"
|
||||
SRC_URI="https://github.com/stephane/${PN}/releases/download/v${PV}/${P}.tar.gz"
|
||||
|
||||
LICENSE="LGPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm64 ~x86"
|
||||
IUSE="static-libs test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
src_configure() {
|
||||
local myeconfargs=(
|
||||
$(use_enable test tests)
|
||||
$(use_enable static-libs static)
|
||||
)
|
||||
|
||||
econf "${myeconfargs[@]}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
if ! use static-libs; then
|
||||
find "${ED}" -name '*.la' -delete || die
|
||||
fi
|
||||
}
|
@ -0,0 +1,31 @@
|
||||
https://gitlab.inria.fr/mpc/mpc/-/commit/e944aa454e60cbff8ab4e8c70dd974083398378f
|
||||
https://sympa.inria.fr/sympa/arc/mpc-discuss/2022-12/msg00034.html
|
||||
|
||||
From e944aa454e60cbff8ab4e8c70dd974083398378f Mon Sep 17 00:00:00 2001
|
||||
From: Paul Zimmermann <Paul.Zimmermann@inria.fr>
|
||||
Date: Sat, 10 Dec 2022 08:47:51 +0100
|
||||
Subject: [PATCH] functions with FILE arguments should be defined only when
|
||||
stdio.h is included
|
||||
|
||||
--- a/src/mpc.h
|
||||
+++ b/src/mpc.h
|
||||
@@ -270,6 +270,7 @@ __MPC_DECLSPEC long double _Complex mpc_get_ldc (mpc_srcptr, mpc_rnd_t);
|
||||
__MPC_DECLSPEC int mpc_inp_str (mpc_ptr, FILE *, size_t *, int, mpc_rnd_t);
|
||||
__MPC_DECLSPEC size_t mpc_out_str (FILE *, int, size_t, mpc_srcptr, mpc_rnd_t);
|
||||
__MPC_DECLSPEC void mpcb_out_str (FILE *f, mpcb_srcptr);
|
||||
+__MPC_DECLSPEC void mpcr_out_str (FILE *f, mpcr_srcptr r);
|
||||
#endif
|
||||
|
||||
__MPC_DECLSPEC int mpcr_inf_p (mpcr_srcptr r);
|
||||
@@ -284,7 +285,6 @@ __MPC_DECLSPEC void mpcr_set_ui64_2si64 (mpcr_ptr r, uint64_t mant,
|
||||
int64_t exp);
|
||||
__MPC_DECLSPEC void mpcr_max (mpcr_ptr r, mpcr_srcptr s, mpcr_srcptr t);
|
||||
__MPC_DECLSPEC int64_t mpcr_get_exp (mpcr_srcptr r);
|
||||
-__MPC_DECLSPEC void mpcr_out_str (FILE *f, mpcr_srcptr r);
|
||||
__MPC_DECLSPEC void mpcr_mul (mpcr_ptr r, mpcr_srcptr s, mpcr_srcptr t);
|
||||
__MPC_DECLSPEC void mpcr_mul_2ui (mpcr_ptr r, mpcr_srcptr s,
|
||||
unsigned long int e);
|
||||
--
|
||||
GitLab
|
||||
|
||||
|
@ -1 +1,2 @@
|
||||
DIST qcoro5-0.6.0.tar.gz 122618 BLAKE2B 1fbd97d8b9897e9dc7408b2bf667064a3ec6326778c44472689e180af9eedc524236c5104b11a117fa8650f042a4ee3bd2b165e44385a829e8638c5e98d293a8 SHA512 e2e0219156a5ba693c935323c45c7414ce0f8d1773986ca63682812678e2b35146c76fa033ef791facfb57fa67fb96727df75ce6ecdae1e232be42f376973a8d
|
||||
DIST qcoro5-0.7.0.tar.gz 135419 BLAKE2B 8f593e76e960349090cea649848c6b3d422125f1bd292ec79026d0cdab7f7e7de77ec409d442c624efe2683a24dd7715ba108f400e154813b6b3da3eb0b8fc09 SHA512 cd49f957d30b63ee70080425c1ed8ffe05c09f7d5e3c6f043c2a9e66eee9a537c9bd6f12ea54fa9fa53871c5d6e5c4502e2c4a10c30eb3bf017505ba875838ba
|
||||
|
@ -0,0 +1,64 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit cmake
|
||||
|
||||
if [[ ${PV} == *9999* ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/danvratil/${PN/5/}"
|
||||
else
|
||||
SRC_URI="https://github.com/danvratil/${PN/5/}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
S="${WORKDIR}/${P/5/}"
|
||||
KEYWORDS="~amd64 ~arm64 ~ppc64"
|
||||
fi
|
||||
|
||||
DESCRIPTION="C++ Coroutine Library for Qt5"
|
||||
HOMEPAGE="https://qcoro.dvratil.cz/ https://github.com/danvratil/qcoro"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
IUSE="dbus examples +network qml test websockets"
|
||||
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
RDEPEND="
|
||||
dev-qt/qtcore:5
|
||||
dbus? ( dev-qt/qtdbus:5 )
|
||||
network? ( dev-qt/qtnetwork:5 )
|
||||
qml? ( dev-qt/qtdeclarative:5= )
|
||||
websockets? ( dev-qt/qtwebsockets:5 )
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
examples? (
|
||||
dev-qt/qtconcurrent:5
|
||||
dev-qt/qtwidgets:5
|
||||
)
|
||||
test? (
|
||||
dev-qt/qtconcurrent:5
|
||||
dev-qt/qttest:5
|
||||
)
|
||||
"
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DUSE_QT_VERSION=5
|
||||
-DQCORO_BUILD_EXAMPLES=$(usex examples)
|
||||
-DQCORO_WITH_QTDBUS=$(usex dbus)
|
||||
-DQCORO_WITH_QTNETWORK=$(usex network)
|
||||
-DQCORO_WITH_QML=$(usex qml)
|
||||
-DQCORO_WITH_QTQUICK=$(usex qml)
|
||||
-DBUILD_TESTING=$(usex test)
|
||||
-DQCORO_WITH_QTWEBSOCKETS=$(usex websockets)
|
||||
)
|
||||
cmake_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
if use examples; then
|
||||
docinto examples
|
||||
dodoc -r examples/*
|
||||
fi
|
||||
cmake_src_install
|
||||
}
|
Binary file not shown.
@ -1 +1,2 @@
|
||||
DIST luarocks-3.9.1.tar.gz 253375 BLAKE2B 6d622e87dc385d0851ef6366e0b6832f1a453d2590c090b06ec6ab81b8a15930c1496bf2ac00ed6b15a44dfbc43b1f235092947389714b72f3442f802236fab3 SHA512 2dfc1326118c2868b05a17acc5fe8d2c07503ef2bb3f2560a3d7ce385b85893d593bacfab7086c57923f042d7e7cfd09a0a9795afc473a73edbba0a44d23ed60
|
||||
DIST luarocks-3.9.2.tar.gz 256117 BLAKE2B eebbad38dd71b0318852a177d394df5fd20e807d566893a2338526e76e17daf2436309e512dd50b325914b2d84b90ef857396bfd6d41f22893131ed78931b8ad SHA512 7e93164bdcf35338e993822931a8e59957ab69c6e23236a7a075649c2f7cd173305c4ca6e9d115fc5e282cb76c21754d7adac92b21885006e5ee3bc06a9d0059
|
||||
|
@ -0,0 +1,86 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
LUA_COMPAT=( lua5-{1..4} luajit )
|
||||
|
||||
inherit lua-single
|
||||
|
||||
DESCRIPTION="A package manager for the Lua programming language"
|
||||
HOMEPAGE="https://luarocks.org"
|
||||
SRC_URI="https://luarocks.org/releases/${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
|
||||
IUSE="test"
|
||||
REQUIRED_USE="${LUA_REQUIRED_USE}"
|
||||
RESTRICT="test"
|
||||
|
||||
RDEPEND="${LUA_DEPS}"
|
||||
|
||||
DEPEND="
|
||||
net-misc/curl
|
||||
dev-libs/openssl:0
|
||||
${RDEPEND}
|
||||
"
|
||||
|
||||
BDEPEND="
|
||||
virtual/pkgconfig
|
||||
test? (
|
||||
$(lua_gen_cond_dep 'dev-lua/busted[${LUA_USEDEP}]')
|
||||
$(lua_gen_cond_dep 'dev-lua/busted-htest[${LUA_USEDEP}]')
|
||||
${RDEPEND}
|
||||
)
|
||||
"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# If 'dev-lang/lua' is a new, fresh installation, no 'LUA_LIBDIR' exists,
|
||||
# as no compiled modules are installed on a new, fresh installation,
|
||||
# so this check must be disabled, otherwise 'configure' will fail.
|
||||
sed -e '/LUA_LIBDIR is not a valid directory/d' -i configure || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myeconfargs=(
|
||||
"--prefix=${EPREFIX}/usr"
|
||||
"--rocks-tree=$(lua_get_lmod_dir)"
|
||||
"--with-lua-include=$(lua_get_include_dir)"
|
||||
"--with-lua-interpreter=${ELUA}"
|
||||
"--with-lua-lib=$(lua_get_cmod_dir)"
|
||||
)
|
||||
|
||||
# Since the configure script is handcrafted,
|
||||
# and yells at unknown options, do not use 'econf'.
|
||||
./configure "${myeconfargs[@]}" || die
|
||||
}
|
||||
|
||||
src_test() {
|
||||
busted --lua=${ELUA} || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
{ find "${D}" -type f -exec sed -i -e "s:${D}::g" {} \;; } || die
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
local lua_abi_ver
|
||||
if use lua_single_target_luajit; then
|
||||
lua_abi_ver="5.1"
|
||||
else
|
||||
lua_abi_ver=${ELUA#lua}
|
||||
fi
|
||||
elog
|
||||
elog "To manage rocks for a Lua version other than the current ${CATEGORY}/${PN} default (${lua_abi_ver})"
|
||||
elog "you can use the command-line option --lua-version, e.g."
|
||||
elog
|
||||
elog " luarocks --lua-version 5.3 install luasocket"
|
||||
elog
|
||||
elog "(use 5.1 for luajit). Note that the relevant Lua version must already be present in the system."
|
||||
elog
|
||||
}
|
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