Makefile 1.1 KB

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