2 # Copyright (C) 2006-2012 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
15 PKG_LICENSE
:=BSD-3-Clause
16 PKG_LICENSE_FILES
:=LICENSE
17 PKG_MAINTAINER
:=Antony Antony
<antony@phenome.org
>
19 PKG_SOURCE
:=$(UPSTREAM_NAME
)-$(PKG_VERSION
).
tar.gz
20 PKG_SOURCE_URL
:=ftp
://ftp.isc.org
/isc
/dhcp
/$(PKG_VERSION
) \
21 http
://ftp.funet.fi
/pub
/mirrors
/ftp.isc.org
/isc
/dhcp
/$(PKG_VERSION
) \
22 http
://ftp.iij.ad.jp
/pub
/network
/isc
/dhcp
/$(PKG_VERSION
)
23 PKG_MD5SUM
:=2b5e5b2fa31c2e27e487039d86f83d3f
24 PKG_HASH
:=eb95936bf15d2393c55dd505bc527d1d4408289cec5a9fa8abb99f7577e7f954
29 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(BUILD_VARIANT
)/$(UPSTREAM_NAME
)-$(PKG_VERSION
)
31 include $(INCLUDE_DIR
)/package.mk
33 define Package
/isc-dhcp
/Default
36 SUBMENU
:=IP Addresses and Names
38 URL:=https://www.isc.org/software/dhcp
41 define Package/isc-dhcp-relay-ipv4
42 $(call Package/isc-dhcp/Default)
43 TITLE+= relay (without IPv6)
47 define Package/isc-dhcp-relay-ipv6
48 $(call Package/isc-dhcp/Default)
49 TITLE+= relay (with IPv6)
53 define Package/isc-dhcp-relay/description
54 provides a means for relaying DHCP and BOOTP requests from a subnet to which
55 no DHCP server is directly connected to one or more DHCP servers on other
59 define Package/isc-dhcp-relay-ipv4/description
60 $(call Package/isc-dhcp-relay-ipv6/description)
61 This package is compiled with IPv4 support only.
64 define Package/isc-dhcp-relay-ipv4/conffiles
68 define Package/isc-dhcp-relay-ipv6/description
69 $(call Package/isc-dhcp-relay/description)
70 This package is compiled with IPv4 and IPv6 support.
73 define Package/isc-dhcp-relay-ipv6/conffiles
77 define Package/isc-dhcp-client-ipv4
78 $(call Package/isc-dhcp/Default)
79 TITLE+= client (without IPv6)
83 define Package/isc-dhcp-client-ipv6
84 $(call Package/isc-dhcp/Default)
85 TITLE+= client (with IPv6)
89 define Package/isc-dhcp-client/description
90 provides a means for configuring one or more network interfaces using the
91 Dynamic Host Configuration Protocol, BOOTP protocol, or if these protocols
92 fail, by statically assigning an address.
95 define Package/isc-dhcp-client-ipv4/description
96 $(call Package/isc-dhcp-client/description)
97 This package is compiled with IPv4 support only.
100 define Package/isc-dhcp-client-ipv6/description
101 $(call Package/isc-dhcp-client/description)
102 This package is compiled with IPv4 and IPv6 support.
105 define Package/isc-dhcp-server-ipv4
106 $(call Package/isc-dhcp/Default)
107 TITLE+= server (without IPv6)
111 define Package/isc-dhcp-server-ipv6
112 $(call Package/isc-dhcp/Default)
113 TITLE+= server (with IPv6)
117 define Package/isc-dhcp-server/description
118 implements the Dynamic Host Configuration Protocol (DHCP) and the Internet
119 Bootstrap Protocol (BOOTP).
122 define Package/isc-dhcp-server-ipv4/description
123 $(call Package/isc-dhcp-server/description)
124 This package is compiled with IPv4 support only.
127 define Package/isc-dhcp-server-ipv6/description
128 $(call Package/isc-dhcp-server/description)
129 This package is compiled with IPv4 and IPv6 support.
132 define Package/isc-dhcp-omshell-ipv4
133 $(call Package/isc-dhcp/Default)
134 DEPENDS:= +isc-dhcp-server-ipv4
135 TITLE+= omshell (without IPv6)
139 define Package/isc-dhcp-omshell-ipv6
140 $(call Package/isc-dhcp/Default)
141 DEPENDS:= +isc-dhcp-server-ipv6
142 TITLE+= omshell (with IPv6)
146 define Package/isc-dhcp-omshell/description
147 provides an interactive way to connect to, query, and possibly change, the ISC
148 DHCP Server's state via OMAPI
, the Object Management API.
151 define Package
/isc-dhcp-omshell-ipv4
/description
152 $(call Package
/isc-dhcp-omshell
/description
)
153 This package is compiled with IPv4 support only.
156 define Package
/isc-dhcp-omshell-ipv6
/description
157 $(call Package
/isc-dhcp-omshell
/description
)
158 This package is compiled with IPv4 and IPv6 support.
164 --disable-dependency-tracking \
165 --with-randomdev
=/dev
/urandom \
166 ac_cv_file__dev_random
=yes
168 ifeq ($(BUILD_VARIANT
),ipv4
)
169 CONFIGURE_ARGS
+= --disable-dhcpv6
171 ifeq ($(BUILD_VARIANT
),ipv6
)
172 CONFIGURE_ARGS
+= --enable-dhcpv6
176 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
177 BUILD_CC
="$(HOSTCC_NOCACHE)" \
178 CROSS_CC
="$(TARGET_CC)" \
179 host_alias
="$(GNU_TARGET_NAME)" \
180 target_alias
="$(GNU_TARGET_NAME)" \
181 build_alias
="$(GNU_HOST_NAME)" \
183 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
184 DESTDIR
="$(PKG_INSTALL_DIR)" \
185 BUILD_CC
="$(HOSTCC_NOCACHE)" \
186 CROSS_CC
="$(TARGET_CC)" \
187 host_alias
="$(GNU_TARGET_NAME)" \
188 target_alias
="$(GNU_TARGET_NAME)" \
189 build_alias
="$(GNU_HOST_NAME)" \
193 define Package
/isc-dhcp-relay-
$(BUILD_VARIANT
)/install
194 $(INSTALL_DIR
) $(1)/usr
/sbin
195 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/dhcrelay
$(1)/usr
/sbin
196 $(INSTALL_DIR
) $(1)/etc
/config
197 $(INSTALL_DATA
) .
/files
/etc
/config
/dhcrelay
$(1)/etc
/config
198 $(INSTALL_DIR
) $(1)/etc
/init.d
199 $(INSTALL_BIN
) .
/files
/dhcrelay4.init
$(1)/etc
/init.d
/dhcrelay4
202 define Package
/isc-dhcp-server-
$(BUILD_VARIANT
)/install
203 $(INSTALL_DIR
) $(1)/usr
/sbin
$(1)/etc
204 $(INSTALL_DIR
) $(1)/usr
/sbin
$(1)/etc
/init.d
205 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/dhcpd
$(1)/usr
/sbin
206 $(INSTALL_BIN
) .
/files
/dhcpd.init
$(1)/etc
/init.d
/dhcpd
207 $(INSTALL_BIN
) .
/files
/dhcpd.conf
$(1)/etc
208 ifeq ($(BUILD_VARIANT
),ipv6
)
209 $(INSTALL_BIN
) .
/files
/dhcpd6.init
$(1)/etc
/init.d
/dhcpd6
210 $(INSTALL_BIN
) .
/files
/dhcpd6.conf
$(1)/etc
214 define Package
/isc-dhcp-server-ipv4
/conffiles
218 define Package
/isc-dhcp-server-ipv6
/conffiles
222 define Package
/isc-dhcp-client-
$(BUILD_VARIANT
)/install
223 $(INSTALL_DIR
) $(1)/usr
/sbin
$(1)/etc
224 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/dhclient
$(1)/usr
/sbin
225 $(INSTALL_BIN
) .
/files
/dhclient-script
$(1)/usr
/sbin
/
226 ifeq ($(BUILD_VARIANT
),ipv6
)
227 $(INSTALL_BIN
) .
/files
/dhclient6.conf
$(1)/etc
231 define Package
/isc-dhcp-client-ipv4
/conffiles
235 define Package
/isc-dhcp-client-ipv6
/conffiles
239 define Package
/isc-dhcp-omshell-
$(BUILD_VARIANT
)/install
240 $(INSTALL_DIR
) $(1)/usr
/bin
241 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/omshell
$(1)/usr
/bin
244 $(eval
$(call BuildPackage
,isc-dhcp-relay-ipv4
))
245 $(eval
$(call BuildPackage
,isc-dhcp-server-ipv4
))
246 $(eval
$(call BuildPackage
,isc-dhcp-client-ipv4
))
247 $(eval
$(call BuildPackage
,isc-dhcp-omshell-ipv4
))
248 $(eval
$(call BuildPackage
,isc-dhcp-relay-ipv6
))
249 $(eval
$(call BuildPackage
,isc-dhcp-server-ipv6
))
250 $(eval
$(call BuildPackage
,isc-dhcp-client-ipv6
))
251 $(eval
$(call BuildPackage
,isc-dhcp-omshell-ipv6
))