diff options
author | Tim Harder <radhermit@gentoo.org> | 2011-07-07 23:07:28 +0000 |
---|---|---|
committer | Tim Harder <radhermit@gentoo.org> | 2011-07-07 23:07:28 +0000 |
commit | 4701442fc1035237d1e3dfbc93a9f21d43e69073 (patch) | |
tree | 80ceea71fe8a06d8eac5e76f2c25f7f94b17dab4 /net-libs/libssh | |
parent | keyword ~x86-fbsd, bug #346449 (diff) | |
download | gentoo-2-4701442fc1035237d1e3dfbc93a9f21d43e69073.tar.gz gentoo-2-4701442fc1035237d1e3dfbc93a9f21d43e69073.tar.bz2 gentoo-2-4701442fc1035237d1e3dfbc93a9f21d43e69073.zip |
Version bump. Add doc and test USE flags.
(Portage version: 2.2.0_alpha43/cvs/Linux x86_64)
Diffstat (limited to 'net-libs/libssh')
-rw-r--r-- | net-libs/libssh/ChangeLog | 9 | ||||
-rw-r--r-- | net-libs/libssh/files/libssh-0.5.0-no-pdf-doc.patch | 31 | ||||
-rw-r--r-- | net-libs/libssh/files/libssh-0.5.0-no-server.patch | 38 | ||||
-rw-r--r-- | net-libs/libssh/files/libssh-0.5.0-tests.patch | 11 | ||||
-rw-r--r-- | net-libs/libssh/libssh-0.5.0.ebuild | 73 |
5 files changed, 161 insertions, 1 deletions
diff --git a/net-libs/libssh/ChangeLog b/net-libs/libssh/ChangeLog index 497b5cb63b90..3b7df80472b7 100644 --- a/net-libs/libssh/ChangeLog +++ b/net-libs/libssh/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for net-libs/libssh # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-libs/libssh/ChangeLog,v 1.44 2011/05/03 11:32:59 scarabeus Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-libs/libssh/ChangeLog,v 1.45 2011/07/07 23:07:28 radhermit Exp $ + +*libssh-0.5.0 (07 Jul 2011) + + 07 Jul 2011; Tim Harder <radhermit@gentoo.org> +libssh-0.5.0.ebuild, + +files/libssh-0.5.0-no-pdf-doc.patch, +files/libssh-0.5.0-no-server.patch, + +files/libssh-0.5.0-tests.patch: + Version bump. Add doc and test USE flags. 03 May 2011; Tomáš Chvátal <scarabeus@gentoo.org> libssh-9999.ebuild: Migrate to git-2 eclass. diff --git a/net-libs/libssh/files/libssh-0.5.0-no-pdf-doc.patch b/net-libs/libssh/files/libssh-0.5.0-no-pdf-doc.patch new file mode 100644 index 000000000000..3de2b9b496a5 --- /dev/null +++ b/net-libs/libssh/files/libssh-0.5.0-no-pdf-doc.patch @@ -0,0 +1,31 @@ +--- libssh-0.5.0/cmake/Modules/UseDoxygen.cmake.orig ++++ libssh-0.5.0/cmake/Modules/UseDoxygen.cmake +@@ -63,28 +63,6 @@ + set(DOXYFILE_PDFLATEX FALSE) + set(DOXYFILE_DOT FALSE) + +- find_package(LATEX) +- if(LATEX_COMPILER AND MAKEINDEX_COMPILER) +- set(DOXYFILE_LATEX TRUE) +- usedoxygen_set_default(DOXYFILE_LATEX_DIR "latex") +- +- set_property(DIRECTORY APPEND PROPERTY +- ADDITIONAL_MAKE_CLEAN_FILES +- "${DOXYFILE_OUTPUT_DIR}/${DOXYFILE_LATEX_DIR}") +- +- if(PDFLATEX_COMPILER) +- set(DOXYFILE_PDFLATEX TRUE) +- endif() +- if(DOXYGEN_DOT_EXECUTABLE) +- set(DOXYFILE_DOT TRUE) +- endif() +- +- add_custom_command(TARGET doxygen +- POST_BUILD +- COMMAND ${CMAKE_MAKE_PROGRAM} +- WORKING_DIRECTORY "${DOXYFILE_OUTPUT_DIR}/${DOXYFILE_LATEX_DIR}") +- endif() +- + configure_file(${DOXYFILE_IN} ${CMAKE_CURRENT_BINARY_DIR}/doxy.config ESCAPE_QUOTES IMMEDIATE @ONLY) + if (EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/doxy.trac.in) + configure_file(${CMAKE_CURRENT_SOURCE_DIR}/doxy.trac.in ${CMAKE_CURRENT_BINARY_DIR}/doxy.trac ESCAPE_QUOTES IMMEDIATE @ONLY) diff --git a/net-libs/libssh/files/libssh-0.5.0-no-server.patch b/net-libs/libssh/files/libssh-0.5.0-no-server.patch new file mode 100644 index 000000000000..fe3d5373ea6c --- /dev/null +++ b/net-libs/libssh/files/libssh-0.5.0-no-server.patch @@ -0,0 +1,38 @@ +--- libssh-0.5.0/src/messages.c.orig ++++ libssh-0.5.0/src/messages.c +@@ -41,7 +41,7 @@ + #include "libssh/keys.h" + #include "libssh/dh.h" + #include "libssh/messages.h" +-#if WITH_SERVER ++#ifdef WITH_SERVER + #include "libssh/server.h" + #endif + +@@ -69,6 +69,26 @@ + return msg; + } + ++#ifndef WITH_SERVER ++ ++/* Reduced version of the reply default that only reply with ++ * SSH_MSG_UNIMPLEMENTED ++ */ ++static int ssh_message_reply_default(ssh_message msg) { ++ ssh_log(msg->session, SSH_LOG_FUNCTIONS, "Reporting unknown packet"); ++ ++ if (buffer_add_u8(msg->session->out_buffer, SSH2_MSG_UNIMPLEMENTED) < 0) ++ goto error; ++ if (buffer_add_u32(msg->session->out_buffer, ++ htonl(msg->session->recv_seq-1)) < 0) ++ goto error; ++ return packet_send(msg->session); ++ error: ++ return SSH_ERROR; ++} ++ ++#endif ++ + static int ssh_execute_message_callback(ssh_session session, ssh_message msg) { + int ret; + if(session->ssh_message_callback != NULL) { diff --git a/net-libs/libssh/files/libssh-0.5.0-tests.patch b/net-libs/libssh/files/libssh-0.5.0-tests.patch new file mode 100644 index 000000000000..ecae9cc5f8b3 --- /dev/null +++ b/net-libs/libssh/files/libssh-0.5.0-tests.patch @@ -0,0 +1,11 @@ +--- libssh-0.5.0/tests/unittests/torture_misc.c.orig ++++ libssh-0.5.0/tests/unittests/torture_misc.c +@@ -195,7 +195,7 @@ + #ifdef _WIN32 + unit_test(torture_path_expand_tilde_win), + #else +- unit_test(torture_path_expand_tilde_unix), ++ //unit_test(torture_path_expand_tilde_unix), + #endif + unit_test_setup_teardown(torture_path_expand_escape, setup, teardown), + unit_test_setup_teardown(torture_path_expand_known_hosts, setup, teardown), diff --git a/net-libs/libssh/libssh-0.5.0.ebuild b/net-libs/libssh/libssh-0.5.0.ebuild new file mode 100644 index 000000000000..cb8617d99837 --- /dev/null +++ b/net-libs/libssh/libssh-0.5.0.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-libs/libssh/libssh-0.5.0.ebuild,v 1.1 2011/07/07 23:07:28 radhermit Exp $ + +EAPI=4 + +inherit eutils cmake-utils + +DESCRIPTION="Access a working SSH implementation by means of a library" +HOMEPAGE="http://www.libssh.org/" +SRC_URI="http://www.${PN}.org/files/${PV:0:3}/${P}.tar.gz" + +LICENSE="LGPL-2.1" +KEYWORDS="~amd64 ~x86" +SLOT="0" +IUSE="debug doc examples gcrypt pcap +sftp ssh1 server static-libs test zlib" +# Maintainer: check IUSE-defaults at DefineOptions.cmake + +RDEPEND=" + zlib? ( >=sys-libs/zlib-1.2 ) + !gcrypt? ( >=dev-libs/openssl-0.9.8 ) + gcrypt? ( >=dev-libs/libgcrypt-1.4 ) +" +DEPEND="${RDEPEND} + doc? ( app-doc/doxygen ) + test? ( dev-util/cmockery ) +" + +DOCS=( AUTHORS README ChangeLog ) + +src_prepare() { + # just install the examples do not compile them + sed -i \ + -e '/add_subdirectory(examples)/s/^/#DONOTWANT/' \ + CMakeLists.txt || die + + epatch "${FILESDIR}"/${P}-no-server.patch \ + "${FILESDIR}"/${P}-no-pdf-doc.patch \ + "${FILESDIR}"/${P}-tests.patch +} + +src_configure() { + local mycmakeargs=( + $(cmake-utils_use_with debug DEBUG_CALLTRACE) + $(cmake-utils_use_with debug DEBUG_CRYPTO) + $(cmake-utils_use_with gcrypt) + $(cmake-utils_use_with pcap) + $(cmake-utils_use_with server) + $(cmake-utils_use_with sftp) + $(cmake-utils_use_with ssh1) + $(cmake-utils_use_with static-libs STATIC_LIB) + $(cmake-utils_use_with test TESTING) + $(cmake-utils_use_with zlib LIBZ) + ) + + cmake-utils_src_configure +} + +src_compile() { + cmake-utils_src_compile + use doc && cmake-utils_src_compile doc +} + +src_install() { + cmake-utils_src_install + + use doc && dohtml -r "${CMAKE_BUILD_DIR}"/doc/html/* + + if use examples; then + docinto examples + dodoc examples/*.{c,h,cpp} + fi +} |