Lines 1-36
Link Here
|
1 |
# Created by: Xiaoding Liu <xiaoding+freebsd@xiaoding.org> |
1 |
# $FreeBSD$ |
2 |
# $FreeBSD: head/net/shadowsocks-libev/Makefile 424427 2016-10-21 15:21:13Z mat $ |
|
|
3 |
|
2 |
|
4 |
PORTNAME= shadowsocks-libev |
3 |
PORTNAME= shadowsocks-libev |
5 |
PORTVERSION= 1.6.4 |
4 |
PORTVERSION= 3.0.7 |
6 |
DISTVERSIONPREFIX= v |
5 |
MASTER_SITES=https://github.com/shadowsocks/shadowsocks-libev/releases/download/v${PORTVERSION}/ |
7 |
CATEGORIES= net |
|
|
8 |
|
6 |
|
9 |
MAINTAINER= xiaoding+freebsd@xiaoding.org |
7 |
CATEGORIES= net |
10 |
COMMENT= Lightweight tunnel proxy which can help you get through firewalls |
8 |
MAINTAINER= yp2008cn@gmail.com |
|
|
9 |
COMMENT= Lightweight tunnel proxy which can help you get through firewalls |
11 |
|
10 |
|
12 |
LICENSE= GPLv3 |
11 |
LICENSE= GPLv3 |
13 |
|
12 |
|
14 |
# fetch from github repo |
13 |
LIB_DEPENDS= libudns.so:dns/udns \ |
15 |
USE_GITHUB= yes |
14 |
libev.so:devel/libev \ |
16 |
GH_ACCOUNT= madeye |
15 |
libsodium.so:security/libsodium \ |
17 |
|
16 |
libmbedcrypto.so:security/mbedtls \ |
18 |
GNU_CONFIGURE= yes |
17 |
libpcre.so:devel/pcre |
19 |
USES= gmake libtool:keepla pathfix ssl |
|
|
20 |
CPPFLAGS+= -I${OPENSSLINC} |
21 |
CONFIGURE_ARGS+= --with-openssl=${OPENSSLBASE} |
22 |
|
23 |
# Help solve building error since the integrated libsodium enables this option. |
24 |
CFLAGS+= -fstack-protector |
25 |
|
18 |
|
26 |
USE_RC_SUBR= shadowsocks_libev |
19 |
USE_RC_SUBR= shadowsocks_libev |
27 |
|
20 |
|
28 |
post-patch: |
21 |
HAS_CONFIGURE= yes |
29 |
${REINPLACE_CMD} -e 's|^#ifdef TCP_FASTOPEN|#if defined(TCP_FASTOPEN) \&\& defined(__linux)|' \ |
22 |
CONFIGURE_ARGS= --disable-documentation |
30 |
${WRKSRC}/src/local.c ${WRKSRC}/src/server.c |
|
|
31 |
|
23 |
|
32 |
post-install: |
24 |
post-install: |
33 |
${MKDIR} ${STAGEDIR}${ETCDIR} |
25 |
${MKDIR} ${STAGEDIR}${ETCDIR} |
34 |
${CP} ${WRKSRC}/debian/config.json ${STAGEDIR}${ETCDIR}/config.json.sample |
26 |
${CP} ${WRKSRC}/debian/config.json ${STAGEDIR}${ETCDIR}/config.json.sample |
35 |
|
27 |
|
36 |
.include <bsd.port.mk> |
28 |
.include <bsd.port.mk> |