utils/psmisc: fix peekfd issue on mips/big-endian targets, included upstream patch...
[openwrt/svn-archive/archive.git] / net / ucarp / Makefile
1 #
2 # Copyright (C) 2010 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:=ucarp
11 PKG_VERSION:=1.5.2
12 PKG_RELEASE:=3
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=http://download.pureftpd.org/pub/ucarp
16 PKG_MD5SUM:=723636dbf79fc6abd329a71ec4ddf79d
17
18 PKG_INSTALL:=1
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/ucarp
23 SECTION:=net
24 CATEGORY:=Network
25 TITLE:=Lets several hosts share one IP
26 DEPENDS:=+ip +libpcap
27 URL:=http://www.ucarp.org/project/ucarp
28 endef
29
30 define Package/ucarp/description
31 ucarp allows a couple of hosts to share common virtual IP addresses in order
32 to provide automatic failover. It is a portable userland implementation of the
33 secure and patent-free Common Address Redundancy Protocol
34 endef
35
36 define Package/ucarp/conffiles
37 /etc/ucarp.conf
38 endef
39
40 define Package/ucarp/install
41 $(INSTALL_DIR) $(1)/etc
42 $(INSTALL_CONF) ./files/ucarp.conf $(1)/etc/
43 $(INSTALL_DIR) $(1)/etc/init.d
44 $(INSTALL_BIN) ./files/ucarp.init $(1)/etc/init.d/ucarp
45 $(INSTALL_DIR) $(1)/usr/sbin
46 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/ucarp $(1)/usr/sbin/
47 endef
48
49 $(eval $(call BuildPackage,ucarp))