2 # Copyright (C) 2008 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
13 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
14 PKG_SOURCE_URL:=ftp://ftp.bieringer.de/pub/linux/IPv6/ipv6calc/
15 PKG_MD5SUM:=3847b73b55ab94da0c4c62722cb29162
17 include $(INCLUDE_DIR)/package.mk
19 define Package/ipv6calc
22 TITLE:=IPv6 addresses calculations
23 URL:=http://www.deepspace6.net/projects/ipv6calc.html
26 define Package/ipv6calc/description
27 ipv6calc is a small utility written in programming languate C to manipulate (not only) IPv6 addresses.
28 Intentions were convering a given IPv6 address into compressed format, convering a given IPv6 address
29 into the same format like shown in /proc/net/if_inet6 and (because it was not difficulty) migrating the
30 Perl program ip6_int into. Now only one utiltity is needed to do a lot.
38 $(MAKE) -C $(PKG_BUILD_DIR) \
40 COPTS="$(TARGET_CFLAGS) -I$(PKG_BUILD_DIR)" \
41 DESTDIR="$(PKG_INSTALL_DIR)" \
45 define Package/ipv6calc/install
46 $(INSTALL_DIR) $(1)/usr/bin
47 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/ipv6* $(1)/usr/bin/
50 $(eval $(call BuildPackage,ipv6calc))