stunnel: Update init script 8070/head
authorJeffery To <jeffery.to@gmail.com>
Tue, 29 Jan 2019 13:21:20 +0000 (21:21 +0800)
committerJeffery To <jeffery.to@gmail.com>
Tue, 29 Jan 2019 13:49:23 +0000 (21:49 +0800)
commit8bb3eba3c22f81488f6702ca0c31eeae0441aec0
treebc9beb87441617118eddb667461c5a989af49bba
parenteffc8b5bf856d3f1b18be662f6fcb3da1f23566a
stunnel: Update init script

The reworked init script:
* Loads and validates options using uci_validate_section() (through
  uci_load_validate())
* Allows service options be specified in the globals section
* Hard-codes less global options (debug, syslog), as their default
  values already work
* Adds support for almost all options (up to the current package
  version, 5.49)
* Moves the pid file into a subdirectory (/var/run/stunnel) so that it
  can be created successfully when setuid is used

Certain options are omitted:
* chroot - requires more setup than the init script can manage
* fips, libwrap - disabled at compile-time
* iconActive, iconError, iconIdle, taskbar - gui/win32 only
* verify - obsolete, verifyChain and/or verifyPeer should be used
  instead

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
net/stunnel/Makefile
net/stunnel/files/stunnel.init
net/stunnel/files/stunnel.uci