diff options
| author | Gluzskiy Alexandr <sss@sss.chaoslab.ru> | 2018-07-01 11:14:23 +0300 |
|---|---|---|
| committer | Gluzskiy Alexandr <sss@sss.chaoslab.ru> | 2018-07-01 11:14:23 +0300 |
| commit | 2f0b212f2bedffc1ba90d1f88a4bcc1c5d0dbe28 (patch) | |
| tree | 2a5359dc101a213490ce3597a8a16c62168bb6fe /packages/net-vpn/i2pd/i2pd-scm.exheres-0 | |
| parent | 3d253e28e6a7e88619cef8a31dd39285a154b1b0 (diff) | |
i2pd-scm added
Diffstat (limited to 'packages/net-vpn/i2pd/i2pd-scm.exheres-0')
| -rw-r--r-- | packages/net-vpn/i2pd/i2pd-scm.exheres-0 | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/packages/net-vpn/i2pd/i2pd-scm.exheres-0 b/packages/net-vpn/i2pd/i2pd-scm.exheres-0 new file mode 100644 index 0000000..611feaa --- /dev/null +++ b/packages/net-vpn/i2pd/i2pd-scm.exheres-0 @@ -0,0 +1,60 @@ +# Distributed under the terms of the GNU General Public License v2 + +SCM_REPOSITORY="git://github.com/PurpleI2P/i2pd" +require scm-git systemd-service cmake [ api=2 ] +HOMEPAGE="https://github.com/PurpleI2P/i2pd" +SUMMARY="A C++ daemon for accessing the I2P anonymous network" +#LICENSE="BSD" +SLOT="0" +PLATFORMS="~amd64 ~x86" +DOWNLOADS="" + +MYOPTIONS=" + i2p-hardening + pch + upnp + ( + providers: + libressl + openssl + ) + [[ number-selected = exactly-one ]] +" + +MYOPTIONS+=" + amd64_cpu_features: aes avx + x86_cpu_features: aes avx +" + +DEPENDENCIES=" + build+run: + providers:openssl? ( dev-libs/openssl ) + providers:libressl? ( dev-libs/libressl ) + dev-libs/boost[>=1.49] + upnp? ( net-libs/miniupnpc ) +" + +src_configure() { + local cmakeparams=() + if option amd64_cpu_features:aes; then + cmakeparams+=( -DWITH_AESNI=ON ) + fi + if option x86_cpu_features:aes; then + cmakeparams+=( -DWITH_AESNI=ON ) + fi + if option amd64_cpu_features:avx; then + cmakeparams+=( -DWITH_AVX=ON ) + fi + if option x86_cpu_features:avx; then + cmakeparams+=( -DWITH_AVX=ON ) + fi + cmakeparams+=( + $(cmake_with i2p-hardening HARDENING) + $(cmake_with pch PCH) + $(cmake_with upnp UPNP) + -DWITH_LIBRARY=ON + -DWITH_BINARY=ON + ) + CMAKE_SOURCE=${WORKBASE}/${PNV}/build + ecmake "${cmakeparams[@]}" +} |
