diff options
author | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2016-01-23 13:13:15 +0000 |
---|---|---|
committer | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2016-01-23 13:13:15 +0000 |
commit | c8b7795c68979ec4ce5e57c095cbbc023e88a728 (patch) | |
tree | fd9e8a5aab38188288aceec9fdee67e916a8b394 /security/i2pd | |
parent | c61cd8896e52a39be489db0cb7f864a530f1abad (diff) |
C++ implementation of I2P client
WWW: http://i2pd.website/
Notes
Notes:
svn path=/head/; revision=406977
Diffstat (limited to 'security/i2pd')
-rw-r--r-- | security/i2pd/Makefile | 49 | ||||
-rw-r--r-- | security/i2pd/distinfo | 2 | ||||
-rw-r--r-- | security/i2pd/files/patch-build_CMakeLists.txt | 35 | ||||
-rw-r--r-- | security/i2pd/pkg-descr | 3 |
4 files changed, 89 insertions, 0 deletions
diff --git a/security/i2pd/Makefile b/security/i2pd/Makefile new file mode 100644 index 000000000000..f97fa89392d3 --- /dev/null +++ b/security/i2pd/Makefile @@ -0,0 +1,49 @@ +# Created by: Dmitry Marakasov <amdmi3@FreeBSD.org> +# $FreeBSD$ + +PORTNAME= i2pd +PORTVERSION= 2.3.0 +CATEGORIES= security net-p2p + +MAINTAINER= amdmi3@FreeBSD.org +COMMENT= C++ implementation of I2P client + +LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE + +LIB_DEPENDS= libboost_thread.so:${PORTSDIR}/devel/boost-libs + +BROKEN_FreeBSD_9= does not build + +USE_GITHUB= yes +GH_ACCOUNT= PurpleI2P + +USES= cmake compiler:c++11-lib +CMAKE_SOURCE_PATH=${WRKSRC}/build +USE_OPENSSL= yes + +PLIST_FILES= bin/${PORTNAME} \ + man/man1/${PORTNAME}.1.gz +PORTDOCS= * + +OPTIONS_DEFINE= AESNI UPNP DOCS + +AESNI_DESC= Use AES-NI instructions set +AESNI_CMAKE_ON= -DWITH_AESNI=ON +AESNI_CMAKE_OFF=-DWITH_AESNI=OFF + +UPNP_DESC= Include support for UPnP client +UPNP_CMAKE_ON= -DWITH_UPNP=ON +UPNP_CMAKE_OFF= -DWITH_UPNP=OFF +UPNP_LIB_DEPENDS=libminiupnpc.so:${PORTSDIR}/net/miniupnpc + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin + ${INSTALL_MAN} ${WRKSRC}/debian/${PORTNAME}.1 ${STAGEDIR}${MAN1PREFIX}/man/man1 + +do-install-DOCS-on: + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/docs/configuration.md ${STAGEDIR}${DOCSDIR}/ + +.include <bsd.port.mk> diff --git a/security/i2pd/distinfo b/security/i2pd/distinfo new file mode 100644 index 000000000000..7f4250f39ce7 --- /dev/null +++ b/security/i2pd/distinfo @@ -0,0 +1,2 @@ +SHA256 (PurpleI2P-i2pd-2.3.0_GH0.tar.gz) = 2397311cb10b04b843d136d9afe01b57f92bfaff72324cfa370f2d0fd74ae7dd +SIZE (PurpleI2P-i2pd-2.3.0_GH0.tar.gz) = 367391 diff --git a/security/i2pd/files/patch-build_CMakeLists.txt b/security/i2pd/files/patch-build_CMakeLists.txt new file mode 100644 index 000000000000..727126e7f886 --- /dev/null +++ b/security/i2pd/files/patch-build_CMakeLists.txt @@ -0,0 +1,35 @@ +--- build/CMakeLists.txt.orig 2016-01-12 15:14:22 UTC ++++ build/CMakeLists.txt +@@ -209,7 +209,7 @@ else() + endif () + + if (WITH_PCH) +- include_directories(${CMAKE_BINARY_DIR}) ++ include_directories( BEFORE ${CMAKE_BINARY_DIR}) + add_library(stdafx STATIC "${CMAKE_SOURCE_DIR}/stdafx.cpp") + if(MSVC) + target_compile_options(stdafx PRIVATE /Ycstdafx.h /Zm155) +@@ -246,11 +246,9 @@ if(NOT DEFINED OPENSSL_INCLUDE_DIR) + message(SEND_ERROR "Could not find OpenSSL. Please download and install it first!") + endif() + +-find_package ( MiniUPnPc ) +-if (MINIUPNPC_FOUND) +- include_directories( ${MINIUPNPC_INCLUDE_DIR} ) +-else () +- set(WITH_UPNP OFF) ++if (WITH_UPNP) ++ find_package ( MiniUPnPc REQUIRED ) ++ include_directories( SYSTEM ${MINIUPNPC_INCLUDE_DIR} ) + endif() + + find_package ( ZLIB ) +@@ -289,7 +287,7 @@ endif () + link_directories(${CMAKE_CURRENT_BINARY_DIR}/zlib/lib ${ZLIB_ROOT}/lib) + + # load includes +-include_directories( ${Boost_INCLUDE_DIRS} ${OPENSSL_INCLUDE_DIR} ${ZLIB_INCLUDE_DIR} ) ++include_directories( SYSTEM ${Boost_INCLUDE_DIRS} ${OPENSSL_INCLUDE_DIR} ${ZLIB_INCLUDE_DIR} ) + + # show summary + message(STATUS "---------------------------------------") diff --git a/security/i2pd/pkg-descr b/security/i2pd/pkg-descr new file mode 100644 index 000000000000..a7f11ea40784 --- /dev/null +++ b/security/i2pd/pkg-descr @@ -0,0 +1,3 @@ +C++ implementation of I2P client + +WWW: http://i2pd.website/ |