From f089d2613a57c89ed4fa51bbc6afbac817dfae3c Mon Sep 17 00:00:00 2001 From: Florian Fainelli Date: Sat, 15 Nov 2008 12:29:18 +0000 Subject: [PATCH] Add ipv6calc SVN-Revision: 13215 --- ipv6/ipv6calc/Makefile | 52 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 ipv6/ipv6calc/Makefile diff --git a/ipv6/ipv6calc/Makefile b/ipv6/ipv6calc/Makefile new file mode 100644 index 0000000000..71c5f614de --- /dev/null +++ b/ipv6/ipv6calc/Makefile @@ -0,0 +1,52 @@ +# +# Copyright (C) 2008 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# +# $Id: $ + +include $(TOPDIR)/rules.mk + +PKG_NAME:=ipv6calc +PKG_VERSION:=0.71.0 + +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz +PKG_SOURCE_URL:=ftp://ftp.bieringer.de/pub/linux/IPv6/ipv6calc/ +PKG_MD5SUM:= + +include $(INCLUDE_DIR)/package.mk + +define Package/ipv6calc + SECTION:=ipv6 + CATEGORY:=IPv6 + TITLE:=IPv6 addresses calculations + URL:=http://www.deepspace6.net/projects/ipv6calc.html +endef + +define Package/ipv6calc/description + ipv6calc is a small utility written in programming languate C to manipulate (not only) IPv6 addresses. + Intentions were convering a given IPv6 address into compressed format, convering a given IPv6 address + into the same format like shown in /proc/net/if_inet6 and (because it was not difficulty) migrating the + Perl program ip6_int into. Now only one utiltity is needed to do a lot. +endef + +CONFIGURE_ARGS += \ + --enable-static \ + --enable-shared + +define Build/Compile + $(MAKE) -C $(PKG_BUILD_DIR) \ + CC="$(TARGET_CC)" \ + COPTS="$(TARGET_CFLAGS) -I$(PKG_BUILD_DIR)" \ + root="$(PKG_INSTALL_DIR)" \ + all install +endef + + +define Package/ipv6calc/install + $(INSTALL_DIR) $(1)/usr/bin/ + $(CP) $(PKG_INSTALL_DIR)/usr/bin/ipv6* $(1)/usr/bin/ +endef + +$(eval $(call BuildPackage,ipv6calc)) -- 2.30.2