aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorRasmus Thomsen <oss@cogitri.dev>2020-04-19 09:35:50 +0200
committerLeo <thinkabit.ukim@gmail.com>2020-04-24 16:42:46 +0000
commiteeae3f8f3c3fb734e769ef7a38a48da38d86801e (patch)
tree2e7e378f33e5ba9329746a53b0d47a5ff7caf7f2 /testing
parent85a178a386c6ba1f450e90a12687f643510b6703 (diff)
downloadaports-eeae3f8f3c3fb734e769ef7a38a48da38d86801e.tar.bz2
aports-eeae3f8f3c3fb734e769ef7a38a48da38d86801e.tar.xz
community/matrix-appservice-irc: move from testing
Diffstat (limited to 'testing')
-rw-r--r--testing/matrix-appservice-irc/APKBUILD56
-rw-r--r--testing/matrix-appservice-irc/matrix-appservice-irc.confd11
-rw-r--r--testing/matrix-appservice-irc/matrix-appservice-irc.initd32
3 files changed, 0 insertions, 99 deletions
diff --git a/testing/matrix-appservice-irc/APKBUILD b/testing/matrix-appservice-irc/APKBUILD
deleted file mode 100644
index 4e66d28499..0000000000
--- a/testing/matrix-appservice-irc/APKBUILD
+++ /dev/null
@@ -1,56 +0,0 @@
-# Contributor: Rasmus Thomsen <oss@cogitri.dev>
-# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
-pkgname=matrix-appservice-irc
-pkgver=0.16.0
-pkgrel=0
-pkgdesc="Node.js IRC bridge for Matrix"
-url="https://github.com/matrix-org/matrix-appservice-irc"
-arch="all !s390x !mips !mips64" # fails on CI, mips blocking on nodejs
-license="Apache-2.0"
-depends="nodejs"
-makedepends="npm python3"
-subpackages="$pkgname-openrc"
-source="https://github.com/matrix-org/matrix-appservice-irc/archive/$pkgver/matrix-appservice-irc-$pkgver.tar.gz
- matrix-appservice-irc.initd
- matrix-appservice-irc.confd"
-
-case "$CARCH" in
- x86)
- options="textrels"
- ;;
-esac
-
-build() {
- npm install
-}
-
-check() {
- npm test
-}
-
-package() {
- mkdir -p "$pkgdir"/etc/matrix-appservice-irc
- mkdir -p "$pkgdir"/usr/bin
- mkdir -p "$pkgdir"/usr/share/webapps/matrix-appservice-irc
-
- cp config.sample.yaml "$pkgdir"/etc/matrix-appservice-irc
-
- cp -r \
- "$builddir"/bin \
- "$builddir"/node_modules \
- "$builddir"/app.js \
- "$builddir"/config.schema.yml \
- "$builddir"/lib \
- "$builddir"/scripts \
- "$pkgdir"/usr/share/webapps/matrix-appservice-irc
-
- ln -s /usr/share/webapps/matrix-appservice-irc/bin/matrix-appservice-irc \
- "$pkgdir"/usr/bin/matrix-appservice-irc
-
- install -Dm755 "$srcdir"/matrix-appservice-irc.initd "$pkgdir"/etc/init.d/matrix-appservice-irc
- install -Dm644 "$srcdir"/matrix-appservice-irc.confd "$pkgdir"/etc/conf.d/matrix-appservice-irc
-}
-
-sha512sums="1a87082d15c9cae7a7e357fa4737fc36405f67ec1f10ae748ed703dc89ac68bc398887e287bd2f8a42e0a40e7703cf68d774b5c7aa06218e15428ded2de5e9de matrix-appservice-irc-0.16.0.tar.gz
-c1cd9ebbf25c464159a05c369b3ff408e24aeb8beb8c06f336fb14b97ff15f9579b68c10f253f9cd207a117152510a4a49538064676bb2d1008434f985ef1c28 matrix-appservice-irc.initd
-7b9e320a44cd07bb2876704eb1fa33dc0a8a6e237badf1e3d026d347df113eab144b42a0ad0e42b8f6e598c435e26982b37ef2ecdbd663fe34f34757e2e279cf matrix-appservice-irc.confd"
diff --git a/testing/matrix-appservice-irc/matrix-appservice-irc.confd b/testing/matrix-appservice-irc/matrix-appservice-irc.confd
deleted file mode 100644
index 53560feb1b..0000000000
--- a/testing/matrix-appservice-irc/matrix-appservice-irc.confd
+++ /dev/null
@@ -1,11 +0,0 @@
-# Configuration for /etc/init.d/matrix-appservice-irc
-
-# Location of configuration file
-config="/etc/matrix-appservice-irc/config.yaml"
-
-# Location of the registration file
-registration_file="/etc/synapse/matrix-appservice-irc-registration.yaml"
-
-# Port to run the service on
-port=9999
-
diff --git a/testing/matrix-appservice-irc/matrix-appservice-irc.initd b/testing/matrix-appservice-irc/matrix-appservice-irc.initd
deleted file mode 100644
index 2c80daad6b..0000000000
--- a/testing/matrix-appservice-irc/matrix-appservice-irc.initd
+++ /dev/null
@@ -1,32 +0,0 @@
-#!/sbin/openrc-run
-supervisor=supervise-daemon
-
-name="matrix-appservice-irc"
-description="Daemon for matrix-appservice-irc, a Node.js IRC bridge for Matrix"
-
-: ${command_user:="synapse:synapse"}
-: ${config:="/etc/matrix-appservice-irc/config.yaml"}
-: ${registration_file:="/etc/synapse/matrix-appservice-irc-registration.yaml"}
-: ${port:=9999}
-
-command="/usr/bin/matrix-appservice-irc"
-command_args="-c $config -f $registration_file -p $port"
-supervise_daemon_args="--chdir /var/lib/matrix-appservice-irc --stdout /var/log/matrix-appservice-irc.log --stderr /var/log/matrix-appservice-irc.log"
-
-depends() {
- use logger
- need net
-}
-
-start_pre() {
- checkpath --owner $command_user --file /var/log/matrix-appservice-irc.log
- if [ ! -f $config ]; then
- eerror "Couldn't find config file!"
- return 1
- fi
- if [ ! -f $registration_file ]; then
- eerror "Couldn't find registration file!
- See https://github.com/matrix-org/matrix-appservice-irc#3-registration for how to generate one."
- return 1
- fi
-}