forked from Lainports/freebsd-ports
security/tor: Add POW option for the Proof of Work module
POW=ON changes icense to GPL. Suggested by: antonialli <antonialli@proton.me>
This commit is contained in:
parent
acc434e453
commit
edf6afad80
1 changed files with 12 additions and 4 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
PORTNAME= tor
|
PORTNAME= tor
|
||||||
DISTVERSION= 0.4.8.13
|
DISTVERSION= 0.4.8.13
|
||||||
PORTREVISION= 1
|
PORTREVISION= 2
|
||||||
CATEGORIES= security net
|
CATEGORIES= security net
|
||||||
MASTER_SITES= TOR
|
MASTER_SITES= TOR
|
||||||
|
|
||||||
|
|
@ -9,7 +9,6 @@ COMMENT= Anonymizing overlay network for TCP
|
||||||
WWW= https://www.torproject.org/
|
WWW= https://www.torproject.org/
|
||||||
|
|
||||||
LICENSE= BSD3CLAUSE
|
LICENSE= BSD3CLAUSE
|
||||||
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
||||||
|
|
||||||
USES= compiler:c11 cpe gmake pkgconfig # should be compiler:c99 or compiler:gnu99
|
USES= compiler:c11 cpe gmake pkgconfig # should be compiler:c99 or compiler:gnu99
|
||||||
USE_CSTD= gnu99 # until this bug report is closed: https://trac.torproject.org/projects/tor/ticket/27900
|
USE_CSTD= gnu99 # until this bug report is closed: https://trac.torproject.org/projects/tor/ticket/27900
|
||||||
|
|
@ -22,11 +21,11 @@ CONFIGURE_ENV= TOR_CPPFLAGS_libevent="-I${LOCALBASE}/include" \
|
||||||
TOR_LDFLAGS_libevent="-L${LOCALBASE}/lib/" \
|
TOR_LDFLAGS_libevent="-L${LOCALBASE}/lib/" \
|
||||||
TOR_LIBEVENT_LIBS="${TOR_LIBEVENT_LIBS}"
|
TOR_LIBEVENT_LIBS="${TOR_LIBEVENT_LIBS}"
|
||||||
|
|
||||||
OPTIONS_DEFINE= MANPAGES DOCS STATIC_TOR TCMALLOC
|
OPTIONS_DEFINE= DOCS MANPAGES POW STATIC_TOR TCMALLOC
|
||||||
OPTIONS_GROUP= COMPRESSION TRACING
|
OPTIONS_GROUP= COMPRESSION TRACING
|
||||||
OPTIONS_GROUP_COMPRESSION= ZSTD LZMA
|
OPTIONS_GROUP_COMPRESSION= ZSTD LZMA
|
||||||
OPTIONS_GROUP_TRACING= LTTNG USDT LOG_DEBUG
|
OPTIONS_GROUP_TRACING= LTTNG USDT LOG_DEBUG
|
||||||
OPTIONS_DEFAULT=MANPAGES ZSTD LZMA
|
OPTIONS_DEFAULT= MANPAGES POW LZMA ZSTD
|
||||||
OPTIONS_SUB= yes
|
OPTIONS_SUB= yes
|
||||||
STATIC_TOR_DESC= Build a static tor
|
STATIC_TOR_DESC= Build a static tor
|
||||||
COMPRESSION_DESC= Supported compression libraries
|
COMPRESSION_DESC= Supported compression libraries
|
||||||
|
|
@ -42,6 +41,9 @@ USERS= _tor
|
||||||
|
|
||||||
CONFLICTS_INSTALL= tor-devel
|
CONFLICTS_INSTALL= tor-devel
|
||||||
|
|
||||||
|
POW_DESC= Enable PoW (Proof of Work) module (licence changes to GPL)
|
||||||
|
POW_CONFIGURE_ENABLE= gpl # gpl enables POW
|
||||||
|
|
||||||
STATIC_TOR_USES= ssl:build
|
STATIC_TOR_USES= ssl:build
|
||||||
STATIC_TOR_USES_OFF= ssl
|
STATIC_TOR_USES_OFF= ssl
|
||||||
|
|
||||||
|
|
@ -70,6 +72,12 @@ BUILD_DEPENDS+= asciidoc:textproc/asciidoc
|
||||||
CONFIGURE_ARGS+= --disable-asciidoc
|
CONFIGURE_ARGS+= --disable-asciidoc
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
|
.if ${PORT_OPTIONS:MPOW}
|
||||||
|
LICENSE= GPLv3
|
||||||
|
.else
|
||||||
|
LICENSE_FILE= ${WRKSRC}/LICENSE # BSD license file
|
||||||
|
.endif
|
||||||
|
|
||||||
.if !defined(USE_GCC) && \
|
.if !defined(USE_GCC) && \
|
||||||
empty(PORT_OPTIONS:MSTATIC_TOR)
|
empty(PORT_OPTIONS:MSTATIC_TOR)
|
||||||
CONFIGURE_ARGS+= --enable-gcc-hardening
|
CONFIGURE_ARGS+= --enable-gcc-hardening
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue