From 0641d78984ac7af97fae565ae4e09234d9363420 Mon Sep 17 00:00:00 2001 From: Thomas Oettli Date: Thu, 5 Nov 2020 13:31:05 +0100 Subject: [PATCH] add ebuilds for installation on Gentoo --- .../pyinotifyd/pyinotifyd-0.0.1.ebuild | 47 +++++++++++++++++++ .../pyinotifyd/pyinotifyd-9999.ebuild | 47 +++++++++++++++++++ 2 files changed, 94 insertions(+) create mode 100644 distribution/gentoo/dev-python/pyinotifyd/pyinotifyd-0.0.1.ebuild create mode 100644 distribution/gentoo/dev-python/pyinotifyd/pyinotifyd-9999.ebuild diff --git a/distribution/gentoo/dev-python/pyinotifyd/pyinotifyd-0.0.1.ebuild b/distribution/gentoo/dev-python/pyinotifyd/pyinotifyd-0.0.1.ebuild new file mode 100644 index 0000000..ce85cad --- /dev/null +++ b/distribution/gentoo/dev-python/pyinotifyd/pyinotifyd-0.0.1.ebuild @@ -0,0 +1,47 @@ +# Copyright 2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +PYTHON_COMPAT=( python3_{7,8,9} ) +DISTUTILS_USE_SETUPTOOLS=rdepend + +SCM="" +if [ "${PV#9999}" != "${PV}" ] ; then + SCM="git-r3" + EGIT_REPO_URI="https://github.com/spacefreak86/${PN}" +fi + +inherit ${SCM} distutils-r1 systemd + +DESCRIPTION="Monitore filesystems events and execute Python methods or Shell commands." +HOMEPAGE="https://github.com/spacefreak86/pymodmilter" +if [ "${PV#9999}" != "${PV}" ] ; then + SRC_URI="" + KEYWORDS="" + # Needed for tests + S="${WORKDIR}/${PN}" + EGIT_CHECKOUT_DIR="${S}" +else + SRC_URI="https://github.com/spacefreak86/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="amd64 x86" +fi + +LICENSE="GPL-3" +SLOT="0" + +IUSE="systemd" + +RDEPEND="dev-python/pyinotify[${PYTHON_USEDEP}]" + +python_install_all() { + distutils-r1_python_install_all + + dodir /etc/${PN} + insinto /etc/${PN} + newins ${PN}/docs/config.py.example config.py + + use systemd && systemd_dounit ${PN}/misc/${PN}.service + + newinitd ${PN}/misc/openrc/${PN}.initd ${PN} + newconfd ${PN}/misc/openrc/${PN}.confd ${PN} +} diff --git a/distribution/gentoo/dev-python/pyinotifyd/pyinotifyd-9999.ebuild b/distribution/gentoo/dev-python/pyinotifyd/pyinotifyd-9999.ebuild new file mode 100644 index 0000000..ce85cad --- /dev/null +++ b/distribution/gentoo/dev-python/pyinotifyd/pyinotifyd-9999.ebuild @@ -0,0 +1,47 @@ +# Copyright 2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +PYTHON_COMPAT=( python3_{7,8,9} ) +DISTUTILS_USE_SETUPTOOLS=rdepend + +SCM="" +if [ "${PV#9999}" != "${PV}" ] ; then + SCM="git-r3" + EGIT_REPO_URI="https://github.com/spacefreak86/${PN}" +fi + +inherit ${SCM} distutils-r1 systemd + +DESCRIPTION="Monitore filesystems events and execute Python methods or Shell commands." +HOMEPAGE="https://github.com/spacefreak86/pymodmilter" +if [ "${PV#9999}" != "${PV}" ] ; then + SRC_URI="" + KEYWORDS="" + # Needed for tests + S="${WORKDIR}/${PN}" + EGIT_CHECKOUT_DIR="${S}" +else + SRC_URI="https://github.com/spacefreak86/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="amd64 x86" +fi + +LICENSE="GPL-3" +SLOT="0" + +IUSE="systemd" + +RDEPEND="dev-python/pyinotify[${PYTHON_USEDEP}]" + +python_install_all() { + distutils-r1_python_install_all + + dodir /etc/${PN} + insinto /etc/${PN} + newins ${PN}/docs/config.py.example config.py + + use systemd && systemd_dounit ${PN}/misc/${PN}.service + + newinitd ${PN}/misc/openrc/${PN}.initd ${PN} + newconfd ${PN}/misc/openrc/${PN}.confd ${PN} +}