From 40b90c1d108de6f6c53db528126aaa6deda0e1cf Mon Sep 17 00:00:00 2001 From: polytan02 Date: Sat, 24 Dec 2016 11:29:01 +0000 Subject: [PATCH] Update manifest to YunoHost 2.4 Compliant with package_linter --- manifest.json | 82 +++++++++++++++++++++++++++++++++++++++++++-------- 1 file changed, 70 insertions(+), 12 deletions(-) diff --git a/manifest.json b/manifest.json index 7a4b71a..8cdd833 100644 --- a/manifest.json +++ b/manifest.json @@ -1,33 +1,63 @@ { - "name": "Framagames", - "id": "framagames", + "name": "COPS", + "id": "cops", + "packaging_format": 1, "description": { - "en": "Set of games Framagames from Framasoft", - "fr": "Ensemble de jeux Framagames venant de Framasoft" + "en": "Calibre OPDS (and HTML) PHP Server", + "fr": "Calibre OPDS (et HTML) PHP Serveur" }, + "url": "https://github.com/YunoHost-Apps/cops_ynh", + "license": "free", "maintainer": { "name": "polytan02", "email": "polytan02@mcgva.org" }, - "multi_instance": "true", + "multi_instance": true, + "services": [ + "nginx", + "php5-fpm" + ], + "requirements": { + "yunohost": ">= 2.4.0" + }, "arguments": { "install" : [ { "name": "domain", + "type": "domain", "ask": { - "en": "Choose a domain for your Webapp", - "fr": "Choisissez un domaine pour votre Webapp" + "en": "Choose a domain for COPS library", + "fr": "Choisissez un domaine pour votre bibliotheque COPS" }, - "example": "domain.org" + "example": "domain.tld" }, { "name": "path", + "type": "path", "ask": { - "en": "Choose a path for your Webapp", - "fr": "Choisissez un chemin pour votre Webapp" + "en": "Choose a path to access your COPS library", + "fr": "Choisissez un chemin pour acceder a votre bibliotheque COPS" }, - "example": "/framagames", - "default": "/framagames" + "example": "/cops", + "default": "/cops" + }, + { + "name": "calibre", + "ask": { + "en": "Indicate the location of Calibre library. DON'T store it in your /var/www/cops or it will be removed on next upgrade !!", + "fr": "Indiquez le chemin de votre bibliotheque Calibre. Ne la mettez pas dans /var/www/cops ou elle sera supprimée à la prochaine upgrade !!!" + }, + "example": "/home/yunohost.app/owncloud/data/johndoe/files/eBooks", + "default": "/home/yunohost.app/owncloud/data/johndoe/files/eBooks" + }, + { + "name": "runninguser", + "ask": { + "en": "Which system user is managing the Calibre folder ?", + "fr": "Quel utilisateur système gère le dossier Calibre ?" + }, + "choices": ["www-data", "owncloud", "nextcloud"], + "default": "www-data" }, { "name": "is_public", @@ -37,6 +67,34 @@ }, "choices": ["Yes", "No"], "default": "Yes" + }, + { + "name": "basicauthcreate", + "ask": { + "en": "Create a basic auth access (only taken into account for a Public app) ? This is required if the app is public so that ereaders to access the OPDS server, for example", + "fr": "Créer un accès par authentification basique (Uniquement pris en compte pour une app Publique) ? Ceci est requis si votre bibliothèque est publique et que vous voulez accéder au serveur OPDS avec votre liseuse ou application mobile" + }, + "choices": ["Yes", "No"], + "default": "Yes" + }, + { + "name": "basicauthname", + "ask": { + "en": "Choose the login name to access the OPDS/HTML server (UNRELATED to YunoHost users)", + "fr": "Indiquez le nom d'utilisateur pour accéder au serveur OPDS/HTML (NON lié lié aux utilisateurs YunoHost)" + }, + "example": "Gutenberg", + "default": "Gutenberg" + }, + { + "name": "basicauthpass", + "type": "password", + "ask": { + "en": "Choose the password to access the OPDS/HTML server", + "fr": "Renseignez le mot de passe pour accéder au serveur OPDS/HTML" + }, + "example": "knowledge is power", + "default": "knowledge is power" } ] }