From b8b9650ce76faafd18ed819d4ba956a12fedf32a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Mon, 16 Jan 2023 22:26:04 +0100 Subject: [PATCH 01/14] Update manifest.json --- manifest.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/manifest.json b/manifest.json index e3adca4..acb87cd 100644 --- a/manifest.json +++ b/manifest.json @@ -3,8 +3,8 @@ "id": "biboumi", "packaging_format": 1, "description": { - "en": "XMPP gateway for the IRC network.", - "fr": "Passerelle XMPP pour le réseau IRC." + "en": "XMPP gateway for the IRC network", + "fr": "Passerelle XMPP pour le réseau IRC" }, "version": "8.3~ynh1", "url": "https://biboumi.louiz.org/", @@ -20,7 +20,7 @@ "email": "pitchum@yunohost.org" }, "requirements": { - "yunohost": ">= 4.1.7" + "yunohost": ">= 11.0.3" }, "multi_instance": false, "services": [ From 1cd7327820bf03c13f55cbb5edd2edc449b1e71c Mon Sep 17 00:00:00 2001 From: yunohost-bot Date: Mon, 16 Jan 2023 21:26:08 +0000 Subject: [PATCH 02/14] Auto-update README --- README.md | 22 ++++++++++------------ README_fr.md | 34 ++++++++++++++++++---------------- 2 files changed, 28 insertions(+), 28 deletions(-) diff --git a/README.md b/README.md index e303ba1..de27900 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ It shall NOT be edited by hand. # Biboumi for YunoHost -[![Integration level](https://dash.yunohost.org/integration/biboumi.svg)](https://dash.yunohost.org/appci/app/biboumi) ![](https://ci-apps.yunohost.org/ci/badges/biboumi.status.svg) ![](https://ci-apps.yunohost.org/ci/badges/biboumi.maintain.svg) +[![Integration level](https://dash.yunohost.org/integration/biboumi.svg)](https://dash.yunohost.org/appci/app/biboumi) ![Working status](https://ci-apps.yunohost.org/ci/badges/biboumi.status.svg) ![Maintenance status](https://ci-apps.yunohost.org/ci/badges/biboumi.maintain.svg) [![Install Biboumi with YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=biboumi) *[Lire ce readme en français.](./README_fr.md)* @@ -15,12 +15,9 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/in ## Overview -XMPP gateway for the IRC network. +XMPP gateway for the IRC network **Shipped version:** 8.3~ynh1 - - - ## Disclaimers / important information Once biboumi_ynh is installed you can use any XMPP client software to join IRC channels. Any IRC channel is seen as a standard XMPP chatroom (aka MUC) with a special name. @@ -36,21 +33,22 @@ For example, if you have a YunoHost server hosting domain *example.net* and you ## Documentation and resources -* Official app website: https://biboumi.louiz.org/ -* Official admin documentation: https://lab.louiz.org/louiz/biboumi/blob/8.3/doc/biboumi.1.rst -* Upstream app code repository: https://lab.louiz.org/louiz/biboumi -* YunoHost documentation for this app: https://yunohost.org/app_biboumi -* Report a bug: https://github.com/YunoHost-Apps/biboumi_ynh/issues +* Official app website: +* Official admin documentation: +* Upstream app code repository: +* YunoHost documentation for this app: +* Report a bug: ## Developer info Please send your pull request to the [testing branch](https://github.com/YunoHost-Apps/biboumi_ynh/tree/testing). To try the testing branch, please proceed like that. -``` + +``` bash sudo yunohost app install https://github.com/YunoHost-Apps/biboumi_ynh/tree/testing --debug or sudo yunohost app upgrade biboumi -u https://github.com/YunoHost-Apps/biboumi_ynh/tree/testing --debug ``` -**More info regarding app packaging:** https://yunohost.org/packaging_apps \ No newline at end of file +**More info regarding app packaging:** diff --git a/README_fr.md b/README_fr.md index 87fb6d4..627f230 100644 --- a/README_fr.md +++ b/README_fr.md @@ -1,22 +1,23 @@ + + # Biboumi pour YunoHost -[![Niveau d'intégration](https://dash.yunohost.org/integration/biboumi.svg)](https://dash.yunohost.org/appci/app/biboumi) ![](https://ci-apps.yunohost.org/ci/badges/biboumi.status.svg) ![](https://ci-apps.yunohost.org/ci/badges/biboumi.maintain.svg) +[![Niveau d’intégration](https://dash.yunohost.org/integration/biboumi.svg)](https://dash.yunohost.org/appci/app/biboumi) ![Statut du fonctionnement](https://ci-apps.yunohost.org/ci/badges/biboumi.status.svg) ![Statut de maintenance](https://ci-apps.yunohost.org/ci/badges/biboumi.maintain.svg) [![Installer Biboumi avec YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=biboumi) *[Read this readme in english.](./README.md)* -*[Lire ce readme en français.](./README_fr.md)* -> *Ce package vous permet d'installer Biboumi rapidement et simplement sur un serveur YunoHost. -Si vous n'avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) pour savoir comment l'installer et en profiter.* +> *Ce package vous permet d’installer Biboumi rapidement et simplement sur un serveur YunoHost. +Si vous n’avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) pour savoir comment l’installer et en profiter.* -## Vue d'ensemble +## Vue d’ensemble -Passerelle XMPP pour le réseau IRC. +Passerelle XMPP pour le réseau IRC **Version incluse :** 8.3~ynh1 - - - ## Avertissements / informations importantes Once biboumi_ynh is installed you can use any XMPP client software to join IRC channels. Any IRC channel is seen as a standard XMPP chatroom (aka MUC) with a special name. @@ -32,21 +33,22 @@ For example, if you have a YunoHost server hosting domain *example.net* and you ## Documentations et ressources -* Site officiel de l'app : https://biboumi.louiz.org/ -* Documentation officielle de l'admin : https://lab.louiz.org/louiz/biboumi/blob/8.3/doc/biboumi.1.rst -* Dépôt de code officiel de l'app : https://lab.louiz.org/louiz/biboumi -* Documentation YunoHost pour cette app : https://yunohost.org/app_biboumi -* Signaler un bug : https://github.com/YunoHost-Apps/biboumi_ynh/issues +* Site officiel de l’app : +* Documentation officielle de l’admin : +* Dépôt de code officiel de l’app : +* Documentation YunoHost pour cette app : +* Signaler un bug : ## Informations pour les développeurs Merci de faire vos pull request sur la [branche testing](https://github.com/YunoHost-Apps/biboumi_ynh/tree/testing). Pour essayer la branche testing, procédez comme suit. -``` + +``` bash sudo yunohost app install https://github.com/YunoHost-Apps/biboumi_ynh/tree/testing --debug ou sudo yunohost app upgrade biboumi -u https://github.com/YunoHost-Apps/biboumi_ynh/tree/testing --debug ``` -**Plus d'infos sur le packaging d'applications :** https://yunohost.org/packaging_apps \ No newline at end of file +**Plus d’infos sur le packaging d’applications :** \ No newline at end of file From bbcee61938abe1c3cd0d860c52278eaa46ad4853 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Wed, 18 Jan 2023 14:16:57 +0100 Subject: [PATCH 03/14] Update manifest.json --- manifest.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifest.json b/manifest.json index acb87cd..8ab44fc 100644 --- a/manifest.json +++ b/manifest.json @@ -20,7 +20,7 @@ "email": "pitchum@yunohost.org" }, "requirements": { - "yunohost": ">= 11.0.3" + "yunohost": ">= 11.0.9" }, "multi_instance": false, "services": [ From 884877bc0e05d7ec7470e632d4554160e31729c7 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Sun, 9 Jul 2023 16:32:33 +0200 Subject: [PATCH 04/14] Add metronome explicitly as dependency --- scripts/_common.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index f6c7245..1b60752 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -5,7 +5,7 @@ #================================================= # dependencies used by the app -pkg_dependencies="biboumi" +pkg_dependencies="metronome biboumi" #================================================= # PERSONAL HELPERS From 35c9b36c6e47e008d9fe373b73bcb5f8bba7b248 Mon Sep 17 00:00:00 2001 From: yunohost-bot Date: Sun, 9 Jul 2023 14:32:36 +0000 Subject: [PATCH 05/14] Auto-update README --- README.md | 3 ++- README_fr.md | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index de27900..ae62456 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,8 @@ It shall NOT be edited by hand. # Biboumi for YunoHost -[![Integration level](https://dash.yunohost.org/integration/biboumi.svg)](https://dash.yunohost.org/appci/app/biboumi) ![Working status](https://ci-apps.yunohost.org/ci/badges/biboumi.status.svg) ![Maintenance status](https://ci-apps.yunohost.org/ci/badges/biboumi.maintain.svg) +[![Integration level](https://dash.yunohost.org/integration/biboumi.svg)](https://dash.yunohost.org/appci/app/biboumi) ![Working status](https://ci-apps.yunohost.org/ci/badges/biboumi.status.svg) ![Maintenance status](https://ci-apps.yunohost.org/ci/badges/biboumi.maintain.svg) + [![Install Biboumi with YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=biboumi) *[Lire ce readme en français.](./README_fr.md)* diff --git a/README_fr.md b/README_fr.md index 627f230..2fe97bb 100644 --- a/README_fr.md +++ b/README_fr.md @@ -5,7 +5,8 @@ It shall NOT be edited by hand. # Biboumi pour YunoHost -[![Niveau d’intégration](https://dash.yunohost.org/integration/biboumi.svg)](https://dash.yunohost.org/appci/app/biboumi) ![Statut du fonctionnement](https://ci-apps.yunohost.org/ci/badges/biboumi.status.svg) ![Statut de maintenance](https://ci-apps.yunohost.org/ci/badges/biboumi.maintain.svg) +[![Niveau d’intégration](https://dash.yunohost.org/integration/biboumi.svg)](https://dash.yunohost.org/appci/app/biboumi) ![Statut du fonctionnement](https://ci-apps.yunohost.org/ci/badges/biboumi.status.svg) ![Statut de maintenance](https://ci-apps.yunohost.org/ci/badges/biboumi.maintain.svg) + [![Installer Biboumi avec YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=biboumi) *[Read this readme in english.](./README.md)* From 4ca199132645858bf2abc1c08448557eae427cb1 Mon Sep 17 00:00:00 2001 From: yunohost-bot Date: Sun, 9 Jul 2023 14:33:25 +0000 Subject: [PATCH 06/14] Auto-update README --- README_fr.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README_fr.md b/README_fr.md index 12c9735..2fe97bb 100644 --- a/README_fr.md +++ b/README_fr.md @@ -7,7 +7,6 @@ It shall NOT be edited by hand. [![Niveau d’intégration](https://dash.yunohost.org/integration/biboumi.svg)](https://dash.yunohost.org/appci/app/biboumi) ![Statut du fonctionnement](https://ci-apps.yunohost.org/ci/badges/biboumi.status.svg) ![Statut de maintenance](https://ci-apps.yunohost.org/ci/badges/biboumi.maintain.svg) - [![Installer Biboumi avec YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=biboumi) *[Read this readme in english.](./README.md)* From aa01c1592d5332d815c059217a6cdf56c5c5d24f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Sun, 9 Jul 2023 18:59:22 +0200 Subject: [PATCH 07/14] Update manifest.json --- manifest.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifest.json b/manifest.json index 8ab44fc..ab356b0 100644 --- a/manifest.json +++ b/manifest.json @@ -6,7 +6,7 @@ "en": "XMPP gateway for the IRC network", "fr": "Passerelle XMPP pour le réseau IRC" }, - "version": "8.3~ynh1", + "version": "8.3~ynh2", "url": "https://biboumi.louiz.org/", "upstream": { "license": "Zlib", From 68d005f2420de2f66b1144d26bc574d440ab950d Mon Sep 17 00:00:00 2001 From: yunohost-bot Date: Sun, 9 Jul 2023 16:59:25 +0000 Subject: [PATCH 08/14] Auto-update README --- README.md | 2 +- README_fr.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ae62456..0540589 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/in XMPP gateway for the IRC network -**Shipped version:** 8.3~ynh1 +**Shipped version:** 8.3~ynh2 ## Disclaimers / important information Once biboumi_ynh is installed you can use any XMPP client software to join IRC channels. Any IRC channel is seen as a standard XMPP chatroom (aka MUC) with a special name. diff --git a/README_fr.md b/README_fr.md index 2fe97bb..0b0eb67 100644 --- a/README_fr.md +++ b/README_fr.md @@ -18,7 +18,7 @@ Si vous n’avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) po Passerelle XMPP pour le réseau IRC -**Version incluse :** 8.3~ynh1 +**Version incluse :** 8.3~ynh2 ## Avertissements / informations importantes Once biboumi_ynh is installed you can use any XMPP client software to join IRC channels. Any IRC channel is seen as a standard XMPP chatroom (aka MUC) with a special name. From 2f75e1dba9c4ab714e7bf9107df52117e5b7cccc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Fri, 28 Jul 2023 11:52:09 +0100 Subject: [PATCH 09/14] Version 2 (#22) * v2 * Auto-update README * v2 * Create tests.toml * Auto-update README --------- Co-authored-by: yunohost-bot --- README.md | 13 -------- README_fr.md | 15 +-------- check_process | 24 -------------- doc/{DISCLAIMER.md => ADMIN.md} | 0 doc/DESCRIPTION.md | 1 + manifest.json | 41 ------------------------ manifest.toml | 48 ++++++++++++++++++++++++++++ scripts/_common.sh | 3 -- scripts/backup | 16 ---------- scripts/install | 32 +------------------ scripts/remove | 15 --------- scripts/restore | 30 ------------------ scripts/upgrade | 55 --------------------------------- tests.toml | 3 ++ 14 files changed, 54 insertions(+), 242 deletions(-) delete mode 100644 check_process rename doc/{DISCLAIMER.md => ADMIN.md} (100%) create mode 100644 doc/DESCRIPTION.md delete mode 100644 manifest.json create mode 100644 manifest.toml create mode 100644 tests.toml diff --git a/README.md b/README.md index 0540589..325c45f 100644 --- a/README.md +++ b/README.md @@ -19,19 +19,6 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/in XMPP gateway for the IRC network **Shipped version:** 8.3~ynh2 -## Disclaimers / important information - -Once biboumi_ynh is installed you can use any XMPP client software to join IRC channels. Any IRC channel is seen as a standard XMPP chatroom (aka MUC) with a special name. -The the name is formatted like this: `#channelname%ircservername@biboumi.yourdomain.tld`. - -For example, if you have a YunoHost server hosting domain *example.net* and you want to join the channel *#yunohost* on *irc.freenode.net* you simply need to join the MUC `#yunohost%irc.freenode.net@biboumi.example.net`. - -* Any known limitations, constrains or stuff not working, such as (but not limited to): - * Currently, Biboumi is only tested with one domain and it must be the main domain of your YunoHost server. - -* Other infos that people should be aware of, such as: - * You can configure Biboumi with the file `/etc/biboumi/biboumi.cfg`. - ## Documentation and resources * Official app website: diff --git a/README_fr.md b/README_fr.md index 0b0eb67..33061d4 100644 --- a/README_fr.md +++ b/README_fr.md @@ -16,22 +16,9 @@ Si vous n’avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) po ## Vue d’ensemble -Passerelle XMPP pour le réseau IRC +XMPP gateway for the IRC network **Version incluse :** 8.3~ynh2 -## Avertissements / informations importantes - -Once biboumi_ynh is installed you can use any XMPP client software to join IRC channels. Any IRC channel is seen as a standard XMPP chatroom (aka MUC) with a special name. -The the name is formatted like this: `#channelname%ircservername@biboumi.yourdomain.tld`. - -For example, if you have a YunoHost server hosting domain *example.net* and you want to join the channel *#yunohost* on *irc.freenode.net* you simply need to join the MUC `#yunohost%irc.freenode.net@biboumi.example.net`. - -* Any known limitations, constrains or stuff not working, such as (but not limited to): - * Currently, Biboumi is only tested with one domain and it must be the main domain of your YunoHost server. - -* Other infos that people should be aware of, such as: - * You can configure Biboumi with the file `/etc/biboumi/biboumi.cfg`. - ## Documentations et ressources * Site officiel de l’app : diff --git a/check_process b/check_process deleted file mode 100644 index 55cb156..0000000 --- a/check_process +++ /dev/null @@ -1,24 +0,0 @@ -;; Test complet - ; Manifest - domain="domain.tld" - admin="john" - ; Checks - pkg_linter=1 - setup_sub_dir=0 - setup_root=0 - setup_nourl=1 - setup_private=0 - setup_public=0 - upgrade=1 - # 8.3~ynh1 - upgrade=1 from_commit=6596c7e12e17a2b9149b20739e916184e71fdfbd - backup_restore=1 - multi_instance=0 - port_already_use=1 (113) - change_url=0 -;;; Options -Email=pitchum@gramaton.org -Notification=none -;;; Upgrade options - ; commit=6596c7e12e17a2b9149b20739e916184e71fdfbd - name=8.3~ynh1. diff --git a/doc/DISCLAIMER.md b/doc/ADMIN.md similarity index 100% rename from doc/DISCLAIMER.md rename to doc/ADMIN.md diff --git a/doc/DESCRIPTION.md b/doc/DESCRIPTION.md new file mode 100644 index 0000000..4f147e0 --- /dev/null +++ b/doc/DESCRIPTION.md @@ -0,0 +1 @@ +XMPP gateway for the IRC network \ No newline at end of file diff --git a/manifest.json b/manifest.json deleted file mode 100644 index ab356b0..0000000 --- a/manifest.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "name": "Biboumi", - "id": "biboumi", - "packaging_format": 1, - "description": { - "en": "XMPP gateway for the IRC network", - "fr": "Passerelle XMPP pour le réseau IRC" - }, - "version": "8.3~ynh2", - "url": "https://biboumi.louiz.org/", - "upstream": { - "license": "Zlib", - "website": "https://biboumi.louiz.org/", - "admindoc": "https://lab.louiz.org/louiz/biboumi/blob/8.3/doc/biboumi.1.rst", - "code": "https://lab.louiz.org/louiz/biboumi" - }, - "license": "Zlib", - "maintainer": { - "name": "pitchum", - "email": "pitchum@yunohost.org" - }, - "requirements": { - "yunohost": ">= 11.0.9" - }, - "multi_instance": false, - "services": [ - "metronome" - ], - "arguments": { - "install" : [ - { - "name": "domain", - "type": "domain" - }, - { - "name": "admin", - "type": "user" - } - ] - } -} diff --git a/manifest.toml b/manifest.toml new file mode 100644 index 0000000..966aca4 --- /dev/null +++ b/manifest.toml @@ -0,0 +1,48 @@ +packaging_format = 2 + +id = "biboumi" +name = "Biboumi" +description.en = "XMPP gateway for the IRC network" +description.fr = "Passerelle XMPP pour le réseau IRC" + +version = "8.3~ynh2" + +maintainers = ["pitchum"] + +[upstream] +license = "Zlib" +website = "https://biboumi.louiz.org/" +admindoc = "https://lab.louiz.org/louiz/biboumi/blob/8.3/doc/biboumi.1.rst" +code = "https://lab.louiz.org/louiz/biboumi" + +[integration] +yunohost = ">= 11.1.21" +architectures = "all" +multi_instance = false +ldap = false +sso = false +disk = "50M" +ram.build = "50M" +ram.runtime = "50M" + +[install] + [install.domain] + type = "domain" + full_domain = true + + [install.admin] + type = "user" + +[resources] + + [resources.ports] + main.default = 113 + + [resources.system_user] + + [resources.install_dir] + + [resources.permissions] + + [resources.apt] + packages = "metronome biboumi" diff --git a/scripts/_common.sh b/scripts/_common.sh index 1b60752..944a65e 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -4,9 +4,6 @@ # COMMON VARIABLES #================================================= -# dependencies used by the app -pkg_dependencies="metronome biboumi" - #================================================= # PERSONAL HELPERS #================================================= diff --git a/scripts/backup b/scripts/backup index 170a5e5..3d5ab08 100755 --- a/scripts/backup +++ b/scripts/backup @@ -10,22 +10,6 @@ source ../settings/scripts/_common.sh source /usr/share/yunohost/helpers -#================================================= -# MANAGE SCRIPT FAILURE -#================================================= - -# Exit if an error occurs during the execution of the script -ynh_abort_if_errors - -#================================================= -# LOAD SETTINGS -#================================================= -ynh_print_info --message="Loading installation settings..." - -app=$YNH_APP_INSTANCE_NAME - -domain=$(ynh_app_setting_get --app=$app --key=domain) - #================================================= # DECLARE DATA AND CONF FILES TO BACKUP #================================================= diff --git a/scripts/install b/scripts/install index 188bd27..a7b1417 100755 --- a/scripts/install +++ b/scripts/install @@ -9,32 +9,17 @@ source _common.sh source /usr/share/yunohost/helpers -#================================================= -# MANAGE SCRIPT FAILURE -#================================================= - -ynh_clean_setup () { - ynh_clean_check_starting -} -# Exit if an error occurs during the execution of the script -ynh_abort_if_errors - #================================================= # RETRIEVE ARGUMENTS FROM THE MANIFEST #================================================= -domain=$YNH_APP_ARG_DOMAIN -admin=$YNH_APP_ARG_ADMIN - -app=$YNH_APP_INSTANCE_NAME - shared_secret="$(ynh_string_random 25)" admin_jid="${admin}@$app.${domain}" #================================================= # CHECK IF THE APP CAN BE INSTALLED WITH THESE ARGS #================================================= -ynh_script_progression --message="Validating installation parameters..." +#REMOVEME? ynh_script_progression --message="Validating installation parameters..." if dpkg --compare-versions "$(uname -r)" "<=" "4.0" then @@ -46,28 +31,13 @@ fi #================================================= ynh_script_progression --message="Storing installation settings..." -ynh_app_setting_set --app=$app --key=domain --value=$domain -ynh_app_setting_set --app=$app --key=admin --value=$admin ynh_app_setting_set --app=$app --key=shared_secret --value=$shared_secret ynh_app_setting_set --app=$app --key=admin_jid --value=$admin_jid -#================================================= -# STANDARD MODIFICATIONS -#================================================= -# FIND AND OPEN A PORT -#================================================= -ynh_script_progression --message="Finding an available port..." - -# Find an available port -port=$(ynh_find_port --port=113) -ynh_app_setting_set --app=$app --key=port --value=$port - #================================================= # INSTALL DEPENDENCIES #================================================= -ynh_script_progression --message="Installing dependencies..." -ynh_install_app_dependencies $pkg_dependencies ynh_systemd_action --service_name=$app --action="stop" --log_path="systemd" #================================================= diff --git a/scripts/remove b/scripts/remove index 929ad48..4120411 100755 --- a/scripts/remove +++ b/scripts/remove @@ -9,13 +9,6 @@ source _common.sh source /usr/share/yunohost/helpers -#================================================= -# LOAD SETTINGS -#================================================= -ynh_script_progression --message="Loading installation settings..." - -app=$YNH_APP_INSTANCE_NAME - #================================================= # STANDARD REMOVE #================================================= @@ -46,14 +39,6 @@ ynh_script_progression --message="Removing logrotate configuration..." # Remove the app-specific logrotate config ynh_remove_logrotate -#================================================= -# REMOVE DEPENDENCIES -#================================================= -ynh_script_progression --message="Removing dependencies..." - -# Remove metapackage and its dependencies -ynh_remove_app_dependencies - #================================================= # SPECIFIC REMOVE #================================================= diff --git a/scripts/restore b/scripts/restore index 6d93fc1..b454958 100755 --- a/scripts/restore +++ b/scripts/restore @@ -10,25 +10,6 @@ source ../settings/scripts/_common.sh source /usr/share/yunohost/helpers -#================================================= -# MANAGE SCRIPT FAILURE -#================================================= - -ynh_clean_setup () { - ynh_clean_check_starting -} -# Exit if an error occurs during the execution of the script -ynh_abort_if_errors - -#================================================= -# LOAD SETTINGS -#================================================= -ynh_script_progression --message="Loading installation settings..." - -app=$YNH_APP_INSTANCE_NAME - -domain=$(ynh_app_setting_get --app=$app --key=domain) - #================================================= # CHECK IF THE APP CAN BE RESTORED #================================================= @@ -39,17 +20,6 @@ then ynh_die "Upgrade your kernel first. Unsupported version: $(uname -r)" fi -#================================================= -# SPECIFIC RESTORATION -#================================================= -# REINSTALL DEPENDENCIES -#================================================= -ynh_script_progression --message="Reinstalling dependencies..." - -# Define and install dependencies -ynh_install_app_dependencies $pkg_dependencies -ynh_systemd_action --service_name=$app --action="stop" --log_path="systemd" - #================================================= # RESTORE VARIOUS FILES #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 6bb1980..8e2e370 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -9,41 +9,12 @@ source _common.sh source /usr/share/yunohost/helpers -#================================================= -# LOAD SETTINGS -#================================================= -ynh_script_progression --message="Loading installation settings..." - -app=$YNH_APP_INSTANCE_NAME - -domain=$(ynh_app_setting_get --app=$app --key=domain) -admin=$(ynh_app_setting_get --app=$app --key=admin) -port=$(ynh_app_setting_get --app=$app --key=port) -shared_secret=$(ynh_app_setting_get --app=$app --key=shared_secret) -admin_jid=$(ynh_app_setting_get --app=$app --key=admin_jid) - #================================================= # CHECK VERSION #================================================= -ynh_script_progression --message="Checking version..." upgrade_type=$(ynh_check_app_version_changed) -#================================================= -# BACKUP BEFORE UPGRADE THEN ACTIVE TRAP -#================================================= -ynh_script_progression --message="Backing up the app before upgrading (may take a while)..." - -# Backup the current version of the app -ynh_backup_before_upgrade -ynh_clean_setup () { - ynh_clean_check_starting - # Restore it if the upgrade fails - ynh_restore_upgradebackup -} -# Exit if an error occurs during the execution of the script -ynh_abort_if_errors - #================================================= # STANDARD UPGRADE STEPS #================================================= @@ -53,32 +24,6 @@ ynh_script_progression --message="Stopping a systemd service..." ynh_systemd_action --service_name=$app --action="stop" --line_match="Stopped Biboumi" --log_path="systemd" -#================================================= -# ENSURE DOWNWARD COMPATIBILITY -#================================================= -ynh_script_progression --message="Ensuring downward compatibility..." - -# Prevent conflict with other apps on the same domain -ynh_app_setting_set --app=$app --key=no_sso --value=1 - -if [ -z "$shared_secret" ]; then - shared_secret="$(grep password "/etc/biboumi/biboumi.cfg" | cut -d= -f2)" - ynh_app_setting_set --app=$app --key=shared_secret --value=$shared_secret -fi - -if [ -z "$admin_jid" ]; then - admin_jid="${admin}@$app.${domain}" - ynh_app_setting_set --app=$app --key=admin_jid --value=$admin_jid -fi - -#================================================= -# UPGRADE DEPENDENCIES -#================================================= -ynh_script_progression --message="Upgrading dependencies..." - -ynh_install_app_dependencies $pkg_dependencies -ynh_systemd_action --service_name=$app --action="stop" --log_path="systemd" - #================================================= # SPECIFIC UPGRADE #================================================= diff --git a/tests.toml b/tests.toml new file mode 100644 index 0000000..eb73b8d --- /dev/null +++ b/tests.toml @@ -0,0 +1,3 @@ +test_format = 1.0 + +[default] \ No newline at end of file From cb1ee4444499f242805b0afa2bd423e4bf7430c1 Mon Sep 17 00:00:00 2001 From: yunohost-bot Date: Sat, 29 Jul 2023 10:56:28 +0000 Subject: [PATCH 10/14] Auto-update README --- README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README.md b/README.md index d37e26f..325c45f 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,6 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/in XMPP gateway for the IRC network **Shipped version:** 8.3~ynh2 - ## Documentation and resources * Official app website: From 5cd2113d35cac204e61a462f5898bbf5aae913e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Wed, 30 Aug 2023 19:32:16 +0200 Subject: [PATCH 11/14] Update manifest.toml --- manifest.toml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/manifest.toml b/manifest.toml index 966aca4..65014c7 100644 --- a/manifest.toml +++ b/manifest.toml @@ -16,7 +16,7 @@ admindoc = "https://lab.louiz.org/louiz/biboumi/blob/8.3/doc/biboumi.1.rst" code = "https://lab.louiz.org/louiz/biboumi" [integration] -yunohost = ">= 11.1.21" +yunohost = ">= 11.2" architectures = "all" multi_instance = false ldap = false @@ -28,7 +28,6 @@ ram.runtime = "50M" [install] [install.domain] type = "domain" - full_domain = true [install.admin] type = "user" From d296bd73f7ae6b8671217fa0bdaa2b77f53bb722 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Sat, 23 Dec 2023 10:38:46 +0100 Subject: [PATCH 12/14] Update manifest.toml --- manifest.toml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/manifest.toml b/manifest.toml index 65014c7..c6368a8 100644 --- a/manifest.toml +++ b/manifest.toml @@ -5,7 +5,7 @@ name = "Biboumi" description.en = "XMPP gateway for the IRC network" description.fr = "Passerelle XMPP pour le réseau IRC" -version = "8.3~ynh2" +version = "8.3~ynh3" maintainers = ["pitchum"] @@ -19,13 +19,17 @@ code = "https://lab.louiz.org/louiz/biboumi" yunohost = ">= 11.2" architectures = "all" multi_instance = false + ldap = false + sso = false + disk = "50M" ram.build = "50M" ram.runtime = "50M" [install] + [install.domain] type = "domain" @@ -44,4 +48,4 @@ ram.runtime = "50M" [resources.permissions] [resources.apt] - packages = "metronome biboumi" + packages = "metronome, biboumi" From be9a2c2a05527fb36836eb25a20ef32d24b324c0 Mon Sep 17 00:00:00 2001 From: yunohost-bot Date: Sat, 23 Dec 2023 09:38:50 +0000 Subject: [PATCH 13/14] Auto-update README --- README.md | 2 +- README_fr.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 9f678a3..a88a11c 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/in XMPP gateway for the IRC network -**Shipped version:** 8.3~ynh2 +**Shipped version:** 8.3~ynh3 ## Documentation and resources * Official app website: diff --git a/README_fr.md b/README_fr.md index 7238fdb..edf62c6 100644 --- a/README_fr.md +++ b/README_fr.md @@ -18,7 +18,7 @@ Si vous n’avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) po XMPP gateway for the IRC network -**Version incluse :** 8.3~ynh2 +**Version incluse :** 8.3~ynh3 ## Documentations et ressources * Site officiel de l’app : From d4ab3500e9211c50405d021c8adf84579dabbb60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Sat, 23 Dec 2023 10:47:33 +0100 Subject: [PATCH 14/14] Update ADMIN.md --- doc/ADMIN.md | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/doc/ADMIN.md b/doc/ADMIN.md index 728a23b..6345ea9 100644 --- a/doc/ADMIN.md +++ b/doc/ADMIN.md @@ -1,10 +1,6 @@ -Once biboumi_ynh is installed you can use any XMPP client software to join IRC channels. Any IRC channel is seen as a standard XMPP chatroom (aka MUC) with a special name. +Once Biboumi is installed you can use any XMPP client software to join IRC channels. Any IRC channel is seen as a standard XMPP chatroom (aka MUC) with a special name. The the name is formatted like this: `#channelname%ircservername@biboumi.yourdomain.tld`. For example, if you have a YunoHost server hosting domain *example.net* and you want to join the channel *#yunohost* on *irc.freenode.net* you simply need to join the MUC `#yunohost%irc.freenode.net@biboumi.example.net`. -* Any known limitations, constrains or stuff not working, such as (but not limited to): - * Currently, Biboumi is only tested with one domain and it must be the main domain of your YunoHost server. - -* Other infos that people should be aware of, such as: - * You can configure Biboumi with the file `/etc/biboumi/biboumi.cfg`. +* You can configure Biboumi with the file `/etc/biboumi/biboumi.cfg`.