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
11 PKG_VERSION
:=2013-02-26.1
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
/6relayd.git
18 PKG_SOURCE_VERSION
:=d577d90bed7df627ff5333462cab8269be590ae2
20 PKG_MAINTAINER
:=Steven Barth
<steven@midlink.org
>
22 include $(INCLUDE_DIR
)/package.mk
23 include $(INCLUDE_DIR
)/cmake.mk
25 define Package
/6relayd
28 TITLE
:=IPv6-Relay and Server
(RD-
, DHCPv6-
& NDP-Proxy
)
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.
38 It can also be used
as a lightweight router advertisement daemon and provide
39 stateless DHCPv6 service where size matters.
42 define Package
/6relayd
/conffiles
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
57 $(eval
$(call BuildPackage
,6relayd
))