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.

68 lines
1.6 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.2.16
  10. PKG_RELEASE:=2
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:= http://www.keepalived.org/software
  13. PKG_MD5SUM:=f834ab2cfc2e7300edf1bafaf4a5d83e
  14. PKG_LICENSE:=GPL-2.0+
  15. PKG_LICENSE_FILES:=COPYING
  16. PKG_MAINTAINER:=Nicolas Thill <nico@openwrt.org>
  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:=+libnl +libopenssl
  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. endef
  55. $(eval $(call BuildPackage,keepalived))