| 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:=6distributed |
| 11 | PKG_VERSION:=2012-12-28 |
| 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/6distributed.git |
| 17 | PKG_SOURCE_PROTO:=git |
| 18 | PKG_SOURCE_VERSION:=20784e586f7f18a791d7fc0fce20ef125e504849 |
| 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/6distributed |
| 26 | SECTION:=ipv6 |
| 27 | CATEGORY:=IPv6 |
| 28 | TITLE:=IPv6 host prefix distribution daemon |
| 29 | DEPENDS:=+kmod-ipv6 +libubus +libubox |
| 30 | endef |
| 31 | |
| 32 | define Package/6distributed/description |
| 33 | 6distributed is a daemon that distributes IPv6 prefixes locally across |
| 34 | downstream interfaces. It supports valid and preferred lifetimes and |
| 35 | delayed allocation so that an already acquired prefix can be distributed |
| 36 | on interfaces that come up later. |
| 37 | endef |
| 38 | |
| 39 | define Package/6distributed/install |
| 40 | $(INSTALL_DIR) $(1)/usr/sbin/ |
| 41 | $(INSTALL_BIN) $(PKG_BUILD_DIR)/6distributed $(1)/usr/sbin/ |
| 42 | $(INSTALL_DIR) $(1)/etc/init.d |
| 43 | $(INSTALL_BIN) ./files/6distributed.init $(1)/etc/init.d/6distributed |
| 44 | endef |
| 45 | |
| 46 | $(eval $(call BuildPackage,6distributed)) |
| 47 | |