2 # Copyright (C) 2013 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
11 PKG_VERSION:=2013-12-04
12 PKG_RELEASE=$(PKG_SOURCE_VERSION)
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
16 PKG_SOURCE_URL:=git://github.com/sbyx/odhcpd.git
18 PKG_SOURCE_VERSION:=d2e8dc035bbbe8f29533817b892ddd41350b87f8
20 PKG_MAINTAINER:=Steven Barth <steven@midlink.org>
22 include $(INCLUDE_DIR)/package.mk
23 include $(INCLUDE_DIR)/cmake.mk
25 ifneq ($(CONFIG_PACKAGE_odhcpd_ext_prefix_class),0)
26 CMAKE_OPTIONS += -DEXT_PREFIX_CLASS=$(CONFIG_PACKAGE_odhcpd_ext_prefix_class)
32 TITLE:=OpenWrt DHCP/DHCPv6(-PD)/RA Server & Relay
33 DEPENDS:=+libubox +libuci +libubus
36 define Package/odhcpd/config
37 config PACKAGE_odhcpd_ext_prefix_class
38 int "Prefix Class Extension ID (0 = disabled)"
39 depends on PACKAGE_odhcpd
43 define Package/odhcpd/description
44 odhcpd is a daemon for serving and relaying IP management protocols to
45 configure clients and downstream routers. It tries to follow the RFC 6204
46 requirements for IPv6 home routers.
48 odhcpd provides server services for DHCP, RA, stateless and stateful DHCPv6,
49 prefix delegation and can be used to relay RA, DHCPv6 and NDP between routed
50 (non-bridged) interfaces in case no delegated prefixes are available.
53 define Package/odhcpd/install
54 $(INSTALL_DIR) $(1)/usr/sbin/
55 $(INSTALL_BIN) $(PKG_BUILD_DIR)/odhcpd $(1)/usr/sbin/
56 $(INSTALL_BIN) ./files/odhcpd-update $(1)/usr/sbin/
57 $(INSTALL_DIR) $(1)/etc/init.d
58 $(INSTALL_BIN) ./files/odhcpd.init $(1)/etc/init.d/odhcpd
61 $(eval $(call BuildPackage,odhcpd))