Dokuwiki not maintained any more?

Yes, you can read these two pages, and then I would say that the best is to read good quality packaged apps, in combination with the helpers page here : App helpers | Yunohost Documentation and the upstream app installation documentation, to understand what the packager is doing.

For example, you could start with Grav which is a quite “easy” package :

(Start by reading manifest.json, install script and _common.sh script)

In parallel, you can have a look at the Grav documentation on how to install. The package is using the first option, “install from zip”

The package is basically working like this for installation :

  1. install will retrieve arguments from the manifest (domain, path, admin, language, is_public)
  2. install will check if there is already Grav installed, book the webpath, store the arguments as internal variables (that can be then taken back as variable by other scripts like remove, backup etc…)
  3. install will run _common.sh to install php7.3 dependencies
  4. install will create a unix user, download grav, unzip it at the good location using ynh_setup_source helper
  5. install will create nginx configuration using files from conf directory, setup php-fpm
    … and I let you read until the end

You can also read the dokuwiki app

And then, you can try for example rebuilding the grav package yourself starting with the yunohost example app GitHub - YunoHost/example_ynh: Example package for YunoHost applications. which has a lot of comments inside. You can also have a look at the app wishlist, take one that you would like to see coming on Yunohost and start packaging ! Apps wishlist | Yunohost Documentation

For my first package I started a dedicated thread here and whenever I had questions (I still have some…) I would post them and get some help from experienced packagers (I think there is also an instant chat server)

2 Likes