]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
dhcp: fix build with linux3.x.
authorArne Fitzenreiter <arne_f@ipfire.org>
Fri, 3 Aug 2012 18:32:32 +0000 (20:32 +0200)
committerArne Fitzenreiter <arne_f@ipfire.org>
Fri, 3 Aug 2012 18:32:32 +0000 (20:32 +0200)
lfs/dhcp
src/patches/dhcp-3.1_linux3.patch [new file with mode: 0644]

index 845813cc8068ae145fc027bf9950f5d51e8f9d73..235e825968d98a2b4f0583f78279fc55f3e06b39 100644 (file)
--- a/lfs/dhcp
+++ b/lfs/dhcp
@@ -1,7 +1,7 @@
 ###############################################################################
 #                                                                             #
 # IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007  Michael Tremer & Christian Schmidt                      #
+# Copyright (C) 2007-2012  IPFire Team  <info@ipfire.org>                     #
 #                                                                             #
 # This program is free software: you can redistribute it and/or modify        #
 # it under the terms of the GNU General Public License as published by        #
@@ -70,6 +70,7 @@ $(subst %,%_MD5,$(objects)) :
 $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        @$(PREBUILD)
        @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE)
+       cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/dhcp-3.1_linux3.patch
        cd $(DIR_APP) && ./configure
        cd $(DIR_APP) && make $(MAKETUNING)
        cd $(DIR_APP) && make LIBDIR=/usr/lib INCDIR=/usr/include install
diff --git a/src/patches/dhcp-3.1_linux3.patch b/src/patches/dhcp-3.1_linux3.patch
new file mode 100644 (file)
index 0000000..44edb41
--- /dev/null
@@ -0,0 +1,11 @@
+diff -Naur dhcp-3.1-ESV-R3.org/configure dhcp-3.1-ESV-R3/configure
+--- dhcp-3.1-ESV-R3.org/configure      2005-03-17 21:14:55.000000000 +0100
++++ dhcp-3.1-ESV-R3/configure  2012-06-17 12:19:29.000000000 +0200
+@@ -104,6 +104,7 @@
+            2) sysname=linux-2.2 ;;
+            *) sysname=linux-2.2 ;;
+          esac;;
++      3) sysname=linux-2.2 ;;
+       esac;;
+     SunOS)
+       release=`uname -r`