Browse Source

Merge pull request #3555 from nikil/aggregate

aggregate: Add package
lilik-openwrt-22.03
Hannu Nyman 8 years ago
committed by GitHub
parent
commit
cce1bfbfb8
1 changed files with 47 additions and 0 deletions
  1. +47
    -0
      net/aggregate/Makefile

+ 47
- 0
net/aggregate/Makefile View File

@ -0,0 +1,47 @@
#
# Copyright (C) 2006-2016 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=aggregate
PKG_VERSION:=1.6
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://ftp.isc.org/isc/aggregate/
PKG_MD5SUM:=6fcc515388bf2c5b0c8f9f733bfee7e1
PKG_MAINTAINER:=Nikil Mehta <nikil.mehta@gmail.com>
PKG_LICENSE:=ISC
PKG_LICENSE_FILES:=LICENSE
include $(INCLUDE_DIR)/package.mk
define Package/aggregate
SECTION:=net
CATEGORY:=Network
SUBMENU:=IP Addresses and Names
TITLE:=ipv4 cidr prefix aggregator
URL:=https://ftp.isc.org/isc/aggregate/
endef
define Package/aggregate/description
takes a list of prefixes in conventional format on stdin, and performs two
optimisations to reduce the length of the prefix list. It removes any
supplied prefixes which are supurfluous because they are already included in
another supplied prefix (e.g., 203.97.2.0/24 would be removed if
203.97.0.0/17 was also supplied), and identifies adjacent prefixes that can
be combined under a single, shorter-length prefix (e.g., 203.97.2.0/24 and
203.97.3.0/24 can be combined into the single prefix 203.97.2.0/23).
endef
define Package/aggregate/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/aggregate $(1)/usr/bin/
endef
$(eval $(call BuildPackage,aggregate))

Loading…
Cancel
Save