From 23cd9a9b772eb6bd5dc80a099264d4ba3f57ab9b Mon Sep 17 00:00:00 2001 From: Thomas Oettli Date: Sat, 18 Jul 2026 21:34:18 +0200 Subject: [PATCH] Add Gentoo ebuild --- distribution/gentoo/dns-manager-9999.ebuild | 50 +++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 distribution/gentoo/dns-manager-9999.ebuild diff --git a/distribution/gentoo/dns-manager-9999.ebuild b/distribution/gentoo/dns-manager-9999.ebuild new file mode 100644 index 0000000..58b02be --- /dev/null +++ b/distribution/gentoo/dns-manager-9999.ebuild @@ -0,0 +1,50 @@ +# Copyright 2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +PYTHON_COMPAT=( python3_{11..14}) +DISTUTILS_USE_PEP517=setuptools + +SCM="" +if [ "${PV#9999}" != "${PV}" ] ; then + SCM="git-r3" + EGIT_REPO_URI="https://git.ccc-rheintal.ch/spacefreak/${PN}" + EGIT_BRANCH="master" +fi + +inherit ${SCM} distutils-r1 systemd + +DESCRIPTION="" +HOMEPAGE="https://git.ccc-rheintal.ch/spacefreak/dns-manager/" +if [ "${PV#9999}" != "${PV}" ] ; then + SRC_URI="" + KEYWORDS="" + # Needed for tests + S="${WORKDIR}/${PN}" + EGIT_CHECKOUT_DIR="${S}" +else + SRC_URI="https://git-ccc-rheintal.ch/spacefreak/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="amd64 x86" +fi + +LICENSE="GPL-3" +SLOT="0" +IUSE="" + +DEPEND="dev-python/dnspython[${PYTHON_USEDEP}] + dev-python/prettytable[${PYTHON_USEDEP}] + dev-python/pyyaml[${PYTHON_USEDEP}] + net-dns/bind" +RDEPEND="${DEPEND}" + +python_install_all() { + insinto /etc/${PN} + doins files/config.yml + + insinto /etc/${PN}/templates + doins files/templates/*.template + + keepdir /etc/${PN}/default.zones + + distutils-r1_python_install_all +}