2 # Copyright (C) 2012 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
10 PKG_NAME:=6distributed
11 PKG_VERSION:=2012-12-02
12 PKG_RELEASE=$(PKG_SOURCE_VERSION)
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
18 PKG_SOURCE_VERSION:=161670c3866d79e6398a39c2ad220dcab86c00b4
20 PKG_MAINTAINER:=Steven Barth <steven@midlink.org>
22 include $(INCLUDE_DIR)/package.mk
23 include $(INCLUDE_DIR)/cmake.mk
25 define Package/6distributed
28 TITLE:=IPv6 host prefix distribution daemon
29 DEPENDS:=+kmod-ipv6 +libubus +libubox
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.
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
46 $(eval $(call BuildPackage,6distributed))