| 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:=2012-12-27 |
| 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:=09f0cf6d6c7fcae7393e4aeecabc3e204cd98366 |
| 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:=ipv6 |
| 27 | CATEGORY:=IPv6 |
| 28 | TITLE:=IPv6-Relay and Server (RD-, DHCPv6- & NDP-Proxy) |
| 29 | DEPENDS:=+kmod-ipv6 |
| 30 | endef |
| 31 | |
| 32 | define Package/6relayd/description |
| 33 | 6relayd is an IPv6-tool that relays IPv6-management protocols like router |
| 34 | discovery, neighbor discovery and DHCPv6 so that clients on routed (non- |
| 35 | bridged) interfaces can use the public address prefix, DHCPv6 and DNS-service |
| 36 | of a master interface. This is useful to avoid NAT in chained IPv6-routers. |
| 37 | |
| 38 | It can also be used as a lightweight router advertisement daemon and provide |
| 39 | stateless DHCPv6 service where size matters. |
| 40 | endef |
| 41 | |
| 42 | define Package/6relayd/conffiles |
| 43 | /etc/config/6relayd |
| 44 | endef |
| 45 | |
| 46 | define Package/6relayd/install |
| 47 | $(INSTALL_DIR) $(1)/usr/sbin/ |
| 48 | $(INSTALL_BIN) $(PKG_BUILD_DIR)/6relayd $(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)) |
| 58 | |