--- tor-0.2.5.10.ebuild 2014-11-01 19:54:37.673072244 +0100 +++ tor-0.2.5.10-r1.ebuild 2014-11-01 19:54:37.675072130 +0100 @@ -17,7 +17,7 @@ LICENSE="BSD GPL-2" SLOT="0" KEYWORDS="~amd64 ~arm ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" -IUSE="-bufferevents +ecc nat-pmp selinux stats tor-hardening transparent-proxy threads test upnp web" +IUSE="-bufferevents +ecc nat-pmp seccomp selinux stats tor-hardening transparent-proxy threads test upnp web" DEPEND="dev-libs/openssl sys-libs/zlib @@ -25,6 +25,7 @@ bufferevents? ( dev-libs/libevent[ssl] ) nat-pmp? ( net-libs/libnatpmp ) upnp? ( net-libs/miniupnpc ) + seccomp? ( sys-libs/libseccomp ) selinux? ( sec-policy/selinux-tor )" RDEPEND="${DEPEND}" @@ -50,6 +51,7 @@ $(use_enable bufferevents) \ $(use_enable ecc curve25519) \ $(use_enable nat-pmp) \ + $(use_enable seccomp) \ $(use_enable tor-hardening gcc-hardening) \ $(use_enable tor-hardening linker-hardening) \ $(use_enable transparent-proxy transparent) \ @@ -96,4 +98,8 @@ ewarn " http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59358" ewarn fi + + if use seccomp; then + elog "You may need to enable \"Sandbox\" option at your torrc config for use of seccomp syscall feature" + fi }