aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Healy <lmiphay@gmail.com>2015-08-27 22:03:52 +0100
committerPaul Healy <lmiphay@gmail.com>2015-08-27 22:03:52 +0100
commit87231b49d920de8a9a7b50ad7cb4cc45ef123220 (patch)
tree771e2c0b122e21e809c459f4bec78d8a80af5ea3 /kde-misc
parentupdate manifest (diff)
downloadlmiphay-87231b49d920de8a9a7b50ad7cb4cc45ef123220.tar.gz
lmiphay-87231b49d920de8a9a7b50ad7cb4cc45ef123220.tar.bz2
lmiphay-87231b49d920de8a9a7b50ad7cb4cc45ef123220.zip
add ebuild for socket-sentry
Diffstat (limited to 'kde-misc')
-rw-r--r--kde-misc/socket-sentry/Manifest2
-rw-r--r--kde-misc/socket-sentry/files/CMakeLists.patch33
-rw-r--r--kde-misc/socket-sentry/socket-sentry-9999.ebuild32
3 files changed, 67 insertions, 0 deletions
diff --git a/kde-misc/socket-sentry/Manifest b/kde-misc/socket-sentry/Manifest
new file mode 100644
index 0000000..6816a1e
--- /dev/null
+++ b/kde-misc/socket-sentry/Manifest
@@ -0,0 +1,2 @@
+AUX CMakeLists.patch 1214 SHA256 613075267fcbf4f48cc3f80ef10deda40c26864bff594d7ac93b26ff2885637d SHA512 f2b5dcc1563935c0ce7352c536b220f9924829f8173c2ec55d1d00abce3f3404cb97d2e2e9f2c866f8de7d11cd730846798d26429d889d833eb67293f50af52e WHIRLPOOL a06a60c311a5849911dd49c91c95b4d6d802550077f832a4b59562333f0254c8fa3f28ddec2e9347455b4817955cfc1d22c4d22e8028fa0fcec8fbe8ee38ddcb
+EBUILD socket-sentry-9999.ebuild 634 SHA256 5965edab6207cb3b0d8ded910edcaecfbbc49cd1d300a434829be1f68484dce9 SHA512 b4c6c2287514892ba817869e1dd3646c9cefbb1eb3c14421ca2648877a6e3390b0271a72c0bf3712ca6e4d43aab678f6ad6aa9da4a5c7efab50c5e1f97ae774d WHIRLPOOL 7abce17ac52bffa9b1d72267af06f3571ca75ea9bf2bc839f5cc3ebb7c3316345e9b79334e9af81ec77ccfbc7f96845669ea4db65024d894b2159880f03ecc2b
diff --git a/kde-misc/socket-sentry/files/CMakeLists.patch b/kde-misc/socket-sentry/files/CMakeLists.patch
new file mode 100644
index 0000000..3d40e14
--- /dev/null
+++ b/kde-misc/socket-sentry/files/CMakeLists.patch
@@ -0,0 +1,33 @@
+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
+@@ -23,13 +24,13 @@ add_definitions (-DPROJECT_VERSION="${SS_PROJECT_VERSION}")
+
+ # Look for required test support libraries (GMock/GTest). If successful, TEST_SUPPORT_LIBS
+ # will be defined with them.
+-find_library (GMOCK gmock)
+-find_library (GTEST gtest)
+-if (EXISTS ${GMOCK} AND EXISTS ${GTEST})
+- set (TEST_SUPPORT_LIBS ${GMOCK} ${GTEST})
+-else (EXISTS ${GMOCK} AND EXISTS ${GTEST})
+- message(WARNING "Google Mock or Google Test wasn't found. Unit tests won't be built.")
+-endif (EXISTS ${GMOCK} AND EXISTS ${GTEST})
++#find_library (GMOCK gmock)
++#find_library (GTEST gtest)
++#if (EXISTS ${GMOCK} AND EXISTS ${GTEST})
++# set (TEST_SUPPORT_LIBS ${GMOCK} ${GTEST})
++#else (EXISTS ${GMOCK} AND EXISTS ${GTEST})
++# message(WARNING "Google Mock or Google Test wasn't found. Unit tests won't be built.")
++#endif (EXISTS ${GMOCK} AND EXISTS ${GTEST})
+
+ # FUNCTION: add_qtestlib_tests <test_source_files> [<link_libraries> ... ]
+ #
diff --git a/kde-misc/socket-sentry/socket-sentry-9999.ebuild b/kde-misc/socket-sentry/socket-sentry-9999.ebuild
new file mode 100644
index 0000000..f530f16
--- /dev/null
+++ b/kde-misc/socket-sentry/socket-sentry-9999.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=5
+
+inherit eutils user kde4-base git-r3
+
+DESCRIPTION="Real-time network traffic monitor for KDE Plasma."
+HOMEPAGE="http://kde-apps.org/content/show.php/Socket+Sentry?content=122348"
+EGIT_REPO_URI="https://github.com/lmiphay/socket-sentry.git"
+
+LICENSE="GPL"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="
+ $(add_kdebase_dep plasma-workspace)
+ net-libs/libpcap
+"
+RDEPEND="${DEPEND}
+"
+
+pkg_setup() {
+ enewgroup socketsentry
+}
+
+src_prepare() {
+ epatch "${FILESDIR}/CMakeLists.patch"
+ kde4-base_src_prepare
+}