Skip to content

Commit

Permalink
Update Debian dependency and bump library soname (shadowsocks#814)
Browse files Browse the repository at this point in the history
* debian: add libpcre3-dev as build dependency.

* Bump soname of libshadowsocks-libev.

Soname for libshadowsocks-libev is bumped
from 1:0:0 to 2:0:0 due to ABI breakage
between shadowsocks-libev 2.5.0 and 2.5.1.
  • Loading branch information
hosiet authored and madeye committed Sep 8, 2016
1 parent fef0271 commit c12e450
Show file tree
Hide file tree
Showing 8 changed files with 46 additions and 26 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ debian/shadowsocks-libev.substvars
debian/*.debhelper*
.dirstamp
shadowsocks-libev.pc
debian/libshadowsocks-libev1.symbols
debian/libshadowsocks-libev*.symbols
libsodium/src/libsodium/include/sodium/version.h

# Ignore per-project vim config
Expand Down
2 changes: 1 addition & 1 deletion debian/.gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
*.substvars
debhelper-build-stamp
libshadowsocks-libev1/
libshadowsocks-libev*/
libshadowsocks-libev-dev/
tmp/
58 changes: 39 additions & 19 deletions debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -2,34 +2,51 @@ Source: shadowsocks-libev
Section: net
Priority: extra
Maintainer: Max Lv <max.c.lv@gmail.com>
Build-Depends: debhelper (>= 9), dh-systemd (>= 1.5), pkg-config,
libssl-dev (>= 0.9.8), autotools-dev, mime-support, gawk,
asciidoc, xmlto, libpcre3-dev
Build-Depends:
asciidoc,
autotools-dev,
debhelper (>= 9),
dh-systemd (>= 1.5),
gawk,
libpcre3-dev,
libssl-dev (>= 0.9.8),
mime-support,
pkg-config,
xmlto,
Standards-Version: 3.9.8
Homepage: https://www.shadowsocks.org
Vcs-Git: https://github.com/shadowsocks/shadowsocks-libev.git
Vcs-Browser: https://github.com/shadowsocks/shadowsocks-libev

Package: shadowsocks-libev
Replaces: shadowsocks (<< 1.5.3-2)
Breaks: shadowsocks (<< 1.5.3-2)
Package: libshadowsocks-libev-dev
Architecture: any
Depends: apg, ${shlibs:Depends}, ${misc:Depends}
Description: lightweight and secure socks5 proxy
Section: libdevel
Breaks:
shadowsocks-libev (<< 2.4.0),
Depends:
libshadowsocks-libev2 (= ${binary:Version}),
${misc:Depends},
Description: lightweight and secure socks5 proxy (development files)
Shadowsocks-libev is a lightweight and secure socks5 proxy for
embedded devices and low end boxes.
.
Shadowsocks-libev was inspired by Shadowsock (in Python). It's rewritten
in pure C and only depends on libev, mbedTLS and a few other tiny
libraries.
.
This package provides C header files for the libraries.

Package: libshadowsocks-libev1
Package: libshadowsocks-libev2
Architecture: any
Multi-Arch: same
Section: libs
Breaks: shadowsocks-libev (<< 2.4.0)
Pre-Depends: ${misc:Pre-Depends}
Depends: ${shlibs:Depends}, ${misc:Depends}
Breaks:
shadowsocks-libev (<< 2.4.0),
Pre-Depends:
${misc:Pre-Depends},
Depends:
${misc:Depends},
${shlibs:Depends},
Description: lightweight and secure socks5 proxy (shared library)
Shadowsocks-libev is a lightweight and secure socks5 proxy for
embedded devices and low end boxes.
Expand All @@ -40,17 +57,20 @@ Description: lightweight and secure socks5 proxy (shared library)
.
This package provides shared libraries.

Package: libshadowsocks-libev-dev
Package: shadowsocks-libev
Replaces:
shadowsocks (<< 1.5.3-2),
Breaks:
shadowsocks (<< 1.5.3-2),
Architecture: any
Section: libdevel
Breaks: shadowsocks-libev (<< 2.4.0)
Depends: libshadowsocks-libev1 (= ${binary:Version}), ${misc:Depends}
Description: lightweight and secure socks5 proxy (development files)
Depends:
apg,
${misc:Depends},
${shlibs:Depends},
Description: lightweight and secure socks5 proxy
Shadowsocks-libev is a lightweight and secure socks5 proxy for
embedded devices and low end boxes.
.
Shadowsocks-libev was inspired by Shadowsock (in Python). It's rewritten
in pure C and only depends on libev, mbedTLS and a few other tiny
libraries.
.
This package provides C header files for the libraries.
2 changes: 1 addition & 1 deletion debian/libshadowsocks-libev-dev.install
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
usr/include/
usr/lib/*/pkgconfig/
usr/lib/*/libshadowsocks-libev.so
usr/lib/*/pkgconfig/
File renamed without changes.
4 changes: 2 additions & 2 deletions debian/shadowsocks-libev.install
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
usr/bin/
usr/share/man/
debian/config.json usr/share/shadowsocks-libev
debian/shadowsocks-libev-*.service lib/systemd/system
usr/bin/
usr/share/man/
2 changes: 1 addition & 1 deletion src/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION_INFO = 1:0:0
VERSION_INFO = 2:0:0

AM_CFLAGS = -g -O2 -Wall -Werror -Wno-deprecated-declarations -fno-strict-aliasing -std=gnu99 -D_GNU_SOURCE
AM_CFLAGS += $(PTHREAD_CFLAGS)
Expand Down
2 changes: 1 addition & 1 deletion src/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ target_alias = @target_alias@
top_build_prefix = @top_build_prefix@
top_builddir = @top_builddir@
top_srcdir = @top_srcdir@
VERSION_INFO = 1:0:0
VERSION_INFO = 2:0:0
AM_CFLAGS = -g -O2 -Wall -Werror -Wno-deprecated-declarations \
-fno-strict-aliasing -std=gnu99 -D_GNU_SOURCE \
$(PTHREAD_CFLAGS) $(am__append_1) \
Expand Down

0 comments on commit c12e450

Please sign in to comment.