aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRosen Penev <rosenp@gmail.com>2020-08-23 20:52:45 -0700
committerGitHub <noreply@github.com>2020-08-23 20:52:45 -0700
commit035700bae9aa5187af1f3a887b609691eca07a0e (patch)
tree039d304f82939619a1d03cab1f8a78a33574cea3
parentec67d94f4de626f7e8bf66ab5b024c08495cbed8 (diff)
parent63960602272cfdf636e7dd31a3c94d8b4c60f4c7 (diff)
Merge pull request #13140 from PolynomialDivision/feature/add-ipv6-generator
generate-ipv6-address: add ipv6 generator
-rw-r--r--ipv6/generate-ipv6-address/Makefile38
1 files changed, 38 insertions, 0 deletions
diff --git a/ipv6/generate-ipv6-address/Makefile b/ipv6/generate-ipv6-address/Makefile
new file mode 100644
index 000000000..5dd37d4ad
--- /dev/null
+++ b/ipv6/generate-ipv6-address/Makefile
@@ -0,0 +1,38 @@
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=generate-ipv6-address
+PKG_VERSION:=0.1
+PKG_RELEASE:=1
+
+PKG_SOURCE:=generate-ipv6-address-$(PKG_VERSION).tar.gz
+PKG_SOURCE_URL:=https://www.irif.fr/~jch/software/files/
+PKG_HASH:=e1356d245d5f891fa39b796a8a2deefdaa89f08130dc97a378738ca5ed9a20fa
+PKG_INSTALL:=1
+
+PKG_MAINTAINER:=Nick Hainke <vincent@systemli.org>
+PKG_LICENSE:=MIT
+
+include $(INCLUDE_DIR)/package.mk
+
+define Package/generate-ipv6-address
+ SECTION:=net
+ CATEGORY:=Network
+ TITLE:=Generate IPv6 Addresses
+ URL:=https://www.irif.fr/~jch/
+ DEPENDS:=@IPV6
+endef
+
+define Package/generate-ipv6-address/description
+ Generates IPv6 addresses from a given prefix and either a given MAC-48
+ address (an Ethernet hardware address) or a randomly drawn host number.
+endef
+
+MAKE_FLAGS += \
+ PREFIX="$(PKG_INSTALL_DIR)/usr"
+
+define Package/generate-ipv6-address/install
+ $(INSTALL_DIR) $(1)/usr/bin
+ $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/generate-ipv6-address $(1)/usr/bin/
+endef
+
+$(eval $(call BuildPackage,generate-ipv6-address))