There are quite a few things that probably should be looked into in this package.
- The postinst should be created in an appropriate environment before the package is created, not after it is created. If nxserver can't handle that, the postinst steps should be performed manually.
- The postinst should not start or enable nxserver, this should be left up to the user. Starting and enabling services isn't an appropriate thing to do in a postinst.
- Packaged files are removed after packaging, which means
pacman -Qk
fails. - The installer isn't given the appropriate XDG environment, so it creates a root directory, /applications-merged:
% ls -l /applications-merged
total 4
-rw-r--r-- 1 root root 593 Apr 13 14:18 NoMachine-dir.menu
Pinned Comments
runnytu commented on 2021-02-20 13:44 (UTC)
Since nomachine 7.1.3-2 the default behavior of the package is StartNXDaemon Manual and FirewallConfiguration 0 on a new installation, if you want to change this, you need to modify PKGBUILD build options with your desire behavior:
BUILD OPTIONS
Set to y to enable nomachine service autostart
_autoservice=n
Set to y to enable firewall autorules
_autofirewall=n
END BUILD OPTIONS