1
0

Makefile 1016 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=464xlat
  3. PKG_VERSION:=12
  4. PKG_SOURCE_DATE:=2018-01-16
  5. PKG_MAINTAINER:=Hans Dedecker <dedeckeh@gmail.com>
  6. PKG_LICENSE:=GPL-2.0
  7. include $(INCLUDE_DIR)/package.mk
  8. define Package/464xlat
  9. SECTION:=net
  10. CATEGORY:=Network
  11. DEPENDS:=@IPV6 +kmod-nat46 +ip
  12. TITLE:=464xlat CLAT support
  13. endef
  14. define Build/Prepare
  15. $(call Build/Prepare/Default)
  16. $(CP) ./src/* $(PKG_BUILD_DIR)/
  17. endef
  18. define Build/Compile
  19. $(MAKE) -C $(PKG_BUILD_DIR) \
  20. CC="$(TARGET_CC)" \
  21. CFLAGS="$(TARGET_CFLAGS) -Wall" \
  22. LDFLAGS="$(TARGET_LDFLAGS)"
  23. endef
  24. define Package/464xlat/description
  25. 464xlat provides support to deploy limited IPv4 access services to mobile
  26. and wireline IPv6-only edge networks without encapsulation (RFC6877)
  27. endef
  28. define Package/464xlat/install
  29. $(INSTALL_DIR) $(1)/lib/netifd/proto
  30. $(INSTALL_BIN) ./files/464xlat.sh $(1)/lib/netifd/proto/464xlat.sh
  31. $(INSTALL_DIR) $(1)/sbin
  32. $(INSTALL_BIN) $(PKG_BUILD_DIR)/464xlatcfg $(1)/sbin
  33. endef
  34. $(eval $(call BuildPackage,464xlat))