jow 128e70691c [packages] ipv6calc: update to v0.82.1, fixes claring of "valid" flag on mips platforms
git-svn-id: svn://svn.openwrt.org/openwrt/packages@26834 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-05-05 21:02:27 +00:00

52 lines
1.3 KiB
Makefile

#
# Copyright (C) 2008-2011 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=ipv6calc
PKG_VERSION:=0.82.1
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=ftp://ftp.bieringer.de/pub/linux/IPv6/ipv6calc
PKG_MD5SUM:=323b23779723fe1608126d17d78c632e
PKG_INSTALL:=1
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
MAKE_FLAGS += \
CC="$(TARGET_CC)" \
COPTS="$(TARGET_CFLAGS) -I$(PKG_BUILD_DIR)"
define Package/ipv6calc/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/ipv6* $(1)/usr/bin/
endef
$(eval $(call BuildPackage,ipv6calc))