]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blob - pkgs/dhcp/dhcp.nm
Merge remote-tracking branch 'stevee/kernel-dracut'
[people/ms/ipfire-3.x.git] / pkgs / dhcp / dhcp.nm
1 ###############################################################################
2 # #
3 # IPFire.org - A linux based firewall #
4 # Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt #
5 # #
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. #
10 # #
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. #
15 # #
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/>. #
18 # #
19 ###############################################################################
20
21 ###############################################################################
22 # Definitions
23 ###############################################################################
24
25 include $(PKGROOT)/Include
26
27 PKG_NAME = dhcp
28 PKG_VER = 4.2.1
29 PKG_REL = 1
30
31 PKG_MAINTAINER =
32 PKG_GROUPS = Networking/Daemons
33 PKG_URL = http://isc.org/products/DHCP/
34 PKG_LICENSE = ISC
35 PKG_SUMMARY = Dynamic host configuration protocol software.
36
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.
43 endef
44
45 PKG_TARBALL = $(THISAPP).tar.gz
46
47 CONFIGURE_OPTIONS += \
48 --sysconfdir=/etc \
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
54
55 define STAGE_INSTALL_CMDS
56 rm -vf $(BUILDROOT)/etc/dhclient.conf
57
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
62
63 install -v -m 755 $(DIR_SOURCE)/dhclient-script \
64 $(BUILDROOT)/sbin/dhclient-script
65 -mkdir -pv $(BUILDROOT)/var/lib/dhclient
66
67 # Remove header files.
68 # There is nothing that makes use out of them.
69 rm -rfv $(BUILDROOT)/usr/include
70 endef