commit dhcpcd for openSUSE:Factory

2014-09-17 Thread h_root
Hello community,

here is the log from the commit of package dhcpcd for openSUSE:Factory checked 
in at 2014-09-17 17:27:10

Comparing /work/SRC/openSUSE:Factory/dhcpcd (Old)
 and  /work/SRC/openSUSE:Factory/.dhcpcd.new (New)


Package is dhcpcd

Changes:

--- /work/SRC/openSUSE:Factory/dhcpcd/dhcpcd.changes2013-01-03 
13:54:37.0 +0100
+++ /work/SRC/openSUSE:Factory/.dhcpcd.new/dhcpcd.changes   2014-09-17 
17:27:42.0 +0200
@@ -1,0 +2,5 @@
+Thu Sep 11 15:28:07 UTC 2014 - jeng...@inai.de
+
+- Update homepage URL
+
+---



Other differences:
--
++ dhcpcd.spec ++
--- /var/tmp/diff_new_pack.Tuh3Mu/_old  2014-09-17 17:27:44.0 +0200
+++ /var/tmp/diff_new_pack.Tuh3Mu/_new  2014-09-17 17:27:44.0 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package dhcpcd
 #
-# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -22,7 +22,8 @@
 Summary:A DHCP Client Daemon
 License:GPL-2.0+
 Group:  Productivity/Networking/Boot/Clients
-Url:http://developer.berlios.de/projects/dhcpcd/
+Url:http://roy.marples.name/projects/dhcpcd/index
+
 #Source:   http://prdownload.berlios.de/dhcpcd/dhcpcd-3.2.3.tar.bz2
 Source: dhcpcd-%{version}.tar.bz2
 Source1:dhcpcd-1-vs-3

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit dhcpcd for openSUSE:Factory

2013-01-03 Thread h_root
Hello community,

here is the log from the commit of package dhcpcd for openSUSE:Factory checked 
in at 2013-01-03 13:45:02

Comparing /work/SRC/openSUSE:Factory/dhcpcd (Old)
 and  /work/SRC/openSUSE:Factory/.dhcpcd.new (New)


Package is dhcpcd, Maintainer is vark...@suse.com

Changes:

--- /work/SRC/openSUSE:Factory/dhcpcd/dhcpcd.changes2012-03-01 
17:19:13.0 +0100
+++ /work/SRC/openSUSE:Factory/.dhcpcd.new/dhcpcd.changes   2013-01-03 
13:45:05.0 +0100
@@ -1,0 +2,6 @@
+Tue Dec 18 12:01:07 UTC 2012 - dval...@suse.com
+
+- dhcpcd-unused.patch fixes ppc build error. Where unused expects
+  an argument 
+
+---

New:

  dhcpcd-unused.patch



Other differences:
--
++ dhcpcd.spec ++
--- /var/tmp/diff_new_pack.8D2vpA/_old  2013-01-03 13:45:06.0 +0100
+++ /var/tmp/diff_new_pack.8D2vpA/_new  2013-01-03 13:45:06.0 +0100
@@ -51,6 +51,7 @@
 Patch21:dhcpcd-3.2.3-xen-checksum.diff
 Patch22:dhcpcd-3.2.3-option-checks.diff
 Patch23:
N_When-getting-a-new-lease-send-the-serverID-and-lease-addr-in-a-DHCP_REQUEST-package.patch
+Patch24:dhcpcd-unused.patch
 Provides:   dhcp_client
 Requires:   net-tools
 PreReq: sysconfig
@@ -87,6 +88,7 @@
 %patch21 -p0
 %patch22 -p0
 %patch23 -p2
+%patch24 -p1
 cp %{S:1} .
 cp %{S:3} .
 

++ dhcpcd-unused.patch ++
Index: dhcpcd-3.2.3/common.h
===
--- dhcpcd-3.2.3.orig/common.h
+++ dhcpcd-3.2.3/common.h
@@ -34,9 +34,9 @@
 #include string.h
 
 #if __GNUC__  2 || defined(__INTEL_COMPILER)
-# define _unused __attribute__((__unused__))
+# define _dhcpcd_unused __attribute__((__dhcpcd_unused__))
 #else
-# define _unused
+# define _dhcpcd_unused
 #endif
 
 #define HAVE_STRLCPY
Index: dhcpcd-3.2.3/interface.c
===
--- dhcpcd-3.2.3.orig/interface.c
+++ dhcpcd-3.2.3/interface.c
@@ -196,7 +196,7 @@ size_t hwaddr_aton (unsigned char *buffe
 }
 
 static int _do_interface (const char *ifname,
- _unused unsigned char *hwaddr, _unused size_t *hwlen,
+ _dhcpcd_unused unsigned char *hwaddr, _dhcpcd_unused 
size_t *hwlen,
  struct in_addr *addr,
  bool flush, bool get)
 {
@@ -306,7 +306,7 @@ static int _do_interface (const char *if
return retval;
 }
 
-interface_t *read_interface (const char *ifname, _unused int metric)
+interface_t *read_interface (const char *ifname, _dhcpcd_unused int metric)
 {
int s;
struct ifreq ifr;
@@ -491,7 +491,7 @@ int set_mtu (const char *ifname, short i
 static void log_route (struct in_addr destination,
   struct in_addr netmask,
   struct in_addr gateway,
-  _unused int metric,
+  _dhcpcd_unused int metric,
   int change, int del)
 {
char *dstd = xstrdup (inet_ntoa (destination));
-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit dhcpcd for openSUSE:Factory

2012-03-01 Thread h_root
Hello community,

here is the log from the commit of package dhcpcd for openSUSE:Factory checked 
in at 2012-03-01 17:19:12

Comparing /work/SRC/openSUSE:Factory/dhcpcd (Old)
 and  /work/SRC/openSUSE:Factory/.dhcpcd.new (New)


Package is dhcpcd, Maintainer is vark...@suse.com

Changes:

--- /work/SRC/openSUSE:Factory/dhcpcd/dhcpcd.changes2011-10-02 
09:57:01.0 +0200
+++ /work/SRC/openSUSE:Factory/.dhcpcd.new/dhcpcd.changes   2012-03-01 
17:19:13.0 +0100
@@ -1,0 +2,12 @@
+Wed Feb  8 15:45:13 UTC 2012 - rschweik...@suse.com
+
+- place binary into /usr tree (UsrMerge project)
+
+---
+Fri Oct 21 18:51:10 UTC 2011 - e...@suse.com
+
+- 
N_When-getting-a-new-lease-send-the-serverID-and-lease-addr-in-a-DHCP_REQUEST-package.patch
 
+  When getting a new lease send the serverID and lease 
+  addr in a DHCP_REQUEST package (bnc #725856).
+
+---

New:

  
N_When-getting-a-new-lease-send-the-serverID-and-lease-addr-in-a-DHCP_REQUEST-package.patch



Other differences:
--
++ dhcpcd.spec ++
--- /var/tmp/diff_new_pack.sc1tka/_old  2012-03-01 17:19:15.0 +0100
+++ /var/tmp/diff_new_pack.sc1tka/_new  2012-03-01 17:19:15.0 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package dhcpcd
 #
-# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -16,11 +16,12 @@
 #
 
 
-
 Name:   dhcpcd
 Version:3.2.3
 Release:47.RELEASE6
 Summary:A DHCP Client Daemon
+License:GPL-2.0+
+Group:  Productivity/Networking/Boot/Clients
 Url:http://developer.berlios.de/projects/dhcpcd/
 #Source:   http://prdownload.berlios.de/dhcpcd/dhcpcd-3.2.3.tar.bz2
 Source: dhcpcd-%{version}.tar.bz2
@@ -49,8 +50,7 @@
 Patch20:dhcpcd-3.2.3-renew-unicast.diff
 Patch21:dhcpcd-3.2.3-xen-checksum.diff
 Patch22:dhcpcd-3.2.3-option-checks.diff
-License:GPLv2+
-Group:  Productivity/Networking/Boot/Clients
+Patch23:
N_When-getting-a-new-lease-send-the-serverID-and-lease-addr-in-a-DHCP_REQUEST-package.patch
 Provides:   dhcp_client
 Requires:   net-tools
 PreReq: sysconfig
@@ -86,6 +86,7 @@
 %patch20 -p0
 %patch21 -p0
 %patch22 -p0
+%patch23 -p2
 cp %{S:1} .
 cp %{S:3} .
 
@@ -93,8 +94,12 @@
 make %{?_smp_mflags} CFLAGS=$RPM_OPT_FLAGS -O2 -pipe -fpie -DENABLE_SYSV=1 
-UENABLE_DUID LDFLAGS=-pie
 
 %install
-make install DESTDIR=$RPM_BUILD_ROOT
-install -D %{S:2} $RPM_BUILD_ROOT/usr/sbin/dhcpcd-test
+make install DESTDIR=$RPM_BUILD_ROOT BINDIR=%{_sbindir}
+install -D %{S:2} $RPM_BUILD_ROOT/%{_sbindir}/dhcpcd-test
+#UsrMerge
+mkdir $RPM_BUILD_ROOT/sbin
+ln -sf %{_sbindir}/dhcpcd  $RPM_BUILD_ROOT/sbin
+#EndUserMerge
 
 %post
 #remove dhcpcd 1 parameters which are not implemented in dhcpcd 3.2.3
@@ -111,7 +116,10 @@
 %doc README dhcpcd-1-vs-3 README.SUSE
 %doc %{_mandir}/man8/dhcpcd.8*
 %defattr(0755,root,root)
+#UsrMerge
 /sbin/dhcpcd
-/usr/sbin/dhcpcd-test
+#EndUsrMerge
+%{_sbindir}/dhcpcd
+%{_sbindir}/dhcpcd-test
 
 %changelog

++ 
N_When-getting-a-new-lease-send-the-serverID-and-lease-addr-in-a-DHCP_REQUEST-package.patch
 ++
From: Egbert Eich e...@suse.de
Date: Fri Oct 21 19:30:32 2011 +0200
Subject: [PATCH] When getting a new lease send the serverID and lease addr in a 
DHCP_REQUEST package.
Patch-Mainline: N/A
Git-commit: a29a820f4fe4dc3b05f4ee1baf344b6b5b8aa25b
References: bnc #725856 
Signed-off-by: Egbert Eich e...@suse.de

When a lease cannot be renewed dhcpclient tries to get a new lease starting
with a DHCP_DISCOVER. In this case the serverID and lease addr needs to be
sent in the DHCP_REQUEST package. This only happens when the if statement

  if (dhcp-address.s_addr 
  dhcp-address.s_addr !=
  iface-previous_address.s_addr)
  {

is true. Thus iface-previous_address.s_addr needs to be when the lease
renewal fails and we reenter STATE_INIT.
(bnc #725856)

Signed-off-by: Egbert Eich e...@suse.de
---
 dhcpcd-3.2.3/client.c |1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/dhcpcd-3.2.3/client.c b/dhcpcd-3.2.3/client.c
index fd97908..2671fba 100644
--- a/dhcpcd-3.2.3/client.c
+++ b/dhcpcd-3.2.3/client.c
@@ -798,6 +798,7 @@ static int handle_dhcp (state_t *state, int type, const 
options_t *options)
state-state = STATE_INIT;
state-timeout = 0;
state-xid = 0;
+   

commit dhcpcd for openSUSE:Factory

2011-09-19 Thread h_root

Hello community,

here is the log from the commit of package dhcpcd for openSUSE:Factory
checked in at Mon Sep 19 21:08:35 CEST 2011.




--- dhcpcd/dhcpcd.changes   2010-11-30 15:12:50.0 +0100
+++ /mounts/work_src_done/STABLE/dhcpcd/dhcpcd.changes  2011-04-19 
10:09:14.0 +0200
@@ -1,0 +2,20 @@
+Tue Apr 19 07:43:22 UTC 2011 - m...@suse.de
+
+- Fixed a bug causing a crash in the sip option check, when the
+  option data can't be decoded (bnc#687850).
+- Relaxed the check of the domain-name option causing a regression,
+  when the server is misusing it to provide a domain list and does
+  not provide it using the domain-search option (bnc#675052).
+
+---
+Thu Mar 31 13:47:05 UTC 2011 - vark...@novell.com
+
+- bnc#675052 - discard string options such as host and domain names
+  containing disallowed characters or beeing too long. This proctive
+  patch limits root-path to a-zA-Z0-9, #%+-_:.,@~/\[]= and a space
+  (CVE-2011-0997).
+- fixed to read netbios scope from info file as string
+- bnc#668194 - handle packets with xen partial UDP checksums
+- bnc#657402 - send renew messages as unicast directly to the server
+
+---

calling whatdependson for head-i586


New:

  dhcpcd-3.2.3-option-checks.diff
  dhcpcd-3.2.3-renew-unicast.diff
  dhcpcd-3.2.3-xen-checksum.diff



Other differences:
--
++ dhcpcd.spec ++
--- /var/tmp/diff_new_pack.I88TLE/_old  2011-09-19 21:08:30.0 +0200
+++ /var/tmp/diff_new_pack.I88TLE/_new  2011-09-19 21:08:30.0 +0200
@@ -1,7 +1,7 @@
 #
-# spec file for package dhcpcd (Version 3.2.3)
+# spec file for package dhcpcd
 #
-# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -19,7 +19,7 @@
 
 Name:   dhcpcd
 Version:3.2.3
-Release:63
+Release:47.RELEASE6
 Summary:A DHCP Client Daemon
 Url:http://developer.berlios.de/projects/dhcpcd/
 #Source:   http://prdownload.berlios.de/dhcpcd/dhcpcd-3.2.3.tar.bz2
@@ -46,6 +46,9 @@
 Patch17:bnc#564441.diff
 Patch18:bnc#577402.diff
 Patch19:bnc#579438.diff
+Patch20:dhcpcd-3.2.3-renew-unicast.diff
+Patch21:dhcpcd-3.2.3-xen-checksum.diff
+Patch22:dhcpcd-3.2.3-option-checks.diff
 License:GPLv2+
 Group:  Productivity/Networking/Boot/Clients
 Provides:   dhcp_client
@@ -87,6 +90,9 @@
 %patch17 -p0
 %patch18 -p0
 %patch19 -p0
+%patch20 -p0
+%patch21 -p0
+%patch22 -p0
 cp %{S:1} .
 cp %{S:3} .
 

++ dhcpcd-3.2.3-more-params.diff ++
--- /var/tmp/diff_new_pack.I88TLE/_old  2011-09-19 21:08:30.0 +0200
+++ /var/tmp/diff_new_pack.I88TLE/_new  2011-09-19 21:08:30.0 +0200
@@ -186,7 +186,7 @@
 +  else if (strcmp (var, LOGSERVER) == 0)
 +  dhcp-logservers = parse_addresses (value, LOGSERVER);
 +  else if (strcmp (var, NETBIOSSCOPE) == 0)
-+  parse_uint (dhcp-netbiosscope, value, NETBIOSSCOPE);
++  dhcp-netbiosscope = xstrdup (value);
 +  else if (strcmp (var, NETBIOSNAMESERVER) == 0)
 +  dhcp-netbiosnameservers = parse_addresses (value, 
NETBIOSNAMESERVER);
 +  else if (strcmp (var, NETBIOSDDSERVER) == 0)

++ dhcpcd-3.2.3-option-checks.diff ++
--- configure.c
+++ configure.c
@@ -540,7 +540,7 @@ static char *lookuphostname (char *hostname, const dhcp_t 
*dhcp,
char *addr;
struct addrinfo hints;
struct addrinfo *res = NULL;
-   int result;
+   int result, check;
 
logger (LOG_DEBUG, Looking up hostname via DNS);
addr = xmalloc (sizeof (char) * NI_MAXHOST);
@@ -565,9 +565,10 @@ static char *lookuphostname (char *hostname, const dhcp_t 
*dhcp,
result = getaddrinfo (addr, 0, hints, res);
if (res)
freeaddrinfo (res);
-   if (result == 0)
+   check = check_domain_name(addr, strlen(addr), 0);
+   if (result == 0 || check != 0)
logger (LOG_ERR, malicious PTR record detected);
-   if (result == 0 || ! *addr) {
+   if (result == 0 || ! *addr || check != 0) {
free (addr);
return (NULL);
}
@@ -842,12 +843,12 @@ int configure (const options_t *options, interface_t 
*iface,
exec_script (options-script, iface-infofile, up);
 
curhostname = xmalloc (sizeof (char) * MAXHOSTNAMELEN);
-   *curhostname = '\0';
+   memset(curhostname, 0, MAXHOSTNAMELEN);
 
-   gethostname (curhostname, MAXHOSTNAMELEN);
+   gethostname