diff options
author | 2015-09-08 18:42:52 +0100 | |
---|---|---|
committer | 2015-09-08 18:42:52 +0100 | |
commit | 9c65c4b7226168d9fe4df9f819af063d35946b61 (patch) | |
tree | 6506aaf38d6e177af860121f5d2937f4547bb1e1 /kde-misc | |
parent | add ebuild for kafka-python (diff) | |
download | lmiphay-9c65c4b7226168d9fe4df9f819af063d35946b61.tar.gz lmiphay-9c65c4b7226168d9fe4df9f819af063d35946b61.tar.bz2 lmiphay-9c65c4b7226168d9fe4df9f819af063d35946b61.zip |
add ebuild for socket-sentry 0.9.3-r2
Diffstat (limited to 'kde-misc')
4 files changed, 94 insertions, 0 deletions
diff --git a/kde-misc/socket-sentry/Manifest b/kde-misc/socket-sentry/Manifest index 6816a1e..fa0031f 100644 --- a/kde-misc/socket-sentry/Manifest +++ b/kde-misc/socket-sentry/Manifest @@ -1,2 +1,6 @@ AUX CMakeLists.patch 1214 SHA256 613075267fcbf4f48cc3f80ef10deda40c26864bff594d7ac93b26ff2885637d SHA512 f2b5dcc1563935c0ce7352c536b220f9924829f8173c2ec55d1d00abce3f3404cb97d2e2e9f2c866f8de7d11cd730846798d26429d889d833eb67293f50af52e WHIRLPOOL a06a60c311a5849911dd49c91c95b4d6d802550077f832a4b59562333f0254c8fa3f28ddec2e9347455b4817955cfc1d22c4d22e8028fa0fcec8fbe8ee38ddcb +AUX socket-sentry-0.9.3-automagictests.patch 835 SHA256 ad39b44aabe4ccca09c586195011e8cc0f069a9d352315e75388cd26d295682d SHA512 d640d743c82862e2bf2d1204265a6be059e4d51063e10eb5a56436b9f4b8a95a22215f20acb1de214aca2d5b4d6db88f5c05e1a163b283289dd71cff57c7044e WHIRLPOOL ff4a2a85d35d31793bbe1a52ab51e83ec398b8db2cdc97f428038d93c6f97506b438bbf703d95b764e1fef91d3d55944037f47f82ad04be12e4a8f77afb2679b +AUX socket-sentry-0.9.3-targets.patch 282 SHA256 44b36e430a9f14986bfc9ce0ecc41932709e57181b8559b478589545f4304a77 SHA512 94b4eebdf0612bc72aa45b74ab26633fffca85c88528b41579c87da288dd7cc5c572636cded1d1647d47028f53e471c3bce55f6446a0dfc73b356a0d7262a2f9 WHIRLPOOL 6c2291d64d4a9d434f033c143bcdf8143dce045ba52bf843f20771d8f64bd57d5dbf9096b6fb9e3cfb91392114a39d87a054e1ecec8377cbfc4de21ce2613a67 +DIST socketsentry-0.9.3.tar.gz 156935 SHA256 1b8bfe859a2dd640647662e0b534a1f6dac429ee1252eed6887619704d9b26f6 SHA512 235e82370e8927ef03acb08af69dd97dfd67d9fa9a7c7d50bec1c504cd2d6d7bd3c102cb90cf212b772f838c1c1bce94b525bf2eecafe5827532d0f32c848c38 WHIRLPOOL 815a0867cec9984e07b110ed4c291e6d9db38bb2b9eb2fafa31330362cc4aba35610a118527265b0683292accd5733496e94b13f0a3e13d4fdb5e8e6522651f2 +EBUILD socket-sentry-0.9.3-r2.ebuild 1222 SHA256 414f0df897be52b06e9ca2e19d7292622154eacd6eb47a25818c80572269d4b4 SHA512 e96bfe2c687fb2b64ff851bee8a46d526374cac25831e9cf09adaac19cb08af4ce34026a75b897f24bb38d3c8a54fabab75afbf76afd546eae31c653efa44e47 WHIRLPOOL 581a5da6ba5e8560db146fd0aa807a7354eb1b919caafedcf2fe12a40a4ac0ac35895e30a5f4779ec31b51b3cc7a949a02d2c5403bc5f85b2c2ad059ffbc9a5c EBUILD socket-sentry-9999.ebuild 634 SHA256 5965edab6207cb3b0d8ded910edcaecfbbc49cd1d300a434829be1f68484dce9 SHA512 b4c6c2287514892ba817869e1dd3646c9cefbb1eb3c14421ca2648877a6e3390b0271a72c0bf3712ca6e4d43aab678f6ad6aa9da4a5c7efab50c5e1f97ae774d WHIRLPOOL 7abce17ac52bffa9b1d72267af06f3571ca75ea9bf2bc839f5cc3ebb7c3316345e9b79334e9af81ec77ccfbc7f96845669ea4db65024d894b2159880f03ecc2b diff --git a/kde-misc/socket-sentry/files/socket-sentry-0.9.3-automagictests.patch b/kde-misc/socket-sentry/files/socket-sentry-0.9.3-automagictests.patch new file mode 100644 index 0000000..050e7b2 --- /dev/null +++ b/kde-misc/socket-sentry/files/socket-sentry-0.9.3-automagictests.patch @@ -0,0 +1,20 @@ +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -42,7 +42,7 @@ + # The link libraries should contain the code under test. The TEST_SUPPORT_LIBS are also linked + # automatically. + function (add_qtestlib_tests test_source_files) +- if (DEFINED TEST_SUPPORT_LIBS) ++ if (DEFINED TEST_SUPPORT_LIBS AND WITH_TESTS) + foreach(test_file_src ${test_source_files}) + get_filename_component(test_file_path ${test_file_src} PATH) + get_filename_component(test_file_base ${test_file_src} NAME_WE) +@@ -54,7 +54,7 @@ + target_link_libraries( ${test_exe} ${TEST_SUPPORT_LIBS} ${ARGN} ) + add_test(${test_file_base} ${EXECUTABLE_OUTPUT_PATH}/${test_exe} ) + endforeach(test_file_src) +- endif (DEFINED TEST_SUPPORT_LIBS) ++ endif (DEFINED TEST_SUPPORT_LIBS AND WITH_TESTS) + endfunction(add_qtestlib_tests) + + add_subdirectory (socketsentry-service) diff --git a/kde-misc/socket-sentry/files/socket-sentry-0.9.3-targets.patch b/kde-misc/socket-sentry/files/socket-sentry-0.9.3-targets.patch new file mode 100644 index 0000000..3ef3700 --- /dev/null +++ b/kde-misc/socket-sentry/files/socket-sentry-0.9.3-targets.patch @@ -0,0 +1,12 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 504da65..ef01c70 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -15,6 +15,7 @@ + + project (SocketSentry) + cmake_minimum_required (VERSION 2.6.4) ++cmake_policy(SET CMP0002 OLD) + enable_testing() + + # Initialize project version diff --git a/kde-misc/socket-sentry/socket-sentry-0.9.3-r2.ebuild b/kde-misc/socket-sentry/socket-sentry-0.9.3-r2.ebuild new file mode 100644 index 0000000..8489e41 --- /dev/null +++ b/kde-misc/socket-sentry/socket-sentry-0.9.3-r2.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit kde4-base user + +MY_PN="socketsentry" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="A KDE plasmoid that displays real-time network traffic on your Linux computer" +HOMEPAGE="https://code.google.com/p/socket-sentry" +SRC_URI="https://socket-sentry.googlecode.com/files/${MY_P}.tar.gz" + +LICENSE="GPL-3+" +KEYWORDS="~amd64 ~x86" +SLOT="4" +IUSE="debug test" + +RDEPEND=" + >=net-libs/libpcap-0.8 +" +DEPEND="${RDEPEND} + test? ( dev-cpp/gmock dev-cpp/gtest ) +" + +PATCHES=( "${FILESDIR}/${PN}-0.9.3-automagictests.patch" "${FILESDIR}/${PN}-0.9.3-targets.patch" ) + +S="${WORKDIR}/${MY_P}" + +# tests fails to build, new gtest related? +RESTRICT="test" + +pkg_setup() { + kde4-base_pkg_setup + + SOCKETSENTRY_GROUP=${MY_PN} + enewgroup ${SOCKETSENTRY_GROUP} +} + +src_configure() { + mycmakeargs=( + $(cmake-utils_use_with test TESTS) + ) + cmake-utils_src_configure +} + +pkg_postinst() { + kde4-base_pkg_postinst + + ewarn + ewarn "Remember, in order to use ${PN} plasmoid, you have to" + ewarn "be in the '${SOCKETSENTRY_GROUP}' group." + ewarn + ewarn "Just run 'gpasswd -a <USER> ${SOCKETSENTRY_GROUP}', then have <USER> re-login." + ewarn +} |