odhcpd: add new experimental dhcp-server
[openwrt/svn-archive/archive.git] / package / network / services / odhcpd / Makefile
1 #
2 # Copyright (C) 2013 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:=2013-10-16
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:=05969d06380387fc6d093e80b142145c2a9c2293
19
20 PKG_MAINTAINER:=Steven Barth <steven@midlink.org>
21
22 include $(INCLUDE_DIR)/package.mk
23 include $(INCLUDE_DIR)/cmake.mk
24
25 define Package/odhcpd
26 SECTION:=net
27 CATEGORY:=Network
28 TITLE:=OpenWrt DHCP/DHCPv6(-PD)/RA Server & Relay
29 DEPENDS:=+libubox +libuci +libubus
30 endef
31
32 define Package/odhcpd/description
33 odhcpd is a daemon for serving and relaying IP management protocols to
34 configure clients and downstream routers. It tries to follow the RFC 6204
35 requirements for IPv6 home routers.
36
37 odhcpd provides server services for DHCP, RA, stateless and stateful DHCPv6,
38 prefix delegation and can be used to relay RA, DHCPv6 and NDP between routed
39 (non-bridged) interfaces in case no delegated prefixes are available.
40 endef
41
42 define Package/odhcpd/install
43 $(INSTALL_DIR) $(1)/usr/sbin/
44 $(INSTALL_BIN) $(PKG_BUILD_DIR)/odhcpd $(1)/usr/sbin/
45 $(INSTALL_BIN) ./files/odhcpd-update $(1)/usr/sbin/
46 $(INSTALL_DIR) $(1)/etc/init.d
47 $(INSTALL_BIN) ./files/odhcpd.init $(1)/etc/init.d/odhcpd
48 endef
49
50 $(eval $(call BuildPackage,odhcpd))