[arch-commits] Commit in dhclient/trunk (PKGBUILD fix-mac80211-wireless.patch)

daniel at archlinux.org daniel at archlinux.org
Mon Jul 20 16:28:46 UTC 2009


    Date: Monday, July 20, 2009 @ 12:28:46
  Author: daniel
Revision: 46873

upgpkg: dhclient 3.1.2p1-2
    new pkgrel which fixes the file conflicts and adding fix-mac80211-wireless.patch again

Modified:
  dhclient/trunk/PKGBUILD
  dhclient/trunk/fix-mac80211-wireless.patch

-----------------------------+
 PKGBUILD                    |   10 ++++++++--
 fix-mac80211-wireless.patch |   19 +++++++++----------
 2 files changed, 17 insertions(+), 12 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2009-07-20 14:36:11 UTC (rev 46872)
+++ PKGBUILD	2009-07-20 16:28:46 UTC (rev 46873)
@@ -1,9 +1,9 @@
 #$Id$
-# Maintainer: Jan de Groot <jgc at archlinux.org>
+# Maintainer: Daniel Isenmann <daniel at archlinux.org>
 # Contributor: Mirko Messer <mirk at chao.ch>
 pkgname=dhclient 
 pkgver=3.1.2p1
-pkgrel=1
+pkgrel=2
 pkgdesc="dhclient is standalone client from the dhcp package"
 arch=(i686 x86_64)
 url="http://www.isc.org/index.pl?/sw/dhcp/"
@@ -11,12 +11,15 @@
 depends=('bash')
 options=('!makeflags')
 source=(ftp://ftp.isc.org/isc/dhcp/dhcp-${pkgver}.tar.gz \
+	fix-mac80211-wireless.patch
 	site.conf)
 md5sums=('787b2924a1965f0d8558521b36dca73d'
+         'c7b3e5e4e7a5ece9b4f351f00092e240'
          '2e6a845b18bcd188caeead3e47e91151')
 
 build() {
   cd ${startdir}/src/dhcp-${pkgver}
+  patch -Np1 -i ${startdir}/src/fix-mac80211-wireless.patch || return 1
 
   cp ${srcdir}/site.conf .
   ./configure
@@ -34,4 +37,7 @@
 
   #not needed after fresh install
   rm -f ${pkgdir}/var/lib/dhclient/dhcpd.leases
+  #deleting file conflicts to dhcpd
+  rm -rf ${pkgdir}/usr/include
+  rm -rf ${pkgdir}/usr/lib
 }

Modified: fix-mac80211-wireless.patch
===================================================================
--- fix-mac80211-wireless.patch	2009-07-20 14:36:11 UTC (rev 46872)
+++ fix-mac80211-wireless.patch	2009-07-20 16:28:46 UTC (rev 46873)
@@ -1,17 +1,16 @@
-diff -Nur dhcp-3.0.6.orig/client/scripts/linux dhcp-3.0.6/client/scripts/linux
---- dhcp-3.0.6.orig/client/scripts/linux	2008-03-29 18:59:39.000000000 +0100
-+++ dhcp-3.0.6/client/scripts/linux	2008-03-29 19:00:16.000000000 +0100
-@@ -140,7 +140,7 @@
+--- dhcp-3.1.2p1/client/scripts/linux_orig	2006-07-22 04:24:16.000000000 +0200
++++ dhcp-3.1.2p1/client/scripts/linux	2009-07-20 18:20:54.000000000 +0200
+@@ -133,7 +133,7 @@
    if [ x$old_ip_address != x ] && [ x$old_ip_address != x$new_ip_address ]; then
      # IP address changed. Bringing down the interface will delete all routes,
      # and clear the ARP cache.
 -    ifconfig $interface inet 0 down
 +    ifconfig $interface inet 0
-   fi
-  fi
  
-@@ -185,7 +185,7 @@
    fi
+   if [ x$old_ip_address = x ] || [ x$old_ip_address != x$new_ip_address ] || \
+@@ -168,7 +168,7 @@
+   fi
    if [ x$old_ip_address != x ]; then
      # Shut down interface, which will delete routes and clear arp cache.
 -    ifconfig $interface inet 0 down
@@ -19,12 +18,12 @@
    fi
    if [ x$alias_ip_address != x ]; then
      ifconfig $interface:0 inet $alias_ip_address $alias_subnet_arg
-@@ -228,7 +228,7 @@
+@@ -201,7 +201,7 @@
+     make_resolv_conf
      exit_with_hooks 0
    fi
-  if [ -z "${dhc_dbus}" ] || (( ( dhc_dbus & 2 ) != 2 )); then
 -  ifconfig $interface inet 0 down
 +  ifconfig $interface inet 0
-  fi
    exit_with_hooks 1
  fi
+ 




More information about the arch-commits mailing list