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.

72 lines
2.0 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:=1
  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. PKG_INSTALL:=1
  18. include $(INCLUDE_DIR)/package.mk
  19. include $(INCLUDE_DIR)/kernel.mk
  20. define Package/keepalived
  21. SECTION:=net
  22. CATEGORY:=Network
  23. TITLE:=Failover and monitoring daemon for LVS clusters
  24. URL:=http://www.keepalived.org/
  25. DEPENDS:=+PACKAGE_libnl-genl:libnl-genl +libopenssl +libip4tc +IPV6:libip6tc +libxtables
  26. endef
  27. define Package/keepalived/description
  28. Failover and monitoring daemon for Linux Virtual Server (LVS) clusters.
  29. endef
  30. define Package/keepalived/conffiles
  31. /etc/keepalived/keepalived.conf
  32. /etc/config/keepalived
  33. /etc/keepalived.user
  34. endef
  35. CONFIGURE_ARGS+= \
  36. --enable-sha1 \
  37. --disable-lvs \
  38. --disable-lvs-syncd \
  39. --disable-snmp \
  40. --with-kernel-dir="$(LINUX_DIR)/$(LINUX_UAPI_DIR)"
  41. MAKE_FLAGS += \
  42. STRIP="/bin/true" \
  43. define Package/keepalived/install
  44. $(INSTALL_DIR) $(1)/usr/sbin
  45. $(CP) $(PKG_INSTALL_DIR)/usr/sbin/keepalived $(1)/usr/sbin/
  46. $(INSTALL_DIR) $(1)/usr/bin
  47. $(CP) $(PKG_INSTALL_DIR)/usr/bin/genhash $(1)/usr/bin/
  48. $(INSTALL_DIR) $(1)/etc/keepalived
  49. $(CP) $(PKG_INSTALL_DIR)/etc/keepalived/keepalived.conf $(1)/etc/keepalived/
  50. $(INSTALL_DIR) $(1)/etc/init.d
  51. $(INSTALL_BIN) ./files/keepalived.init $(1)/etc/init.d/keepalived
  52. $(INSTALL_DIR) $(1)/etc/config
  53. $(INSTALL_CONF) ./files/keepalived.config $(1)/etc/config/keepalived
  54. $(INSTALL_DIR) $(1)/etc
  55. $(INSTALL_CONF) ./files/keepalived.user $(1)/etc/keepalived.user
  56. $(INSTALL_DIR) $(1)/etc/hotplug.d/keepalived
  57. $(INSTALL_DATA) ./files/hotplug-user $(1)/etc/hotplug.d/keepalived/01-user
  58. endef
  59. $(eval $(call BuildPackage,keepalived))