source: packages/net/keepalived/Makefile @ 15751

Last change on this file since 15751 was 15751, checked in by jow, 8 years ago

[packages] keepalived: fix vrrp support (#5095)

  • Property copyright set to Copyright (C) 2006-2008 OpenWrt.org
  • Property licence set to GPLv2
File size: 1.8 KB
Line 
1#
2# Copyright (C) 2006-2008 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=keepalived
11PKG_VERSION:=1.1.15
12PKG_RELEASE:=1
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15PKG_SOURCE_URL:= http://www.keepalived.org/software
16PKG_MD5SUM:=4c93f5d8b6bfabe84b02828a5bbb7aa0
17
18include $(INCLUDE_DIR)/package.mk
19include $(INCLUDE_DIR)/kernel.mk
20
21define Package/keepalived
22  SECTION:=net
23  CATEGORY:=Network
24  TITLE:=Failover and monitoring daemon for LVS clusters
25  URL:=http://www.keepalived.org/
26  SUBMENU:=HA
27  DEPENDS:=+libpopt +libopenssl
28endef
29
30define Package/keepalived/description
31 Failover and monitoring daemon for Linux Virtual Server (LVS) clusters.
32endef
33
34define Package/keepalived/conffiles
35 /etc/keepalived/keepalived.conf
36endef
37
38acvar=$(subst -,_,$(subst .,_,$(subst /,_,$(1))))
39
40CONFIGURE_ARGS+= \
41        --enable-shared \
42        --disable-static \
43        --disable-debug \
44        --disable-strip \
45        --disable-lvs \
46        --disable-lvs-syncd \
47        --with-kernel-dir="$(LINUX_DIR)" \
48
49CONFIGURE_VARS+= \
50        ac_cv_file_$(call acvar,$(LINUX_DIR)/net/core/link_watch.c)=yes \
51
52define Build/Compile
53        rm -rf $(PKG_INSTALL_DIR)
54        mkdir -p $(PKG_INSTALL_DIR)
55        $(MAKE) -C $(PKG_BUILD_DIR) \
56                DESTDIR="$(PKG_INSTALL_DIR)" \
57                STRIP="/bin/true" \
58                all install
59endef
60
61define Package/keepalived/install
62        $(INSTALL_DIR) $(1)/usr/sbin
63        $(CP) $(PKG_INSTALL_DIR)/usr/sbin/keepalived $(1)/usr/sbin/
64        $(INSTALL_DIR) $(1)/usr/bin
65        $(CP) $(PKG_INSTALL_DIR)/usr/bin/genhash $(1)/usr/bin/
66        $(INSTALL_DIR) $(1)/etc/keepalived
67        $(CP) $(PKG_INSTALL_DIR)/etc/keepalived/keepalived.conf $(1)/etc/keepalived/keepalived.conf
68        $(INSTALL_DIR) $(1)/etc/init.d
69        $(INSTALL_BIN) ./files/keepalived.init $(1)/etc/init.d/keepalived
70endef
71
72$(eval $(call BuildPackage,keepalived))
Note: See TracBrowser for help on using the repository browser.