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.

70 lines
1.8 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. endef
  33. CONFIGURE_ARGS+= \
  34. --enable-vrrp \
  35. --enable-fwmark \
  36. --enable-sha1 \
  37. --disable-lvs \
  38. --disable-lvs-syncd \
  39. --disable-snmp \
  40. --disable-debug \
  41. --disable-profile \
  42. --with-kernel-dir="$(LINUX_DIR)/$(LINUX_UAPI_DIR)"
  43. MAKE_FLAGS += \
  44. STRIP="/bin/true" \
  45. define Package/keepalived/install
  46. $(INSTALL_DIR) $(1)/usr/sbin
  47. $(CP) $(PKG_INSTALL_DIR)/usr/sbin/keepalived $(1)/usr/sbin/
  48. $(INSTALL_DIR) $(1)/usr/bin
  49. $(CP) $(PKG_INSTALL_DIR)/usr/bin/genhash $(1)/usr/bin/
  50. $(INSTALL_DIR) $(1)/etc/keepalived
  51. $(CP) $(PKG_INSTALL_DIR)/etc/keepalived/keepalived.conf $(1)/etc/keepalived/
  52. $(INSTALL_DIR) $(1)/etc/init.d
  53. $(INSTALL_BIN) ./files/keepalived.init $(1)/etc/init.d/keepalived
  54. $(INSTALL_DIR) $(1)/etc/config
  55. $(INSTALL_CONF) ./files/keepalived.config $(1)/etc/config/keepalived
  56. endef
  57. $(eval $(call BuildPackage,keepalived))