mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
dhcp: fix build with linux3.x.
This commit is contained in:
3
lfs/dhcp
3
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
|
||||
|
||||
11
src/patches/dhcp-3.1_linux3.patch
Normal file
11
src/patches/dhcp-3.1_linux3.patch
Normal file
@@ -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`
|
||||
Reference in New Issue
Block a user