2 # Copyright (C) 2006-2016 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=https
://ftp.isc.org
/isc
/aggregate
/
16 PKG_MD5SUM
:=6fcc515388bf2c5b0c8f9f733bfee7e1
18 PKG_MAINTAINER
:=Nikil Mehta
<nikil.mehta@gmail.com
>
20 PKG_LICENSE_FILES
:=LICENSE
22 include $(INCLUDE_DIR
)/package.mk
24 define Package
/aggregate
27 SUBMENU
:=IP Addresses and Names
28 TITLE
:=ipv4 cidr
prefix aggregator
29 URL
:=https
://ftp.isc.org
/isc
/aggregate
/
32 define Package
/aggregate
/description
33 takes a list of prefixes in conventional format on stdin
, and performs two
34 optimisations to reduce the length of the
prefix list. It removes any
35 supplied prefixes which are supurfluous because they are already included in
36 another supplied
prefix (e.g.
, 203.97.2.0/24 would be removed if
37 203.97.0.0/17 was also supplied
), and identifies adjacent prefixes that can
38 be combined under a single
, shorter-length
prefix (e.g.
, 203.97.2.0/24 and
39 203.97.3.0/24 can be combined into the single
prefix 203.97.2.0/23).
42 define Package
/aggregate
/install
43 $(INSTALL_DIR
) $(1)/usr
/bin
44 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/aggregate
$(1)/usr
/bin
/
47 $(eval
$(call BuildPackage
,aggregate
))