From 79c5c78115443df7c26b643aca38e4679950a6ab Mon Sep 17 00:00:00 2001 From: Florian Eckert Date: Wed, 12 Sep 2018 14:52:46 +0200 Subject: net/ipvsadm: add Virtual Server Administration Tool Add the ipvsadm command line tool to set up, maintain or inspect the virtual server table in the Linux kernel. Signed-off-by: Florian Eckert --- net/ipvsadm/Makefile | 61 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 net/ipvsadm/Makefile (limited to 'net/ipvsadm/Makefile') diff --git a/net/ipvsadm/Makefile b/net/ipvsadm/Makefile new file mode 100644 index 000000000..88c78b302 --- /dev/null +++ b/net/ipvsadm/Makefile @@ -0,0 +1,61 @@ +# +# Copyright (C) 2016-2017 Mauro Mozzarelli +# +# This is free software, licensed under the GNU General Public License +# See /LICENSE for more information. +# +# AUTHOR: Mauro Mozzarelli +# +include $(TOPDIR)/rules.mk + +PKG_NAME:=ipvsadm +PKG_VERSION:=1.29 +PKG_MAINTAINER:=Mauro Mozzarelli , \ + Florian Eckert +PKG_LICENSE:=GPL-2.0+ +PKG_RELEASE:=1 + +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz +PKG_SOURCE_URL:=https://www.kernel.org/pub/linux/utils/kernel/ipvsadm/ +PKG_HASH:=c3de4a21d90a02c621f0c72ee36a7aa27374b6f29fd4178f33fbf71b4c66c149 + +PKG_BUILD_PARALLEL:=1 +PKG_INSTALL:=1 + +include $(INCLUDE_DIR)/package.mk + +define Package/ipvsadm + SECTION:=net + CATEGORY:=Network + TITLE:=IP Virtual Server Configuration Manager + URL:=http://www.linuxvirtualserver.org + DEPENDS:= +kmod-nf-ipvs +libnl-tiny +libpopt +endef + +define Package/ipvsadm/description + IPVS (IP Virtual Server) implements transport-layer load balancing + inside the Linux kernel, so called Layer-4 switching. The command line tool + ipvsadm is used to set up, maintain or inspect the virtual server table + in the Linux kernel. The Linux Virtual Server can be used to build scalable + network services based on a cluster of two or more nodes. +endef + +TARGET_CFLAGS += \ + -D_GNU_SOURCE \ + -I$(STAGING_DIR)/usr/include/libnl-tiny + +define Build/Compile + CFLAGS="$(TARGET_CFLAGS)" \ + $(MAKE) -C $(PKG_BUILD_DIR) \ + CC="$(TARGET_CC)" \ + LIBS="$(TARGET_LDFLAGS) -lnl-tiny -lpopt" +endef + +define Package/ipvsadm/install + $(INSTALL_DIR) $(1)/sbin + $(INSTALL_BIN) $(PKG_BUILD_DIR)/ipvsadm $(1)/sbin/ + $(INSTALL_BIN) $(PKG_BUILD_DIR)/ipvsadm-save $(1)/sbin/ + $(INSTALL_BIN) $(PKG_BUILD_DIR)/ipvsadm-restore $(1)/sbin/ +endef + +$(eval $(call BuildPackage,ipvsadm)) -- cgit v1.2.3