From ff1a536981117279cd7abbcd79d9c72f7e221cfe Mon Sep 17 00:00:00 2001 From: Bertrand Jacquin Date: Mon, 11 Mar 2024 20:03:32 +0000 Subject: net-im/slidge: new package, add 0.20240217 --- net-im/slidge/files/slidge@.service | 15 +++++++++++++ net-im/slidge/metadata.xml | 8 +++++++ net-im/slidge/slidge-0.20240217.ebuild | 41 ++++++++++++++++++++++++++++++++++ 3 files changed, 64 insertions(+) create mode 100644 net-im/slidge/files/slidge@.service create mode 100644 net-im/slidge/metadata.xml create mode 100644 net-im/slidge/slidge-0.20240217.ebuild (limited to 'net-im') diff --git a/net-im/slidge/files/slidge@.service b/net-im/slidge/files/slidge@.service new file mode 100644 index 00000000..dff565a3 --- /dev/null +++ b/net-im/slidge/files/slidge@.service @@ -0,0 +1,15 @@ +[Unit] +Description=Slidge XMPP %i bridge +Wants=network-online.target +After=network.target network-online.target + +[Service] +ExecStart=/usr/bin/slidge -c /etc/slidge/%i.conf +KillSignal=SIGINT +User=slidge +Group=slidge +Restart=on-failure +RestartSec=5s + +[Install] +WantedBy=multi-user.target diff --git a/net-im/slidge/metadata.xml b/net-im/slidge/metadata.xml new file mode 100644 index 00000000..82f7232e --- /dev/null +++ b/net-im/slidge/metadata.xml @@ -0,0 +1,8 @@ + + + + + bertrand@jacquin.bzh + Bertrand Jacquin + + diff --git a/net-im/slidge/slidge-0.20240217.ebuild b/net-im/slidge/slidge-0.20240217.ebuild new file mode 100644 index 00000000..a76086ea --- /dev/null +++ b/net-im/slidge/slidge-0.20240217.ebuild @@ -0,0 +1,41 @@ +# Copyright 2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +PYTHON_COMPAT=( python3_{11..12} ) +DISTUTILS_USE_PEP517=poetry + +inherit git-r3 distutils-r1 systemd + +DESCRIPTION="Slidge is an XMPP (puppeteer) gateway library in python" +HOMEPAGE="https://git.sr.ht/~nicoco/slidge" + +EGIT_REPO_URI="https://git.sr.ht/~nicoco/slidge" +EGIT_COMMIT="72ce4cc08314ed12c2552038070b36492c517ab6" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64" + +DEPEND=">=dev-python/qrcode-7.4.1[${PYTHON_USEDEP}] + >=dev-python/pillow-10[${PYTHON_USEDEP}] + >=dev-python/aiohttp-3.8.3[${PYTHON_USEDEP}] + >=dev-python/ConfigArgParse-1.5.3[${PYTHON_USEDEP}] + >=dev-python/pickle-secure-0.99.9[${PYTHON_USEDEP}] + >=dev-python/python-magic-0.4.27[${PYTHON_USEDEP}] + >=dev-python/slixmpp-1.8.5[${PYTHON_USEDEP}] + >=dev-python/blurhash-python-1.2.1[${PYTHON_USEDEP}]" +RDEPEND="${DEPEND} + acct-user/slidge + acct-group/slidge" + +distutils_enable_tests pytest + +src_install () { + distutils-r1_src_install + + insinto /etc/slidge/conf.d + newins dev/confs/slidge-example.ini common.conf + + systemd_dounit "${FILESDIR}/slidge@.service" +} -- cgit v1.2.3