# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 inherit unpacker tmpfiles DESCRIPTION="general puppet client utils along with facter" HOMEPAGE="https://voxpupuli.org/openvox" SRC_URI="amd64? ( https://apt.voxpupuli.org/pool/openvox${PV:0:1}/${PN:0:1}/${PN}/${PN}_${PV}-1+debian13_amd64.deb ) arm64? ( https://apt.voxpupuli.org/pool/openvox${PV:0:1}/${PN:0:1}/${PN}/${PN}_${PV}-1+debian13_arm64.deb )" S=${WORKDIR} LICENSE="Apache-2.0" SLOT="0" KEYWORDS="amd64 ~arm64" IUSE="puppetdb selinux" RESTRICT="strip" RDEPEND="${CDEPEND} acct-user/puppet acct-group/puppet app-portage/eix sys-apps/lsb-release sys-libs/libselinux selinux? ( sec-policy/selinux-puppet ) puppetdb? ( app-admin/openvoxdb-termini ) virtual/libcrypt !app-admin/puppet !dev-ruby/facter !app-admin/puppet-agent" src_install() { rm -rf "${S}/run" "${S}/usr/share/doc/openvox-agent" cp -a "${S}/"* "${D}/" || die "Install failed!" keepdir var/log/puppetlabs/puppet/ keepdir opt/puppetlabs/facter/facter.d newinitd "${FILESDIR}/puppet.initd2" puppet doconfd etc/default/puppet dosym ../../opt/puppetlabs/bin/facter /usr/bin/facter dosym ../../opt/puppetlabs/bin/puppet /usr/bin/puppet } pkg_postinst() { tmpfiles_process puppet-agent.conf }