Changeset View
Changeset View
Standalone View
Standalone View
head/net/shadowsocks-libev/Makefile
# Created by: Xiaoding Liu <xiaoding+freebsd@xiaoding.org> | # Created by: Xiaoding Liu <xiaoding+freebsd@xiaoding.org> | ||||
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME= shadowsocks-libev | PORTNAME= shadowsocks-libev | ||||
PORTVERSION= 3.1.0 | |||||
DISTVERSIONPREFIX= v | DISTVERSIONPREFIX= v | ||||
DISTVERSION= 3.1.3 | |||||
CATEGORIES= net | CATEGORIES= net | ||||
MAINTAINER= xiaoding+freebsd@xiaoding.org | MAINTAINER= xiaoding+freebsd@xiaoding.org | ||||
COMMENT= Lightweight tunnel proxy which can help you get through firewalls | COMMENT= Lightweight tunnel proxy which can help you get through firewalls | ||||
LICENSE= GPLv3 | LICENSE= GPLv3 | ||||
LICENSE_FILE= ${WRKSRC}/LICENSE | |||||
LIB_DEPENDS= libev.so:devel/libev \ | LIB_DEPENDS= libev.so:devel/libev \ | ||||
libmbedcrypto.so:security/mbedtls \ | libmbedcrypto.so:security/mbedtls \ | ||||
libpcre.so:devel/pcre \ | libpcre.so:devel/pcre \ | ||||
libsodium.so:security/libsodium \ | libsodium.so:security/libsodium \ | ||||
libcares.so:dns/c-ares | libcares.so:dns/c-ares | ||||
USES= autoreconf gmake libtool:keepla pathfix | USES= autoreconf gmake libtool:keepla pathfix | ||||
GNU_CONFIGURE= yes | |||||
# fetch from github repo | CONFIGURE_ARGS= --enable-shared | ||||
USE_GITHUB= yes | USE_GITHUB= yes | ||||
GH_ACCOUNT= shadowsocks | GH_ACCOUNT= shadowsocks | ||||
GH_TUPLE= shadowsocks:libcork:0220aa5:libcork/libcork \ | GH_TUPLE= shadowsocks:libbloom:7a9deb8:libbloom/libbloom \ | ||||
shadowsocks:ipset:3ea7fe3:libipset/libipset \ | shadowsocks:libcork:0220aa5:libcork/libcork \ | ||||
shadowsocks:libbloom:7a9deb8:libbloom/libbloom | shadowsocks:ipset:3ea7fe3:libipset/libipset | ||||
INSTALL_TARGET= install-strip | |||||
USE_LDCONFIG= yes | |||||
GNU_CONFIGURE= yes | OPTIONS_DEFINE= BASH DOCS ZSH | ||||
mat: Is there a reason the completion are not always enabled ? | |||||
adamwUnsubmitted Not Done Inline ActionsIt looked weird and I couldn't connect why. Yuri, @mat is correct. These shouldn't be options at all. They should always be installed. adamw: It looked weird and I couldn't connect why. Yuri, @mat is correct. These shouldn't be options… | |||||
yuriAuthorUnsubmitted Not Done Inline ActionsI did this on the thinking that completions are extra-options, not necessary in general. yuri: I did this on the thinking that completions are extra-options, not necessary in general. | |||||
matUnsubmitted Not Done Inline ActionsThank you for your input, this was already considered. Completions should always be installed by default, see Shell Completion Files. mat: Thank you for your input, this was already considered. Completions should always be installed… | |||||
OPTIONS_DEFINE= DOCS | |||||
OPTIONS_SUB= yes | OPTIONS_SUB= yes | ||||
DOCS_BUILD_DEPENDS= asciidoc:textproc/asciidoc \ | DOCS_BUILD_DEPENDS= asciidoc:textproc/asciidoc \ | ||||
xmlto:textproc/xmlto | xmlto:textproc/xmlto | ||||
DOCS_CONFIGURE_OFF= --disable-documentation | DOCS_CONFIGURE_OFF= --disable-documentation | ||||
USE_RC_SUBR= shadowsocks_libev | USE_RC_SUBR= shadowsocks_libev | ||||
post-patch: | post-patch: | ||||
${REINPLACE_CMD} -e 's|^#ifdef TCP_FASTOPEN|#if defined(TCP_FASTOPEN) \&\& defined(__linux)|' \ | @${REINPLACE_CMD} -e 's|^#ifdef TCP_FASTOPEN|#if defined(TCP_FASTOPEN) \&\& defined(__linux)|' \ | ||||
${WRKSRC}/src/local.c ${WRKSRC}/src/server.c | ${WRKSRC}/src/local.c ${WRKSRC}/src/server.c | ||||
post-install: | post-install: | ||||
${MKDIR} ${STAGEDIR}${ETCDIR} | @${MKDIR} ${STAGEDIR}${ETCDIR} | ||||
${INSTALL_DATA} ${WRKSRC}/debian/config.json ${STAGEDIR}${ETCDIR}/config.json.sample | ${INSTALL_DATA} ${WRKSRC}/debian/config.json ${STAGEDIR}${ETCDIR}/config.json.sample | ||||
post-install-BASH-on: | |||||
@${MKDIR} ${STAGEDIR}${PREFIX}/share/bash-completion/completions | |||||
.for c in ss-local ss-manager ss-redir ss-server ss-tunnel | |||||
${INSTALL_DATA} ${WRKSRC}/completions/bash/${c} ${STAGEDIR}${PREFIX}/share/bash-completion/completions/${c} | |||||
.endfor | |||||
post-install-ZSH-on: | |||||
@${MKDIR} ${STAGEDIR}${PREFIX}/share/zsh/site-functions | |||||
.for c in _ss-local _ss-manager _ss-redir _ss-server _ss-tunnel | |||||
${INSTALL_DATA} ${WRKSRC}/completions/zsh/${c} ${STAGEDIR}${PREFIX}/share/zsh/site-functions/${c} | |||||
.endfor | |||||
.include <bsd.port.mk> | .include <bsd.port.mk> |
Is there a reason the completion are not always enabled ?