aboutsummaryrefslogtreecommitdiff
path: root/net-im/heisenbridge
diff options
context:
space:
mode:
Diffstat (limited to 'net-im/heisenbridge')
-rw-r--r--net-im/heisenbridge/Manifest1
-rw-r--r--net-im/heisenbridge/files/heisenbridge-1.14.1-qanotice.patch13
-rw-r--r--net-im/heisenbridge/files/heisenbridge.confd21
-rw-r--r--net-im/heisenbridge/files/heisenbridge.initd24
-rw-r--r--net-im/heisenbridge/files/heisenbridge.service12
-rw-r--r--net-im/heisenbridge/heisenbridge-1.14.1.ebuild60
-rw-r--r--net-im/heisenbridge/metadata.xml18
7 files changed, 0 insertions, 149 deletions
diff --git a/net-im/heisenbridge/Manifest b/net-im/heisenbridge/Manifest
deleted file mode 100644
index 16459fc..0000000
--- a/net-im/heisenbridge/Manifest
+++ /dev/null
@@ -1 +0,0 @@
-DIST heisenbridge-1.14.1.gh.tar.gz 66220 BLAKE2B 79e63dcdc7e29a581b3a19b3c72775ced659092888e73f2a4322470bd1f2dd59ea2991ad054dd2c1a8b2e261a7988793e16d29744fb34a9fc2664bfe93f0f42a SHA512 f952261000ad6fd1b5793d1c18b952d13faea5afa2ac7798a22768e5ef31b620d9cc4cb73617c3e124dc1087a98785ba274747e9f85718533d5ba20dd7af5de2
diff --git a/net-im/heisenbridge/files/heisenbridge-1.14.1-qanotice.patch b/net-im/heisenbridge/files/heisenbridge-1.14.1-qanotice.patch
deleted file mode 100644
index 41e9036..0000000
--- a/net-im/heisenbridge/files/heisenbridge-1.14.1-qanotice.patch
+++ /dev/null
@@ -1,13 +0,0 @@
-diff --git a/setup.cfg b/setup.cfg
-index cf5b701..7911ec6 100644
---- a/setup.cfg
-+++ b/setup.cfg
-@@ -7,7 +7,7 @@ url = https://github.com/hifi/heisenbridge
- author = Toni Spets (hifi)
- author_email = toni.spets@iki.fi
- license = MIT license
--license_file = LICENSE
-+license_files = LICENSE
-
- [options]
- packages =
diff --git a/net-im/heisenbridge/files/heisenbridge.confd b/net-im/heisenbridge/files/heisenbridge.confd
deleted file mode 100644
index cb4d34e..0000000
--- a/net-im/heisenbridge/files/heisenbridge.confd
+++ /dev/null
@@ -1,21 +0,0 @@
-# Path to the registration file
-# Default: /var/lib/heisenbridge/registration.yaml
-REGISTRATION=/var/lib/heisenbridge/registration.yaml
-
-# Listen address
-# Default: 127.0.0.1
-LISTEN_ADDRESS=127.0.0.1
-
-# Listen port
-# Default: 9898
-LISTEN_PORT=9898
-
-# Owner
-# Generally should be the admin of the home server
-# For example: @user:home.server
-# Default: not set
-# OWNER=@user:example.com
-
-# Homeserver
-# Must be set
-HOMESERVER=https://example.com \ No newline at end of file
diff --git a/net-im/heisenbridge/files/heisenbridge.initd b/net-im/heisenbridge/files/heisenbridge.initd
deleted file mode 100644
index b5af350..0000000
--- a/net-im/heisenbridge/files/heisenbridge.initd
+++ /dev/null
@@ -1,24 +0,0 @@
-#!/sbin/openrc-run
-# Copyright 1999-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-name="heisenbridge daemon"
-description="a bouncer-style Matrix IRC bridge"
-
-pidfile="/run/${RC_SVCNAME}.pid"
-command="/usr/bin/python"
-command_args="-m heisenbridge -c ${REGISTRATION} -l ${LISTEN_ADDRESS} -p ${LISTEN_PORT} ${HOMESERVER}"
-command_background=true
-command_user="heisenbridge:heisenbridge"
-
-output_log="/var/log/heisenbridge.log"
-error_log="/var/log/heisenbridge.log"
-
-depend() {
- need net
-}
-
-start_pre() {
- checkpath -d -m 0755 -o "$command_user" /var/lib/heisenbridge
- checkpath -f -m 0644 -o "$command_user" "$output_log"
-}
diff --git a/net-im/heisenbridge/files/heisenbridge.service b/net-im/heisenbridge/files/heisenbridge.service
deleted file mode 100644
index b140c3d..0000000
--- a/net-im/heisenbridge/files/heisenbridge.service
+++ /dev/null
@@ -1,12 +0,0 @@
-[Unit]
-Description=a bouncer-style Matrix IRC bridge
-After=network.target
-
-[Service]
-User=heisenbridge
-Group=heisenbridge
-Restart=always
-ExecStart=/usr/bin/python -m heisenbridge -c ${REGISTRATION} -r -l ${LISTEN_ADDRESS} -p ${LISTEN_PORT} ${HOMESERVER}
-
-[Install]
-WantedBy=multi-user.target \ No newline at end of file
diff --git a/net-im/heisenbridge/heisenbridge-1.14.1.ebuild b/net-im/heisenbridge/heisenbridge-1.14.1.ebuild
deleted file mode 100644
index cc4a9a2..0000000
--- a/net-im/heisenbridge/heisenbridge-1.14.1.ebuild
+++ /dev/null
@@ -1,60 +0,0 @@
-# Copyright 2022-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( python3_{9..10} )
-
-inherit distutils-r1 systemd
-
-DESCRIPTION="A bouncer-style Matrix IRC bridge"
-HOMEPAGE="https://github.com/hifi/heisenbridge/"
-SRC_URI="https://github.com/hifi/heisenbridge/archive/v${PV}.tar.gz -> ${P}.gh.tar.gz"
-
-LICENSE="MIT"
-SLOT="0"
-KEYWORDS="~amd64"
-IUSE="test"
-RESTRICT="!test? ( test )"
-
-RDEPEND="
- acct-user/${PN}
- dev-python/irc[${PYTHON_USEDEP}]
- dev-python/mautrix[${PYTHON_USEDEP}]
- dev-python/python-socks[${PYTHON_USEDEP}]
- dev-python/ruamel-yaml[${PYTHON_USEDEP}]
-"
-DEPEND="${RDEPEND}"
-
-PATCHES=(
- "${FILESDIR}/heisenbridge-1.14.1-qanotice.patch"
-)
-
-distutils_enable_tests pytest
-
-src_install() {
- distutils-r1_src_install
-
- newinitd "${FILESDIR}/heisenbridge.initd" "${PN}"
- newconfd "${FILESDIR}/heisenbridge.confd" "${PN}"
- systemd_dounit "${FILESDIR}/${PN}.service"
-}
-
-pkg_postinst() {
- einfo
- elog "Before you can use ${PN}, you must configure it correctly"
- elog "The configuration file is located at /etc/conf.d/${PN}"
- elog "Then, you must generate the registration file using the following command"
- elog "If you are using synapse:"
- elog "/usr/bin/python -m ${PN} -c /var/lib/${PN}/registration.yaml --generate https://example.com"
- elog "If you are using Dendrite, Conduit or others:"
- elog "/usr/bin/python -m ${PN} -c /var/lib/${PN}/registration.yaml --generate-compat https://example.com"
- elog "Notice the URL at the end, replace it with your homeserver's URL"
- elog "Then, you must register the bridge with your homeserver"
- elog "Refer to your homeserver's documentation for instructions"
- elog "The registration file is located at /var/lib/${PN}/registration.yaml"
- elog "Finally, you may start the ${PN} daemon"
- einfo
-
-}
diff --git a/net-im/heisenbridge/metadata.xml b/net-im/heisenbridge/metadata.xml
deleted file mode 100644
index ca25c60..0000000
--- a/net-im/heisenbridge/metadata.xml
+++ /dev/null
@@ -1,18 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
- <maintainer type="person">
- <email>julien@jroy.ca</email>
- <description>Julien Roy</description>
- </maintainer>
- <upstream>
- <maintainer>
- <name>Toni Spets</name>
- <email>toni.spets@iki.fi</email>
- </maintainer>
- <changelog>https://github.com/hifi/heisenbridge/releases</changelog>
- <bugs-to>https://github.com/hifi/heisenbridge/issues</bugs-to>
- <remote-id type="github">hifi/heisenbridge</remote-id>
- <remote-id type="pypi">heisenbridge</remote-id>
- </upstream>
-</pkgmetadata>