<name>Anthony G. Basile</name>
</maintainer>
<use>
+ <flag name="man">Build and install man pages</flag>
<flag name="scrypt">Use <pkg>app-crypt/libscrypt</pkg> for the scrypt algorithm</flag>
<flag name="tor-hardening">Compile tor with hardening on vanilla compilers/linkers</flag>
</use>
LICENSE="BSD GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~arm ~mips ~ppc ~ppc64 ~x86 ~ppc-macos"
-IUSE="caps libressl lzma scrypt seccomp selinux systemd tor-hardening test zstd"
+IUSE="caps doc libressl lzma +man scrypt seccomp selinux systemd tor-hardening test zstd"
DEPEND="
- app-text/asciidoc
dev-libs/libevent[ssl]
sys-libs/zlib
caps? ( sys-libs/libcap )
+ man? ( app-text/asciidoc )
!libressl? ( dev-libs/openssl:0=[-bindist] )
libressl? ( dev-libs/libressl:0= )
lzma? ( app-arch/xz-utils )
"${FILESDIR}"/${PN}-0.3.3.2-alpha-tor.service.in.patch
)
-DOCS=( README ChangeLog ReleaseNotes doc/HACKING )
+DOCS=()
pkg_setup() {
enewgroup tor
}
src_configure() {
+ use doc && DOCS+=( README ChangeLog ReleaseNotes doc/HACKING )
export ac_cv_lib_cap_cap_init=$(usex caps)
econf \
--localstatedir="${EPREFIX}/var" \
--enable-system-torrc \
- --enable-asciidoc \
--disable-android \
--disable-libfuzzer \
--disable-module-dirauth \
--disable-rust \
--disable-restart-debugging \
--disable-zstd-advanced-apis \
+ $(use_enable man asciidoc) \
$(use_enable lzma) \
$(use_enable scrypt libscrypt) \
$(use_enable seccomp) \
insinto /etc/tor/
newins "${FILESDIR}"/torrc-r1 torrc
+
}