packages/net/ucarp/Makefile
swalker 7ccddf3423 [packages] ucarp: update to 1.5.2, add missing libpcap depends, select the ip addr symbols needed by the init script, cleanup the init script
git-svn-id: svn://svn.openwrt.org/openwrt/packages@20017 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-03-06 17:03:32 +00:00

55 lines
1.3 KiB
Makefile

#
# Copyright (C) 2010 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=ucarp
PKG_VERSION:=1.5.2
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
PKG_SOURCE_URL:=http://download.pureftpd.org/pub/ucarp
PKG_MD5SUM:=723636dbf79fc6abd329a71ec4ddf79d
PKG_INSTALL:=1
include $(INCLUDE_DIR)/package.mk
define Package/ucarp
SECTION:=net
CATEGORY:=Network
TITLE:=Lets several hosts share one IP
DEPENDS:=+libpcap
URL:=http://www.ucarp.org/project/ucarp
endef
define Package/ucarp/description
ucarp allows a couple of hosts to share common virtual IP addresses in order
to provide automatic failover. It is a portable userland implementation of the
secure and patent-free Common Address Redundancy Protocol
endef
define Package/ucarp/conffiles
/etc/ucarp.conf
endef
define Package/ucarp/config
select BUSYBOX_CONFIG_IP
select BUSYBOX_CONFIG_FEATURE_IP_ADDRESS
endef
define Package/ucarp/install
$(INSTALL_DIR) $(1)/etc
$(INSTALL_CONF) ./files/ucarp.conf $(1)/etc/
$(INSTALL_DIR) $(1)/etc/init.d
$(INSTALL_BIN) ./files/ucarp.init $(1)/etc/init.d/ucarp
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/ucarp $(1)/usr/sbin/
endef
$(eval $(call BuildPackage,ucarp))