1
0

Makefile 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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.19
  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:=5c98b06639dd50a6bff76901b53febb6
  14. PKG_HASH:=32fbae732c1cd854cacd7a930d4a26f5bad6372cdecb5e3139f0c17e87493853
  15. PKG_LICENSE:=GPL-2.0+
  16. PKG_LICENSE_FILES:=COPYING
  17. PKG_MAINTAINER:=Ben Kelly <ben@benjii.net>
  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:=+PACKAGE_libnl-genl:libnl-genl +libopenssl
  27. endef
  28. define Package/keepalived/description
  29. Failover and monitoring daemon for Linux Virtual Server (LVS) clusters.
  30. endef
  31. define Package/keepalived/conffiles
  32. /etc/keepalived/keepalived.conf
  33. endef
  34. CONFIGURE_ARGS+= \
  35. --enable-vrrp \
  36. --enable-fwmark \
  37. --enable-sha1 \
  38. --disable-lvs \
  39. --disable-lvs-syncd \
  40. --disable-snmp \
  41. --disable-debug \
  42. --disable-profile \
  43. --with-kernel-dir="$(LINUX_DIR)/$(LINUX_UAPI_DIR)"
  44. MAKE_FLAGS += \
  45. STRIP="/bin/true" \
  46. define Package/keepalived/install
  47. $(INSTALL_DIR) $(1)/usr/sbin
  48. $(CP) $(PKG_INSTALL_DIR)/usr/sbin/keepalived $(1)/usr/sbin/
  49. $(INSTALL_DIR) $(1)/usr/bin
  50. $(CP) $(PKG_INSTALL_DIR)/usr/bin/genhash $(1)/usr/bin/
  51. $(INSTALL_DIR) $(1)/etc/keepalived
  52. $(CP) $(PKG_INSTALL_DIR)/etc/keepalived/keepalived.conf $(1)/etc/keepalived/
  53. $(INSTALL_DIR) $(1)/etc/init.d
  54. $(INSTALL_BIN) ./files/keepalived.init $(1)/etc/init.d/keepalived
  55. $(INSTALL_DIR) $(1)/etc/config
  56. $(INSTALL_CONF) ./files/keepalived.config $(1)/etc/config/keepalived
  57. endef
  58. $(eval $(call BuildPackage,keepalived))