aboutsummaryrefslogtreecommitdiff
path: root/net-mgmt/ettercap
diff options
context:
space:
mode:
authorSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2016-04-30 08:50:53 +0000
committerSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2016-04-30 08:50:53 +0000
commit457f3f14372b965feefcf4adce190df4cb791f29 (patch)
tree79efd9e90a7e7af9b0a3b22c04257b7094ab0166 /net-mgmt/ettercap
parent38233b1c21834592bf5ede261cc3cfc530f27815 (diff)
downloadports-457f3f14372b965feefcf4adce190df4cb791f29.tar.gz
ports-457f3f14372b965feefcf4adce190df4cb791f29.zip
- Fix PLIST with DESKTOP option enabled
Reported by: Ivan Klymenko <fidaj@ukr.net>
Notes
Notes: svn path=/head/; revision=414337
Diffstat (limited to 'net-mgmt/ettercap')
-rw-r--r--net-mgmt/ettercap/files/patch-CMakeLists.txt11
-rw-r--r--net-mgmt/ettercap/pkg-plist1
2 files changed, 12 insertions, 0 deletions
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