aboutsummaryrefslogtreecommitdiffstats
path: root/testing/shadowsocks-libev/APKBUILD
blob: daf61cdf22a118d64f55453b34d19c2d2a556817 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=shadowsocks-libev
pkgver=3.3.4
pkgrel=0
pkgdesc="lightweight secured SOCKS5 proxy"
url="https://shadowsocks.org/en/download/servers.html"
arch="all"
license="GPL-3.0-or-later"
makedepends="asciidoc autoconf automake libtool linux-headers libcorkipset-dev
	mbedtls-dev pcre-dev xmlto libev-dev c-ares-dev libsodium-dev zlib-dev libbloom-dev"
subpackages="$pkgname-dev $pkgname-doc lib$pkgname:libs"
source="shadowsocks-libev-$pkgver.tar.gz::https://github.com/shadowsocks/shadowsocks-libev/archive/v$pkgver.tar.gz
	use-upstream-libcorkipset-libbloom.patch
	"

# secfixes
#   3.3.4-r0:
#     - CVE-2019-5163
#     - CVE-2019-5164

prepare() {
	default_prepare
	./autogen.sh
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--enable-shared \
		--enable-system-shared-lib
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="4fb9e4a62f86f1504aab71022b5078a1f97b1f14da82c7b456dc9eaed23be990430769f37b7c2855c266be40ec215237bb0a40d254dffac8556ec4719cc9aa6d  shadowsocks-libev-3.3.4.tar.gz
6e14365fb65731e4f9573b39dd7849d47392b39db52aeffee0e91ee767db2361b053f02bc96cc439e5b677d85c09cd44fd905d6b1fca8b10d2e650d8c41a16e0  use-upstream-libcorkipset-libbloom.patch"