openvox now in portage

This commit is contained in:
2026-05-19 19:54:32 +02:00
parent 17c41283ae
commit 62f4e69494
21 changed files with 10 additions and 695 deletions
-5
View File
@@ -1,5 +0,0 @@
AUX puppet-systemd.patch 481 BLAKE2B 8ca58755e5c3a235c60eed11c98e20bbd3cb27c81531709b27981ee61f6f5dea63d2487d49761ff84e7590b608c170bcd369fe7ef3700a5df1bd03b29c66ec71 SHA512 08bb997cedea378efa4614e4b2ff04acdd68cdc376fde422677b64dc56b8256ecf7221210c20529bb5a9a49fa8c92f67667c7acd6ac64b665e79639318a3df97
AUX puppet.init 751 BLAKE2B b873fd1e51e2b5c148d31da4f861ee8cc60c71ef7950f10f1ba78c8ce740fcc67d8fbcd274667c383f2e7f83b2c6f76abc138348cc172f02f667b766ecf302fa SHA512 566912034aa2e1306a65d59fafdfaf3d660693331c4f5020611bc806e7e5aa14047122bc31e229fd5ab9eb48979c04c436fbb5aa765f598b7416839b67640655
AUX tmpfiles.d-2 35 BLAKE2B 333994788552e5c52273752f4e3c2947666737d03f9d340e16ada790607efe77da1ba9bb4852bc8274174fbb96ce0c7ae81062f7197e63ea4701e539b2650b3b SHA512 fdf00147c497bd822a14f0e42bad825a43ce0977ec6c0265d267dedeef56295e3ce319f7972d0ec2ab9f04f2407856947f4261d6e62054a36c6e1672b45f86f0
DIST openvox-8.27.0.tar.gz 3748596 BLAKE2B 6c2406f8865529c7b17ecc552a76fc081edb72254a791cc19afd63e51ce35d58a297db7b575bca9d143e60b97add522231e48469d1737706659a6ee907ccc14e SHA512 1660e9b864a2645e0dcd00bbec35616b48cf351489e0549e679cccde5f01dc36b2c87a986bae745eb276ff66295f4590f596a97d2309526d2da99507ff63645a
EBUILD openvox-8.27.0.ebuild 2986 BLAKE2B fccc42584e6eef600434f5cf451d0d458ea2b2ba387008accd5318948bcab24fc4b0c4fd9f477f2ed77623a29e7843fd010ece0b1630665ad5231f714f23fde0 SHA512 1d5007daeb5204fc7629964ffa52dc81ad8331528c3c6743e9d77ed8516b306153dee60d8ccb3e0bb95b8798634309a80a574c6bdc492d3e377ffc8c4a49559d
@@ -1,10 +0,0 @@
--- ext/systemd/puppet.service 2017-02-02 18:28:58.000000000 -0600
+++ ext/systemd/puppet.service 2017-03-09 10:56:59.091489324 -0600
@@ -17,7 +17,7 @@
EnvironmentFile=-/etc/sysconfig/puppetagent
EnvironmentFile=-/etc/sysconfig/puppet
EnvironmentFile=-/etc/default/puppet
-ExecStart=/opt/puppetlabs/puppet/bin/puppet agent $PUPPET_EXTRA_OPTS --no-daemonize
+ExecStart=/usr/bin/puppet agent $PUPPET_EXTRA_OPTS --no-daemonize
ExecReload=/bin/kill -HUP $MAINPID
KillMode=process
-29
View File
@@ -1,29 +0,0 @@
#!/sbin/openrc-run
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
PUPPET_PID_DIR="${PUPPET_PID_DIR:-/run/puppet}"
pidfile="${PUPPET_PID_DIR}/puppet.pid"
PUPPET_LOG_DIR="/var/log/puppet"
command="/usr/bin/puppet"
extra_started_commands="reload"
command_args="agent --pidfile ${pidfile} --confdir /etc/puppetlabs/puppet ${PUPPET_EXTRA_OPTS}"
depend() {
need localmount
use dns logger puppetmaster netmount
}
start_pre() {
checkpath --directory --owner puppet:puppet "${PUPPET_PID_DIR}"
checkpath --directory --owner puppet:puppet --mode 750 ${PUPPET_LOG_DIR}
}
reload() {
ebegin "Reloading $RC_SVCNAME"
start-stop-daemon --signal SIGHUP --pidfile "${pidfile}"
eend $?
}
-1
View File
@@ -1 +0,0 @@
D /run/puppet 0755 puppet puppet -
-117
View File
@@ -1,117 +0,0 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="7"
USE_RUBY="ruby33 ruby34"
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://voxpupuli.org/openvox/"
SRC_URI="https://github.com/OpenVoxProject/openvox/archive/refs/tags/${PV}.tar.gz -> ${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 hiera ldap rrdtool selinux shadow sqlite vim-syntax"
RESTRICT="test"
ruby_add_rdepend "
hiera? ( dev-ruby/hiera )
dev-ruby/json:=
dev-ruby/semantic_puppet
>=dev-ruby/facter-4.4.1
dev-ruby/deep_merge
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
!app-admin/puppet
!app-admin/puppet-agent"
PDEPEND="emacs? ( >=app-emacs/puppet-mode-0.3-r1 )"
all_ruby_prepare() {
# fix systemd path
eapply -p0 "${FILESDIR}/puppet-systemd.patch"
}
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-2" "puppet.conf"
# openrc init stuff
newinitd "${FILESDIR}"/puppet.init 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
}
-2
View File
@@ -1,2 +0,0 @@
DIST pdk_3.0.1.3-1bullseye_amd64.deb 120361070 BLAKE2B 1d9b885aebe1960ead9c0fdc6ac8751016f6a7a2504e6c5c46bb4bf54a328c8982dedd9fefbb424564390738f284d4f2635a7e1c43e3be341d171254150fabd7 SHA512 a291824a229c61ddf559a5bb40202f1f57076d5626abf647d92d570c8075738baa4649bc414dcad948110089d5aad613377d81ab0deb38d78f259d2fcab2e8dc
EBUILD pdk-3.0.1.3.ebuild 892 BLAKE2B 02cc743b36be5984499c31ce0dc4e6b7106da1c93192e678020cafee7e5981b62f88307e92cd0a62aad95f318931f6a2ebc5534ba17c3029177b8e657fc4d349 SHA512 59cef997abcff199ebbbf8c50435f338e01082aa92bfae4193996eba36911702c8f7ff8dcba0e7a7769ab21ecfdb418d73c30e191aea2105263b9a0986002eea
-41
View File
@@ -1,41 +0,0 @@
# Copyright 1999-2018 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit unpacker
DEB_RELEASE="bullseye"
DESCRIPTION="Puppet SDK - develop and test puppet modules"
HOMEPAGE="https://puppetlabs.com/"
SRC_BASE="http://apt.puppetlabs.com/pool/${DEB_RELEASE}/puppet/${PN:0:1}/${PN}/${PN}_${PV}-1${DEB_RELEASE}"
SRC_URI="
amd64? ( ${SRC_BASE}_amd64.deb )
"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64"
IUSE=""
RESTRICT="strip"
S=${WORKDIR}
RDEPEND="virtual/libcrypt:="
QA_PREBUILT="
/opt/puppetlabs/pdk
/opt/puppetlabs/pdk/lib/engines/*
/opt/puppetlabs/pdk/lib/*
/opt/puppetlabs/pdk/bin/*"
src_install() {
# Drop the opt folder into place
insinto /opt
doins -r opt/*
# make binaries executable
find "${D}/opt/puppetlabs/pdk/" -type d -name bin -exec chmod 0755 -R "{}" ";"
dosym ../../opt/puppetlabs/pdk/bin/pdk /usr/bin/pdk
}