[packages] 6scripts: fix incorrect route command (#7203)
[packages.git] / ipv6 / 6scripts / Makefile
1 #
2 # Copyright (C) 2007-2009 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:=6scripts
11 PKG_VERSION:=0.1
12 PKG_RELEASE:=6
13
14 include $(INCLUDE_DIR)/package.mk
15
16 define Package/6scripts
17   SECTION:=ipv6
18   CATEGORY:=IPv6
19   DEPENDS:=+kmod-ipv6
20   TITLE:=IPv6 scripts
21   PKGARCH:=all
22 endef
23
24 define Package/6scripts/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))