cyassl: add a patch to better check legacy SSLv2 client hello records
[openwrt/openwrt.git] / package / owipcalc / Makefile
1 #
2 # Copyright (C) 2012 Jo-Philipp Wich <jow@openwrt.org>
3 #
4 # This is free software, licensed under the Apache 2 license.
5 #
6
7 include $(TOPDIR)/rules.mk
8
9 PKG_NAME:=owipcalc
10 PKG_RELEASE:=3
11
12 include $(INCLUDE_DIR)/package.mk
13
14
15 define Package/owipcalc
16 SECTION:=utils
17 CATEGORY:=Utilities
18 TITLE:=Simple IPv4/IPv6 address calculator
19 MAINTAINER:=Jo-Philipp Wich <jow@openwrt.org>
20 endef
21
22 define Package/owipcalc/description
23 The owipcalc utility supports a number of calculations and tests to work
24 with ip-address ranges, this is useful for scripts that e.g. need to
25 partition ipv6-prefixes into small subnets or to calculate address ranges
26 for dhcp pools.
27 endef
28
29
30 define Build/Prepare
31 $(INSTALL_DIR) $(PKG_BUILD_DIR)
32 $(CP) ./src/* $(PKG_BUILD_DIR)/
33 endef
34
35 define Build/Configure
36 endef
37
38 define Build/Compile
39 $(TARGET_CC) $(TARGET_CFLAGS) \
40 -o $(PKG_BUILD_DIR)/owipcalc $(PKG_BUILD_DIR)/owipcalc.c
41 endef
42
43
44 define Package/owipcalc/install
45 $(INSTALL_DIR) $(1)/usr/bin
46 $(INSTALL_BIN) $(PKG_BUILD_DIR)/owipcalc $(1)/usr/bin/owipcalc
47 endef
48
49 $(eval $(call BuildPackage,owipcalc))