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.

79 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:=1.3.9
  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:=d5bdd25530acf60989222fd92fbfd596e06ecc356a820f4c1015708b76a8d4f3
  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. +PACKAGE_libnl-genl:libnl-genl \
  28. +libopenssl \
  29. +libip4tc \
  30. +IPV6:libip6tc \
  31. +libxtables \
  32. +kmod-macvlan
  33. endef
  34. define Package/keepalived/description
  35. Failover and monitoring daemon for Linux Virtual Server (LVS) clusters.
  36. endef
  37. define Package/keepalived/conffiles
  38. /etc/keepalived/keepalived.conf
  39. /etc/config/keepalived
  40. /etc/keepalived.user
  41. endef
  42. CONFIGURE_ARGS+= \
  43. --enable-sha1 \
  44. --disable-lvs \
  45. --disable-lvs-syncd \
  46. --disable-snmp \
  47. --with-kernel-dir="$(LINUX_DIR)/$(LINUX_UAPI_DIR)"
  48. MAKE_FLAGS += \
  49. STRIP="/bin/true" \
  50. define Package/keepalived/install
  51. $(INSTALL_DIR) $(1)/usr/sbin
  52. $(CP) $(PKG_INSTALL_DIR)/usr/sbin/keepalived $(1)/usr/sbin/
  53. $(INSTALL_DIR) $(1)/usr/bin
  54. $(CP) $(PKG_INSTALL_DIR)/usr/bin/genhash $(1)/usr/bin/
  55. $(INSTALL_DIR) $(1)/etc/keepalived
  56. $(CP) $(PKG_INSTALL_DIR)/etc/keepalived/keepalived.conf $(1)/etc/keepalived/
  57. $(INSTALL_DIR) $(1)/etc/init.d
  58. $(INSTALL_BIN) ./files/keepalived.init $(1)/etc/init.d/keepalived
  59. $(INSTALL_DIR) $(1)/etc/config
  60. $(INSTALL_CONF) ./files/keepalived.config $(1)/etc/config/keepalived
  61. $(INSTALL_DIR) $(1)/etc
  62. $(INSTALL_CONF) ./files/keepalived.user $(1)/etc/keepalived.user
  63. $(INSTALL_DIR) $(1)/etc/hotplug.d/keepalived
  64. $(INSTALL_DATA) ./files/hotplug-user $(1)/etc/hotplug.d/keepalived/01-user
  65. endef
  66. $(eval $(call BuildPackage,keepalived))