7de522b82f3953658eacb4f8bfa2bb8bec5e7e58
[packages.git] / net / icmptx / Makefile
1
2 # Copyright (C) 2006-2010 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:=icmptx
11 PKG_REV:=33e0b826f99df290ee792f6aa587af273d674309
12 PKG_VERSION:=0.2
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
17 PKG_SOURCE_PROTO:=git
18 PKG_SOURCE_URL:=git://github.com/jakkarth/icmptx.git
19 PKG_SOURCE_VERSION:=$(PKG_REV)
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/icmptx
24   SECTION:=net
25   CATEGORY:=Network
26   TITLE:=IP-over-ICMP tunnel 
27   URL:=http://github.com/jakkarth/icmptx
28 endef
29
30 define Build/Configure
31 endef
32
33 define Build/Compile
34         $(MAKE) -C $(PKG_BUILD_DIR) \
35                 CC="$(TARGET_CC)" \
36                 OPT_FLAGS="$(TARGET_CFLAGS)" \
37                 icmptx
38 endef
39
40 define Package/icmptx/install
41         $(INSTALL_DIR) $(1)/usr/sbin
42         $(INSTALL_BIN) $(PKG_BUILD_DIR)/icmptx $(1)/usr/sbin/
43 endef
44
45 $(eval $(call BuildPackage,icmptx))