[package] add ip-up script to update ipv4 address for Hurricane Electric tunnels...
[openwrt/svn-archive/archive.git] / ipv6 / 6scripts / Makefile
1 #
2 # Copyright (C) 2007 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id: Makefile 9802 2007-12-19 08:30:28Z florian $
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=6scripts
12 PKG_VERSION:=0.1
13 PKG_RELEASE:=3
14
15 include $(INCLUDE_DIR)/package.mk
16
17 define Package/6scripts
18 SECTION:=ipv6
19 CATEGORY:=IPv6
20 DEPENDS:=+kmod-ipv6
21 TITLE:=IPv6 scripts
22 endef
23
24 define Package/6tunnel/description
25 IPv6 scripts to setup ipv6 connectivy using 6to4 tunnels
26 or bridged ipv6 connectivity.
27 endef
28
29 define Package/6scripts/conffiles
30 /etc/config/6tunnel
31 /etc/config/6bridge
32 endef
33
34 define Build/Compile
35 endef
36
37 define Build/Configure
38 endef
39
40 define Package/6scripts/install
41 $(INSTALL_DIR) $(1)/etc/config
42 $(INSTALL_DATA) ./files/6tunnel.conf $(1)/etc/config/6tunnel
43 $(INSTALL_DATA) ./files/6bridge.conf $(1)/etc/config/6bridge
44 $(INSTALL_DIR) $(1)/etc/init.d
45 $(INSTALL_BIN) ./files/6tunnel.init $(1)/etc/init.d/6tunnel
46 $(INSTALL_BIN) ./files/6bridge.init $(1)/etc/init.d/6bridge
47 $(INSTALL_DIR) $(1)/etc/ppp/ip-up.d/
48 $(INSTALL_DATA) ./files/he-tun.ppp $(1)/etc/ppp/ip-up.d/
49 endef
50
51 $(eval $(call BuildPackage,6scripts))