1 ###############################################################################
3 # IPFire.org - A linux based firewall #
4 # Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt #
6 # This program is free software: you can redistribute it and/or modify #
7 # it under the terms of the GNU General Public License as published by #
8 # the Free Software Foundation, either version 3 of the License, or #
9 # (at your option) any later version. #
11 # This program is distributed in the hope that it will be useful, #
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of #
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
14 # GNU General Public License for more details. #
16 # You should have received a copy of the GNU General Public License #
17 # along with this program. If not, see <http://www.gnu.org/licenses/>. #
19 ###############################################################################
21 ###############################################################################
23 ###############################################################################
25 include $(PKGROOT)/Include
32 PKG_GROUPS = Networking/Daemons
33 PKG_URL = http://isc.org/products/DHCP/
35 PKG_SUMMARY = Dynamic host configuration protocol software.
37 define PKG_DESCRIPTION
38 DHCP (Dynamic Host Configuration Protocol) is a protocol which allows \
39 individual devices on an IP network to get their own network \
40 configuration information (IP address, subnetmask, broadcast address, \
41 etc.) from a DHCP server. The overall purpose of DHCP is to make it \
42 easier to administer a large network.
45 PKG_TARBALL = $(THISAPP).tar.gz
47 CONFIGURE_OPTIONS += \
49 --with-srv-lease-file=/var/lib/dhcpd/dhcpd.leases \
50 --with-cli-lease-file=/var/lib/dhclient/dhclient.leases \
51 --with-srv-pid-file=/var/run/dhcpd.pid \
52 --with-cli-pid-file=/var/run/dhclient.pid \
53 --with-relay-pid-file=/var/run/dhcrelay.pid
55 define STAGE_INSTALL_CMDS
56 rm -vf $(BUILDROOT)/etc/dhclient.conf
58 # Move the client to /sbin, create dirs
59 # and remove the default config.
60 -mkdir -pv $(BUILDROOT)/sbin
61 mv -v $(BUILDROOT)/usr/sbin/dhclient $(BUILDROOT)/sbin/dhclient
63 install -v -m 755 $(DIR_SOURCE)/dhclient-script \
64 $(BUILDROOT)/sbin/dhclient-script
65 -mkdir -pv $(BUILDROOT)/var/lib/dhclient
67 # Remove header files.
68 # There is nothing that makes use out of them.
69 rm -rfv $(BUILDROOT)/usr/include