source: packages/ipv6/ipv6calc/Makefile @ 17783

Last change on this file since 17783 was 17783, checked in by jow, 7 years ago

[packages] ipv6calc: update to v0.73.0 (#5912)

File size: 1.4 KB
Line 
1#
2# Copyright (C) 2008 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=ipv6calc
11PKG_VERSION:=0.73.0
12PKG_RELEASE:=1
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15PKG_SOURCE_URL:=ftp://ftp.bieringer.de/pub/linux/IPv6/ipv6calc/
16PKG_MD5SUM:=24141d637207532ea9a9881f968d086f
17
18include $(INCLUDE_DIR)/package.mk
19
20define Package/ipv6calc
21  SECTION:=ipv6
22  CATEGORY:=IPv6
23  TITLE:=IPv6 addresses calculations
24  URL:=http://www.deepspace6.net/projects/ipv6calc.html
25endef
26
27define Package/ipv6calc/description
28  ipv6calc is a small utility written in programming languate C to manipulate
29  (not only) IPv6 addresses. Intentions were convering a given IPv6 address
30  into compressed format, convering a given IPv6 address into the same format
31  like shown in /proc/net/if_inet6 and (because it was not difficulty)
32  migrating the Perl program ip6_int into. Now only one utiltity is needed to
33  do a lot.
34endef
35
36CONFIGURE_ARGS += \
37        --enable-static \
38        --enable-shared
39
40define Build/Compile
41        $(MAKE) -C $(PKG_BUILD_DIR) \
42                CC="$(TARGET_CC)" \
43                COPTS="$(TARGET_CFLAGS) -I$(PKG_BUILD_DIR)" \
44                DESTDIR="$(PKG_INSTALL_DIR)" \
45                all install
46endef
47
48define Package/ipv6calc/install
49        $(INSTALL_DIR) $(1)/usr/bin
50        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/ipv6* $(1)/usr/bin/
51endef
52
53$(eval $(call BuildPackage,ipv6calc))
Note: See TracBrowser for help on using the repository browser.