SynoCommunity / spksrc

Cross compilation framework to create native packages for the Synology's NAS
https://synocommunity.com
Other
3.03k stars 1.23k forks source link

[Package Request] entware #3255

Open ymartin59 opened 6 years ago

ymartin59 commented 6 years ago

In relation with "SynoCLI" packages, to avoid to repackage tools already available elsewhere, it may make sense to take benefits of Entware https://github.com/Entware/Entware As its installation is not for regular users, it may be interested to automate its installation and upgrade thanks to a spksrc package. By the way, targeted tools by SynoCLI are mostly for advanced users (that expects to spare time thanks to instantly working installation) Drawback: only for Intel and ARM platforms

Installation tips for Synology: https://github.com/Entware/Entware/wiki/Install-on-Synology-NAS

Design:

ymartin59 commented 6 years ago

@hgy59 What is your opinion about it? I would put this one in priority... so that to avoid work for command line tools that may already work perfectly from entware-ng-3x

hgy59 commented 6 years ago

Entware-ng-3x is deprecated, so may be we should provide Entware. I never heared of entware before... Since it installs into /opt folder it can not be installed in parallel with ipkg/optware, provided by the cphub/QTip packages. Don't know whether this is a pro or contra.

ymartin59 commented 6 years ago

According to my previous investigations (see https://forum.synology.com/enu/viewtopic.php?t=116803), ipkg/optware seems no longer maintain and may be in troubles with recent kernel, glibc versions... that is why I am interested in entware for command line tools on DSM 6.x. I just discover cphub/QTip... I agree with you that we should avoid "collision" so that users may use multiple sources together.

Magissia commented 6 years ago

While entware usually uses opt, it would be a bad idea to write directly there, best practice seems to mount or symlink /opt to the place where you installed all this, meaning keeping this in @appstore/entware would be good, with start script to mount a subfolder to /opt.

fexofenadine commented 6 years ago

that's their recommendation too, see installation instructions here: https://github.com/Entware/Entware-ng/wiki/Install-on-Synology-NAS

note, every time a patch is released from synology however, entware breaks completely, requiring full reinstallation, because the updates remove all traces of it

ymartin59 commented 6 years ago

I really expect to do it "better". My idea is that package start/stop method creates structure that DSM update "breaks". As a result, "Entware-ng" installation is "refreshed" at each system restart or manual "start" action in Package Center.