ce55ff9a1565c4009a1b281c960bc1b19d5eea09
[openwrt/svn-archive/archive.git] / net / shat / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=shat
12 PKG_VERSION:=0.9.7
13 PKG_RELEASE:=1
14 PKG_MD5SUM:= da06846f35838b14d1513523dad84d24
15
16 PKG_SOURCE_URL:=http://world.maxina.de/src/
17 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
18 PKG_CAT:=zcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/shat
26 SECTION:=net
27 CATEGORY:=Network
28 TITLE:=Source Hardware Address Translation
29 DESCRIPTION:=A tool which allows hosts with arbitrary IP configuration\\\
30 to connect to the internet over a SHAT gateway.\\\
31 URL:=http://www.teddy-net.com/cvs/Maxina/128gw/service/arpcatch/shat/
32 endef
33
34 define Build/Compile
35 $(MAKE) -C $(PKG_BUILD_DIR)/src \
36 CC=$(TARGET_CC) LD=$(TARGET_CROSS)ld \
37 CFLAGS="$(TARGET_CFLAGS) -Wall -I$(PKG_BUILD_DIR)/include/linux/include -I$(PKG_BUILD_DIR)/include -DVERSION=\\\"$(PKG_VERSION)\\\" -DDROP_NETBIOS"
38 endef
39
40 define Package/shat/install
41 install -d -m0755 $(1)/usr/sbin
42 install -m0755 $(PKG_BUILD_DIR)/src/shatd $(1)/usr/sbin/
43 install -m0755 $(PKG_BUILD_DIR)/src/shatc $(1)/usr/sbin/
44 endef
45
46 $(eval $(call BuildPackage,shat))