Makefile 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=6rd
  9. PKG_VERSION:=9
  10. PKG_RELEASE:=2
  11. PKG_LICENSE:=GPL-2.0
  12. include $(INCLUDE_DIR)/package.mk
  13. define Package/6rd
  14. SECTION:=net
  15. CATEGORY:=Network
  16. DEPENDS:=@IPV6 +kmod-sit
  17. TITLE:=6rd configuration support
  18. MAINTAINER:=Steven Barth <cyrus@openwrt.org>
  19. PKGARCH:=all
  20. endef
  21. define Package/6rd/description
  22. Provides support for 6rd tunnels in /etc/config/network.
  23. Refer to http://wiki.openwrt.org/doc/uci/network for
  24. configuration details.
  25. endef
  26. define Build/Prepare
  27. mkdir -p $(PKG_BUILD_DIR)
  28. $(CP) ./src/* $(PKG_BUILD_DIR)/
  29. endef
  30. define Build/Configure
  31. endef
  32. define Build/Compile
  33. $(MAKE) -C $(PKG_BUILD_DIR) \
  34. CC="$(TARGET_CC)" \
  35. CFLAGS="$(TARGET_CFLAGS) -Wall" \
  36. LDFLAGS="$(TARGET_LDFLAGS)"
  37. endef
  38. define Package/6rd/install
  39. $(INSTALL_DIR) $(1)/usr/sbin
  40. $(INSTALL_BIN) $(PKG_BUILD_DIR)/6rdcalc $(1)/usr/sbin/
  41. $(INSTALL_DIR) $(1)/lib/netifd/proto
  42. $(INSTALL_BIN) ./files/6rd.sh $(1)/lib/netifd/proto/6rd.sh
  43. endef
  44. $(eval $(call BuildPackage,6rd))