2 # Copyright (C) 2012 Jo-Philipp Wich <jo@mein.io>
4 # This is free software, licensed under the Apache 2 license.
7 include $(TOPDIR
)/rules.mk
11 PKG_LICENSE
:=Apache-2.0
13 include $(INCLUDE_DIR
)/package.mk
16 define Package
/owipcalc
19 TITLE
:=Simple IPv4
/IPv6 address calculator
20 MAINTAINER
:=Jo-Philipp Wich
<jo@mein.io
>
23 define Package
/owipcalc
/description
24 The owipcalc utility supports a number of calculations and tests to work
25 with ip-address ranges
, this is useful for scripts that e.g. need to
26 partition ipv6-prefixes into small subnets or to calculate address ranges
30 define Build
/Configure
34 $(TARGET_CC
) $(TARGET_CFLAGS
) \
35 -o
$(PKG_BUILD_DIR
)/owipcalc
$(PKG_BUILD_DIR
)/owipcalc.c
39 define Package
/owipcalc
/install
40 $(INSTALL_DIR
) $(1)/usr
/bin
41 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/owipcalc
$(1)/usr
/bin
/owipcalc
44 $(eval
$(call BuildPackage
,owipcalc
))