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.

47 lines
1.4 KiB

  1. #
  2. # Copyright (C) 2006-2016 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:=aggregate
  9. PKG_VERSION:=1.6
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://ftp.isc.org/isc/aggregate/
  13. PKG_MD5SUM:=6fcc515388bf2c5b0c8f9f733bfee7e1
  14. PKG_MAINTAINER:=Nikil Mehta <nikil.mehta@gmail.com>
  15. PKG_LICENSE:=ISC
  16. PKG_LICENSE_FILES:=LICENSE
  17. include $(INCLUDE_DIR)/package.mk
  18. define Package/aggregate
  19. SECTION:=net
  20. CATEGORY:=Network
  21. SUBMENU:=IP Addresses and Names
  22. TITLE:=ipv4 cidr prefix aggregator
  23. URL:=https://ftp.isc.org/isc/aggregate/
  24. endef
  25. define Package/aggregate/description
  26. takes a list of prefixes in conventional format on stdin, and performs two
  27. optimisations to reduce the length of the prefix list. It removes any
  28. supplied prefixes which are supurfluous because they are already included in
  29. another supplied prefix (e.g., 203.97.2.0/24 would be removed if
  30. 203.97.0.0/17 was also supplied), and identifies adjacent prefixes that can
  31. be combined under a single, shorter-length prefix (e.g., 203.97.2.0/24 and
  32. 203.97.3.0/24 can be combined into the single prefix 203.97.2.0/23).
  33. endef
  34. define Package/aggregate/install
  35. $(INSTALL_DIR) $(1)/usr/bin
  36. $(INSTALL_BIN) $(PKG_BUILD_DIR)/aggregate $(1)/usr/bin/
  37. endef
  38. $(eval $(call BuildPackage,aggregate))