unfs3 is not parallel build safe
[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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=shat
11 PKG_VERSION:=0.9.7
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@SF/shat
16 PKG_MD5SUM:=da06846f35838b14d1513523dad84d24
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/shat
21 SECTION:=net
22 CATEGORY:=Network
23 TITLE:=Source Hardware Address Translation
24 URL:=http://sourceforge.net/projects/shat/
25 endef
26
27 define Package/shat/description
28 A tool which allows hosts with arbitrary IP configuration
29 to connect to the internet over a SHAT gateway.
30
31 endef
32
33 define Build/Compile
34 $(MAKE) -C $(PKG_BUILD_DIR)/src \
35 CC="$(TARGET_CC)" \
36 CFLAGS="$(TARGET_CFLAGS) -Wall -I$(PKG_BUILD_DIR)/include/linux/include -I$(PKG_BUILD_DIR)/include -DVERSION=\\\"$(PKG_VERSION)\\\" -DDROP_NETBIOS"
37 endef
38
39 define Package/shat/install
40 $(INSTALL_DIR) $(1)/usr/sbin
41 $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/shatd $(1)/usr/sbin/
42 $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/shatc $(1)/usr/sbin/
43 endef
44
45 $(eval $(call BuildPackage,shat))