From 460237b52ed9387b08796048ec827647ff6fdde3 Mon Sep 17 00:00:00 2001 From: Nicolas Thill Date: Sat, 7 Feb 2015 11:10:03 +0100 Subject: [PATCH] keepalived: import from old packages feed - update to latest version (v1.2.15) - add license info - add myself as maintainer Signed-off-by: Nicolas Thill --- net/keepalived/Makefile | 68 ++++++++++++++++++++++++++++ net/keepalived/files/keepalived.init | 14 ++++++ 2 files changed, 82 insertions(+) create mode 100644 net/keepalived/Makefile create mode 100644 net/keepalived/files/keepalived.init diff --git a/net/keepalived/Makefile b/net/keepalived/Makefile new file mode 100644 index 000000000..0f13149d4 --- /dev/null +++ b/net/keepalived/Makefile @@ -0,0 +1,68 @@ +# +# Copyright (C) 2006-2015 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=keepalived +PKG_VERSION:=1.2.15 +PKG_RELEASE:=1 + +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz +PKG_SOURCE_URL:= http://www.keepalived.org/software +PKG_MD5SUM:=d85fcb8e564ea03b0ca7b2357bf30c51 + +PKG_LICENSE:=GPL-2.0+ +PKG_LICENSE_FILES:=COPYING +PKG_MAINTAINER:=Nicolas Thill + +PKG_INSTALL:=1 + +include $(INCLUDE_DIR)/package.mk +include $(INCLUDE_DIR)/kernel.mk + +define Package/keepalived + SECTION:=net + CATEGORY:=Network + TITLE:=Failover and monitoring daemon for LVS clusters + URL:=http://www.keepalived.org/ + DEPENDS:=+libnl +libopenssl +endef + +define Package/keepalived/description + Failover and monitoring daemon for Linux Virtual Server (LVS) clusters. +endef + +define Package/keepalived/conffiles +/etc/keepalived/keepalived.conf +endef + +CONFIGURE_ARGS+= \ + --enable-vrrp \ + --enable-fwmark \ + --enable-sha1 \ + --disable-lvs \ + --disable-lvs-syncd \ + --disable-snmp \ + --disable-debug \ + --disable-profile \ + --with-kernel-dir="$(LINUX_DIR)/$(LINUX_UAPI_DIR)" + +MAKE_FLAGS += \ + STRIP="/bin/true" \ + +define Package/keepalived/install + $(INSTALL_DIR) $(1)/usr/sbin + $(CP) $(PKG_INSTALL_DIR)/usr/sbin/keepalived $(1)/usr/sbin/ + $(INSTALL_DIR) $(1)/usr/bin + $(CP) $(PKG_INSTALL_DIR)/usr/bin/genhash $(1)/usr/bin/ + $(INSTALL_DIR) $(1)/etc/keepalived + $(CP) $(PKG_INSTALL_DIR)/etc/keepalived/keepalived.conf $(1)/etc/keepalived/ + $(INSTALL_DIR) $(1)/etc/init.d + $(INSTALL_BIN) ./files/keepalived.init $(1)/etc/init.d/keepalived +endef + +$(eval $(call BuildPackage,keepalived)) diff --git a/net/keepalived/files/keepalived.init b/net/keepalived/files/keepalived.init new file mode 100644 index 000000000..1d1ada254 --- /dev/null +++ b/net/keepalived/files/keepalived.init @@ -0,0 +1,14 @@ +#!/bin/sh /etc/rc.common +# Copyright (C) 2007-2015 OpenWrt.org + +START=70 + +SERVICE_USE_PID=1 + +start() { + service_start /usr/sbin/keepalived +} + +stop() { + service_stop /usr/sbin/keepalived +}