You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
1.1 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=generate-ipv6-address
  3. PKG_VERSION:=0.1
  4. PKG_RELEASE:=$(AUTORELEASE)
  5. PKG_SOURCE:=generate-ipv6-address-$(PKG_VERSION).tar.gz
  6. PKG_SOURCE_URL:=https://www.irif.fr/~jch/software/files/
  7. PKG_HASH:=e1356d245d5f891fa39b796a8a2deefdaa89f08130dc97a378738ca5ed9a20fa
  8. PKG_MAINTAINER:=Nick Hainke <vincent@systemli.org>
  9. PKG_LICENSE:=MIT
  10. include $(INCLUDE_DIR)/package.mk
  11. define Package/generate-ipv6-address
  12. SECTION:=net
  13. CATEGORY:=Network
  14. TITLE:=Generate IPv6 Addresses
  15. URL:=https://www.irif.fr/~jch/
  16. DEPENDS:=@IPV6
  17. endef
  18. define Package/generate-ipv6-address/description
  19. Generates IPv6 addresses from a given prefix and either a given MAC-48
  20. address (an Ethernet hardware address) or a randomly drawn host number.
  21. endef
  22. define Build/Compile
  23. $(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_LDFLAGS) $(PKG_BUILD_DIR)/generate-ipv6-address.c -o $(PKG_BUILD_DIR)/generate-ipv6-address
  24. endef
  25. define Package/generate-ipv6-address/install
  26. $(INSTALL_DIR) $(1)/usr/bin
  27. $(INSTALL_BIN) $(PKG_BUILD_DIR)/generate-ipv6-address $(1)/usr/bin/
  28. endef
  29. $(eval $(call BuildPackage,generate-ipv6-address))