parent
be474ffd50
commit
a919119bfa
Binary file not shown.
Binary file not shown.
@ -0,0 +1,38 @@
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="7"
|
||||
|
||||
MY_PN=${PN}.sh
|
||||
DESCRIPTION="Tool to check properties of executables (e.g. ASLR/PIE, RELRO, PaX, Canaries)"
|
||||
HOMEPAGE="https://github.com/slimm609/checksec.sh"
|
||||
SRC_URI="https://github.com/slimm609/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~mips ~ppc ~ppc64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
S="${WORKDIR}"/${MY_PN}-${PV}
|
||||
|
||||
DOCS=( ChangeLog README.md )
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-1.7.2-path.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
sed 's,^pkg_release=false,pkg_release=true,' -i ${PN} || die
|
||||
default
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
doman extras/man/*
|
||||
|
||||
insinto /usr/share/zsh/site-functions
|
||||
doins extras/zsh/_${PN}
|
||||
|
||||
dobin ${PN}
|
||||
}
|
@ -0,0 +1,79 @@
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
inherit eutils systemd unpacker user
|
||||
|
||||
DESCRIPTION="general puppet client utils along with hiera and facter"
|
||||
HOMEPAGE="https://puppetlabs.com/"
|
||||
SRC_BASE="http://apt.puppetlabs.com/pool/stretch/puppet/${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/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/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
|
||||
systemd_dounit lib/systemd/system/puppet.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/puppet /usr/bin/puppet
|
||||
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,138 @@
|
||||
# Copyright 1999-2019 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 eapi7-ver
|
||||
|
||||
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 ~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/semantic_puppet
|
||||
>=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-6.4.1.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
|
||||
|
||||
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
|
||||
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 puppetdb-6.3.2.tar.gz 41707817 BLAKE2B 480737af3abc862e90a7075011327ce3821a5d9460c785602c105ec7accc82f2ea712ae488c585226126e88f817cbb1acda7fa09793b7508aa38cc47e1c76ab0 SHA512 e2a3ce73c976cbbfa6acc62612187478cf5ecc9d514ff4866a74e2c6364979f17c3daeba0f03a01e7fc3eeb1ca84a3c886fd5eed07d2a9fbaa5fd9f7c9d577af
|
||||
DIST puppetdb-6.3.4.tar.gz 41716289 BLAKE2B c2f0c074229340234e8ce146d6d711f0311f4a4d6c091ef497a376a5cca02f7bc5a85fc63555f7408f16dc60784266ba126149fb27a9e0bf0592d7ee314e4b4a SHA512 9da3707f0ecf1b7664dbf44dbc6dda79adce6928298aa8e263bb134bfccaf2403245ed0176f8929583f5631ba3927f99d6d06233eca07720d0fd174da33e4990
|
||||
DIST puppetdb-6.4.0.tar.gz 41720668 BLAKE2B a4637750c553eed8ee5bdd46212a7455fe1d59015aa78fe01f6fa9ee2b4a98ec50a2a8b551f65d4bc6965b2a969f559c53f5a6324a8e48983a1d027948387ce7 SHA512 c49afce1661ed284280e89ed9dbc2406a657e5f2cdbc501acf50900d431b58a341f1541789ea4ffe9109e8d30faf47eb85573a589426c40ad50597a7d81b5552
|
||||
|
@ -0,0 +1,92 @@
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit multilib systemd user
|
||||
|
||||
DESCRIPTION="PuppetDB collects data generated by Puppet."
|
||||
HOMEPAGE="http://docs.puppetlabs.com/puppetdb/"
|
||||
SRC_URI="https://downloads.puppetlabs.com/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
IUSE=""
|
||||
# will need the same keywords as puppet
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
RDEPEND+=">=virtual/jdk-1.8.0"
|
||||
DEPEND+=""
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup puppetdb
|
||||
enewuser puppetdb -1 -1 /opt/puppetlabs/server/data/puppetdb "puppetdb"
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
sed -i 's/sysconfig/conf\.d/g' ext/redhat/puppetdb.service || die
|
||||
sed -i 's/sysconfig/conf\.d/g' ext/bin/puppetdb || die
|
||||
sed -i 's/sysconfig/conf\.d/g' install.sh || die
|
||||
sed -i 's/var\/run/run/g' ext/puppetdb.tmpfiles.conf || die
|
||||
sed -i 's/var\/run/run/g' install.sh || die
|
||||
default
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
einfo "not compiling"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dodir /opt/puppetlabs/server/data/puppetdb
|
||||
insinto /opt/puppetlabs/server/apps/puppetdb
|
||||
insopts -m0744
|
||||
doins ext/ezbake-functions.sh
|
||||
insopts -m0644
|
||||
doins ext/ezbake.manifest
|
||||
doins puppetdb.jar
|
||||
insinto /etc/puppetlabs/puppetdb
|
||||
doins ext/config/logback.xml
|
||||
doins ext/config/bootstrap.cfg
|
||||
doins ext/config/request-logging.xml
|
||||
insinto /etc/puppetlabs/puppetdb/conf.d
|
||||
doins ext/config/conf.d/jetty.ini
|
||||
doins ext/config/conf.d/repl.ini
|
||||
doins ext/config/conf.d/database.ini
|
||||
doins ext/config/conf.d/config.ini
|
||||
insopts -m0755
|
||||
insinto /opt/puppetlabs/server/apps/puppetdb/scripts
|
||||
doins install.sh
|
||||
insinto /opt/puppetlabs/server/apps/puppetdb/cli/apps
|
||||
doins ext/cli/foreground
|
||||
doins ext/cli/ssl-setup
|
||||
doins ext/cli/config-migration
|
||||
doins ext/cli/foreground
|
||||
doins ext/cli/anonymize
|
||||
doins ext/cli/reload
|
||||
doins ext/cli/start
|
||||
doins ext/cli/stop
|
||||
insinto /opt/puppetlabs/server/apps/puppetdb/bin
|
||||
doins ext/bin/puppetdb
|
||||
insopts -m0644
|
||||
dodir /opt/puppetlabs/server/bin
|
||||
dosym ../apps/puppetdb/bin/puppetdb /opt/puppetlabs/server/bin/puppetdb
|
||||
dodir /opt/puppetlabs/bin
|
||||
dosym ../server/apps/puppetdb/bin/puppetdb /opt/puppetlabs/bin/puppetdb
|
||||
dosym ../../opt/puppetlabs/server/apps/puppetdb/bin/puppetdb /usr/bin/puppetdb
|
||||
# init type tasks
|
||||
newconfd ext/default puppetdb
|
||||
systemd_dounit ext/redhat/puppetdb.service
|
||||
systemd_newtmpfilesd ext/puppetdb.tmpfiles.conf puppetdb.conf
|
||||
newinitd "${FILESDIR}/puppetdb.initd-r2" puppetdb
|
||||
# misc
|
||||
insinto /etc/logrotate.d
|
||||
newins ext/puppetdb.logrotate.conf puppetdb
|
||||
fowners -R puppetdb:puppetdb /opt/puppetlabs/server/data/puppetdb
|
||||
fperms -R 770 /opt/puppetlabs/server/data/puppetdb
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "to install please run '/opt/puppetlabs/server/bin/puppetdb ssl-setup'"
|
||||
elog
|
||||
elog "to upgrade please run '/opt/puppetlabs/server/bin/puppetdb config-migration'"
|
||||
}
|
@ -1,2 +1,3 @@
|
||||
DIST puppetserver-6.3.0.tar.gz 75698674 BLAKE2B 4eb88b15c936f8a66c5447e5761cc35772632420ca74de17f06453c9645f6f4d6483ec6a850810401efddf07f40710bd9563e78f5f870faaa85c0c6b2e450fa1 SHA512 a3c3e9c00e3dae274a2139a166c121d1d9b1dde8ad640e70d68433eee53a9bcf7ad8ba53d6e355ee1de93a522f8e0169eb80f52fc438ce6a76ebcd007398108b
|
||||
DIST puppetserver-6.4.0.tar.gz 75721867 BLAKE2B 299d73bab6f76464fc7b2e3b5a5b63e4b0d6f11752990d2926db247dc5d6aa475f5de571640ae38f22da75505153ce0f83e7a952bd0d037f4d3d12fd37c8f269 SHA512 cc9ac9a163b1ee7488b1afb95457cea4ae9da205d4cd91dd70c8cc995fad32829b5c4d9de8baa3ca325ac235bcaee2dca78ea9cd50bc9dfe11f2837f64587a11
|
||||
DIST puppetserver-6.5.0.tar.gz 76080713 BLAKE2B 0562128001a24eae6cec071a366e16ab3ce5b0babbe50330ecddd13ab3dbfd35d6cb23634770e4bd7904cd231752ce923d4af8dc42d783cc137f300efcb05fb2 SHA512 d871f3817c370ddd08e8d791deb1a30aa50ab0d801192ebfb5ef225d8dce21885175fe4e9911287437b687b2bcbf5a098d8b9511b24bd05fdf4854575a686cfe
|
||||
|
@ -0,0 +1,135 @@
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit multilib systemd user
|
||||
|
||||
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 as puppet
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
RDEPEND+="
|
||||
>=virtual/jdk-1.8.0
|
||||
app-admin/puppet-agent[puppetdb?]"
|
||||
DEPEND+=""
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup puppet
|
||||
enewuser puppet -1 -1 /opt/puppetlabs/server/data/puppetserver "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
|
||||
dodir /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" 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
|
||||
insopts -m 0644
|
||||
insinto /usr/lib/tmpfiles.d
|
||||
newins ext/puppetserver.tmpfiles.conf puppetserver.conf
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
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-ri --no-rdoc \$(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-ri --no-rdoc \$(echo \$LINE |awk '{print \$1}') --version \$(echo \$LINE |awk '{print \$2}')"
|
||||
elog "done < /opt/puppetlabs/server/data/mri-gem-list.txt"
|
||||
}
|
Binary file not shown.
Binary file not shown.
@ -0,0 +1,15 @@
|
||||
Fix build sys-libs/ncurses[tinfo]
|
||||
|
||||
Bug: https://bugs.gentoo.org/690348
|
||||
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -33,7 +33,7 @@
|
||||
#CLOCK = -DCLOCK_SUPPORT # Experimental!
|
||||
READLINE = -DREADLINE_SUPPORT
|
||||
CFLAGS += -D_GNU_SOURCE $(COLOR) $(CLOCK) $(READLINE) $(ADD_CFLAGS)
|
||||
-LDFLAGS += -lncurses -lreadline
|
||||
+LDFLAGS += `pkg-config --libs ncurses` -lreadline
|
||||
|
||||
###########################
|
||||
# LINUX with Wide character support (testet with ncurses 5.4)
|
@ -0,0 +1,42 @@
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
MY_P="${PN}-1.99pl1"
|
||||
|
||||
inherit toolchain-funcs
|
||||
|
||||
DESCRIPTION="A curses-based file manager"
|
||||
HOMEPAGE="http://www.han.de/~werner/ytree.html"
|
||||
SRC_URI="http://www.han.de/~werner/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
BDEPEND="virtual/pkgconfig"
|
||||
DEPEND="
|
||||
sys-libs/ncurses:0=
|
||||
sys-libs/readline:0=
|
||||
"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-1.94-bindir.patch"
|
||||
"${FILESDIR}/${PN}-1.99-tinfo.patch"
|
||||
)
|
||||
|
||||
DOCS=( CHANGES README THANKS ytree.conf )
|
||||
|
||||
pkg_setup() {
|
||||
tc-export CC
|
||||
}
|
||||
|
||||
src_install() {
|
||||
einstalldocs
|
||||
dobin ${PN}
|
||||
doman ${PN}.1
|
||||
}
|
Binary file not shown.
Binary file not shown.
@ -1,3 +1,2 @@
|
||||
DIST repoman-2.3.11.tar.bz2 86807 BLAKE2B f5bf8e9b7bac7816ee9b1139d0e0d30e99fc06da4fb742e430c237d9be0e6261bcf5d8f3412f1c20a34e2766c5acc86176b4731f20adc9554de9949bd5622a5d SHA512 331614554bb7ba49b8b63b8612642426fb458aa84de78bb9958be85d03e43d662fc094ecd2472a6f06c6b4f0368ec0542083b04c25f7d8b6aabb432cd2b32367
|
||||
DIST repoman-2.3.15.tar.bz2 86707 BLAKE2B 4c890fa311426d523c34fcaaf4e473fbaba6e3247cb55464709bf8547898df89420b4231a10181c06aafdeaa7ab6fffc02f8191f573487541dfd392945864b28 SHA512 d3f8d5d9b743d8fcd9e1a856a4c371747e235620105ed47f9c8b5933fbdcea7e8d556fc89e517834141bc575f15851cd833a56121bfdd55a1d81b3f86f859b74
|
||||
DIST repoman-2.3.16.tar.bz2 86739 BLAKE2B dc3e3b5e72df751cfacc17e6f5c847160438a4d6f5d86b4dd17ab8a3a69cd0502f2965934c456ea7538f228c40364535e861c489ab2a09a0df14183b111e9a38 SHA512 d0e8bee1e3bd6dd8aecb1278fc7877768552612c4638488b61a9b8856ad9cd7333c7d52f0c334925d90170a1d8af20e9ead6533edbc10cae02baec629dece121
|
||||
|
@ -1,63 +0,0 @@
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python2_7 python3_{5,6,7} )
|
||||
PYTHON_REQ_USE='bzip2(+)'
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
if [[ ${PV} == *9999 ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://anongit.gentoo.org/git/proj/portage.git"
|
||||
S="${WORKDIR}/${P}/repoman"
|
||||
else
|
||||
SRC_URI="https://dev.gentoo.org/~zmedico/portage/archives/${P}.tar.bz2"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
fi
|
||||
|
||||
DESCRIPTION="Repoman is a Quality Assurance tool for Gentoo ebuilds"
|
||||
HOMEPAGE="https://wiki.gentoo.org/wiki/Project:Portage"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="
|
||||
>=sys-apps/portage-2.3.43[${PYTHON_USEDEP}]
|
||||
>=dev-python/lxml-3.6.0[${PYTHON_USEDEP}]
|
||||
dev-python/pyyaml[${PYTHON_USEDEP}]
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
python_test() {
|
||||
esetup.py test
|
||||
}
|
||||
|
||||
python_install() {
|
||||
# Install sbin scripts to bindir for python-exec linking
|
||||
# they will be relocated in pkg_preinst()
|
||||
distutils-r1_python_install \
|
||||
--system-prefix="${EPREFIX}/usr" \
|
||||
--bindir="$(python_get_scriptdir)" \
|
||||
--docdir="${EPREFIX}/usr/share/doc/${PF}" \
|
||||
--htmldir="${EPREFIX}/usr/share/doc/${PF}/html" \
|
||||
--sbindir="$(python_get_scriptdir)" \
|
||||
--sysconfdir="${EPREFIX}/etc" \
|
||||
"${@}"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if [[ -z {REPLACING_VERSIONS} ]]; then
|
||||
elog ""
|
||||
elog "This release of repoman is from the new portage/repoman split"
|
||||
elog "release code base."
|
||||
elog "This new repoman code base is still being developed. So its API's"
|
||||
elog "are not to be considered stable and are subject to change."
|
||||
elog "The code released has been tested and considered ready for use."
|
||||
elog "This however does not guarantee it to be completely bug free."
|
||||
elog "Please report any bugs you may encounter."
|
||||
elog ""
|
||||
fi
|
||||
}
|
Binary file not shown.
Binary file not shown.
@ -1 +1,2 @@
|
||||
DIST LMDB_0.9.23.tar.gz 143813 BLAKE2B 252acad974a7ed528fe0e52b8332845bc0b6076599bbc79ef2c3f41459acb6ccbe5f6030c6a258fe30633c4c0568fa05fa6d46dc05bab3f93ee3aab16e6faa89 SHA512 47466a96ce288d18d489acf1abf811aa973649848a4cac31f71e1f25ea781a055ebd6616d2d630214b2df2f146f12609c82d65be0196f49d6b46a6c96464e120
|
||||
DIST LMDB_0.9.24.tar.gz 143916 BLAKE2B f075ec5f4dfb77685188229e20f12c4febe8295c7d35ed15c3db492b68af68cc7f76741078e9bb524d2c38587839f542e964af1e5d6d984bb28bd602caabbb8d SHA512 c3a96c27f13c072ef5861bcea045d82f0a220dbd938579411ea6c38ac0696b3620c71f1e2cc56d31db5105f3533da95aba1ac34653d8bdcfa4f2f1fb831cccb1
|
||||
|
@ -0,0 +1,74 @@
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit flag-o-matic multilib-minimal toolchain-funcs
|
||||
|
||||
MY_P="${PN^^}_${PV}"
|
||||
|
||||
DESCRIPTION="An ultra-fast, ultra-compact key-value embedded data store"
|
||||
HOMEPAGE="https://symas.com/lmdb/technical/"
|
||||
SRC_URI="https://github.com/LMDB/lmdb/archive/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="OPENLDAP"
|
||||
SLOT="0/${PV}"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris"
|
||||
IUSE="static-libs"
|
||||
|
||||
DEPEND=""
|
||||
RDEPEND=""
|
||||
|
||||
S="${WORKDIR}/${PN}-${MY_P}/libraries/liblmdb"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
if [[ ${CHOST} == *-darwin* && ${CHOST#*-darwin} -lt 10 ]] ; then
|
||||
# posix_memalign isn't available before 10.6, but on OSX
|
||||
# malloc is always aligned for any addressable type
|
||||
sed -i -e '/(__APPLE__)/a#define HAVE_MEMALIGN 1\n#define memalign(X,Y) malloc(X)' mdb.c || die
|
||||
fi
|
||||
multilib_copy_sources
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
local soname="-Wl,-soname,liblmdb$(get_libname 0)"
|
||||
[[ ${CHOST} == *-darwin* ]] && \
|
||||
soname="-dynamiclib -install_name ${EPREFIX}/usr/$(get_libdir)/liblmdb$(get_libname 0)"
|
||||
sed -i -e "s!^CC.*!CC = $(tc-getCC)!" \
|
||||
-e "s!^CFLAGS.*!CFLAGS = ${CFLAGS}!" \
|
||||
-e "s!^AR.*!AR = $(tc-getAR)!" \
|
||||
-e "s!^SOEXT.*!SOEXT = $(get_libname)!" \
|
||||
-e "/^prefix/s!/usr/local!${EPREFIX}/usr!" \
|
||||
-e "/^libdir/s!lib\$!$(get_libdir)!" \
|
||||
-e "s!shared!shared ${soname}!" \
|
||||
"Makefile" || die
|
||||
|
||||
if [[ ${CHOST} == *-solaris* ]] ; then
|
||||
# fdatasync lives in -lrt on Solaris 10
|
||||
[[ ${CHOST#*-solaris2.} -le 10 ]] && append-ldflags -lrt
|
||||
fi
|
||||
}
|
||||
|
||||
multilib_src_compile() {
|
||||
emake LDLIBS+=" -pthread"
|
||||
}
|
||||
|
||||
multilib_src_install() {
|
||||
emake DESTDIR="${D}" install
|
||||
|
||||
mv "${ED}"/usr/$(get_libdir)/liblmdb$(get_libname) \
|
||||
"${ED}"/usr/$(get_libdir)/liblmdb$(get_libname 0) || die
|
||||
dosym liblmdb$(get_libname 0) /usr/$(get_libdir)/liblmdb$(get_libname)
|
||||
|
||||
insinto /usr/$(get_libdir)/pkgconfig
|
||||
doins "${FILESDIR}/lmdb.pc"
|
||||
sed -i -e "s!@PACKAGE_VERSION@!${PV}!" \
|
||||
-e "s!@prefix@!${EPREFIX}/usr!g" \
|
||||
-e "s!@libdir@!$(get_libdir)!" \
|
||||
"${ED}"/usr/$(get_libdir)/pkgconfig/lmdb.pc || die
|
||||
|
||||
if ! use static-libs; then
|
||||
rm "${ED}"/usr/$(get_libdir)/liblmdb.a || die
|
||||
fi
|
||||
}
|
Binary file not shown.
@ -1 +0,0 @@
|
||||
DIST FlickrNet2.2.zip 243208 BLAKE2B 5d81045615301718bccd446705dea8a9a402ee15ee1d9eef978554b70e01d92b3981e825902f19f2d48193875896bd733a4ee298e38253a5d3f4ef43cfc238ff SHA512 a591867e5a58ea22f4f8932dee11346aa6c2a5ef653ae34bab69c60cf3fb3a0d1108424439c2b8788a557f7fee35915ad4a54c0a57f29e653daef90ee80c4a0d
|
@ -1,8 +0,0 @@
|
||||
libdir=@LIBDIR@
|
||||
assemblies_dir=${libdir}/mono/FlickrNet
|
||||
Libraries=${assemblies_dir}/FlickrNet.dll
|
||||
|
||||
Name: FlickrNet
|
||||
Description: Flickr.Net API Library
|
||||
Version: @VERSION@
|
||||
Libs: -r:${assemblies_dir}/FlickrNet.dll
|
@ -1,40 +0,0 @@
|
||||
# Copyright 1999-2011 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=2
|
||||
|
||||
MY_PN="FlickrNet"
|
||||
|
||||
inherit mono multilib
|
||||
|
||||
DESCRIPTION="A .Net Library for accessing the Flickr API - Binary version"
|
||||
HOMEPAGE="http://www.codeplex.com/FlickrNet"
|
||||
|
||||
# Upstream download require click-through LGPL-2.1.
|
||||
# Since the license allows us to do that, just redistribute
|
||||
# it in a decent format.
|
||||
SRC_URI="mirror://gentoo/${MY_PN}${PV}.zip"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ppc x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND=">=dev-lang/mono-2.4"
|
||||
DEPEND="${RDEPEND}
|
||||
app-arch/unzip"
|
||||
|
||||
S="${WORKDIR}"
|
||||
|
||||
src_compile() { :; }
|
||||
|
||||
src_install() {
|
||||
egacinstall Release/${MY_PN}.dll ${MY_PN} || die
|
||||
|
||||
# Install .pc file as required by f-spot
|
||||
dodir /usr/$(get_libdir)/pkgconfig
|
||||
sed -e "s:@VERSION@:${PV}:" \
|
||||
-e "s:@LIBDIR@:/usr/$(get_libdir):" \
|
||||
"${FILESDIR}"/flickrnet.pc.in > "${D}"/usr/$(get_libdir)/pkgconfig/flickrnet.pc \
|
||||
|| die "sed failed"
|
||||
}
|
Binary file not shown.
@ -1 +1,2 @@
|
||||
DIST libbpf-0.0.3.tar.gz 127328 BLAKE2B eaa1be54f0a7fcc6fd41eb2adaad2f405f76db3bd7c7466a5484ead1cca5a9fe775e331838cd5645d7399cb5b1a5b2fcb3814fb45643660fd3f7d84b9986bae6 SHA512 ee489d968cd9a20a1f091dcd2696d3807ab0db2a001613684402de2c696391eea033f3bd961eaf1d0df95c1e15f4f0ccfb7003ff98c3f08f24a7e9a8db22cdad
|
||||
DIST libbpf-0.0.4.tar.gz 148625 BLAKE2B d8c2343441258a01ca54b0046b0f1d54cb2e0e7a09c99e489409b25d3f2486bc7d8a175b4a3e793b56ba72462d34b9a55c53e86eaf446c64f2c30d673e7f23bd SHA512 1e4a16ed0f3e378aa9d7080e4b54cb3a9542975105b09977d1ddecf3ae4dabb3b5edf80b92b61644b1f0cbda7ee7e135ee0f736e71c1d201a97b1b3dd573b543
|
||||
|
@ -0,0 +1,47 @@
|
||||
# Copyright 2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit toolchain-funcs
|
||||
|
||||
HOMEPAGE="https://github.com/libbpf/libbpf"
|
||||
DESCRIPTION="Stand-alone build of libbpf from the Linux kernel"
|
||||
SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2 LGPL-2.1 BSD-2"
|
||||
SLOT="0/${PV}"
|
||||
KEYWORDS="~amd64 ~arm64 ~x86"
|
||||
IUSE="+static-libs"
|
||||
|
||||
COMMON_DEPEND="virtual/libelf
|
||||
!<=dev-util/bcc-0.7.0"
|
||||
DEPEND="${COMMON_DEPEND}
|
||||
sys-kernel/linux-headers"
|
||||
RDEPEND="${COMMON_DEPEND}"
|
||||
|
||||
S="${WORKDIR}/${P}/src"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/libbpf-0.0.3-paths.patch"
|
||||
)
|
||||
|
||||
src_compile() {
|
||||
emake \
|
||||
BUILD_SHARED=y \
|
||||
LIBSUBDIR="$(get_libdir)" \
|
||||
$(usex static-libs 'BUILD_STATIC=y' '' '' '') \
|
||||
CC="$(tc-getCC)"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake \
|
||||
BUILD_SHARED=y \
|
||||
LIBSUBDIR="$(get_libdir)" \
|
||||
DESTDIR="${D}" \
|
||||
$(usex static-libs 'BUILD_STATIC=y' '' '' '') \
|
||||
install install_uapi_headers
|
||||
|
||||
insinto /usr/$(get_libdir)/pkgconfig
|
||||
doins ${PN}.pc
|
||||
}
|
@ -0,0 +1,25 @@
|
||||
From 389c8def65406ae92077686a2e9095afebab28f4 Mon Sep 17 00:00:00 2001
|
||||
From: Andreas Sturmlechner <asturm@gentoo.org>
|
||||
Date: Wed, 24 Jul 2019 20:01:01 +0200
|
||||
Subject: [PATCH] Fix build when built against spdlog without bundled fmt
|
||||
|
||||
---
|
||||
src/libixion/dirty_cell_tracker.cpp | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/libixion/dirty_cell_tracker.cpp b/src/libixion/dirty_cell_tracker.cpp
|
||||
index 42d338b..7e6e3cc 100644
|
||||
--- a/src/libixion/dirty_cell_tracker.cpp
|
||||
+++ b/src/libixion/dirty_cell_tracker.cpp
|
||||
@@ -16,7 +16,7 @@
|
||||
#include <limits>
|
||||
|
||||
#include <spdlog/spdlog.h>
|
||||
-#include <spdlog/fmt/bundled/ostream.h>
|
||||
+#include <spdlog/fmt/ostr.h>
|
||||
|
||||
namespace ixion {
|
||||
|
||||
--
|
||||
2.22.0
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,2 +1,3 @@
|
||||
DIST puppetdb-termini_6.3.2-1stretch_all.deb 20662 BLAKE2B 2e7daef3892070d5356ced070544099a546e4887b5654f795e06952862e4c0cb155df200806217fd5376b1bc3fb53107467ca76acec05283d2f25fed7ca7e5ca SHA512 555abacc9de7221df78a8459a76a4c3c8ce3a1bf5e2b6f1d800761eaea650d2a308e6a5054be082cfb9823903fbe049b2dc5f323b8af93693afbb61c8ce6c4be
|
||||
DIST puppetdb-termini_6.3.4-1stretch_all.deb 20680 BLAKE2B 41d64eb7a13a0036323b916a70cebdc1d522175e1b6460a0df577b35d57bdfd2eba76784e7af314336d618e7445639e12ec369f243d10b5120ef5006fa21efd3 SHA512 06ce200b4d919d99c28f5361993ca9a641f38d27b1e775db7f1edd10515b75ea131770f3e03a1e3f9d3b32cb8e6f32f6995a6df1e6b3f24d4601585db48a9d8b
|
||||
DIST puppetdb-termini_6.4.0-1stretch_all.deb 20680 BLAKE2B ccd129eb8510794c165b6fa88ed391006e583e58fb43fe1be72e1b976d75f30aee0775552f6460840b805e1e4ceb03a6c77dba70afeed75dc2ea3ebcfd4bee77 SHA512 948b5ccd1ddc1f0d52174a073cd13af9e1ba0f713c5326c4d3cbfae7daeeb16cb05efdfb7ac572f9d79e34842fca0a95e054ee49239d593bf4429223c18bb58c
|
||||
|
@ -0,0 +1,28 @@
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
USE_RUBY="ruby23 ruby24 ruby25 ruby26"
|
||||
|
||||
inherit unpacker
|
||||
|
||||
DESCRIPTION="Library needed to connect puppet to puppetdb"
|
||||
HOMEPAGE="http://docs.puppetlabs.com/puppetdb/"
|
||||
SRC_URI="http://apt.puppetlabs.com/pool/stretch/puppet/${PN:0:1}/${PN}/${PN}_${PV}-1stretch_all.deb"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
IUSE=""
|
||||
# will need the same keywords as puppet
|
||||
KEYWORDS="~amd64 ~ppc ~x86"
|
||||
|
||||
RDEPEND+=""
|
||||
DEPEND+=""
|
||||
|
||||
S=${WORKDIR}
|
||||
|
||||
src_install() {
|
||||
insinto opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/
|
||||
doins -r opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/*
|
||||
}
|
Binary file not shown.
Binary file not shown.
@ -0,0 +1,531 @@
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
USE_RUBY="ruby26 ruby25 ruby24"
|
||||
DISTUTILS_OPTIONAL=1
|
||||
WANT_AUTOMAKE="none"
|
||||
GENTOO_DEPEND_ON_PERL="no"
|
||||
|
||||
inherit autotools bash-completion-r1 db-use depend.apache distutils-r1 elisp-common flag-o-matic java-pkg-opt-2 libtool multilib perl-module ruby-single xdg-utils
|
||||
|
||||
MY_P="${P/_/-}"
|
||||
DESCRIPTION="Advanced version control system"
|
||||
HOMEPAGE="https://subversion.apache.org/"
|
||||
SRC_URI="mirror://apache/${PN}/${MY_P}.tar.bz2
|
||||
https://dev.gentoo.org/~polynomial-c/${PN}-1.10.0_rc1-patches-1.tar.xz"
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
LICENSE="Subversion GPL-2"
|
||||
SLOT="0"
|
||||
[[ "${PV}" = *_rc* ]] || \
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux"
|
||||
IUSE="apache2 berkdb ctypes-python debug doc +dso extras gnome-keyring +http java kwallet nls perl python ruby sasl test vim-syntax"
|
||||
|
||||
COMMON_DEPEND="
|
||||
app-arch/bzip2
|
||||
app-arch/lz4
|
||||
>=dev-db/sqlite-3.7.12
|
||||
>=dev-libs/apr-1.3:1
|
||||
>=dev-libs/apr-util-1.3:1
|
||||
dev-libs/expat
|
||||
dev-libs/libutf8proc:=
|
||||
sys-apps/file
|
||||
sys-libs/zlib
|
||||
berkdb? ( >=sys-libs/db-4.0.14:= )
|
||||
ctypes-python? ( ${PYTHON_DEPS} )
|
||||
gnome-keyring? (
|
||||
dev-libs/glib:2
|
||||
gnome-base/libgnome-keyring
|
||||
sys-apps/dbus
|
||||
)
|
||||
http? ( >=net-libs/serf-1.3.4 )
|
||||
kwallet? (
|
||||
dev-qt/qtcore:5
|
||||
dev-qt/qtdbus:5
|
||||
dev-qt/qtgui:5
|
||||
kde-frameworks/kcoreaddons:5
|
||||
kde-frameworks/ki18n:5
|
||||
kde-frameworks/kwallet:5
|
||||
sys-apps/dbus
|
||||
)
|
||||
perl? ( dev-lang/perl:= )
|
||||
python? ( ${PYTHON_DEPS} )
|
||||
ruby? ( ${RUBY_DEPS} )
|
||||
sasl? ( dev-libs/cyrus-sasl )"
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
apache2? ( www-servers/apache[apache2_modules_dav] )
|
||||
java? ( >=virtual/jre-1.8 )
|
||||
nls? ( virtual/libintl )
|
||||
perl? ( dev-perl/URI )"
|
||||
# Note: ctypesgen doesn't need PYTHON_USEDEP, it's used once
|
||||
DEPEND="${COMMON_DEPEND}
|
||||
!!<sys-apps/sandbox-1.6
|
||||
ctypes-python? ( dev-python/ctypesgen )
|
||||
doc? ( app-doc/doxygen )
|
||||
gnome-keyring? ( virtual/pkgconfig )
|
||||
http? ( virtual/pkgconfig )
|
||||
java? ( >=virtual/jdk-1.8 )
|
||||
kwallet? (
|
||||
kde-frameworks/kdelibs4support:5
|
||||
virtual/pkgconfig
|
||||
)
|
||||
nls? ( sys-devel/gettext )
|
||||
perl? ( dev-lang/swig )
|
||||
python? ( dev-lang/swig )
|
||||
ruby? ( dev-lang/swig )
|
||||
test? ( ${PYTHON_DEPS} )"
|
||||
|
||||
REQUIRED_USE="
|
||||
ctypes-python? ( ${PYTHON_REQUIRED_USE} )
|
||||
python? ( ${PYTHON_REQUIRED_USE} )
|
||||
test? (
|
||||
${PYTHON_REQUIRED_USE}
|
||||
!dso
|
||||
)"
|
||||
|
||||
want_apache
|
||||
|
||||
pkg_setup() {
|
||||
if use berkdb ; then
|
||||
local apu_bdb_version="$(${EPREFIX}/usr/bin/apu-1-config --includes \
|
||||
| grep -Eoe '-I${EPREFIX}/usr/include/db[[:digit:]]\.[[:digit:]]' \
|
||||
| sed 's:.*b::')"
|
||||
einfo
|
||||
if [[ -z "${SVN_BDB_VERSION}" ]] ; then
|
||||
if [[ -n "${apu_bdb_version}" ]] ; then
|
||||
SVN_BDB_VERSION="${apu_bdb_version}"
|
||||
einfo "Matching db version to apr-util"
|
||||
else
|
||||
SVN_BDB_VERSION="$(db_ver_to_slot "$(db_findver sys-libs/db 2>/dev/null)")"
|
||||
einfo "SVN_BDB_VERSION variable isn't set. You can set it to enforce using of specific version of Berkeley DB."
|
||||
fi
|
||||
fi
|
||||
einfo "Using: Berkeley DB ${SVN_BDB_VERSION}"
|
||||
einfo
|
||||
|
||||
if [[ -n "${apu_bdb_version}" && "${SVN_BDB_VERSION}" != "${apu_bdb_version}" ]]; then
|
||||
eerror "APR-Util is linked against Berkeley DB ${apu_bdb_version}, but you are trying"
|
||||
eerror "to build Subversion with support for Berkeley DB ${SVN_BDB_VERSION}."
|
||||
eerror "Rebuild dev-libs/apr-util or set SVN_BDB_VERSION=\"${apu_bdb_version}\"."
|
||||
eerror "Aborting to avoid possible run-time crashes."
|
||||
die "Berkeley DB version mismatch"
|
||||
fi
|
||||
fi
|
||||
|
||||
depend.apache_pkg_setup
|
||||
|
||||
java-pkg-opt-2_pkg_setup
|
||||
|
||||
if ! use http ; then
|
||||
ewarn "WebDAV support is disabled. You need WebDAV to"
|
||||
ewarn "access repositories through the HTTP protocol."
|
||||
ewarn "Consider enabling \"http\" USE flag"
|
||||
echo -ne "\a"
|
||||
fi
|
||||
|
||||
# https://issues.apache.org/jira/browse/SVN-4813#comment-16813739
|
||||
append-cppflags -P
|
||||
|
||||
if use debug ; then
|
||||
append-cppflags -DSVN_DEBUG -DAP_DEBUG
|
||||
fi
|
||||
|
||||
# http://mail-archives.apache.org/mod_mbox/subversion-dev/201306.mbox/%3C51C42014.3060700@wandisco.com%3E
|
||||
[[ ${CHOST} == *-solaris2* ]] && append-cppflags -D__EXTENSIONS__
|
||||
|
||||
# Allow for custom repository locations.
|
||||
SVN_REPOS_LOC="${SVN_REPOS_LOC:-${EPREFIX}/var/svn}"
|
||||
|
||||
if use ruby ; then
|
||||
local rbslot
|
||||
RB_VER=""
|
||||
for rbslot in $(sed 's@\([[:digit:]]\+\)\([[:digit:]]\)@\1.\2@g' <<< ${USE_RUBY//ruby}) ; do
|
||||
if has_version dev-lang/ruby:${rbslot} ; then
|
||||
RB_VER="${rbslot/.}"
|
||||
break
|
||||
fi
|
||||
done
|
||||
[[ -z "${RB_VER}" ]] && die "No useable ruby version found"
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
eapply "${WORKDIR}/patches"
|
||||
eapply_user
|
||||
|
||||
chmod +x build/transform_libtool_scripts.sh || die
|
||||
|
||||
sed -i \
|
||||
-e "s/\(BUILD_RULES=.*\) bdb-test\(.*\)/\1\2/g" \
|
||||
-e "s/\(BUILD_RULES=.*\) test\(.*\)/\1\2/g" configure.ac
|
||||
|
||||
# this bites us in particular on Solaris
|
||||
sed -i -e '1c\#!/usr/bin/env sh' build/transform_libtool_scripts.sh || \
|
||||
die "/bin/sh is not POSIX shell!"
|
||||
|
||||
eautoconf
|
||||
elibtoolize
|
||||
|
||||
sed -e 's/\(libsvn_swig_py\)-\(1\.la\)/\1-$(EPYTHON)-\2/g' \
|
||||
-i build-outputs.mk || die "sed failed"
|
||||
|
||||
if use python ; then
|
||||
# XXX: make python_copy_sources accept path
|
||||
S=${S}/subversion/bindings/swig/python python_copy_sources
|
||||
rm -r "${S}"/subversion/bindings/swig/python || die
|
||||
fi
|
||||
|
||||
xdg_environment_reset
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconf=(
|
||||
--libdir="${EPREFIX%/}/usr/$(get_libdir)"
|
||||
$(use_with apache2 apache-libexecdir)
|
||||
$(use_with apache2 apxs "${EPREFIX}"/usr/bin/apxs)
|
||||
$(use_with berkdb berkeley-db "db.h:${EPREFIX%/}/usr/include/db${SVN_BDB_VERSION}::db-${SVN_BDB_VERSION}")
|
||||
$(use_with ctypes-python ctypesgen "${EPREFIX%/}/usr")
|
||||
$(use_enable dso runtime-module-search)
|
||||
$(use_with gnome-keyring)
|
||||
$(use_enable java javahl)
|
||||
$(use_with java jdk "${JAVA_HOME}")
|
||||
$(use_with kwallet)
|
||||
$(use_enable nls)
|
||||
$(use_with sasl)
|
||||
$(use_with http serf)
|
||||
--with-apr="${EPREFIX%/}/usr/bin/apr-1-config"
|
||||
--with-apr-util="${EPREFIX%/}/usr/bin/apu-1-config"
|
||||
--disable-experimental-libtool
|
||||
--without-jikes
|
||||
--disable-mod-activation
|
||||
--disable-static
|
||||
--enable-svnxx
|
||||
)
|
||||
|
||||
if use python || use perl || use ruby; then
|
||||
myconf+=( --with-swig )
|
||||
else
|
||||
myconf+=( --without-swig )
|
||||
fi
|
||||
|
||||
if use java ; then
|
||||
myconf+=( --without-junit )
|
||||
fi
|
||||
|
||||
case ${CHOST} in
|
||||
*-aix*)
|
||||
# avoid recording immediate path to sharedlibs into executables
|
||||
append-ldflags -Wl,-bnoipath
|
||||
;;
|
||||
*-cygwin*)
|
||||
# no LD_PRELOAD support, no undefined symbols
|
||||
myconf+=( --disable-local-library-preloading LT_LDFLAGS=-no-undefined )
|
||||
;;
|
||||
*-interix*)
|
||||
# loader crashes on the LD_PRELOADs...
|
||||
myconf+=( --disable-local-library-preloading )
|
||||
;;
|
||||
*-solaris*)
|
||||
# need -lintl to link
|
||||
use nls && append-libs intl
|
||||
# this breaks installation, on x64 echo replacement is 32-bits
|
||||
myconf+=( --disable-local-library-preloading )
|
||||
;;
|
||||
*-mint*)
|
||||
myconf+=( --enable-all-static --disable-local-library-preloading )
|
||||
;;
|
||||
*)
|
||||
# inject LD_PRELOAD entries for easy in-tree development
|
||||
myconf+=( --enable-local-library-preloading )
|
||||
;;
|
||||
esac
|
||||
|
||||
#version 1.7.7 again tries to link against the older installed version and fails, when trying to
|
||||
#compile for x86 on amd64, so workaround this issue again
|
||||
#check newer versions, if this is still/again needed
|
||||
#myconf+=( --disable-disallowing-of-undefined-references )
|
||||
|
||||
# for build-time scripts
|
||||
if use ctypes-python || use python || use test; then
|
||||
python_setup
|
||||
fi
|
||||
|
||||
if use python && [[ ${CHOST} == *-darwin* ]] ; then
|
||||
export ac_cv_python_link="$(tc-getCC) "'$(PYTHON_CFLAGS) -bundle -undefined dynamic_lookup $(PYTHON_LIBS)'
|
||||
export ac_cv_python_libs='$(PYTHON_CFLAGS) -bundle -undefined dynamic_lookup $(PYTHON_LIBS)'
|
||||
export ac_cv_python_compile="$(tc-getCC)"
|
||||
fi
|
||||
|
||||
# allow overriding Python include directory
|
||||
ac_cv_path_RUBY=$(usex ruby "${EPREFIX%/}/usr/bin/ruby${RB_VER}" "none") \
|
||||
ac_cv_path_RDOC=$(usex ruby "${EPREFIX%/}/usr/bin/rdoc${RB_VER}" "none") \
|
||||
ac_cv_python_includes='-I$(PYTHON_INCLUDEDIR)' \
|
||||
econf "${myconf[@]}"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake local-all
|
||||
|
||||
if use ctypes-python ; then
|
||||
# pre-generate .py files
|
||||
use ctypes-python && emake ctypes-python
|
||||
|
||||
pushd subversion/bindings/ctypes-python >/dev/null || die
|
||||
distutils-r1_src_compile
|
||||
popd >/dev/null || die
|
||||
fi
|
||||
|
||||
if use python ; then
|
||||
swig_py_compile() {
|
||||
local p=subversion/bindings/swig/python
|
||||
rm -f ${p} || die
|
||||
ln -s "${BUILD_DIR}" ${p} || die
|
||||
|
||||
python_export PYTHON_INCLUDEDIR
|
||||
emake swig-py \
|
||||
swig_pydir="$(python_get_sitedir)/libsvn" \
|
||||
swig_pydir_extra="$(python_get_sitedir)/svn"
|
||||
}
|
||||
|
||||
# this will give us proper BUILD_DIR for symlinking
|
||||
BUILD_DIR=python \
|
||||
python_foreach_impl swig_py_compile
|
||||
fi
|
||||
|
||||
if use perl ; then
|
||||
emake swig-pl
|
||||
fi
|
||||
|
||||
if use ruby ; then
|
||||
emake swig-rb
|
||||
fi
|
||||
|
||||
if use java ; then
|
||||
emake -j1 JAVAC_FLAGS="$(java-pkg_javac-args) -encoding iso8859-1" javahl
|
||||
fi
|
||||
|
||||
if use extras ; then
|
||||
emake tools
|
||||
fi
|
||||
|
||||
if use doc ; then
|
||||
doxygen doc/doxygen.conf || die "Building of Subversion HTML documentation failed"
|
||||
|
||||
if use java; then
|
||||
emake doc-javahl
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
if has_version ~${CATEGORY}/${P} ; then
|
||||
default
|
||||
|
||||
if use ctypes-python ; then
|
||||
python_test() {
|
||||
"${PYTHON}" subversion/bindings/ctypes-python/test/run_all.py \
|
||||
|| die "ctypes-python tests fail with ${EPYTHON}"
|
||||
}
|
||||
|
||||
distutils-r1_src_test
|
||||
fi
|
||||
|
||||
if use python ; then
|
||||
swig_py_test() {
|
||||
pushd "${BUILD_DIR}" >/dev/null || die
|
||||
"${PYTHON}" tests/run_all.py || die "swig-py tests fail with ${EPYTHON}"
|
||||
popd >/dev/null || die
|
||||
}
|
||||
|
||||
BUILD_DIR=subversion/bindings/swig/python \
|
||||
python_foreach_impl swig_py_test
|
||||
fi
|
||||
else
|
||||
ewarn "The test suite shows errors when there is an older version of"
|
||||
ewarn "${CATEGORY}/${PN} installed. Please install =${CATEGORY}/${P}*"
|
||||
ewarn "before running the test suite."
|
||||
ewarn "Test suite skipped."
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake -j1 DESTDIR="${D}" local-install
|
||||
|
||||
if use ctypes-python ; then
|
||||
pushd subversion/bindings/ctypes-python >/dev/null || die
|
||||
distutils-r1_src_install
|
||||
popd >/dev/null || die
|
||||
fi
|
||||
|
||||
if use python ; then
|
||||
swig_py_install() {
|
||||
local p=subversion/bindings/swig/python
|
||||
rm -f ${p} || die
|
||||
ln -s "${BUILD_DIR}" ${p} || die
|
||||
|
||||
emake \
|
||||
DESTDIR="${D}" \
|
||||
swig_pydir="$(python_get_sitedir)/libsvn" \
|
||||
swig_pydir_extra="$(python_get_sitedir)/svn" \
|
||||
install-swig-py
|
||||
}
|
||||
|
||||
BUILD_DIR=python \
|
||||
python_foreach_impl swig_py_install
|
||||
fi
|
||||
|
||||
if use perl ; then
|
||||
emake DESTDIR="${D}" INSTALLDIRS="vendor" install-swig-pl
|
||||
perl_delete_localpod
|
||||
find "${ED}" \( -name .packlist -o -name "*.bs" \) -delete || die
|
||||
fi
|
||||
|
||||
if use ruby ; then
|
||||
emake DESTDIR="${D}" install-swig-rb
|
||||
fi
|
||||
|
||||
if use java ; then
|
||||
emake DESTDIR="${D}" install-javahl
|
||||
java-pkg_regso "${ED%/}"/usr/$(get_libdir)/libsvnjavahl*$(get_libname)
|
||||
java-pkg_dojar "${ED%/}"/usr/$(get_libdir)/svn-javahl/svn-javahl.jar
|
||||
rm -fr "${ED%/}"/usr/$(get_libdir)/svn-javahl/*.jar
|
||||
fi
|
||||
|
||||
# Install Apache module configuration.
|
||||
if use apache2 ; then
|
||||
keepdir "${APACHE_MODULES_CONFDIR}"
|
||||
insinto "${APACHE_MODULES_CONFDIR}"
|
||||
doins "${FILESDIR}/47_mod_dav_svn.conf"
|
||||
fi
|
||||
|
||||
# Install Bash Completion, bug 43179.
|
||||
newbashcomp tools/client-side/bash_completion svn
|
||||
bashcomp_alias svn svn{admin,dumpfilter,look,sync,version}
|
||||
rm -f tools/client-side/bash_completion
|
||||
|
||||
# Install hot backup script, bug 54304.
|
||||
newbin tools/backup/hot-backup.py svn-hot-backup
|
||||
rm -fr tools/backup
|
||||
|
||||
# Install svnserve init-script and xinet.d snippet, bug 43245.
|
||||
newinitd "${FILESDIR}"/svnserve.initd3 svnserve
|
||||
newconfd "${FILESDIR}"/svnserve.confd svnserve
|
||||
insinto /etc/xinetd.d
|
||||
newins "${FILESDIR}"/svnserve.xinetd svnserve
|
||||
|
||||
#adjust default user and group with disabled apache2 USE flag, bug 381385
|
||||
if ! use apache2 ; then
|
||||
sed -e "s\USER:-apache\USER:-svn\g" \
|
||||
-e "s\GROUP:-apache\GROUP:-svnusers\g" \
|
||||
-i "${ED%/}"/etc/init.d/svnserve || die
|
||||
sed -e "0,/apache/s//svn/" \
|
||||
-e "s:apache:svnusers:" \
|
||||
-i "${ED%/}"/etc/xinetd.d/svnserve || die
|
||||
fi
|
||||
|
||||
# Install documentation.
|
||||
dodoc CHANGES COMMITTERS README
|
||||
dodoc tools/xslt/svnindex.{css,xsl}
|
||||
rm -fr tools/xslt
|
||||
|
||||
# Install extra files.
|
||||
if use extras ; then
|
||||
cat <<- EOF > 80subversion-extras
|
||||
PATH="${EPREFIX}/usr/$(get_libdir)/subversion/bin"
|
||||
ROOTPATH="${EPREFIX}/usr/$(get_libdir)/subversion/bin"
|
||||
EOF
|
||||
doenvd 80subversion-extras
|
||||
|
||||
emake DESTDIR="${D}" toolsdir="/usr/$(get_libdir)/subversion/bin" install-tools
|
||||
|
||||
find tools \( -name "*.bat" -o -name "*.in" -o -name ".libs" \) -print0 | xargs -0 rm -fr
|
||||
rm -fr tools/client-side/svnmucc
|
||||
rm -fr tools/server-side/{svn-populate-node-origins-index,svnauthz-validate}*
|
||||
rm -fr tools/{buildbot,dev,diff,po}
|
||||
|
||||
insinto /usr/share/${PN}
|
||||
find tools -name '*.py' -exec sed -i -e '1s:python:&2:' {} + || die
|
||||
doins -r tools
|
||||
fi
|
||||
|
||||
if use doc ; then
|
||||
docinto html
|
||||
dodoc -r doc/doxygen/html/*
|
||||
|
||||
if use java ; then
|
||||
java-pkg_dojavadoc doc/javadoc
|
||||
fi
|
||||
fi
|
||||
|
||||
prune_libtool_files --all
|
||||
|
||||
cd "${ED%/}"/usr/share/locale
|
||||
for i in * ; do
|
||||
if [[ ${i} != *${LINGUAS}* ]] ; then
|
||||
rm -r ${i} || die
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
# Compare versions of Berkeley DB, bug 122877.
|
||||
if use berkdb && [[ -f "${EROOT}/usr/bin/svn" ]] ; then
|
||||
OLD_BDB_VERSION="$(scanelf -nq "${EROOT}/usr/$(get_libdir)/libsvn_subr-1$(get_libname 0)" | grep -Eo "libdb-[[:digit:]]+\.[[:digit:]]+" | sed -e "s/libdb-\(.*\)/\1/")"
|
||||
NEW_BDB_VERSION="$(scanelf -nq "${ED%/}/usr/$(get_libdir)/libsvn_subr-1$(get_libname 0)" | grep -Eo "libdb-[[:digit:]]+\.[[:digit:]]+" | sed -e "s/libdb-\(.*\)/\1/")"
|
||||
if [[ "${OLD_BDB_VERSION}" != "${NEW_BDB_VERSION}" ]] ; then
|
||||
CHANGED_BDB_VERSION="1"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if [[ -n "${CHANGED_BDB_VERSION}" ]] ; then
|
||||
ewarn "You upgraded from an older version of Berkeley DB and may experience"
|
||||
ewarn "problems with your repository. Run the following commands as root to fix it:"
|
||||
ewarn " db4_recover -h ${SVN_REPOS_LOC}/repos"
|
||||
ewarn " chown -Rf apache:apache ${SVN_REPOS_LOC}/repos"
|
||||
fi
|
||||
|
||||
ewarn "If you run subversion as a daemon, you will need to restart it to avoid module mismatches."
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
:
|
||||
}
|
||||
|
||||
pkg_config() {
|
||||
# Remember: Don't use ${EROOT}${SVN_REPOS_LOC} since ${SVN_REPOS_LOC}
|
||||
# already has EPREFIX in it
|
||||
einfo "Initializing the database in ${SVN_REPOS_LOC}..."
|
||||
if [[ -e "${SVN_REPOS_LOC}/repos" ]] ; then
|
||||
echo "A Subversion repository already exists and I will not overwrite it."
|
||||
echo "Delete \"${SVN_REPOS_LOC}/repos\" first if you're sure you want to have a clean version."
|
||||
else
|
||||
mkdir -p "${SVN_REPOS_LOC}/conf"
|
||||
|
||||
einfo "Populating repository directory..."
|
||||
# Create initial repository.
|
||||
"${EROOT}/usr/bin/svnadmin" create "${SVN_REPOS_LOC}/repos"
|
||||
|
||||
einfo "Setting repository permissions..."
|
||||
SVNSERVE_USER="$(. "${EROOT}/etc/conf.d/svnserve"; echo "${SVNSERVE_USER}")"
|
||||
SVNSERVE_GROUP="$(. "${EROOT}/etc/conf.d/svnserve"; echo "${SVNSERVE_GROUP}")"
|
||||
if use apache2 ; then
|
||||
[[ -z "${SVNSERVE_USER}" ]] && SVNSERVE_USER="apache"
|
||||
[[ -z "${SVNSERVE_GROUP}" ]] && SVNSERVE_GROUP="apache"
|
||||
else
|
||||
[[ -z "${SVNSERVE_USER}" ]] && SVNSERVE_USER="svn"
|
||||
[[ -z "${SVNSERVE_GROUP}" ]] && SVNSERVE_GROUP="svnusers"
|
||||
fi
|
||||
chmod -Rf go-rwx "${SVN_REPOS_LOC}/conf"
|
||||
chmod -Rf o-rwx "${SVN_REPOS_LOC}/repos"
|
||||
echo "Please create \"${SVNSERVE_GROUP}\" group if it does not exist yet."
|
||||
echo "Afterwards please create \"${SVNSERVE_USER}\" user with homedir \"${SVN_REPOS_LOC}\""
|
||||
echo "and as part of the \"${SVNSERVE_GROUP}\" group if it does not exist yet."
|
||||
echo "Finally, execute \"chown -Rf ${SVNSERVE_USER}:${SVNSERVE_GROUP} ${SVN_REPOS_LOC}/repos\""
|
||||
echo "to finish the configuration."
|
||||
fi
|
||||
}
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,74 +0,0 @@
|
||||
From 97e165dcf5a851ee10526631d24f9af7736da2e6 Mon Sep 17 00:00:00 2001
|
||||
From: David Faure <faure@kde.org>
|
||||
Date: Thu, 6 Jun 2019 18:10:42 +0200
|
||||
Subject: Fix kontact crash on logout.
|
||||
|
||||
Summary:
|
||||
KMail was creating new Akonadi jobs during mainwindow destruction,
|
||||
due to not testing the bool in GuiActivateEvent.
|
||||
|
||||
Same bt in bug 404881, apparently quitting from the akregator tray icon
|
||||
[which quits all of kontact... separate issue...] gave the same crash.
|
||||
|
||||
BUG: 404881
|
||||
FIXED-IN: 19.04.2
|
||||
|
||||
Test Plan: Run kontact, logout. Hello Drkonqi.
|
||||
|
||||
Reviewers: mlaurent, winterz
|
||||
|
||||
Reviewed By: mlaurent, winterz
|
||||
|
||||
Subscribers: kde-pim
|
||||
|
||||
Tags: #kde_pim
|
||||
|
||||
Differential Revision: https://phabricator.kde.org/D21626
|
||||
---
|
||||
src/kmail_part.cpp | 23 ++++++++++++-----------
|
||||
1 file changed, 12 insertions(+), 11 deletions(-)
|
||||
|
||||
diff --git a/src/kmail_part.cpp b/src/kmail_part.cpp
|
||||
index 703a1ee..96c4c07 100644
|
||||
--- a/src/kmail_part.cpp
|
||||
+++ b/src/kmail_part.cpp
|
||||
@@ -33,6 +33,7 @@
|
||||
|
||||
#include <QVBoxLayout>
|
||||
|
||||
+#include <KParts/GUIActivateEvent>
|
||||
#include <kparts/statusbarextension.h>
|
||||
#include <kparts/mainwindow.h>
|
||||
#include <kpluginfactory.h>
|
||||
@@ -129,18 +130,18 @@ bool KMailPart::openFile()
|
||||
void KMailPart::guiActivateEvent(KParts::GUIActivateEvent *e)
|
||||
{
|
||||
KParts::ReadOnlyPart::guiActivateEvent(e);
|
||||
- mainWidget->initializeFilterActions();
|
||||
- mainWidget->tagActionManager()->createActions();
|
||||
- mainWidget->folderShortcutActionManager()->createActions();
|
||||
- mainWidget->populateMessageListStatusFilterCombo();
|
||||
- mainWidget->initializePluginActions();
|
||||
- /*
|
||||
- FIXME it doesn't work when we switch component.
|
||||
- const QString title = mainWidget->fullCollectionPath();
|
||||
- if (!title.isEmpty()) {
|
||||
- Q_EMIT setWindowCaption(title);
|
||||
+ if (e->activated()) {
|
||||
+ mainWidget->initializeFilterActions();
|
||||
+ mainWidget->tagActionManager()->createActions();
|
||||
+ mainWidget->folderShortcutActionManager()->createActions();
|
||||
+ mainWidget->populateMessageListStatusFilterCombo();
|
||||
+ mainWidget->initializePluginActions();
|
||||
+
|
||||
+ const QString title = mainWidget->fullCollectionPath();
|
||||
+ if (!title.isEmpty()) {
|
||||
+ Q_EMIT setWindowCaption(title);
|
||||
+ }
|
||||
}
|
||||
- */
|
||||
}
|
||||
|
||||
void KMailPart::exit()
|
||||
--
|
||||
cgit v1.1
|
Binary file not shown.
@ -1,52 +0,0 @@
|
||||
From 3eea12e5f9af7739d5d009c6888b65bd4875a554 Mon Sep 17 00:00:00 2001
|
||||
From: Alon Bar-Lev <alon.barlev@gmail.com>
|
||||
Date: Sat, 4 Mar 2017 00:41:35 +0200
|
||||
Subject: [PATCH] crypto: support gnutls-3.4
|
||||
|
||||
https://sourceforge.net/p/opendkim/patches/36/
|
||||
|
||||
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
|
||||
---
|
||||
libopendkim/dkim.c | 19 ++++++++++++++++++-
|
||||
1 file changed, 18 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/libopendkim/dkim.c b/libopendkim/dkim.c
|
||||
index d0d75a5..0c2278e 100644
|
||||
--- a/libopendkim/dkim.c
|
||||
+++ b/libopendkim/dkim.c
|
||||
@@ -5301,6 +5301,8 @@ dkim_sig_process(DKIM *dkim, DKIM_SIGINFO *sig)
|
||||
size_t diglen = 0;
|
||||
#ifdef USE_GNUTLS
|
||||
gnutls_datum_t key;
|
||||
+ gnutls_digest_algorithm_t hash;
|
||||
+ gnutls_sign_algorithm_t sign_algo;
|
||||
#else /* USE_GNUTLS */
|
||||
BIO *key;
|
||||
#endif /* USE_GNUTLS */
|
||||
@@ -5442,7 +5444,22 @@ dkim_sig_process(DKIM *dkim, DKIM_SIGINFO *sig)
|
||||
return DKIM_STAT_OK;
|
||||
}
|
||||
|
||||
- rsastat = gnutls_pubkey_verify_hash(rsa->rsa_pubkey, 0,
|
||||
+ hash = GNUTLS_DIG_SHA1;
|
||||
+
|
||||
+ if (dkim_libfeature(dkim->dkim_libhandle,
|
||||
+ DKIM_FEATURE_SHA256) &&
|
||||
+ sig->sig_hashtype == DKIM_HASHTYPE_SHA256)
|
||||
+ hash = GNUTLS_DIG_SHA256;
|
||||
+
|
||||
+ sign_algo = gnutls_pk_to_sign(GNUTLS_PK_RSA, hash);
|
||||
+ if (sign_algo == GNUTLS_SIGN_UNKNOWN)
|
||||
+ {
|
||||
+ assert(0);
|
||||
+ /* NOTREACHED */
|
||||
+ }
|
||||
+
|
||||
+ rsastat = gnutls_pubkey_verify_hash2(rsa->rsa_pubkey,
|
||||
+ sign_algo, 0,
|
||||
&rsa->rsa_digest,
|
||||
&rsa->rsa_sig);
|
||||
if (rsastat < 0)
|
||||
--
|
||||
2.10.2
|
||||
|
@ -1,170 +0,0 @@
|
||||
From FreeBSD: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=223568
|
||||
--- a/configure.ac 2015-05-12 18:43:09 UTC
|
||||
+++ b/configure.ac
|
||||
@@ -860,26 +860,28 @@ then
|
||||
AC_SEARCH_LIBS([ERR_peek_error], [crypto], ,
|
||||
AC_MSG_ERROR([libcrypto not found]))
|
||||
|
||||
- AC_SEARCH_LIBS([SSL_library_init], [ssl], ,
|
||||
- [
|
||||
- if test x"$enable_shared" = x"yes"
|
||||
- then
|
||||
- AC_MSG_ERROR([Cannot build shared opendkim
|
||||
- against static openssl libraries.
|
||||
- Configure with --disable-shared
|
||||
- to get this working or obtain a
|
||||
- shared libssl library for
|
||||
- opendkim to use.])
|
||||
- fi
|
||||
|
||||
- # avoid caching issue - last result of SSL_library_init
|
||||
- # shouldn't be cached for this next check
|
||||
- unset ac_cv_search_SSL_library_init
|
||||
- LIBCRYPTO_LIBS="$LIBCRYPTO_LIBS -ldl"
|
||||
- AC_SEARCH_LIBS([SSL_library_init], [ssl], ,
|
||||
- AC_MSG_ERROR([libssl not found]), [-ldl])
|
||||
- ]
|
||||
- )
|
||||
+ AC_LINK_IFELSE(
|
||||
+ [AC_LANG_PROGRAM([[#include <openssl/ssl.h>]],
|
||||
+ [[SSL_library_init();]])],
|
||||
+ [od_have_ossl="yes";],
|
||||
+ [od_have_ossl="no";])
|
||||
+ if test x"$od_have_ossl" = x"no"
|
||||
+ then
|
||||
+ if test x"$enable_shared" = x"yes"
|
||||
+ then
|
||||
+ AC_MSG_ERROR([Cannot build shared opendkim
|
||||
+ against static openssl libraries.
|
||||
+ Configure with --disable-shared
|
||||
+ to get this working or obtain a
|
||||
+ shared libssl library for
|
||||
+ opendkim to use.])
|
||||
+ fi
|
||||
+
|
||||
+ LIBCRYPTO_LIBS="$LIBCRYPTO_LIBS -ldl"
|
||||
+ AC_SEARCH_LIBS([SSL_library_init], [ssl], ,
|
||||
+ AC_MSG_ERROR([libssl not found]), [-ldl])
|
||||
+ fi
|
||||
|
||||
AC_CHECK_DECL([SHA256_DIGEST_LENGTH],
|
||||
AC_DEFINE([HAVE_SHA256], 1,
|
||||
--- a/libopendkim/tests/Makefile.in 2015-05-12 18:43:48 UTC
|
||||
+++ b/libopendkim/tests/Makefile.in
|
||||
@@ -1108,8 +1108,10 @@ am__nobase_list = $(am__nobase_strip_setup); \
|
||||
{ print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
|
||||
END { for (dir in files) print dir, files[dir] }'
|
||||
am__base_list = \
|
||||
- sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
|
||||
- sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
|
||||
+ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\
|
||||
+/ /g' | \
|
||||
+ sed '$$!N;$$!N;$$!N;$$!N;s/\
|
||||
+/ /g'
|
||||
am__uninstall_files_from_dir = { \
|
||||
test -z "$$files" \
|
||||
|| { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
|
||||
@@ -4131,16 +4133,19 @@ uninstall-am: uninstall-dist_docDATA
|
||||
@LCOV_TRUE@description.txt: $(check_PROGRAMS) $(check_SCRIPTS)
|
||||
@LCOV_TRUE@ rm -f $@
|
||||
@LCOV_TRUE@ for i in $(check_PROGRAMS); do \
|
||||
-@LCOV_TRUE@ testname=$${i/t-}; \
|
||||
-@LCOV_TRUE@ testname=$${testname//-/_}; \
|
||||
+@LCOV_TRUE@ testname=$${i#t-}; \
|
||||
+@LCOV_TRUE@ testname=$$(echo $${testname} | sed -e 's/-/_/g'); \
|
||||
@LCOV_TRUE@ fgrep '***' $$i.c | tail -n 1 | \
|
||||
-@LCOV_TRUE@ (echo $${testname} ; sed -e 's/[^*]*\*\*\*\(.*\)\\n.*/\t\1\n/g' ) >> $@; \
|
||||
+@LCOV_TRUE@ (echo $${testname} ; sed -e 's/[^*]*\*\*\*\(.*\)\\
|
||||
+@LCOV_TRUE@.*/ \1\
|
||||
+@LCOV_TRUE@/g' ) >> $@; \
|
||||
@LCOV_TRUE@ done
|
||||
@LCOV_TRUE@ for i in $(check_SCRIPTS); do \
|
||||
-@LCOV_TRUE@ testname=$${i/t-}; \
|
||||
-@LCOV_TRUE@ testname=$${testname//-/_}; \
|
||||
+@LCOV_TRUE@ testname=$${i#t-}; \
|
||||
+@LCOV_TRUE@ testname=$$(echo $${testname} | sed -e 's/-/_/g'); \
|
||||
@LCOV_TRUE@ grep '^#' $$i | tail -n 1 | \
|
||||
-@LCOV_TRUE@ (echo $${testname} ; sed -e 's/^# \(.*\)/\t\1\n/g' ) >> $@; \
|
||||
+@LCOV_TRUE@ (echo $${testname} ; sed -e 's/^# \(.*\)/ \1\
|
||||
+@LCOV_TRUE@/g' ) >> $@; \
|
||||
@LCOV_TRUE@ done
|
||||
|
||||
@LCOV_TRUE@description.html: description.txt
|
||||
--- a/libopendkim/dkim-canon.c 2015-05-11 03:56:13 UTC
|
||||
+++ b/libopendkim/dkim-canon.c
|
||||
@@ -388,7 +388,7 @@ dkim_canon_header_string(struct dkim_dstring *dstr, dk
|
||||
}
|
||||
|
||||
/* skip all spaces before first word */
|
||||
- while (*p != '\0' && DKIM_ISWSP(*p))
|
||||
+ while (*p != '\0' && DKIM_ISLWSP(*p))
|
||||
p++;
|
||||
|
||||
space = FALSE; /* just saw a space */
|
||||
--- a/opendkim/tests/Makefile.in 2015-05-12 18:43:49 UTC
|
||||
+++ b/opendkim/tests/Makefile.in
|
||||
@@ -139,8 +139,10 @@ am__nobase_list = $(am__nobase_strip_setup); \
|
||||
{ print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
|
||||
END { for (dir in files) print dir, files[dir] }'
|
||||
am__base_list = \
|
||||
- sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
|
||||
- sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
|
||||
+ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\
|
||||
+/ /g' | \
|
||||
+ sed '$$!N;$$!N;$$!N;$$!N;s/\
|
||||
+/ /g'
|
||||
am__uninstall_files_from_dir = { \
|
||||
test -z "$$files" \
|
||||
|| { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
|
||||
@@ -1298,14 +1300,16 @@ uninstall-am: uninstall-dist_docDATA
|
||||
@LCOV_TRUE@description.txt: $(check_SCRIPTS)
|
||||
@LCOV_TRUE@ rm -f $@
|
||||
@LCOV_TRUE@ for test in $? ; do \
|
||||
-@LCOV_TRUE@ testname=$${test/t-}; \
|
||||
-@LCOV_TRUE@ testname=$${testname//-/_}; \
|
||||
+@LCOV_TRUE@ testname=$${test#t-}; \
|
||||
+@LCOV_TRUE@ testname=$$(echo $${testname} | sed -e 's/-/_/g'); \
|
||||
@LCOV_TRUE@ grep ^# $$test | tail -n 1 | \
|
||||
-@LCOV_TRUE@ sed -e "s/^#\(.*\)/$${testname}\n\t\1\n/g" >> $@; \
|
||||
+@LCOV_TRUE@ sed -e "s/^#\(.*\)/$${testname}\
|
||||
+@LCOV_TRUE@ \1\
|
||||
+@LCOV_TRUE@/g" >> $@; \
|
||||
@LCOV_TRUE@ done
|
||||
|
||||
@LCOV_TRUE@description.html: description.txt
|
||||
-@LCOV_TRUE@ gendesc --output $@ $<
|
||||
+@LCOV_TRUE@ gendesc --output $@ $?
|
||||
|
||||
@LCOV_TRUE@maintainer-clean-local:
|
||||
@LCOV_TRUE@ -rm -rf lcov/[^C]*
|
||||
--- a/opendkim/opendkim-crypto.c 2013-02-25 21:02:41 UTC
|
||||
+++ b/opendkim/opendkim-crypto.c
|
||||
@@ -222,7 +222,11 @@ dkimf_crypto_free_id(void *ptr)
|
||||
{
|
||||
assert(pthread_setspecific(id_key, ptr) == 0);
|
||||
|
||||
+#if OPENSSL_VERSION_NUMBER >= 0x10100000
|
||||
+ OPENSSL_thread_stop();
|
||||
+#else
|
||||
ERR_remove_state(0);
|
||||
+#endif
|
||||
|
||||
free(ptr);
|
||||
|
||||
@@ -392,11 +396,15 @@ dkimf_crypto_free(void)
|
||||
{
|
||||
if (crypto_init_done)
|
||||
{
|
||||
+#if OPENSSL_VERSION_NUMBER >= 0x10100000
|
||||
+ OPENSSL_thread_stop();
|
||||
+#else
|
||||
CRYPTO_cleanup_all_ex_data();
|
||||
CONF_modules_free();
|
||||
EVP_cleanup();
|
||||
ERR_free_strings();
|
||||
ERR_remove_state(0);
|
||||
+#endif
|
||||
|
||||
if (nmutexes > 0)
|
||||
{
|
||||
|
@ -1,15 +0,0 @@
|
||||
[Unit]
|
||||
Description=DomainKeys Identified Mail (DKIM) Milter
|
||||
Documentation=man:opendkim(8) man:opendkim.conf(5) man:opendkim-genkey(8) man:opendkim-genzone(8) man:opendkim-testadsp(8) man:opendkim-testkey http://www.opendkim.org/docs.html
|
||||
After=network.target nss-lookup.target syslog.target
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/sbin/opendkim -f -x /etc/opendkim/opendkim.conf -p $OPENDKIM_SOCKET
|
||||
ExecReload=/bin/kill -USR1 $MAINPID
|
||||
RuntimeDirectory=opendkim
|
||||
RuntimeDirectoryMode=0750
|
||||
User=opendkim
|
||||
Group=opendkim
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
@ -1,18 +0,0 @@
|
||||
# This overrides the "Socket" line in your opendkim.conf configuration
|
||||
# file, and is required (so that we don't have to try to parse the
|
||||
# configuration file in an init script). The default below listens
|
||||
# on the network.
|
||||
#
|
||||
# If you would rather use a local (UNIX) socket, try the following:
|
||||
#
|
||||
# WARNING: The directory containing this socket will have its owner
|
||||
# changed to "opendkim".
|
||||
#
|
||||
#OPENDKIM_SOCKET="local:/run/opendkim/opendkim.sock"
|
||||
#
|
||||
# More examples of valid socket syntax can be found in the opendkim(8)
|
||||
# man page, under the "-p socketspec" option. However -- contrary to
|
||||
# what that man page says -- if you want to use a local socket, the
|
||||
# "local:" prefix is not optional here.
|
||||
#
|
||||
OPENDKIM_SOCKET="inet:8891@localhost"
|
@ -1,73 +0,0 @@
|
||||
#!/sbin/openrc-run
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
CONFFILE="/etc/opendkim/${RC_SVCNAME}.conf"
|
||||
required_files="${CONFFILE}"
|
||||
|
||||
command="/usr/sbin/opendkim"
|
||||
pidfile="/run/${RC_SVCNAME}.pid"
|
||||
command_args="-P ${pidfile} -x ${CONFFILE} -p ${OPENDKIM_SOCKET}"
|
||||
|
||||
depend() {
|
||||
use dns logger net
|
||||
before mta
|
||||
}
|
||||
|
||||
check_cfg() {
|
||||
#
|
||||
# The opendkim.conf man page says,
|
||||
#
|
||||
# For parameters that are Boolean in nature, only the first byte
|
||||
# of the value is processed... For negative values, the following
|
||||
# are accepted: "F", "f", "N", "n", "0".'
|
||||
#
|
||||
if grep --quiet '^[[:space:]]*Background[[:space:]]\+[FfNn0]' \
|
||||
"${CONFFILE}"; then
|
||||
eerror "${RC_SVCNAME} cannot run in the foreground!"
|
||||
return 1
|
||||
fi
|
||||
}
|
||||
|
||||
start_pre() {
|
||||
# If this isn't a restart, make sure that the user's config isn't
|
||||
# busted before we try to start the daemon (this will produce
|
||||
# better error messages than if we just try to start it blindly).
|
||||
#
|
||||
# If, on the other hand, this *is* a restart, then the stop_pre
|
||||
# action will have ensured that the config is usable and we don't
|
||||
# need to do that again.
|
||||
if [ "${RC_CMD}" != "restart" ]; then
|
||||
check_cfg || return $?
|
||||
fi
|
||||
|
||||
if [ -S "${OPENDKIM_SOCKET}" ] && ! fuser -s "${OPENDKIM_SOCKET}"; then
|
||||
# Remove stalled Unix socket if no other process is
|
||||
# using it
|
||||
if ! rm "${UNIX_SOCKET}"; then
|
||||
eerror "failed to remove stale unix socket ${OPENDKIM_SOCKET}"
|
||||
return 2
|
||||
fi
|
||||
fi
|
||||
|
||||
# This relies on the "local:" prefix being there, but the conf.d
|
||||
# file explicitly states that it's not optional (contrary to what
|
||||
# the opendkim(8) man page says).
|
||||
if [ "${OPENDKIM_SOCKET#local:}" != "${OPENDKIM_SOCKET}" ]; then
|
||||
# The socket begins with "local:"
|
||||
OPENDKIM_SOCKET_PATH="${OPENDKIM_SOCKET#local:}"
|
||||
OPENDKIM_SOCKET_DIR="${OPENDKIM_SOCKET_PATH%/*}"
|
||||
|
||||
# This is dangerous, but there's a big warning about it
|
||||
# in the conf.d file.
|
||||
checkpath --directory --owner opendkim "${OPENDKIM_SOCKET_DIR}"
|
||||
fi
|
||||
}
|
||||
|
||||
stop_pre() {
|
||||
# If this is a restart, check to make sure the user's config
|
||||
# isn't busted before we stop the running daemon.
|
||||
if [ "${RC_CMD}" = "restart" ]; then
|
||||
check_cfg || return $?
|
||||
fi
|
||||
}
|
@ -1,11 +0,0 @@
|
||||
[Unit]
|
||||
Description=DomainKeys Identified Mail (DKIM) Milter
|
||||
Documentation=man:opendkim(8) man:opendkim.conf(5) man:opendkim-genkey(8) man:opendkim-genzone(8) man:opendkim-testadsp(8) man:opendkim-testkey http://www.opendkim.org/docs.html
|
||||
After=network.target nss-lookup.target syslog.target
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/sbin/opendkim -f -x /etc/opendkim/opendkim.conf
|
||||
ExecReload=/bin/kill -USR1 $MAINPID
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
@ -1,2 +0,0 @@
|
||||
[Service]
|
||||
Environment="OPENDKIM_SOCKET=inet:8891@localhost"
|
@ -1,230 +0,0 @@
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit autotools db-use eutils systemd tmpfiles user
|
||||
|
||||
DESCRIPTION="A milter providing DKIM signing and verification"
|
||||
HOMEPAGE="http://opendkim.org/"
|
||||
SRC_URI="mirror://sourceforge/opendkim/${P}.tar.gz"
|
||||
|
||||
# The GPL-2 is for the init script, bug 425960.
|
||||
LICENSE="BSD GPL-2 Sendmail-Open-Source"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~x86"
|
||||
IUSE="+berkdb ldap libressl lmdb lua memcached opendbx poll sasl selinux +ssl static-libs test unbound"
|
||||
|
||||
COMMON_DEPEND="|| ( mail-filter/libmilter mail-mta/sendmail )
|
||||
dev-libs/libbsd
|
||||
sys-apps/grep
|
||||
ssl? (
|
||||
!libressl? ( dev-libs/openssl:0= )
|
||||
libressl? ( dev-libs/libressl:0= )
|
||||
)
|
||||
berkdb? ( >=sys-libs/db-3.2:* )
|
||||
opendbx? ( >=dev-db/opendbx-1.4.0 )
|
||||
lua? ( dev-lang/lua:* )
|
||||
ldap? ( net-nds/openldap )
|
||||
lmdb? ( dev-db/lmdb )
|
||||
memcached? ( dev-libs/libmemcached )
|
||||
sasl? ( dev-libs/cyrus-sasl )
|
||||
unbound? ( >=net-dns/unbound-1.4.1:= net-dns/dnssec-root )
|
||||
!unbound? ( net-libs/ldns )"
|
||||
|
||||
DEPEND="${COMMON_DEPEND}
|
||||
test? ( dev-lang/lua:* )"
|
||||
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
sys-process/psmisc
|
||||
selinux? ( sec-policy/selinux-dkim )"
|
||||
|
||||
REQUIRED_USE="sasl? ( ldap )"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${P}-openrc.patch"
|
||||
"${FILESDIR}/${P}-openssl-1.1.1.patch.r2"
|
||||
)
|
||||
|
||||
pkg_setup() {
|
||||
# This user can read your private keys, and must therefore not be
|
||||
# shared with any other package.
|
||||
enewgroup opendkim
|
||||
enewuser opendkim -1 -1 -1 opendkim
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
sed -e 's:/var/db/dkim:/var/lib/opendkim:g' \
|
||||
-i opendkim/opendkim.conf.sample opendkim/opendkim.conf.simple.in \
|
||||
|| die
|
||||
sed -e 's:dist_doc_DATA:dist_html_DATA:' \
|
||||
-i libopendkim/docs/Makefile.am \
|
||||
|| die
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconf=()
|
||||
if use berkdb ; then
|
||||
myconf+=(
|
||||
--with-db-incdir=$(db_includedir)
|
||||
--enable-query_cache
|
||||
--enable-stats
|
||||
)
|
||||
fi
|
||||
if use unbound; then
|
||||
myconf+=( --with-unbound )
|
||||
else
|
||||
myconf+=( --with-ldns )
|
||||
fi
|
||||
if use ldap; then
|
||||
myconf+=( $(use_with sasl) )
|
||||
fi
|
||||
|
||||
# We install the our configuration filed under e.g. /etc/opendkim,
|
||||
# so the next line is necessary to point the daemon and all of its
|
||||
# documentation to the right location by default.
|
||||
myconf+=( --sysconfdir="${EPREFIX}/etc/${PN}" )
|
||||
|
||||
econf \
|
||||
$(use_with berkdb db) \
|
||||
$(use_with opendbx odbx) \
|
||||
$(use_with lua) \
|
||||
$(use_enable lua rbl) \
|
||||
$(use_with ldap openldap) \
|
||||
$(use_with lmdb) \
|
||||
$(use_enable poll) \
|
||||
$(use_enable static-libs static) \
|
||||
$(use_with memcached libmemcached) \
|
||||
"${myconf[@]}" \
|
||||
--enable-filter \
|
||||
--enable-atps \
|
||||
--enable-identity_header \
|
||||
--enable-rate_limit \
|
||||
--enable-resign \
|
||||
--enable-replace_rules \
|
||||
--enable-default_sender \
|
||||
--enable-sender_macro \
|
||||
--enable-vbr \
|
||||
--disable-live-testing \
|
||||
--with-test-socket="${T}/opendkim.sock"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake runstatedir=/run
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
find "${D}" -name '*.la' -type f -delete || die
|
||||
|
||||
dosbin stats/opendkim-reportstats
|
||||
|
||||
newinitd "${S}/contrib/OpenRC/opendkim.openrc" "${PN}"
|
||||
systemd_newtmpfilesd "${S}/contrib/systemd/opendkim.tmpfiles" "${PN}.conf"
|
||||
systemd_newunit "contrib/systemd/opendkim.service" "${PN}.service"
|
||||
|
||||
dodir /etc/opendkim
|
||||
keepdir /var/lib/opendkim
|
||||
|
||||
# The OpenDKIM data (particularly, your keys) should be read-only to
|
||||
# the UserID that the daemon runs as.
|
||||
fowners root:opendkim /var/lib/opendkim
|
||||
fperms 750 /var/lib/opendkim
|
||||
|
||||
# Tweak the "simple" example configuration a bit before installing
|
||||
# it unconditionally.
|
||||
local cf="${T}/opendkim.conf"
|
||||
# Some MTAs are known to break DKIM signatures with "simple"
|
||||
# canonicalization [1], so we choose the "relaxed" policy
|
||||
# over OpenDKIM's current default settings.
|
||||
# [1] https://wordtothewise.com/2016/12/dkim-canonicalization-or-why-microsoft-breaks-your-mail/
|
||||
sed -E -e 's:^(Canonicalization)[[:space:]]+.*:\1\trelaxed/relaxed:' \
|
||||
"${S}/opendkim/opendkim.conf.simple" >"${cf}" || die
|
||||
cat >>"${cf}" <<EOT || die
|
||||
|
||||
# The UMask is really only used for the PID file (root:root) and the
|
||||
# local UNIX socket, if you're using one. It should be 0117 for the
|
||||
# socket.
|
||||
UMask 0117
|
||||
UserID opendkim
|
||||
|
||||
# For use with unbound
|
||||
#TrustAnchorFile /etc/dnssec/root-anchors.txt
|
||||
EOT
|
||||
insinto /etc/opendkim
|
||||
doins "${cf}"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
tmpfiles_process "${PN}.conf"
|
||||
if [[ -z ${REPLACING_VERSION} ]]; then
|
||||
elog "If you want to sign your mail messages and need some help"
|
||||
elog "please run:"
|
||||
elog " emerge --config ${CATEGORY}/${PN}"
|
||||
elog "It will help you create your key and give you hints on how"
|
||||
elog "to configure your DNS and MTA."
|
||||
|
||||
elog "If you are using a local (UNIX) socket, then you will"
|
||||
elog "need to make sure that your MTA has read/write access"
|
||||
elog "to the socket file. This is best accomplished by creating"
|
||||
elog "a completely-new group with only your MTA user and the"
|
||||
elog "\"opendkim\" user in it. Step-by-step instructions can be"
|
||||
elog "found on our Wiki, at https://wiki.gentoo.org/wiki/OpenDKIM ."
|
||||
else
|
||||
ewarn "The user account for the OpenDKIM daemon has changed"
|
||||
ewarn "from \"milter\" to \"opendkim\" to prevent unrelated services"
|
||||
ewarn "from being able to read your private keys. You should"
|
||||
ewarn "adjust your existing configuration to use the \"opendkim\""
|
||||
ewarn "user and group, and change the permissions on"
|
||||
ewarn "${ROOT}var/lib/opendkim to root:opendkim with mode 0750."
|
||||
ewarn "The owner and group of the files within that directory"
|
||||
ewarn "will likely need to be adjusted as well."
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_config() {
|
||||
local selector keysize pubkey
|
||||
|
||||
read -p "Enter the selector name (default ${HOSTNAME}): " selector
|
||||
[[ -n "${selector}" ]] || selector="${HOSTNAME}"
|
||||
if [[ -z "${selector}" ]]; then
|
||||
eerror "Oddly enough, you don't have a HOSTNAME."
|
||||
return 1
|
||||
fi
|
||||
if [[ -f "${ROOT}var/lib/opendkim/${selector}.private" ]]; then
|
||||
ewarn "The private key for this selector already exists."
|
||||
else
|
||||
keysize=1024
|
||||
# Generate the private and public keys. Note that opendkim-genkeys
|
||||
# sets umask=077 on its own to keep these safe. However, we want
|
||||
# them to be readable (only!) to the opendkim user, and we manage
|
||||
# that by changing their groups and making everything group-readable.
|
||||
opendkim-genkey -b ${keysize} -D "${ROOT}"var/lib/opendkim/ \
|
||||
-s "${selector}" -d '(your domain)' && \
|
||||
chgrp --no-dereference opendkim \
|
||||
"${ROOT}var/lib/opendkim/${selector}".{private,txt} || \
|
||||
{ eerror "Failed to create private and public keys."; return 1; }
|
||||
chmod g+r "${ROOT}var/lib/opendkim/${selector}".{private,txt}
|
||||
fi
|
||||
|
||||
# opendkim selector configuration
|
||||
echo
|
||||
einfo "Make sure you have the following settings in your /etc/opendkim/opendkim.conf:"
|
||||
einfo " Keyfile /var/lib/opendkim/${selector}.private"
|
||||
einfo " Selector ${selector}"
|
||||
|
||||
# MTA configuration
|
||||
echo
|
||||
einfo "If you are using Postfix, add following lines to your main.cf:"
|
||||
einfo " smtpd_milters = unix:/run/opendkim/opendkim.sock"
|
||||
einfo " non_smtpd_milters = unix:/run/opendkim/opendkim.sock"
|
||||
einfo " and read http://www.postfix.org/MILTER_README.html"
|
||||
|
||||
# DNS configuration
|
||||
einfo "After you configured your MTA, publish your key by adding this TXT record to your domain:"
|
||||
cat "${ROOT}var/lib/opendkim/${selector}.txt"
|
||||
einfo "t=y signifies you only test the DKIM on your domain. See following page for the complete list of tags:"
|
||||
einfo " http://www.dkim.org/specs/rfc4871-dkimbase.html#key-text"
|
||||
}
|
@ -1,223 +0,0 @@
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit autotools db-use eutils systemd user
|
||||
|
||||
DESCRIPTION="A milter providing DKIM signing and verification"
|
||||
HOMEPAGE="http://opendkim.org/"
|
||||
SRC_URI="mirror://sourceforge/opendkim/${P}.tar.gz"
|
||||
|
||||
# The GPL-2 is for the init script, bug 425960.
|
||||
LICENSE="BSD GPL-2 Sendmail-Open-Source"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~arm x86"
|
||||
IUSE="+berkdb gnutls ldap libressl lmdb lua memcached opendbx poll sasl selinux +ssl static-libs unbound"
|
||||
|
||||
DEPEND="|| ( mail-filter/libmilter mail-mta/sendmail )
|
||||
dev-libs/libbsd
|
||||
ssl? (
|
||||
!libressl? ( dev-libs/openssl:0= )
|
||||
libressl? ( dev-libs/libressl:0= )
|
||||
)
|
||||
berkdb? ( >=sys-libs/db-3.2:* )
|
||||
opendbx? ( >=dev-db/opendbx-1.4.0 )
|
||||
lua? ( dev-lang/lua:* )
|
||||
ldap? ( net-nds/openldap )
|
||||
lmdb? ( dev-db/lmdb )
|
||||
memcached? ( dev-libs/libmemcached )
|
||||
sasl? ( dev-libs/cyrus-sasl )
|
||||
unbound? ( >=net-dns/unbound-1.4.1:= net-dns/dnssec-root )
|
||||
!unbound? ( net-libs/ldns )
|
||||
gnutls? ( >=net-libs/gnutls-3.3 )"
|
||||
|
||||
RDEPEND="${DEPEND}
|
||||
sys-process/psmisc
|
||||
selinux? ( sec-policy/selinux-dkim )
|
||||
"
|
||||
|
||||
REQUIRED_USE="sasl? ( ldap )"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${P}-gnutls-3.4.patch"
|
||||
"${FILESDIR}/${P}-openssl-1.1.1.patch"
|
||||
)
|
||||
|
||||
pkg_setup() {
|
||||
# This user can read your private keys, and must therefore not be
|
||||
# shared with any other package.
|
||||
enewuser opendkim
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# We delete the "Socket" setting because it's overridden by our
|
||||
# conf.d file.
|
||||
sed -e 's:/var/db/dkim:/var/lib/opendkim:g' \
|
||||
-e '/^[[:space:]]*Socket/d' \
|
||||
-i opendkim/opendkim.conf.sample opendkim/opendkim.conf.simple.in \
|
||||
stats/opendkim-reportstats{,.in} || die
|
||||
|
||||
sed -i -e 's:dist_doc_DATA:dist_html_DATA:' libopendkim/docs/Makefile.am \
|
||||
|| die
|
||||
|
||||
# TODO: what purpose does this serve, do the tests even get run?
|
||||
sed -e "/sock.*mt.getcwd/s:mt.getcwd():${T}:" \
|
||||
-i opendkim/tests/*.lua || die
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconf=()
|
||||
if use berkdb ; then
|
||||
myconf+=(
|
||||
$(db_includedir)
|
||||
--with-db-incdir=${myconf#-I}
|
||||
--enable-popauth
|
||||
--enable-query_cache
|
||||
--enable-stats
|
||||
)
|
||||
fi
|
||||
if use unbound; then
|
||||
myconf+=( --with-unbound )
|
||||
else
|
||||
myconf+=( --with-ldns )
|
||||
fi
|
||||
if use ldap; then
|
||||
myconf+=( $(use_with sasl) )
|
||||
fi
|
||||
econf \
|
||||
$(use_with berkdb db) \
|
||||
$(use_with opendbx odbx) \
|
||||
$(use_with lua) \
|
||||
$(use_enable lua rbl) \
|
||||
$(use_with ldap openldap) \
|
||||
$(use_with lmdb) \
|
||||
$(use_enable poll) \
|
||||
$(use_enable static-libs static) \
|
||||
$(use_with gnutls) \
|
||||
$(use_with memcached libmemcached) \
|
||||
"${myconf[@]}" \
|
||||
--enable-filter \
|
||||
--enable-atps \
|
||||
--enable-identity_header \
|
||||
--enable-rate_limit \
|
||||
--enable-resign \
|
||||
--enable-replace_rules \
|
||||
--enable-default_sender \
|
||||
--enable-sender_macro \
|
||||
--enable-vbr \
|
||||
--disable-live-testing
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
prune_libtool_files
|
||||
|
||||
dosbin stats/opendkim-reportstats
|
||||
|
||||
newinitd "${FILESDIR}/opendkim.init.r5" opendkim
|
||||
newconfd "${FILESDIR}/opendkim.confd" opendkim
|
||||
systemd_newunit "${FILESDIR}/opendkim-r3.service" opendkim.service
|
||||
systemd_install_serviced "${FILESDIR}/${PN}.service.conf" "${PN}.service"
|
||||
|
||||
dodir /etc/opendkim
|
||||
keepdir /var/lib/opendkim
|
||||
|
||||
# The OpenDKIM data (particularly, your keys) should be read-only to
|
||||
# the UserID that the daemon runs as.
|
||||
fowners root:opendkim /var/lib/opendkim
|
||||
fperms 750 /var/lib/opendkim
|
||||
|
||||
# Strip the comments out of the "simple" example configuration...
|
||||
grep ^[^#] "${S}"/opendkim/opendkim.conf.simple \
|
||||
> "${T}/opendkim.conf" || die
|
||||
|
||||
# and tweak it a bit before installing it unconditionally.
|
||||
echo "# For use with unbound" >> "${T}/opendkim.conf" || die
|
||||
echo "#TrustAnchorFile /etc/dnssec/root-anchors.txt" \
|
||||
>> "${T}/opendkim.conf" || die
|
||||
echo UserID opendkim >> "${T}/opendkim.conf" || die
|
||||
insinto /etc/opendkim
|
||||
doins "${T}/opendkim.conf"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if [[ -z ${REPLACING_VERSION} ]]; then
|
||||
elog "If you want to sign your mail messages and need some help"
|
||||
elog "please run:"
|
||||
elog " emerge --config ${CATEGORY}/${PN}"
|
||||
elog "It will help you create your key and give you hints on how"
|
||||
elog "to configure your DNS and MTA."
|
||||
|
||||
# TODO: This is tricky, we really need a good wiki page showing
|
||||
# how to share a local socket with an MTA!
|
||||
elog "If you are using a local (UNIX) socket, then you will"
|
||||
elog "need to make sure that your MTA has read/write access"
|
||||
elog "to the socket file. This is best accomplished by creating"
|
||||
elog "a completely-new group with only your MTA user and the "
|
||||
elog "\"opendkim\" user in it. You would then set \"UMask 0112\""
|
||||
elog "in your opendkim.conf, and switch the primary group of your"
|
||||
elog "\"opendkim\" user to the group that you just created. The"
|
||||
elog "last step is necessary for the socket to be created as the"
|
||||
elog "new group (and not as group \"opendkim\")".
|
||||
else
|
||||
ewarn "The user account for the OpenDKIM daemon has changed"
|
||||
ewarn "from \"milter\" to \"opendkim\" to prevent unrelated services"
|
||||
ewarn "from being able to read your private keys. You should"
|
||||
ewarn "adjust your existing configuration to use the \"opendkim\""
|
||||
ewarn "user and group, and change the permissions on"
|
||||
ewarn "${ROOT}var/lib/opendkim to root:opendkim with mode 0750."
|
||||
ewarn "The owner and group of the files within that directory"
|
||||
ewarn "will likely need to be adjusted as well."
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_config() {
|
||||
local selector keysize pubkey
|
||||
|
||||
read -p "Enter the selector name (default ${HOSTNAME}): " selector
|
||||
[[ -n "${selector}" ]] || selector="${HOSTNAME}"
|
||||
if [[ -z "${selector}" ]]; then
|
||||
eerror "Oddly enough, you don't have a HOSTNAME."
|
||||
return 1
|
||||
fi
|
||||
if [[ -f "${ROOT}var/lib/opendkim/${selector}.private" ]]; then
|
||||
ewarn "The private key for this selector already exists."
|
||||
else
|
||||
keysize=1024
|
||||
# Generate the private and public keys. Note that opendkim-genkeys
|
||||
# sets umask=077 on its own to keep these safe. However, we want
|
||||
# them to be readable (only!) to the opendkim user, and we manage
|
||||
# that by changing their groups and making everything group-readable.
|
||||
opendkim-genkey -b ${keysize} -D "${ROOT}"var/lib/opendkim/ \
|
||||
-s "${selector}" -d '(your domain)' && \
|
||||
chgrp --no-dereference opendkim \
|
||||
"${ROOT}var/lib/opendkim/${selector}".{private,txt} || \
|
||||
{ eerror "Failed to create private and public keys." ;
|
||||
return 1; }
|
||||
chmod g+r "${ROOT}var/lib/opendkim/${selector}".{private,txt}
|
||||
fi
|
||||
|
||||
# opendkim selector configuration
|
||||
echo
|
||||
einfo "Make sure you have the following settings in your /etc/opendkim/opendkim.conf:"
|
||||
einfo " Keyfile /var/lib/opendkim/${selector}.private"
|
||||
einfo " Selector ${selector}"
|
||||
|
||||
# MTA configuration
|
||||
echo
|
||||
einfo "If you are using Postfix, add following lines to your main.cf:"
|
||||
einfo " smtpd_milters = unix:/run/opendkim/opendkim.sock"
|
||||
einfo " non_smtpd_milters = unix:/run/opendkim/opendkim.sock"
|
||||
einfo " and read http://www.postfix.org/MILTER_README.html"
|
||||
|
||||
# DNS configuration
|
||||
einfo "After you configured your MTA, publish your key by adding this TXT record to your domain:"
|
||||
cat "${ROOT}var/lib/opendkim/${selector}.txt"
|
||||
einfo "t=y signifies you only test the DKIM on your domain. See following page for the complete list of tags:"
|
||||
einfo " http://www.dkim.org/specs/rfc4871-dkimbase.html#key-text"
|
||||
}
|
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