diff options
author | Bertrand Jacquin <bertrand@jacquin.bzh> | 2024-03-11 20:03:32 +0000 |
---|---|---|
committer | Bertrand Jacquin <bertrand@jacquin.bzh> | 2024-03-11 22:24:05 +0000 |
commit | ff1a536981117279cd7abbcd79d9c72f7e221cfe (patch) | |
tree | 94febd6881b9642e91ae42e3384fcf3256850fef /net-im/slidge | |
parent | acct-user/slidge: new package, add 0 (diff) | |
download | portage-ff1a536981117279cd7abbcd79d9c72f7e221cfe.tar.xz |
net-im/slidge: new package, add 0.20240217
Diffstat (limited to 'net-im/slidge')
-rw-r--r-- | net-im/slidge/files/slidge@.service | 15 | ||||
-rw-r--r-- | net-im/slidge/metadata.xml | 8 | ||||
-rw-r--r-- | net-im/slidge/slidge-0.20240217.ebuild | 41 |
3 files changed, 64 insertions, 0 deletions
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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>bertrand@jacquin.bzh</email> + <name>Bertrand Jacquin</name> + </maintainer> +</pkgmetadata> 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" +} |