[arch-commits] Commit in ettercap/trunk (2 files)

Giovanni Scafora giovanni at archlinux.org
Sat Aug 6 11:42:32 UTC 2011


    Date: Saturday, August 6, 2011 @ 07:42:31
  Author: giovanni
Revision: 134606

upgpkg: ettercap NG_0.7.3-17
Added dns support on x86_64, and config file to the backup field

Added:
  ettercap/trunk/ettercap-NG-0.7.3_dns_support_on_x86_64.patch
Modified:
  ettercap/trunk/PKGBUILD

-----------------------------------------------+
 PKGBUILD                                      |   11 ++++--
 ettercap-NG-0.7.3_dns_support_on_x86_64.patch |   39 ++++++++++++++++++++++++
 2 files changed, 47 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2011-08-06 09:41:48 UTC (rev 134605)
+++ PKGBUILD	2011-08-06 11:42:31 UTC (rev 134606)
@@ -5,18 +5,21 @@
 pkgname=ettercap
 pkgver=NG_0.7.3
 _origver=NG-0.7.3
-pkgrel=16
+pkgrel=17
 pkgdesc="A network sniffer/interceptor/logger for ethernet LANs - console"
 arch=('i686' 'x86_64')
 url="http://ettercap.sourceforge.net/"
 license=('GPL')
 depends=('ncurses' 'openssl' 'libpcap' 'zlib' 'pcre' 'libtool' 'libnet')
 makedepends=('libnet' 'pkgconfig')
+backup=('etc/etter.conf')
 options=(!libtool)
 source=("http://downloads.sourceforge.net/${pkgname}/${pkgname}-${_origver}.tar.gz"
-        01_pointers_and_ints_dont_mix.diff)
+        01_pointers_and_ints_dont_mix.diff
+        ettercap-NG-0.7.3_dns_support_on_x86_64.patch)
 md5sums=('28fb15cd024162c55249888fe1b97820'
-         'ad235cd90aaa3e168575d06efac4d862')
+         'ad235cd90aaa3e168575d06efac4d862'
+         'f3d66186eece056a6d71453f9f288623')
 
 build() {
   cd ${srcdir}/${pkgname}-${_origver}
@@ -28,6 +31,8 @@
 
   patch -Np1 -i ${srcdir}/01_pointers_and_ints_dont_mix.diff
 
+  [ "$CARCH" = "x86_64" ] && patch -Np1 -i ${srcdir}/ettercap-NG-0.7.3_dns_support_on_x86_64.patch
+
   ./configure --prefix=/usr \
               --sysconfdir=/etc \
               --mandir=/usr/share/man \

Added: ettercap-NG-0.7.3_dns_support_on_x86_64.patch
===================================================================
--- ettercap-NG-0.7.3_dns_support_on_x86_64.patch	                        (rev 0)
+++ ettercap-NG-0.7.3_dns_support_on_x86_64.patch	2011-08-06 11:42:31 UTC (rev 134606)
@@ -0,0 +1,39 @@
+--- a/configure	2011-08-06 12:50:26.000000000 +0200
++++ b/configure	2011-08-06 13:01:56.000000000 +0200
+@@ -15732,7 +15732,7 @@
+ if ${ac_cv_search_dn_expand+:} false; then :
+ 
+ else
+-  ac_cv_search_dn_expand=no
++  ac_cv_search_dn_expand='-lresolv'
+ fi
+ rm conftest.$ac_ext
+ LIBS=$ac_func_search_save_LIBS
+@@ -15790,14 +15790,14 @@
+  ac_ec_dns=yes
+ 
+ else
+-   if false; then
++if true; then
+   HAVE_DN_EXPAND_TRUE=
+   HAVE_DN_EXPAND_FALSE='#'
+ else
+   HAVE_DN_EXPAND_TRUE='#'
+   HAVE_DN_EXPAND_FALSE=
+ fi
+- ac_ec_dns=no
++ ac_ec_dns=yes
+ fi
+ 
+ 
+--- a/src/ec_log.c	2004-09-30 18:01:45.000000000 +0200
++++ b/src/ec_log.c	2011-08-06 13:04:30.000000000 +0200
+@@ -190,7 +190,7 @@
+       if (fd->cfd == NULL)
+          SEMIFATAL_ERROR("%s", gzerror(fd->cfd, &zerr));
+    } else {
+-      fd->fd = open(filename, O_CREAT | O_TRUNC | O_RDWR | O_BINARY);
++      fd->fd = open(filename, O_CREAT | O_TRUNC | O_RDWR | O_BINARY, 0666);
+       if (fd->fd == -1)
+          SEMIFATAL_ERROR("Can't create %s: %s", filename, strerror(errno));
+    }




More information about the arch-commits mailing list