b9d84e55d254a33894d31066119b8e6656fdca8a
[openwrt/svn-archive/archive.git] / package / network / ipv6 / 6relayd / Makefile
1 #
2 # Copyright (C) 2012 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:=6relayd
11 PKG_VERSION:=2013-06-22
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/6relayd.git
17 PKG_SOURCE_PROTO:=git
18 PKG_SOURCE_VERSION:=bf1d92fc1e3f20f82d28756d6ad6a8373e6b9ad0
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/6relayd
26 SECTION:=net
27 CATEGORY:=Network
28 TITLE:=DHCPv6(-PD)/RA Server & Relay
29 DEPENDS:=+kmod-ipv6
30 endef
31
32 define Package/6relayd/description
33 6relayd is a daemon for serving and relaying IPv6 management protocols to
34 configure clients and downstream routers.
35
36 6relayd provides server services for RA, stateless DHCPv6, DHCPv6-PD and can
37 be used to relay RA, DHCPv6 and NDP between routed (non-bridged) interfaces
38 in case no delegated prefixes are provided by the upstream router.
39 endef
40
41 define Package/6relayd/conffiles
42 /etc/config/6relayd
43 endef
44
45 define Package/6relayd/install
46 $(INSTALL_DIR) $(1)/usr/sbin/
47 $(INSTALL_BIN) $(PKG_BUILD_DIR)/6relayd $(1)/usr/sbin/
48 $(INSTALL_BIN) ./files/6relayd-update $(1)/usr/sbin/
49 $(INSTALL_DIR) $(1)/etc/hotplug.d/iface
50 $(INSTALL_DATA) ./files/6relayd.hotplug $(1)/etc/hotplug.d/iface/30-6relay
51 $(INSTALL_DIR) $(1)/etc/config
52 $(INSTALL_DATA) ./files/6relayd.config $(1)/etc/config/6relayd
53 $(INSTALL_DIR) $(1)/etc/init.d
54 $(INSTALL_BIN) ./files/6relayd.init $(1)/etc/init.d/6relayd
55 endef
56
57 $(eval $(call BuildPackage,6relayd))