Skip to content

Commit

Permalink
Refine debian packaging (#83)
Browse files Browse the repository at this point in the history
* Refine debian packaging

* Bump debian version
  • Loading branch information
simonsmh authored and zonyitoo committed Nov 9, 2017
1 parent dc8f7e2 commit f6e57b7
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 33 deletions.
6 changes: 6 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
shadowsocks-rust (1.6.8) unstable; urgency=medium

* Upstream bump version.

-- Simon Shi <[email protected]> Wed, 08 Nov 2017 14:27:18 +0800

shadowsocks-rust (1.6.6+deb1) unstable; urgency=medium

* Add debian files.
Expand Down
8 changes: 5 additions & 3 deletions debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ Homepage: https://github.com/shadowsocks/shadowsocks-rust

Package: shadowsocks-rust
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
Depends: ${shlibs:Depends}, ${misc:Depends}, lsb-base
Conflicts: shadowsocks
Description: Rust port of shadowsocks.
shadowsocks is a fast tunnel proxy that helps you bypass firewalls.
Description: Rust port of shadowsocks, a secure socks5 proxy
Shadowsocks is a fast tunnel proxy that helps you bypass firewalls.
Shadowsocks-rust was inspired by Shadowsock (in Python). It's rewritten
in rust.
11 changes: 3 additions & 8 deletions debian/copyright
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: shadowsocks-rust
Source: <url://example.com>
Source: https://github.com/shadowsocks/shadowsocks-rust

Files: *
Copyright: <years> <put author's name and email here>
<years> <likewise for another author>
Copyright: 2014 Y. T. CHUNG <[email protected]>
License: MIT

Files: debian/*
Copyright: 2017 Shigure Moe <feng591892871@gmail.com>
Copyright: 2017 Simon Shi <simonsmh@gmail.com>
License: MIT

License: MIT
Expand All @@ -30,7 +29,3 @@ License: MIT
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

# Please also look if there are files or directories which have a
# different copyright/license attached and list them here.
# Please avoid picking licenses with terms that are more restrictive than the
# packaged work, as it may make Debian's contributions unacceptable upstream.
22 changes: 0 additions & 22 deletions debian/rules
Original file line number Diff line number Diff line change
@@ -1,32 +1,10 @@
#!/usr/bin/make -f
# See debhelper(7) (uncomment to enable)
# output every command that modifies files on the build system.
export DH_VERBOSE = 1


# see FEATURE AREAS in dpkg-buildflags(1)
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

# see ENVIRONMENT in dpkg-buildflags(1)
# package maintainers to append CFLAGS
#export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic
# package maintainers to append LDFLAGS
#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed


override_dh_auto_build:
dh_auto_build -- TARGET=release

override_dh_auto_install:
dh_auto_install -- TARGET=release PREFIX=/usr/bin


%:
dh $@


# dh_make generated override targets
# This is example for Cmake (See https://bugs.debian.org/641051 )
#override_dh_auto_configure:
# dh_auto_configure -- # -DCMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH)

1 change: 1 addition & 0 deletions debian/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

[Unit]
Description=Shadowsocks-rust Custom Client Service for %I
Documentation=https://github.com/shadowsocks/shadowsocks-rust
After=network.target

[Service]
Expand Down
1 change: 1 addition & 0 deletions debian/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

[Unit]
Description=Shadowsocks-rust Custom Server Service for %I
Documentation=https://github.com/shadowsocks/shadowsocks-rust
After=network.target

[Service]
Expand Down
1 change: 1 addition & 0 deletions debian/shadowsocks-rust.service
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

[Unit]
Description=Shadowsocks-rust Default Server Service
Documentation=https://github.com/shadowsocks/shadowsocks-rust
After=network.target

[Service]
Expand Down

0 comments on commit f6e57b7

Please sign in to comment.