summaryrefslogtreecommitdiffstats
path: root/heisenbridge
diff options
context:
space:
mode:
authorYigit Sever2023-06-08 01:18:21 +0300
committerYigit Sever2023-06-08 01:18:21 +0300
commitfba206f0a227daaa2180d8574231006e29452fbe (patch)
tree577986a9018f29f47a3c863d8b64308028688964 /heisenbridge
parent8f41a18fbba03e13f90904523993cab4abbbc0bc (diff)
downloadpackages-fba206f0a227daaa2180d8574231006e29452fbe.tar.gz
packages-fba206f0a227daaa2180d8574231006e29452fbe.tar.bz2
packages-fba206f0a227daaa2180d8574231006e29452fbe.zip
Deleted package: heisenbridge
Diffstat (limited to 'heisenbridge')
-rw-r--r--heisenbridge/.SRCINFO26
-rw-r--r--heisenbridge/PKGBUILD52
-rw-r--r--heisenbridge/heisenbridge.install7
-rw-r--r--heisenbridge/heisenbridge.service12
-rw-r--r--heisenbridge/heisenbridge.sysusers1
-rw-r--r--heisenbridge/heisenbridge.tmpfiles2
6 files changed, 0 insertions, 100 deletions
diff --git a/heisenbridge/.SRCINFO b/heisenbridge/.SRCINFO
deleted file mode 100644
index 56fbd0c..0000000
--- a/heisenbridge/.SRCINFO
+++ /dev/null
@@ -1,26 +0,0 @@
1pkgbase = heisenbridge
2 pkgdesc = a bouncer-style Matrix IRC bridge
3 pkgver = 1.14.2
4 pkgrel = 1
5 url = https://github.com/hifi/heisenbridge
6 install = heisenbridge.install
7 arch = any
8 license = MIT
9 makedepends = python-setuptools
10 makedepends = python-pytest-runner
11 depends = python
12 depends = python-irc
13 depends = python-ruamel-yaml
14 depends = python-aiohttp-socks
15 depends = python-mautrix
16 backup = etc/heisenbridge/registration.yaml
17 source = heisenbridge-1.14.2.tar.gz::https://github.com/hifi/heisenbridge/archive/v1.14.2.tar.gz
18 source = heisenbridge.service
19 source = heisenbridge.sysusers
20 source = heisenbridge.tmpfiles
21 sha256sums = 363d33fe1cb8794e0181174b7aa8a59e03cba6703f1b7a9a96e2384ce5248ad9
22 sha256sums = 67487b221bff329952f5c95186c4ea794c7e7a3e25e6d213075fd306c68cfa95
23 sha256sums = b3bc4328ead7afd186d5a191fabc347543c0fad17dc01047a4cf0532d999f255
24 sha256sums = 24bd23e4427aaf635a91b170c07abe8a6b1c62cbad47e50a161c12807641d351
25
26pkgname = heisenbridge
diff --git a/heisenbridge/PKGBUILD b/heisenbridge/PKGBUILD
deleted file mode 100644
index 15ed733..0000000
--- a/heisenbridge/PKGBUILD
+++ /dev/null
@@ -1,52 +0,0 @@
1# Maintainer: Yigit Sever <yigit at yigitsever dot com>
2# Contributor: Bjoern Franke <bjo+aur@schafweide.org>
3
4pkgname=heisenbridge
5pkgver=1.14.2
6pkgrel=1
7pkgdesc="a bouncer-style Matrix IRC bridge"
8url="https://github.com/hifi/heisenbridge"
9depends=('python' 'python-irc' 'python-ruamel-yaml' 'python-aiohttp-socks'
10 'python-mautrix')
11makedepends=('python-setuptools' 'python-pytest-runner')
12license=('MIT')
13arch=('any')
14source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz" "${pkgname}.service" "${pkgname}.sysusers" "${pkgname}.tmpfiles")
15sha256sums=('363d33fe1cb8794e0181174b7aa8a59e03cba6703f1b7a9a96e2384ce5248ad9'
16 '67487b221bff329952f5c95186c4ea794c7e7a3e25e6d213075fd306c68cfa95'
17 'b3bc4328ead7afd186d5a191fabc347543c0fad17dc01047a4cf0532d999f255'
18 '24bd23e4427aaf635a91b170c07abe8a6b1c62cbad47e50a161c12807641d351')
19backup=("etc/${pkgname}/registration.yaml")
20install="${pkgname}.install"
21_dirname="${pkgname}-${pkgver}"
22
23prepare() {
24 cd "${srcdir}/${_dirname}"
25 # create an empty registration file so that permissions get written
26 # properly from the get go this way secret keys are never world
27 # readable
28 touch registration.yaml
29}
30
31build() {
32 cd "${srcdir}/${_dirname}"
33 python setup.py build
34}
35
36package() {
37 cd "${srcdir}/${_dirname}"
38
39 _shared_dir="/usr/share/${pkgname}"
40
41 python setup.py install --optimize=1 --skip-build --root="${pkgdir}/" --prefix="/usr" --install-data="${_shared_dir}"
42
43 # it's a semi-common failure for python packages to install tests in
44 # the main dir which would make them conflict eachother
45 rm -rf "${pkgdir}$(python -c 'import site; print(site.getsitepackages()[0])')/tests"
46
47 install -Dvm 644 "${srcdir}/${pkgname}.service" "${pkgdir}/usr/lib/systemd/system/${pkgname}.service"
48 install -Dvm 644 "${srcdir}/${pkgname}.sysusers" "${pkgdir}/usr/lib/sysusers.d/${pkgname}.conf"
49 install -Dvm 644 "${srcdir}/${pkgname}.tmpfiles" "${pkgdir}/usr/lib/tmpfiles.d/${pkgname}.conf"
50
51 install -Dvm 640 registration.yaml "${pkgdir}/etc/${pkgname}/registration.yaml"
52}
diff --git a/heisenbridge/heisenbridge.install b/heisenbridge/heisenbridge.install
deleted file mode 100644
index 10184df..0000000
--- a/heisenbridge/heisenbridge.install
+++ /dev/null
@@ -1,7 +0,0 @@
1post_install() {
2 cat <<- 'EOF'
3 You may adjust the homeserver via
4 # systemctl edit heisenbridge.service
5 if you don't use localhost:8008 as your homeserver URL
6 EOF
7}
diff --git a/heisenbridge/heisenbridge.service b/heisenbridge/heisenbridge.service
deleted file mode 100644
index e40dcf9..0000000
--- a/heisenbridge/heisenbridge.service
+++ /dev/null
@@ -1,12 +0,0 @@
1[Unit]
2Description=a bouncer-style Matrix IRC bridge
3
4[Service]
5ExecStart=python -m heisenbridge -c /etc/heisenbridge/registration.yaml
6Restart=on-failure
7User=heisenbridge
8WorkingDirectory=~
9
10
11[Install]
12WantedBy=multi-user.target
diff --git a/heisenbridge/heisenbridge.sysusers b/heisenbridge/heisenbridge.sysusers
deleted file mode 100644
index 47fc57c..0000000
--- a/heisenbridge/heisenbridge.sysusers
+++ /dev/null
@@ -1 +0,0 @@
1u heisenbridge - "Matrix IRC bridge" /var/lib/heisenbridge
diff --git a/heisenbridge/heisenbridge.tmpfiles b/heisenbridge/heisenbridge.tmpfiles
deleted file mode 100644
index 94db647..0000000
--- a/heisenbridge/heisenbridge.tmpfiles
+++ /dev/null
@@ -1,2 +0,0 @@
1z /etc/heisenbridge/* 640 heisenbridge heisenbridge
2d /var/lib/heisenbridge/ 700 heisenbridge heisenbridge