Makefile (1878B)
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 8 include $(TOPDIR)/rules.mk 9 10 PKG_NAME:=keepalived 11 PKG_VERSION:=1.2.19 12 PKG_RELEASE:=2 13 14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 15 PKG_SOURCE_URL:= http://www.keepalived.org/software 16 PKG_MD5SUM:=5c98b06639dd50a6bff76901b53febb6 17 PKG_HASH:=32fbae732c1cd854cacd7a930d4a26f5bad6372cdecb5e3139f0c17e87493853 18 19 PKG_LICENSE:=GPL-2.0+ 20 PKG_LICENSE_FILES:=COPYING 21 PKG_MAINTAINER:=Ben Kelly <ben@benjii.net> 22 23 PKG_INSTALL:=1 24 25 include $(INCLUDE_DIR)/package.mk 26 include $(INCLUDE_DIR)/kernel.mk 27 28 define Package/keepalived 29 SECTION:=net 30 CATEGORY:=Network 31 TITLE:=Failover and monitoring daemon for LVS clusters 32 URL:=http://www.keepalived.org/ 33 DEPENDS:=+PACKAGE_libnl-genl:libnl-genl +libopenssl 34 endef 35 36 define Package/keepalived/description 37 Failover and monitoring daemon for Linux Virtual Server (LVS) clusters. 38 endef 39 40 define Package/keepalived/conffiles 41 /etc/keepalived/keepalived.conf 42 endef 43 44 CONFIGURE_ARGS+= \ 45 --enable-vrrp \ 46 --enable-fwmark \ 47 --enable-sha1 \ 48 --disable-lvs \ 49 --disable-lvs-syncd \ 50 --disable-snmp \ 51 --disable-debug \ 52 --disable-profile \ 53 --with-kernel-dir="$(LINUX_DIR)/$(LINUX_UAPI_DIR)" 54 55 MAKE_FLAGS += \ 56 STRIP="/bin/true" \ 57 58 define Package/keepalived/install 59 $(INSTALL_DIR) $(1)/usr/sbin 60 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/keepalived $(1)/usr/sbin/ 61 $(INSTALL_DIR) $(1)/usr/bin 62 $(CP) $(PKG_INSTALL_DIR)/usr/bin/genhash $(1)/usr/bin/ 63 $(INSTALL_DIR) $(1)/etc/keepalived 64 $(CP) $(PKG_INSTALL_DIR)/etc/keepalived/keepalived.conf $(1)/etc/keepalived/ 65 $(INSTALL_DIR) $(1)/etc/init.d 66 $(INSTALL_BIN) ./files/keepalived.init $(1)/etc/init.d/keepalived 67 $(INSTALL_DIR) $(1)/etc/config 68 $(INSTALL_CONF) ./files/keepalived.config $(1)/etc/config/keepalived 69 endef 70 71 $(eval $(call BuildPackage,keepalived))