Lines 2-8
Link Here
|
2 |
# $FreeBSD$ |
2 |
# $FreeBSD$ |
3 |
|
3 |
|
4 |
PORTNAME= shadowsocks-libev |
4 |
PORTNAME= shadowsocks-libev |
5 |
PORTVERSION= 2.4.7 |
5 |
PORTVERSION= 3.0.7 |
6 |
DISTVERSIONPREFIX= v |
6 |
DISTVERSIONPREFIX= v |
7 |
CATEGORIES= net |
7 |
CATEGORIES= net |
8 |
|
8 |
|
Lines 11-28
Link Here
|
11 |
|
11 |
|
12 |
LICENSE= GPLv3 |
12 |
LICENSE= GPLv3 |
13 |
|
13 |
|
|
|
14 |
BUILD_DEPENDS= asciidoc:textproc/asciidoc \ |
15 |
xmlto:textproc/xmlto |
16 |
LIB_DEPENDS= libev.so:devel/libev \ |
17 |
libmbedcrypto.so:security/mbedtls \ |
18 |
libpcre.so:devel/pcre \ |
19 |
libsodium.so:security/libsodium \ |
20 |
libudns.so:dns/udns |
21 |
|
14 |
# fetch from github repo |
22 |
# fetch from github repo |
15 |
USE_GITHUB= yes |
23 |
USE_GITHUB= yes |
16 |
GH_ACCOUNT= shadowsocks |
24 |
GH_ACCOUNT= shadowsocks |
|
|
25 |
GH_TUPLE= shadowsocks:libcork:0220aa5:libcork/libcork \ |
26 |
shadowsocks:ipset:3ea7fe3:libipset/libipset \ |
27 |
shadowsocks:libbloom:7a9deb8:libbloom/libbloom |
17 |
|
28 |
|
18 |
GNU_CONFIGURE= yes |
29 |
GNU_CONFIGURE= yes |
19 |
USES= gmake libtool:keepla pathfix ssl |
30 |
USES= autoreconf gmake libtool:keepla pathfix |
20 |
CPPFLAGS+= -I${OPENSSLINC} |
|
|
21 |
CONFIGURE_ARGS+= --with-openssl=${OPENSSLBASE} |
22 |
|
31 |
|
23 |
# Help solve building error since the integrated libsodium enables this option. |
|
|
24 |
CFLAGS+= -fstack-protector |
25 |
|
26 |
USE_RC_SUBR= shadowsocks_libev |
32 |
USE_RC_SUBR= shadowsocks_libev |
27 |
|
33 |
|
28 |
post-patch: |
34 |
post-patch: |
Lines 31-36
Link Here
|
31 |
|
37 |
|
32 |
post-install: |
38 |
post-install: |
33 |
${MKDIR} ${STAGEDIR}${ETCDIR} |
39 |
${MKDIR} ${STAGEDIR}${ETCDIR} |
34 |
${CP} ${WRKSRC}/debian/config.json ${STAGEDIR}${ETCDIR}/config.json.sample |
40 |
${CP} ${WRKSRC}/debian/config.json ${STAGEDIR}${ETCDIR}/config.json.sample |
35 |
|
41 |
|
36 |
.include <bsd.port.mk> |
42 |
.include <bsd.port.mk> |