mirror of
https://github.com/shadowsocks/shadowsocks-libev.git
synced 2026-11-03 00:13:42 +00:00
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
This commit is contained in:
Vendored
+13
@@ -46,6 +46,10 @@ License: BSD-3-clause
|
||||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
Files: man/*
|
||||
Copyright: 2012-2016, Max Lv <max.c.lv@gmail.com>
|
||||
License: GFDL-1.1+
|
||||
|
||||
Files: src/json.c src/json.h
|
||||
Copyright: 2012-2014, James McLaughlin et al.
|
||||
License: BSD-2-clause
|
||||
@@ -104,6 +108,15 @@ License: BSD-2-clause
|
||||
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
SUCH DAMAGE.
|
||||
|
||||
License: GFDL-1.1+
|
||||
Permission is granted to copy, distribute and/or modify this document
|
||||
under the terms of the GNU Free Documentation License, Version 1.1 or
|
||||
any later version published by the Free Software Foundation;
|
||||
with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.
|
||||
.
|
||||
A copy of the license is included in the section entitled
|
||||
"GNU Free Documentation License".
|
||||
|
||||
License: GPL-3+
|
||||
This package is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
|
||||
Vendored
-1
@@ -1 +0,0 @@
|
||||
debian/config.json /etc/shadowsocks-libev
|
||||
Vendored
+1
-1
@@ -22,4 +22,4 @@ override_dh_installchangelogs:
|
||||
dh_installchangelogs -XChanges
|
||||
|
||||
%:
|
||||
dh $@ --with systemd
|
||||
dh $@ --with systemd
|
||||
|
||||
+1
@@ -1,2 +1,3 @@
|
||||
AUTHORS
|
||||
README.md
|
||||
debian/copyright.original
|
||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
usr/bin/
|
||||
usr/share/man/
|
||||
debian/config.json etc/shadowsocks-libev
|
||||
debian/config.json usr/share/shadowsocks-libev
|
||||
debian/shadowsocks-libev-*.service lib/systemd/system
|
||||
|
||||
Vendored
+6
-4
@@ -4,7 +4,12 @@ set -e
|
||||
|
||||
case "$1" in
|
||||
configure|reconfigure)
|
||||
# continue
|
||||
if [ ! -f /etc/shadowsocks-libev/config.json ]; then
|
||||
passwd=$(apg -n 1 -M ncl)
|
||||
mkdir -p /etc/shadowsocks-libev
|
||||
sed "s/barfoo!/$passwd/" /usr/share/shadowsocks-libev/config.json \
|
||||
> /etc/shadowsocks-libev/config.json
|
||||
fi
|
||||
;;
|
||||
abort-upgrade|abort-remove|abort-deconfigure)
|
||||
exit 0
|
||||
@@ -15,9 +20,6 @@ case "$1" in
|
||||
;;
|
||||
esac
|
||||
|
||||
passwd=$(apg -n 1 -M ncl)
|
||||
sed -i "s/barfoo!/$passwd/" /etc/shadowsocks-libev/config.json
|
||||
|
||||
#DEBHELPER#
|
||||
|
||||
exit 0
|
||||
|
||||
Vendored
+22
@@ -0,0 +1,22 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
case "$1" in
|
||||
purge)
|
||||
rm -f /etc/shadowsocks-libev/config.json
|
||||
test -f /etc/shadowsocks-libev/* \
|
||||
|| rm -r /etc/shadowsocks-libev/
|
||||
;;
|
||||
remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
|
||||
exit 0
|
||||
;;
|
||||
*)
|
||||
echo "postrm called with unknown argument \`$1'" >&2
|
||||
exit 0
|
||||
;;
|
||||
esac
|
||||
|
||||
#DEBHELPER#
|
||||
|
||||
exit 0
|
||||
Vendored
+4
@@ -0,0 +1,4 @@
|
||||
# false positive: #505857
|
||||
shadowsocks-libev source: debian-watch-file-should-mangle-version
|
||||
# false positive: #765166
|
||||
shadowsocks-libev source: license-problem-gfdl-invariants
|
||||
Reference in New Issue
Block a user