Commit Graph
9 Commits
Author SHA1 Message Date
Roger Shimizu 0d96da4471 Sync debian/ folder with debian version 3.3.4+ds-3 2020-03-29 17:49:39 +09:00
Rick Lei e63de4ce23 Turn off errexit option when detecting the apg command
Commit https://github.com/shadowsocks/shadowsocks-libev/commit/f32ac38c2f7aab09ec25131209954957518de42a
allows to use pwgen to generate the initial password at the first
installation. However it won't work when apg isn't installed because:

* the postinst script has errexit option set ("set -e")
* at the first installation of ss-libev, apg or pwgen will be called to
  generate the initial password in config.json
* when apg isn't installed, "pathfind apg" would return 1
* and the postinst script will immediately exit due to "set -e"

This commit temporarily turn off the errexit option for pathfind()
2017-03-09 12:48:37 +08:00
Patrick Li f32ac38c2f Allow the use of pwgen to generate passwords 2017-03-07 16:26:46 +08:00
Roger Shimizu 7467f07984 Add CAP_NET_ADMIN capability to ss-redir in postinst script
Fix #1252
2017-02-15 08:01:00 +08:00
Roger Shimizu b85ae24d7c debian/shadowsocks-libev.postinst: Limit capabilities setting
setcap setting is only for configure/reconfigure case in postinst script
2017-01-06 05:49:19 -06:00
Zhengjun Zhang 363bf5735e Add capabilities for Debian Linux, so you can run ss-* as non-root. 2016-12-31 20:23:05 -06:00
Roger Shimizu 86b3c3a245 Sync debian/ folder with version 2.4.7+20160630+ds-2 (#710)
Changes:
 - Add license of manpages to copyright
 - Change way to handle config file (config.json)
 - Add lintian-overrides
 - Rename/Update docs and install file
2016-07-10 08:58:58 -05:00
Joey Korkames 69fc73a14d fix path typo in debian/postinstall (#691)
Missing slash causes dpkg -i to fail:
---
Setting up shadowsocks-libev (2.4.7-1) ...
sed: can't read etc/shadowsocks-libev/config.json: No such file or directory
dpkg: error processing shadowsocks-libev (--install):
 subprocess installed post-installation script returned error exit status 2
2016-06-28 18:36:04 -05:00
Roger Shimizu 75aeacadd1 Sync debian/ folder (#681)
A few itmes deserve to be mentioned:
 - use apg to generate random password when install.
 - generated password won't get updated when upgrading / reinstall.
 - add more to description to make lintian happy.
 - generated Makefile.am don't need to be listed in debian/copyright.
 - the way of installing systemd service is changed. Thanks to advice
   from Boyuan.
 - multi-arch can be archived without specific setting in debian/rules
 - add debian/watch file
2016-06-19 19:58:52 -05:00