This patch contains a package with two PPS-tools and a header file,
[openwrt/svn-archive/archive.git] / net / parprouted / 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:=parprouted
12 PKG_VERSION:=0.64
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://www.hazard.maks.net/parprouted/
17 PKG_MD5SUM:=14133c9cb8dd9c9a90ff37648ae7b31a
18
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/parprouted
24 SECTION:=net
25 CATEGORY:=Network
26 DEPENDS:=+libpthread
27 TITLE:=Proxy ARP daemon
28 URL:=http://www.hazard.maks.net/parprouted/
29 endef
30
31 define Package/parprouted/description
32 parprouted is a daemon for transparent IP (Layer 3) proxy ARP bridging.
33 This is useful for creation of transparent firewalls and bridging networks
34 with different MAC protocols. Also, unlike standard bridging, proxy ARP
35 bridging allows to bridge Ethernet networks behind wireless nodes without
36 using WDS or layer 2 bridging.
37
38 endef
39
40 define Build/Compile
41 $(call Build/Compile/Default, \
42 CFLAGS="$(TARGET_CFLAGS)" \
43 LDFLAGS="" \
44 all \
45 )
46 endef
47
48 define Package/parprouted/install
49 $(INSTALL_DIR) $(1)/usr/sbin
50 $(INSTALL_BIN) $(PKG_BUILD_DIR)/parprouted $(1)/usr/sbin/
51 $(INSTALL_DIR) $(1)/etc/default
52 $(INSTALL_BIN) ./files/parprouted.default $(1)/etc/default/parprouted
53 $(INSTALL_DIR) $(1)/etc/init.d
54 $(INSTALL_BIN) ./files/parprouted.init $(1)/etc/init.d/parprouted
55 endef
56
57 $(eval $(call BuildPackage,parprouted))