# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 inherit rpm DESCRIPTION="Puppet Server is the next-generation application for managing Puppet agents" HOMEPAGE="https://voxpupuli.org/openvox/" SRC_URI="https://yum.voxpupuli.org/openvox8/el/10/x86_64/${PN}-${PV}-1.el10.noarch.rpm" S="${WORKDIR}" LICENSE="Apache-2.0" SLOT="0" KEYWORDS="amd64 ~arm64" IUSE="puppetdb" RPM_COMPRESS_TYPE="zstd" RDEPEND+=" >=virtual/jre-17 app-admin/openvox-agent[puppetdb?] !app-admin/puppetserver" DEPEND+="acct-user/puppet acct-group/puppet" src_install() { cp -a "${S}/"* "${D}/" || die "Install failed!" keepdir var/log/puppetlabs/puppetserver keepdir var/run/puppetlabs/puppetserver dosym ../../opt/puppetlabs/server/apps/puppetserver/bin/puppetserver /usr/bin/puppetserver newinitd "${FILESDIR}/puppetserver.initd" puppetserver newconfd "${S}/etc/sysconfig/puppetserver" puppetserver }