[packages] ipv6calc: update to 0.93.1

* add a mini variant with the internal databases disabled
 * move the log programs into their own package
 * remove unrecognized configure options


git-svn-id: svn://svn.openwrt.org/openwrt/packages@31868 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
swalker 2012-05-27 02:12:02 +00:00
parent 5237e58f7b
commit cb00c8fb48

View File

@ -8,25 +8,25 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=ipv6calc
PKG_VERSION:=0.92.0
PKG_VERSION:=0.93.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:=0517e88f7b70d7b1f5c501ebc59e0c1c
PKG_MD5SUM:=9a5b7fdd1a90cd621dc43623976d912a
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION)
PKG_INSTALL:=1
include $(INCLUDE_DIR)/package.mk
define Package/ipv6calc
define Package/ipv6calc/Default
SECTION:=ipv6
CATEGORY:=IPv6
TITLE:=IPv6 addresses calculations
URL:=http://www.deepspace6.net/projects/ipv6calc.html
endef
define Package/ipv6calc/description
define Package/ipv6calc/Default/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
@ -35,9 +35,65 @@ define Package/ipv6calc/description
do a lot.
endef
define Package/ipv6calc
$(call Package/ipv6calc/Default)
TITLE:=IPv6 addresses calculations (full)
VARIANT:=full
endef
define Package/ipv6calc/description
$(call Package/ipv6calc/Default/description)
This package contains an ipv6calc with the internal databases enabled.
endef
define Package/ipv6calc-mini
$(call Package/ipv6calc/Default)
TITLE:=IPv6 addresses calculations (mini)
VARIANT:=mini
endef
define Package/ipv6calc-mini/description
$(call Package/ipv6calc/Default/description)
This package contains an ipv6calc with the internal databases disabled.
endef
define Package/ipv6log
$(call Package/ipv6calc/Default)
TITLE:=Webserver log helper programs (full)
VARIANT:=full
endef
define Package/ipv6log/description
$(call Package/ipv6calc/Default/description)
This package contains webserver log anonymization, conversion, and statistics
helper programs with the internal databases enabled.
endef
define Package/ipv6log-mini
$(call Package/ipv6calc/Default)
TITLE:=Webserver log helper programs (mini)
VARIANT:=mini
endef
define Package/ipv6log-mini/description
$(call Package/ipv6calc/Default/description)
This package contains webserver log anonymization, conversion, and statistics
helper programs with the internal databases disabled.
endef
ifeq ($(BUILD_VARIANT),full)
CONFIGURE_ARGS += \
--enable-static \
--enable-shared
--enable-db-ieee \
--enable-db-ipv4 \
--enable-db-ipv6
endif
ifeq ($(BUILD_VARIANT),mini)
CONFIGURE_ARGS += \
--disable-db-ieee \
--disable-db-ipv4 \
--disable-db-ipv6
endif
MAKE_FLAGS += \
CC="$(TARGET_CC)" \
@ -45,7 +101,19 @@ MAKE_FLAGS += \
define Package/ipv6calc/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/ipv6* $(1)/usr/bin/
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/ipv6calc $(1)/usr/bin/
endef
Package/ipv6calc-mini/install = $(Package/ipv6calc/install)
define Package/ipv6log/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/ipv6log* $(1)/usr/bin/
endef
Package/ipv6log-mini/install = $(Package/ipv6log/install)
$(eval $(call BuildPackage,ipv6calc))
$(eval $(call BuildPackage,ipv6calc-mini))
$(eval $(call BuildPackage,ipv6log))
$(eval $(call BuildPackage,ipv6log-mini))