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