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.

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