nbd c0e5247848 replace lots of manual install commands with INSTALL_* variables
git-svn-id: svn://svn.openwrt.org/openwrt/packages@5624 3c298f89-4303-0410-b956-a3cf2f4a3e73
2006-11-23 00:29:07 +00:00

55 lines
1.5 KiB
Makefile

#
# Copyright (C) 2006 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
# $Id$
include $(TOPDIR)/rules.mk
PKG_NAME:=parprouted
PKG_VERSION:=0.63
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://www.hazard.maks.net/parprouted/
PKG_MD5SUM:=12753098a22e82997d1941d6d2284750
PKG_CAT:=zcat
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
include $(INCLUDE_DIR)/package.mk
define Package/parprouted
SECTION:=net
CATEGORY:=Network
TITLE:=Proxy ARP daemon
DESCRIPTION:=\
parprouted is a daemon for transparent IP (Layer 3) proxy ARP bridging.\\\
This is useful for creation of transparent firewalls and bridging networks\\\
with different MAC protocols. Also, unlike standard bridging, proxy ARP\\\
bridging allows to bridge Ethernet networks behind wireless nodes without\\\
using WDS or layer 2 bridging.\\\
URL:=http://www.hazard.maks.net/parprouted/
endef
define Build/Compile
$(call Build/Compile/Default, \
CFLAGS="$(TARGET_CFLAGS)" \
LDFLAGS="" \
all \
)
endef
define Package/parprouted/install
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/parprouted $(1)/usr/sbin/
$(INSTALL_DIR) $(1)/etc/default
$(INSTALL_BIN) ./files/parprouted.default $(1)/etc/default/parprouted
$(INSTALL_DIR) $(1)/etc/init.d
$(INSTALL_BIN) ./files/parprouted.init $(1)/etc/init.d/parprouted
endef
$(eval $(call BuildPackage,parprouted))