2010-02-21 00:06:37 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2010 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
2010-02-20 10:20:56 +00:00
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=ucarp
|
2010-03-06 17:03:32 +00:00
|
|
|
PKG_VERSION:=1.5.2
|
2010-05-17 20:05:32 +00:00
|
|
|
PKG_RELEASE:=3
|
2010-02-20 10:20:56 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
2010-02-21 00:06:37 +00:00
|
|
|
PKG_SOURCE_URL:=http://download.pureftpd.org/pub/ucarp
|
2010-03-06 17:03:32 +00:00
|
|
|
PKG_MD5SUM:=723636dbf79fc6abd329a71ec4ddf79d
|
|
|
|
|
|
|
|
PKG_INSTALL:=1
|
2010-02-20 10:20:56 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/ucarp
|
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
|
|
|
TITLE:=Lets several hosts share one IP
|
2010-03-28 14:55:04 +00:00
|
|
|
DEPENDS:=+ip +libpcap
|
2010-02-21 00:06:37 +00:00
|
|
|
URL:=http://www.ucarp.org/project/ucarp
|
2010-02-20 10:20:56 +00:00
|
|
|
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
|
|
|
|
|
2010-03-06 17:03:32 +00:00
|
|
|
define Package/ucarp/conffiles
|
|
|
|
/etc/ucarp.conf
|
|
|
|
endef
|
|
|
|
|
2010-02-20 10:20:56 +00:00
|
|
|
define Package/ucarp/install
|
2010-03-06 17:03:32 +00:00
|
|
|
$(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/
|
2010-02-20 10:20:56 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,ucarp))
|