aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--net-im/heisenbridge/files/heisenbridge.confd4
-rw-r--r--net-im/heisenbridge/heisenbridge-1.14.1.ebuild20
2 files changed, 21 insertions, 3 deletions
diff --git a/net-im/heisenbridge/files/heisenbridge.confd b/net-im/heisenbridge/files/heisenbridge.confd
index f536922..cb4d34e 100644
--- a/net-im/heisenbridge/files/heisenbridge.confd
+++ b/net-im/heisenbridge/files/heisenbridge.confd
@@ -14,8 +14,8 @@ LISTEN_PORT=9898
# Generally should be the admin of the home server
# For example: @user:home.server
# Default: not set
-# OWNER=@user:home.server
+# OWNER=@user:example.com
# Homeserver
# Must be set
-HOMESERVER=example.com \ No newline at end of file
+HOMESERVER=https://example.com \ 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
index 7620f28..bb9f595 100644
--- a/net-im/heisenbridge/heisenbridge-1.14.1.ebuild
+++ b/net-im/heisenbridge/heisenbridge-1.14.1.ebuild
@@ -31,6 +31,8 @@ PATCHES=(
"${FILESDIR}/heisenbridge-1.14.1-qanotice.patch"
)
+distutils_enable_tests pytest
+
src_install() {
distutils-r1_src_install
@@ -39,4 +41,20 @@ src_install() {
systemd_dounit "${FILESDIR}/${PN}.service"
}
-distutils_enable_tests pytest
+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 instruction"
+ elog "The registration file is located at /var/lib/${PN}/registration.yaml"
+ elog "Finally, you may start the ${PN} daemon"
+ einfo
+
+}