Port parprouted to -ng
[packages.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.63
13 PKG_RELEASE:=1
14 PKG_MD5SUM:=12753098a22e82997d1941d6d2284750
15
16 PKG_SOURCE_URL:=http://www.hazard.maks.net/parprouted/
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
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/parprouted
25   SECTION:=net
26   CATEGORY:=Network
27   TITLE:=Proxy ARP daemon
28   DESCRIPTION:=parprouted is a daemon for transparent IP (Layer 3) proxy ARP bridging.\\\
29         This is useful for creation of transparent firewalls and bridging networks\\\
30         with different MAC protocols. Also, unlike standard bridging, proxy ARP\\\
31         bridging allows to bridge Ethernet networks behind wireless nodes without\\\
32         using WDS or layer 2 bridging.\\\
33  URL:=http://www.hazard.maks.net/parprouted/
34 endef
35
36 define Build/Compile
37         $(MAKE) -C $(PKG_BUILD_DIR) \
38                 CC="$(TARGET_CC)" CFLAGS="$(TARGET_CFLAGS)" LDFLAGS="" \
39                 all
40 endef
41
42 define Package/parprouted/install       
43         install -d -m0755 $(1)/etc/default
44         install -m0755 ./files/parprouted.default $(1)/etc/default/parprouted
45         install -d -m0755 $(1)/etc/init.d
46         install -m0755 ./files/parprouted.init $(1)/etc/init.d/parprouted
47         ln -sf parprouted $(1)/etc/init.d/S50parpouted
48         install -d -m0755 $(1)/usr/sbin
49         install -m0755 $(PKG_BUILD_DIR)/parprouted $(1)/usr/sbin/
50 endef
51
52 $(eval $(call BuildPackage,parprouted))