rpcd: iwinfo plugin fixes
[openwrt.git] / package / network / services / odhcpd / Makefile
1 #
2 # Copyright (C) 2013-2015 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=odhcpd
11 PKG_VERSION:=2015-11-19
12 PKG_RELEASE=$(PKG_SOURCE_VERSION)
13
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
17 PKG_SOURCE_PROTO:=git
18 PKG_SOURCE_VERSION:=01d3f9d64486ac1daa144848944e877e7f0cb762
19
20 PKG_MAINTAINER:=Steven Barth <steven@midlink.org>
21 PKG_LICENSE:=GPL-2.0
22
23 include $(INCLUDE_DIR)/package.mk
24 include $(INCLUDE_DIR)/cmake.mk
25
26 CMAKE_OPTIONS += -DUBUS=1
27
28 ifneq ($(CONFIG_PACKAGE_odhcpd_ext_cer_id),0)
29   CMAKE_OPTIONS += -DEXT_CER_ID=$(CONFIG_PACKAGE_odhcpd_ext_cer_id)
30 endif
31
32
33 define Package/odhcpd
34   SECTION:=net
35   CATEGORY:=Network
36   TITLE:=OpenWrt DHCP/DHCPv6(-PD)/RA Server & Relay
37   DEPENDS:=+libubox +libuci +libubus
38 endef
39
40 define Package/odhcpd/config
41   config PACKAGE_odhcpd_ext_cer_id
42     int "CER-ID Extension ID (0 = disabled)"
43     depends on PACKAGE_odhcpd
44     default 0
45 endef
46
47 define Package/odhcpd/description
48  odhcpd is a daemon for serving and relaying IP management protocols to
49  configure clients and downstream routers. It tries to follow the RFC 6204
50  requirements for IPv6 home routers.
51  
52  odhcpd provides server services for DHCP, RA, stateless and stateful DHCPv6,
53  prefix delegation and can be used to relay RA, DHCPv6 and NDP between routed
54  (non-bridged) interfaces in case no delegated prefixes are available.
55 endef
56
57 define Package/odhcpd/install
58         $(INSTALL_DIR) $(1)/usr/sbin/
59         $(INSTALL_BIN) $(PKG_BUILD_DIR)/odhcpd $(1)/usr/sbin/
60         $(INSTALL_BIN) ./files/odhcpd-update $(1)/usr/sbin/
61         $(INSTALL_DIR) $(1)/etc/init.d
62         $(INSTALL_BIN) ./files/odhcpd.init $(1)/etc/init.d/odhcpd
63         $(INSTALL_DIR) $(1)/etc/uci-defaults
64         $(INSTALL_BIN) ./files/odhcpd.defaults $(1)/etc/uci-defaults
65 endef
66
67 $(eval $(call BuildPackage,odhcpd))