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