[packages] ipv6calc: update to 0.93.1
[packages.git] / ipv6 / ipv6calc / Makefile
1 #
2 # Copyright (C) 2008-2012 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=ipv6calc
11 PKG_VERSION:=0.93.1
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=ftp://ftp.bieringer.de/pub/linux/IPv6/ipv6calc
16 PKG_MD5SUM:=9a5b7fdd1a90cd621dc43623976d912a
17
18 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION)
19 PKG_INSTALL:=1
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/ipv6calc/Default
24   SECTION:=ipv6
25   CATEGORY:=IPv6
26   URL:=http://www.deepspace6.net/projects/ipv6calc.html
27 endef
28
29 define Package/ipv6calc/Default/description
30   ipv6calc is a small utility written in programming languate C to manipulate
31   (not only) IPv6 addresses. Intentions were convering a given IPv6 address
32   into compressed format, convering a given IPv6 address into the same format
33   like shown in /proc/net/if_inet6 and (because it was not difficulty)
34   migrating the Perl program ip6_int into. Now only one utiltity is needed to
35   do a lot.
36 endef
37
38 define Package/ipv6calc
39   $(call Package/ipv6calc/Default)
40   TITLE:=IPv6 addresses calculations (full)
41   VARIANT:=full
42 endef
43
44 define Package/ipv6calc/description
45   $(call Package/ipv6calc/Default/description)
46   This package contains an ipv6calc with the internal databases enabled.
47 endef
48
49 define Package/ipv6calc-mini
50   $(call Package/ipv6calc/Default)
51   TITLE:=IPv6 addresses calculations (mini)
52   VARIANT:=mini
53 endef
54
55 define Package/ipv6calc-mini/description
56   $(call Package/ipv6calc/Default/description)
57   This package contains an ipv6calc with the internal databases disabled.
58 endef
59
60 define Package/ipv6log
61   $(call Package/ipv6calc/Default)
62   TITLE:=Webserver log helper programs (full)
63   VARIANT:=full
64 endef
65
66 define Package/ipv6log/description
67   $(call Package/ipv6calc/Default/description)
68   This package contains webserver log anonymization, conversion, and statistics
69   helper programs with the internal databases enabled.
70 endef
71
72 define Package/ipv6log-mini
73   $(call Package/ipv6calc/Default)
74   TITLE:=Webserver log helper programs (mini)
75   VARIANT:=mini
76 endef
77
78 define Package/ipv6log-mini/description
79   $(call Package/ipv6calc/Default/description)
80   This package contains webserver log anonymization, conversion, and statistics
81   helper programs with the internal databases disabled.
82 endef
83
84 ifeq ($(BUILD_VARIANT),full)
85         CONFIGURE_ARGS += \
86                 --enable-db-ieee \
87                 --enable-db-ipv4 \
88                 --enable-db-ipv6
89 endif
90
91 ifeq ($(BUILD_VARIANT),mini)
92         CONFIGURE_ARGS += \
93                 --disable-db-ieee \
94                 --disable-db-ipv4 \
95                 --disable-db-ipv6
96 endif
97
98 MAKE_FLAGS += \
99         CC="$(TARGET_CC)" \
100         COPTS="$(TARGET_CFLAGS) -I$(PKG_BUILD_DIR)"
101
102 define Package/ipv6calc/install
103         $(INSTALL_DIR) $(1)/usr/bin
104         $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/ipv6calc $(1)/usr/bin/
105 endef
106
107 Package/ipv6calc-mini/install = $(Package/ipv6calc/install)
108
109 define Package/ipv6log/install
110         $(INSTALL_DIR) $(1)/usr/bin
111         $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/ipv6log* $(1)/usr/bin/
112 endef
113
114 Package/ipv6log-mini/install = $(Package/ipv6log/install)
115
116 $(eval $(call BuildPackage,ipv6calc))
117 $(eval $(call BuildPackage,ipv6calc-mini))
118 $(eval $(call BuildPackage,ipv6log))
119 $(eval $(call BuildPackage,ipv6log-mini))