diff options
author | Pawel Pekala <pawel@FreeBSD.org> | 2011-10-05 23:02:19 +0000 |
---|---|---|
committer | Pawel Pekala <pawel@FreeBSD.org> | 2011-10-05 23:02:19 +0000 |
commit | 4043d650c06153f3c7e0d0f38b6fe8b935825101 (patch) | |
tree | 900e0f53d5302043fcaa7a281536eaa5ec6deab3 | |
parent | dbf80a46695ad7ab3c11bc9c6757ad94e6259c44 (diff) |
Notes
-rw-r--r-- | net-p2p/Makefile | 1 | ||||
-rw-r--r-- | net-p2p/eiskaltdcpp-daemon/Makefile | 53 | ||||
-rw-r--r-- | net-p2p/eiskaltdcpp-daemon/distinfo | 2 | ||||
-rw-r--r-- | net-p2p/eiskaltdcpp-daemon/files/patch-CMakeLists.txt | 49 | ||||
-rw-r--r-- | net-p2p/eiskaltdcpp-daemon/files/patch-nasdc__CMakeLists.txt | 27 | ||||
-rw-r--r-- | net-p2p/eiskaltdcpp-daemon/files/patch-nasdc__nasdc.cpp | 20 | ||||
-rw-r--r-- | net-p2p/eiskaltdcpp-daemon/pkg-descr | 8 |
7 files changed, 160 insertions, 0 deletions
diff --git a/net-p2p/Makefile b/net-p2p/Makefile index d255d95d5950..c45b0b54c4a8 100644 --- a/net-p2p/Makefile +++ b/net-p2p/Makefile @@ -24,6 +24,7 @@ SUBDIR += deluge SUBDIR += ed2k SUBDIR += edonkey-tool-hash + SUBDIR += eiskaltdcpp-daemon SUBDIR += eiskaltdcpp-data SUBDIR += eiskaltdcpp-gtk SUBDIR += eiskaltdcpp-lib diff --git a/net-p2p/eiskaltdcpp-daemon/Makefile b/net-p2p/eiskaltdcpp-daemon/Makefile new file mode 100644 index 000000000000..3dff08b3d7d7 --- /dev/null +++ b/net-p2p/eiskaltdcpp-daemon/Makefile @@ -0,0 +1,53 @@ +# New ports collection makefile for: net-p2p/eiskaltdc +# Date created: 28 Aug 2009 +# Whom: Stas Timokhin <stast@bsdportal.ru> +# +# $FreeBSD$ +# + +PORTNAME= eiskaltdcpp-daemon +PORTVERSION= 2.2.1 +CATEGORIES= net-p2p +MASTER_SITES= GOOGLE_CODE +DISTNAME= eiskaltdcpp-${DISTVERSION} + +MAINTAINER= gelraen.ua@gmail.com +COMMENT= EiskaltDC++ Direct Connect client daemon + +LICENSE= GPLv3 + +LIB_DEPENDS+= eiskaltdcpp:${PORTSDIR}/net-p2p/eiskaltdcpp-lib + +PROJECTHOST= eiskaltdc + +USE_XZ= yes +USE_GCC= 4.2+ +USE_GETTEXT= yes +USE_CMAKE= yes +USE_OPENSSL= yes +MAKE_JOBS_SAFE= yes + +MAN1= ${PORTNAME}.1 +MANCOMPRESSED= yes + +PLIST_FILES= bin/${PORTNAME} + +CXXFLAGS+= -I${LOCALBASE}/include +CMAKE_ARGS+= -DBUILD_LIB:BOOL=OFF +CMAKE_ARGS+= -DUSE_QT:BOOL=OFF +CMAKE_ARGS+= -DUSE_GTK:BOOL=OFF +CMAKE_ARGS+= -DNO_UI_DAEMON:BOOL=ON +CMAKE_ARGS+= -DEISKALTDCPP_INCLUDE_DIR:STRING="${LOCALBASE}/include/eiskaltdcpp" +CMAKE_ARGS+= -DCREATE_MO:BOOL=OFF +CMAKE_ARGS+= -DCMAKE_LIBRARY_PATH:PATH="${LOCALBASE}/lib:${PREFIX}/lib" + +BUILD_WRKSRC= ${WRKSRC}/nasdc +INSTALL_WRKSRC= ${WRKSRC}/nasdc + +.include <bsd.port.pre.mk> + +.if ${OSVERSION} < 700024 +USE_OPENSSL_PORT=yes +.endif + +.include <bsd.port.post.mk> diff --git a/net-p2p/eiskaltdcpp-daemon/distinfo b/net-p2p/eiskaltdcpp-daemon/distinfo new file mode 100644 index 000000000000..b90927dbed33 --- /dev/null +++ b/net-p2p/eiskaltdcpp-daemon/distinfo @@ -0,0 +1,2 @@ +SHA256 (eiskaltdcpp-2.2.1.tar.xz) = 2b2bd627a1325c595f604766404ca4f4787db1b49b4b0c5c5d8e88ddfc2a2c40 +SIZE (eiskaltdcpp-2.2.1.tar.xz) = 1916680 diff --git a/net-p2p/eiskaltdcpp-daemon/files/patch-CMakeLists.txt b/net-p2p/eiskaltdcpp-daemon/files/patch-CMakeLists.txt new file mode 100644 index 000000000000..f14f5c6f4f14 --- /dev/null +++ b/net-p2p/eiskaltdcpp-daemon/files/patch-CMakeLists.txt @@ -0,0 +1,49 @@ +--- ./CMakeLists.txt.orig 2011-03-08 19:47:12.000000000 +0200 ++++ ./CMakeLists.txt 2011-03-10 19:49:48.000000000 +0200 +@@ -316,16 +316,14 @@ + if (MINGW) + set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--enable-auto-import") + endif (MINGW) +- if (NOT APPLE) +- set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wl,--as-needed") +- set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wl,--as-needed") +- endif (NOT APPLE) + set (CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_RELWITHDEBINFO} -pipe -DNDEBUG") + set (CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -DQT_NO_DEBUG -pipe") + set (CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -UNDEBUG -g3 -pipe") + endif () + +-include_directories(${eiskaltdcpp_BINARY_DIR} ++include_directories( ++ ${EISKALTDCPP_INCLUDE_DIR} ++ ${eiskaltdcpp_BINARY_DIR} + ${eiskaltdcpp_SOURCE_DIR} + ${GMP_INCLUDE_DIR} + ) +@@ -395,7 +393,9 @@ + add_subdirectory (dht) + endif (DHT) + +-add_subdirectory (dcpp) ++if (BUILD_LIB) ++ add_subdirectory (dcpp) ++endif (BUILD_LIB) + + if (USE_QT) + add_subdirectory (eiskaltdcpp-qt) +@@ -443,11 +443,11 @@ + LOCALE_LIST "${LANGUAGES}" + COPYRIGHT_HOLDER "EiskaltDC++ team" + SOURCES "${DCPP_SRCS};${DCPP_HDRS}" +- PO_DIR "${dcpp_SOURCE_DIR}/po" +- POT_BUILD_DIR "${dcpp_SOURCE_DIR}/po" ++ PO_DIR "${PROJECT_SOURCE_DIR}/po" ++ POT_BUILD_DIR "${PROJECT_SOURCE_DIR}/po" + #PO_PREFIX "" +- PO_BUILD_DIR "${dcpp_SOURCE_DIR}/po" +- MO_BUILD_DIR "${dcpp_BINARY_DIR}/locale" ++ PO_BUILD_DIR "${PROJECT_SOURCE_DIR}/po" ++ MO_BUILD_DIR "${PROJECT_BINARY_DIR}/locale" + MO_INSTALL_DIR "/${LOCALE_DIR}" + CREATE_POT_TARGET ${create_pot} + CREATE_PO_TARGET ${create_po} diff --git a/net-p2p/eiskaltdcpp-daemon/files/patch-nasdc__CMakeLists.txt b/net-p2p/eiskaltdcpp-daemon/files/patch-nasdc__CMakeLists.txt new file mode 100644 index 000000000000..549974f404a0 --- /dev/null +++ b/net-p2p/eiskaltdcpp-daemon/files/patch-nasdc__CMakeLists.txt @@ -0,0 +1,27 @@ +--- ./nasdc/CMakeLists.txt.orig 2011-03-08 19:47:12.000000000 +0200 ++++ ./nasdc/CMakeLists.txt 2011-03-10 19:52:25.000000000 +0200 +@@ -47,7 +47,16 @@ + target_link_libraries (sampleclient ${XMLRPCLIBS}) + endif() + +-target_link_libraries (nasdc dcpp ${XMLRPCLIBS} ${RL_LIBS}) ++if (BUILD_LIB) ++ set(DCPP_LIB dcpp) ++else (BUILD_LIB) ++ find_library(DCPP_LIB eiskaltdcpp) ++ if (DCPP_LIB) ++ message(STATUS "EiskaltDC++ shared library found at ${DCPP_LIB}") ++ endif (DCPP_LIB) ++endif (BUILD_LIB) ++ ++target_link_libraries (nasdc ${DCPP_LIB} ${XMLRPCLIBS} ${RL_LIBS}) + + if (UNIX) + set (BINDIR bin) +@@ -77,5 +86,5 @@ + if (APPLE) + install (FILES ${PROJECT_BINARY_DIR}/eiskaltdcpp-daemon.1.gz DESTINATION ${PROJECT_NAME_GLOBAL}.app/man/man1) + elseif (UNIX AND NOT APPLE) +- install (FILES ${PROJECT_BINARY_DIR}/eiskaltdcpp-daemon.1.gz DESTINATION ${SHARE_DIR}/man/man1) ++ install (FILES ${PROJECT_BINARY_DIR}/eiskaltdcpp-daemon.1.gz DESTINATION man/man1) + endif (APPLE) diff --git a/net-p2p/eiskaltdcpp-daemon/files/patch-nasdc__nasdc.cpp b/net-p2p/eiskaltdcpp-daemon/files/patch-nasdc__nasdc.cpp new file mode 100644 index 000000000000..2a4db0d4f9ea --- /dev/null +++ b/net-p2p/eiskaltdcpp-daemon/files/patch-nasdc__nasdc.cpp @@ -0,0 +1,20 @@ +--- ./nasdc/nasdc.cpp.orig 2011-03-08 19:47:12.000000000 +0200 ++++ ./nasdc/nasdc.cpp 2011-03-10 19:49:48.000000000 +0200 +@@ -23,7 +23,6 @@ + #ifndef _WIN32 + #include <syslog.h> + #include <signal.h> +-#include "extra/stacktrace.h" + #endif + + #ifdef CLI_DAEMON +@@ -237,9 +236,6 @@ + temp = (char *)NULL; + prompt = "edcppd$ "; + #endif +-#ifndef _WIN32 +- signal(SIGSEGV, printBacktrace); +-#endif + while (bServerRunning) { + Thread::sleep(1); + #ifdef CLI_DAEMON diff --git a/net-p2p/eiskaltdcpp-daemon/pkg-descr b/net-p2p/eiskaltdcpp-daemon/pkg-descr new file mode 100644 index 000000000000..12ae17bce783 --- /dev/null +++ b/net-p2p/eiskaltdcpp-daemon/pkg-descr @@ -0,0 +1,8 @@ +EiskaltDC++ is a cross-platform program that uses the Direct Connect +and ADC protocol. It is compatible with other DC clients, such as the +original DC from Neomodus, DC++ and derivatives. EiskaltDC++ also +interoperates with all common DC hub software. + +This port is GUI-less daemon that uses eiskaltdcpp-lib. + +WWW: http://code.google.com/p/eiskaltdc/ |