2009-06-16 16:14:44 +00:00
|
|
|
#
|
2012-01-19 15:13:22 +00:00
|
|
|
# Copyright (C) 2008-2012 OpenWrt.org
|
2008-11-15 12:29:18 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=ipv6calc
|
2012-01-19 15:13:22 +00:00
|
|
|
PKG_VERSION:=0.92.0
|
2009-09-28 12:56:27 +00:00
|
|
|
PKG_RELEASE:=1
|
2008-11-15 12:29:18 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2011-01-02 20:23:27 +00:00
|
|
|
PKG_SOURCE_URL:=ftp://ftp.bieringer.de/pub/linux/IPv6/ipv6calc
|
2012-01-19 15:13:22 +00:00
|
|
|
PKG_MD5SUM:=0517e88f7b70d7b1f5c501ebc59e0c1c
|
2011-01-02 20:23:27 +00:00
|
|
|
|
|
|
|
PKG_INSTALL:=1
|
2008-11-15 12:29:18 +00:00
|
|
|
|
|
|
|
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
|
2009-09-28 12:56:27 +00:00
|
|
|
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.
|
2008-11-15 12:29:18 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
CONFIGURE_ARGS += \
|
|
|
|
--enable-static \
|
|
|
|
--enable-shared
|
|
|
|
|
2011-01-02 20:23:27 +00:00
|
|
|
MAKE_FLAGS += \
|
|
|
|
CC="$(TARGET_CC)" \
|
|
|
|
COPTS="$(TARGET_CFLAGS) -I$(PKG_BUILD_DIR)"
|
2008-11-15 12:29:18 +00:00
|
|
|
|
|
|
|
define Package/ipv6calc/install
|
2009-06-16 16:14:44 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/ipv6* $(1)/usr/bin/
|
2008-11-15 12:29:18 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,ipv6calc))
|