You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

81 lines
2.1 KiB

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