Signed-off-by: Robert Schwebel <[email protected]>
---
 patches/dibbler-0.7.3/0001-merge-dns-search.patch  |   44 ++++++++++++++++++++
 patches/dibbler-0.7.3/0002-fix-compile.patch       |   39 +++++++++++++++++
 .../dibbler-0.7.3/0003-fix-incremental-build.patch |   32 ++++++++++++++
 patches/dibbler-0.7.3/fix-compile.patch            |   31 --------------
 patches/dibbler-0.7.3/fix-incremental-build.patch  |   24 -----------
 patches/dibbler-0.7.3/merge-dns-search.patch       |   36 ----------------
 patches/dibbler-0.7.3/series                       |    3 -
 7 files changed, 115 insertions(+), 94 deletions(-)
 create mode 100644 patches/dibbler-0.7.3/0001-merge-dns-search.patch
 create mode 100644 patches/dibbler-0.7.3/0002-fix-compile.patch
 create mode 100644 patches/dibbler-0.7.3/0003-fix-incremental-build.patch
 delete mode 100644 patches/dibbler-0.7.3/fix-compile.patch
 delete mode 100644 patches/dibbler-0.7.3/fix-incremental-build.patch
 delete mode 100644 patches/dibbler-0.7.3/merge-dns-search.patch
 delete mode 100644 patches/dibbler-0.7.3/series

diff --git a/patches/dibbler-0.7.3/0001-merge-dns-search.patch 
b/patches/dibbler-0.7.3/0001-merge-dns-search.patch
new file mode 100644
index 0000000..34c8cf5
--- /dev/null
+++ b/patches/dibbler-0.7.3/0001-merge-dns-search.patch
@@ -0,0 +1,44 @@
+From 43cbc6a6eecfc9bd2d8412e1ebb36c1bc471d076 Mon Sep 17 00:00:00 2001
+From: unknown author <[email protected]>
+Date: Sat, 29 Oct 2011 19:10:22 +0200
+Subject: [PATCH 1/3] merge-dns-search
+
+Merge DNS search tables between IPv4 and IPv6
+
+Without this patch the IPv4 search tables will be overwritten
+once an IPv6 domain is added. With this patch both tables
+will be merged.
+
+Signed-off-by: Bart vdr. Meulen <[email protected]>
+Signed-off-by: Remy Bohmer <[email protected]>
+---
+ Port-linux/lowlevel-options-linux.c |   13 ++++++++-----
+ 1 files changed, 8 insertions(+), 5 deletions(-)
+
+diff --git a/Port-linux/lowlevel-options-linux.c 
b/Port-linux/lowlevel-options-linux.c
+index d5be379..929b24b 100644
+--- a/Port-linux/lowlevel-options-linux.c
++++ b/Port-linux/lowlevel-options-linux.c
+@@ -199,11 +199,14 @@ int domain_add(const char* ifname, int ifaceid, const 
char* domain) {
+       return LOWLEVEL_ERROR_FILE;
+     while (fgets(buf,511,f)) {
+       if ( (!found) && (strstr(buf, "search")) ) {
+-          if (strlen(buf))
+-              buf[strlen(buf)-1]=0;
+-          fprintf(f2, "%s %s\n", buf, domain);
+-          found = 1;
+-          continue;
++          if (!strstr(buf,domain)) {
++              if (strlen(buf))
++                  buf[strlen(buf)-1]=0;
++              fprintf(f2, "%s %s\n", buf, domain);
++              found = 1;
++              continue;
++          }
++
+       }
+       fprintf(f2,"%s",buf);
+     }
+-- 
+1.7.7
+
diff --git a/patches/dibbler-0.7.3/0002-fix-compile.patch 
b/patches/dibbler-0.7.3/0002-fix-compile.patch
new file mode 100644
index 0000000..3af7ddf
--- /dev/null
+++ b/patches/dibbler-0.7.3/0002-fix-compile.patch
@@ -0,0 +1,39 @@
+From 7c97b5e9ea7aa16a5a6921a40e2b7a34ce2be93f Mon Sep 17 00:00:00 2001
+From: unknown author <[email protected]>
+Date: Sat, 29 Oct 2011 19:10:22 +0200
+Subject: [PATCH 2/3] fix-compile
+
+Fix compilation of dibbler package
+
+A header file is included that is not needed, and even breaks
+compilation on recent kernels. Remove it.
+
+Signed-off-by: Remy Bohmer <[email protected]>
+---
+ Port-linux/utils.c |    3 ++-
+ 1 files changed, 2 insertions(+), 1 deletions(-)
+
+diff --git a/Port-linux/utils.c b/Port-linux/utils.c
+index 4bdda71..14a27f5 100644
+--- a/Port-linux/utils.c
++++ b/Port-linux/utils.c
+@@ -14,6 +14,7 @@
+  * Rani Assaf <[email protected]> 980929:       resolve addresses
+  */
+ 
++#define GNU_SOURCE
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <unistd.h>
+@@ -26,7 +27,7 @@
+ #include <arpa/inet.h>
+ #include <resolv.h>
+ #include <asm/types.h>
+-#include <linux/pkt_sched.h>
++/*#include <linux/pkt_sched.h>*/
+ #include <time.h>
+ #include <sys/time.h>
+ 
+-- 
+1.7.7
+
diff --git a/patches/dibbler-0.7.3/0003-fix-incremental-build.patch 
b/patches/dibbler-0.7.3/0003-fix-incremental-build.patch
new file mode 100644
index 0000000..f40595f
--- /dev/null
+++ b/patches/dibbler-0.7.3/0003-fix-incremental-build.patch
@@ -0,0 +1,32 @@
+From 759e0b6853ee53744b308f3651ea02990e98bce0 Mon Sep 17 00:00:00 2001
+From: unknown author <[email protected]>
+Date: Sat, 29 Oct 2011 19:10:22 +0200
+Subject: [PATCH 3/3] fix-incremental-build
+
+Fix incremental build of dibbler package
+
+The make install fails if the changelog.gz already exists.
+So, the repair incremental builds make sure the changelog.gz
+file does not exist before generating a new one.
+
+Signed-off-by: Remy Bohmer <[email protected]>
+---
+ Makefile |    2 +-
+ 1 files changed, 1 insertions(+), 1 deletions(-)
+
+diff --git a/Makefile b/Makefile
+index b8895c1..48707a5 100644
+--- a/Makefile
++++ b/Makefile
+@@ -428,7 +428,7 @@ install:
+       $(INSTALL) -m 644 doc/dibbler-devel.pdf 
$(INST_DOCDIR)/dibbler/dibbler-devel.pdf
+       @echo "[INSTALL] CHANGELOG"
+       $(INSTALL) -m 644 CHANGELOG $(INST_DOCDIR)/dibbler/changelog
+-      gzip -9 $(INST_DOCDIR)/dibbler/changelog
++      gzip -f -9 $(INST_DOCDIR)/dibbler/changelog
+ 
+ DIR=`basename $(PWD)`
+ 
+-- 
+1.7.7
+
diff --git a/patches/dibbler-0.7.3/fix-compile.patch 
b/patches/dibbler-0.7.3/fix-compile.patch
deleted file mode 100644
index 66a4cf5..0000000
--- a/patches/dibbler-0.7.3/fix-compile.patch
+++ /dev/null
@@ -1,31 +0,0 @@
-Fix compilation of dibbler package
-
-A header file is included that is not needed, and even breaks
-compilation on recent kernels. Remove it.
-
-Signed-off-by: Remy Bohmer <[email protected]>
----
- Port-linux/utils.c |    3 ++-
- 1 file changed, 2 insertions(+), 1 deletion(-)
- 
-Index: dibbler-0.7.3/Port-linux/utils.c
-===================================================================
---- dibbler-0.7.3.orig/Port-linux/utils.c
-+++ dibbler-0.7.3/Port-linux/utils.c
-@@ -14,6 +14,7 @@
-  * Rani Assaf <[email protected]> 980929:       resolve addresses
-  */
- 
-+#define GNU_SOURCE
- #include <stdio.h>
- #include <stdlib.h>
- #include <unistd.h>
-@@ -26,7 +27,7 @@
- #include <arpa/inet.h>
- #include <resolv.h>
- #include <asm/types.h>
--#include <linux/pkt_sched.h>
-+/*#include <linux/pkt_sched.h>*/
- #include <time.h>
- #include <sys/time.h>
- 
diff --git a/patches/dibbler-0.7.3/fix-incremental-build.patch 
b/patches/dibbler-0.7.3/fix-incremental-build.patch
deleted file mode 100644
index cf56d96..0000000
--- a/patches/dibbler-0.7.3/fix-incremental-build.patch
+++ /dev/null
@@ -1,24 +0,0 @@
-Fix incremental build of dibbler package
-
-The make install fails if the changelog.gz already exists.
-So, the repair incremental builds make sure the changelog.gz
-file does not exist before generating a new one.
-
-Signed-off-by: Remy Bohmer <[email protected]>
----
- Makefile |    2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
- 
-Index: dibbler-0.7.3/Makefile
-===================================================================
---- dibbler-0.7.3.orig/Makefile
-+++ dibbler-0.7.3/Makefile
-@@ -428,7 +428,7 @@ install: 
-       $(INSTALL) -m 644 doc/dibbler-devel.pdf 
$(INST_DOCDIR)/dibbler/dibbler-devel.pdf
-       @echo "[INSTALL] CHANGELOG"
-       $(INSTALL) -m 644 CHANGELOG $(INST_DOCDIR)/dibbler/changelog
--      gzip -9 $(INST_DOCDIR)/dibbler/changelog
-+      gzip -f -9 $(INST_DOCDIR)/dibbler/changelog
- 
- DIR=`basename $(PWD)`
- 
diff --git a/patches/dibbler-0.7.3/merge-dns-search.patch 
b/patches/dibbler-0.7.3/merge-dns-search.patch
deleted file mode 100644
index 0792843..0000000
--- a/patches/dibbler-0.7.3/merge-dns-search.patch
+++ /dev/null
@@ -1,36 +0,0 @@
-Merge DNS search tables between IPv4 and IPv6
-
-Without this patch the IPv4 search tables will be overwritten
-once an IPv6 domain is added. With this patch both tables
-will be merged.
-
-Signed-off-by: Bart vdr. Meulen <[email protected]>
-Signed-off-by: Remy Bohmer <[email protected]>
----
- Port-linux/lowlevel-options-linux.c |   13 ++++++++-----
- 1 file changed, 8 insertions(+), 5 deletions(-)
-
-Index: dibbler-0.7.3/Port-linux/lowlevel-options-linux.c
-===================================================================
---- dibbler-0.7.3.orig/Port-linux/lowlevel-options-linux.c
-+++ dibbler-0.7.3/Port-linux/lowlevel-options-linux.c
-@@ -199,11 +199,14 @@ int domain_add(const char* ifname, int i
-       return LOWLEVEL_ERROR_FILE;
-     while (fgets(buf,511,f)) {
-       if ( (!found) && (strstr(buf, "search")) ) {
--          if (strlen(buf))
--              buf[strlen(buf)-1]=0;
--          fprintf(f2, "%s %s\n", buf, domain);
--          found = 1;
--          continue;
-+          if (!strstr(buf,domain)) {
-+              if (strlen(buf))
-+                  buf[strlen(buf)-1]=0;
-+              fprintf(f2, "%s %s\n", buf, domain);
-+              found = 1;
-+              continue;
-+          }
-+
-       }
-       fprintf(f2,"%s",buf);
-     }
diff --git a/patches/dibbler-0.7.3/series b/patches/dibbler-0.7.3/series
deleted file mode 100644
index b492525..0000000
--- a/patches/dibbler-0.7.3/series
+++ /dev/null
@@ -1,3 +0,0 @@
-merge-dns-search.patch
-fix-compile.patch
-fix-incremental-build.patch
-- 
1.7.7


-- 
ptxdist mailing list
[email protected]

Reply via email to