usbmuxd: Update to latest git
[feed/packages.git] / net / keepalived / Makefile
1 #
2 # Copyright (C) 2006-2015 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:=keepalived
11 PKG_VERSION:=2.0.10
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://www.keepalived.org/software
16 PKG_HASH:=40e0e55afed9ca313d621a9c5878579696fafb5504dab521aadaf20ba6e7f597
17
18 PKG_CPE_ID:=cpe:/a:keepalived:keepalived
19 PKG_LICENSE:=GPL-2.0+
20 PKG_LICENSE_FILES:=COPYING
21 PKG_MAINTAINER:=Ben Kelly <ben@benjii.net> \
22 Florian Eckert <fe@dev.tdt.de>
23
24 PKG_INSTALL:=1
25
26 include $(INCLUDE_DIR)/package.mk
27 include $(INCLUDE_DIR)/kernel.mk
28
29 define Package/keepalived
30 SECTION:=net
31 CATEGORY:=Network
32 TITLE:=Failover and monitoring daemon for LVS clusters
33 URL:=http://www.keepalived.org/
34 DEPENDS:= \
35 +libopenssl \
36 +libip4tc \
37 +IPV6:libip6tc \
38 +libxtables \
39 +kmod-macvlan \
40 +libmagic \
41 +libnl-route \
42 +libnfnetlink \
43 +kmod-nf-ipvs
44 endef
45
46 define Package/keepalived/description
47 Failover and monitoring daemon for Linux Virtual Server (LVS) clusters.
48 endef
49
50 define Package/keepalived/conffiles
51 /etc/keepalived/keepalived.conf
52 /etc/config/keepalived
53 /etc/keepalived.user
54 endef
55
56 CONFIGURE_ARGS+= \
57 --disable-libipset \
58 --disable-libnl \
59 --enable-sha1 \
60 --disable-snmp \
61 --with-kernel-dir="$(LINUX_DIR)/$(LINUX_UAPI_DIR)" \
62 --with-init=SYSV
63
64 MAKE_FLAGS += \
65 STRIP="/bin/true" \
66
67 define Package/keepalived/install
68 $(INSTALL_DIR) $(1)/usr/sbin
69 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/keepalived $(1)/usr/sbin/
70 $(INSTALL_DIR) $(1)/usr/bin
71 $(CP) $(PKG_INSTALL_DIR)/usr/bin/genhash $(1)/usr/bin/
72 $(INSTALL_DIR) $(1)/etc/keepalived
73 $(CP) $(PKG_INSTALL_DIR)/etc/keepalived/keepalived.conf $(1)/etc/keepalived/
74 $(INSTALL_DIR) $(1)/etc/init.d
75 $(INSTALL_BIN) ./files/keepalived.init $(1)/etc/init.d/keepalived
76 $(INSTALL_DIR) $(1)/etc/config
77 $(INSTALL_CONF) ./files/keepalived.config $(1)/etc/config/keepalived
78 $(INSTALL_DIR) $(1)/etc
79 $(INSTALL_CONF) ./files/keepalived.user $(1)/etc/keepalived.user
80 $(INSTALL_DIR) $(1)/etc/hotplug.d/keepalived
81 $(INSTALL_DATA) ./files/hotplug-user $(1)/etc/hotplug.d/keepalived/01-user
82 endef
83
84 $(eval $(call BuildPackage,keepalived))