From 457f3f14372b965feefcf4adce190df4cb791f29 Mon Sep 17 00:00:00 2001 From: Sunpoet Po-Chuan Hsieh Date: Sat, 30 Apr 2016 08:50:53 +0000 Subject: - Fix PLIST with DESKTOP option enabled Reported by: Ivan Klymenko --- net-mgmt/ettercap/files/patch-CMakeLists.txt | 11 +++++++++++ net-mgmt/ettercap/pkg-plist | 1 + 2 files changed, 12 insertions(+) create mode 100644 net-mgmt/ettercap/files/patch-CMakeLists.txt (limited to 'net-mgmt/ettercap') diff --git a/net-mgmt/ettercap/files/patch-CMakeLists.txt b/net-mgmt/ettercap/files/patch-CMakeLists.txt new file mode 100644 index 000000000000..5819428cef79 --- /dev/null +++ b/net-mgmt/ettercap/files/patch-CMakeLists.txt @@ -0,0 +1,11 @@ +--- CMakeLists.txt.orig 2015-03-14 13:43:11 UTC ++++ CMakeLists.txt +@@ -112,7 +112,7 @@ if(OS_DARWIN OR OS_WINDOWS) + set(POLKIT_DIR ${INSTALL_PREFIX}/share/polkit-1/actions/ CACHE PATH "Polkit installation directory") + else(OS_DARWIN OR OS_WINDOWS) + #at least on ubuntu, polkit dir couldn't be /usr/local/share, but should be /usr/share +- set(POLKIT_DIR /usr/share/polkit-1/actions/ CACHE PATH "Polkit installation directory") ++ set(POLKIT_DIR ${INSTALL_PREFIX}/share/polkit-1/actions/ CACHE PATH "Polkit installation directory") + endif(OS_DARWIN OR OS_WINDOWS) + set(PKEXEC_INSTALL_WRAPPER org.pkexec.ettercap CACHE PATH "Name of the pkexec action file") + set(DESKTOP_DIR ${INSTALL_PREFIX}/share/applications/ CACHE PATH "Desktop file installation directory") diff --git a/net-mgmt/ettercap/pkg-plist b/net-mgmt/ettercap/pkg-plist index 16f325f57e90..55759a52173f 100644 --- a/net-mgmt/ettercap/pkg-plist +++ b/net-mgmt/ettercap/pkg-plist @@ -50,6 +50,7 @@ man/man8/ettercap_curses.8.gz man/man8/etterfilter.8.gz man/man8/etterlog.8.gz %%PLUGINS%%man/man8/ettercap_plugins.8.gz +%%DESKTOP%%share/appdata/ettercap.appdata.xml %%DESKTOP%%share/applications/ettercap.desktop %%DESKTOP%%share/pixmaps/ettercap.svg %%DESKTOP%%share/polkit-1/actions/org.pkexec.ettercap.policy -- cgit v1.2.3