diff options
Diffstat (limited to 'community/ettercap')
-rw-r--r-- | community/ettercap/PKGBUILD | 23 | ||||
-rw-r--r-- | community/ettercap/ettercap-gtk.install | 14 |
2 files changed, 3 insertions, 34 deletions
diff --git a/community/ettercap/PKGBUILD b/community/ettercap/PKGBUILD index 3d291a8fd..5c891ee70 100644 --- a/community/ettercap/PKGBUILD +++ b/community/ettercap/PKGBUILD @@ -1,11 +1,11 @@ -# $Id: PKGBUILD 99738 2013-10-30 23:24:51Z allan $ +# $Id: PKGBUILD 103822 2014-01-11 20:36:36Z bgyorgy $ # Maintainer: # Contributor: Tom Newsom <Jeepster@gmx.co.uk> pkgbase=ettercap pkgname=('ettercap' 'ettercap-gtk') pkgver=0.8.0 -pkgrel=1 +pkgrel=2 arch=('i686' 'x86_64') url="http://ettercap.github.com/ettercap/" license=('GPL') @@ -48,25 +48,8 @@ package_ettercap-gtk() { backup=('etc/ettercap/etter.conf') conflicts=('ettercap') provides=('ettercap') - optdepends=('polkit-gnome') - install='ettercap-gtk.install' + optdepends=('polkit: to run ettercap directly from menu') - install -d $pkgdir/usr/share/polkit-1/actions/ cd "${srcdir}"/${pkgbase}-${pkgver}-gtk/build make DESTDIR="${pkgdir}" install - -#install -Dm644 "${srcdir}/ettercap.desktop" "${pkgdir}/usr/share/applications/ettercap.desktop" -#install -Dm644 "${srcdir}/${pkgbase}-${pkgver}-gtk/desktop/ettercap.svg" "${pkgdir}/usr/share/icons/hicolor/scalable/apps/ettercap.svg" - - # Install policy file - #install -Dm644 "${srcdir}/org.archlinux.pkexec.ettercap.policy" "${pkgdir}/usr/share/polkit-1/actions/org.archlinux.pkexec.ettercap.policy" - - # We need rename the original script - #mv "${pkgdir}/usr/bin/ettercap" "${pkgdir}/usr/bin/ettercap.elf" - - # Install launcher script - #echo '#!/bin/sh' > ${pkgdir}/usr/bin/ettercap - #echo 'pkexec --disable-internal-agent "/usr/bin/ettercap.elf" "$@"' >> ${pkgdir}/usr/bin/ettercap - #chmod 755 ${pkgdir}/usr/bin/ettercap - } diff --git a/community/ettercap/ettercap-gtk.install b/community/ettercap/ettercap-gtk.install deleted file mode 100644 index e8f6bed8f..000000000 --- a/community/ettercap/ettercap-gtk.install +++ /dev/null @@ -1,14 +0,0 @@ -post_install() { - gtk-update-icon-cache -q -t -f usr/share/icons/hicolor - echo 'If you use a lightweight windowmanager, remember to run' - echo '/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 to enable' - echo 'graphical authentication, which may be needed for pkexec to work.' -} - -post_upgrade() { - gtk-update-icon-cache -q -t -f usr/share/icons/hicolor -} - -post_remove() { - gtk-update-icon-cache -q -t -f usr/share/icons/hicolor -} |