Browse Source
Sync debian/ folder (#681)
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 filepull/687/head
committed by
Max Lv
8 changed files with 115 additions and 61 deletions
Unified View
Diff Options
-
18debian/control
-
86debian/copyright
-
4debian/libshadowsocks-libev1.install
-
35debian/rules
-
3debian/shadowsocks-libev.init
-
1debian/shadowsocks-libev.install
-
23debian/shadowsocks-libev.postinst
-
6debian/watch
@ -1,3 +1 @@ |
|||||
usr/lib/*/libshadowsocks-libev.so.1 |
|
||||
usr/lib/*/libshadowsocks-libev.so.1.0.0 |
|
||||
usr/lib/*/libshadowsocks-libev.la |
|
||||
|
usr/lib/*/libshadowsocks-libev.so.* |
@ -1,3 +1,4 @@ |
|||||
usr/bin/ |
usr/bin/ |
||||
usr/share/man/ |
usr/share/man/ |
||||
debian/config.json etc/shadowsocks-libev |
debian/config.json etc/shadowsocks-libev |
||||
|
debian/shadowsocks-libev-*.service lib/systemd/system |
@ -0,0 +1,23 @@ |
|||||
|
#!/bin/sh |
||||
|
|
||||
|
set -e |
||||
|
|
||||
|
case "$1" in |
||||
|
configure|reconfigure) |
||||
|
# continue |
||||
|
;; |
||||
|
abort-upgrade|abort-remove|abort-deconfigure) |
||||
|
exit 0 |
||||
|
;; |
||||
|
*) |
||||
|
echo "postinst called with unknown argument \`$1'" >&2 |
||||
|
exit 0 |
||||
|
;; |
||||
|
esac |
||||
|
|
||||
|
passwd=$(apg -n 1 -M ncl) |
||||
|
sed -i "s/barfoo!/$passwd/" etc/shadowsocks-libev/config.json |
||||
|
|
||||
|
#DEBHELPER# |
||||
|
|
||||
|
exit 0 |
@ -0,0 +1,6 @@ |
|||||
|
version=4 |
||||
|
|
||||
|
opts=" \ |
||||
|
filenamemangle=s%(?:.*?)?v?(\d[\d.]*)\.tar\.gz%shadowsocks-libev-$1.tar.gz%" \ |
||||
|
https://github.com/shadowsocks/shadowsocks-libev/tags \ |
||||
|
(?:.*?/)?v?(\d[\d.]*)\.tar\.gz debian uupdate |
Write
Preview
Loading…
Cancel
Save