license info - revert r43155
[openwrt.git] / package / network / ipv6 / 6rd / Makefile
1 #
2 # Copyright (C) 2010-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:=6rd
11 PKG_VERSION:=7
12 PKG_RELEASE:=1
13 PKG_LICENSE:=GPL-2.0
14
15 include $(INCLUDE_DIR)/package.mk
16
17 define Package/6rd
18   SECTION:=net
19   CATEGORY:=Network
20   DEPENDS:=+kmod-ipv6 +kmod-sit
21   TITLE:=6rd configuration support
22   MAINTAINER:=Stéphan Kochen <stephan@kochen.nl>
23   PKGARCH:=all
24 endef
25
26 define Package/6rd/description
27 Provides support for 6rd tunnels in /etc/config/network.
28 Refer to http://wiki.openwrt.org/doc/uci/network for
29 configuration details.
30 endef
31
32 define Build/Prepare
33         mkdir -p $(PKG_BUILD_DIR)
34         $(CP) ./src/* $(PKG_BUILD_DIR)/
35 endef
36
37 define Build/Configure
38 endef
39
40 define Build/Compile
41         $(MAKE) -C $(PKG_BUILD_DIR) \
42                 CC="$(TARGET_CC)" \
43                 CFLAGS="$(TARGET_CFLAGS) -Wall" \
44                 LDFLAGS="$(TARGET_LDFLAGS)"
45 endef
46
47 define Package/6rd/install
48         $(INSTALL_DIR) $(1)/usr/sbin
49         $(INSTALL_BIN) $(PKG_BUILD_DIR)/6rdcalc $(1)/usr/sbin/
50         $(INSTALL_DIR) $(1)/lib/netifd/proto
51         $(INSTALL_BIN) ./files/6rd.sh $(1)/lib/netifd/proto/6rd.sh
52 endef
53
54 $(eval $(call BuildPackage,6rd))