lede-packages-rs

git clone git://archive.git.mtrnord.blog/MTRNord/lede-packages-rs.git
Log | Files | Refs | README | LICENSE

Makefile (1416B)


      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 
      8 include $(TOPDIR)/rules.mk
      9 
     10 PKG_NAME:=aggregate
     11 PKG_VERSION:=1.6
     12 PKG_RELEASE:=1
     13 
     14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
     15 PKG_SOURCE_URL:=https://ftp.isc.org/isc/aggregate/
     16 PKG_MD5SUM:=6fcc515388bf2c5b0c8f9f733bfee7e1
     17 
     18 PKG_MAINTAINER:=Nikil Mehta <nikil.mehta@gmail.com>
     19 PKG_LICENSE:=ISC
     20 PKG_LICENSE_FILES:=LICENSE
     21 
     22 include $(INCLUDE_DIR)/package.mk
     23 
     24 define Package/aggregate
     25   SECTION:=net
     26   CATEGORY:=Network
     27   SUBMENU:=IP Addresses and Names
     28   TITLE:=ipv4 cidr prefix aggregator
     29   URL:=https://ftp.isc.org/isc/aggregate/
     30 endef
     31 
     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).
     40 endef
     41 
     42 define Package/aggregate/install
     43 	$(INSTALL_DIR) $(1)/usr/bin
     44 	$(INSTALL_BIN) $(PKG_BUILD_DIR)/aggregate $(1)/usr/bin/
     45 endef
     46 
     47 $(eval $(call BuildPackage,aggregate))