]>
Commit | Line | Data |
---|---|---|
cc52c523 | 1 | ############################################################################### |
802ea3af MT |
2 | # IPFire.org - An Open Source Firewall Solution # |
3 | # Copyright (C) - IPFire Development Team <info@ipfire.org> # | |
cc52c523 MT |
4 | ############################################################################### |
5 | ||
802ea3af MT |
6 | name = dhcp |
7 | version = 4.2.1-P1 | |
8 | release = 1 | |
cc52c523 | 9 | |
802ea3af MT |
10 | groups = Networking/Daemons |
11 | url = http://isc.org/products/DHCP/ | |
12 | license = ISC | |
13 | summary = Dynamic host configuration protocol software. | |
cc52c523 | 14 | |
802ea3af | 15 | description |
cc52c523 MT |
16 | DHCP (Dynamic Host Configuration Protocol) is a protocol which allows \ |
17 | individual devices on an IP network to get their own network \ | |
18 | configuration information (IP address, subnetmask, broadcast address, \ | |
19 | etc.) from a DHCP server. The overall purpose of DHCP is to make it \ | |
20 | easier to administer a large network. | |
802ea3af MT |
21 | end |
22 | ||
23 | source_dl = | |
24 | ||
25 | build | |
26 | configure_options += \ | |
27 | --sysconfdir=/etc \ | |
28 | --with-srv-lease-file=/var/lib/dhcpd/dhcpd.leases \ | |
29 | --with-cli-lease-file=/var/lib/dhclient/dhclient.leases \ | |
30 | --with-srv-pid-file=/var/run/dhcpd.pid \ | |
31 | --with-cli-pid-file=/var/run/dhclient.pid \ | |
32 | --with-relay-pid-file=/var/run/dhcrelay.pid | |
33 | ||
34 | install_cmds | |
35 | rm -vf %{BUILDROOT}/etc/dhclient.conf | |
36 | ||
37 | # Move the client to /sbin, create dirs | |
38 | # and remove the default config. | |
39 | mkdir -pv %{BUILDROOT}/sbin | |
40 | mv -v %{BUILDROOT}/usr/sbin/dhclient %{BUILDROOT}/sbin/dhclient | |
41 | ||
42 | install -v -m 755 %{DIR_SOURCE}/dhclient-script \ | |
43 | %{BUILDROOT}/sbin/dhclient-script | |
44 | mkdir -pv %{BUILDROOT}/var/lib/dhclient | |
45 | ||
46 | # Remove header files. | |
47 | # There is nothing that makes use out of them. | |
48 | rm -rfv %{BUILDROOT}/usr/include | |
49 | end | |
50 | end | |
51 | ||
52 | packages | |
53 | package %{name} | |
54 | end | |
55 | end |