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.

61 lines
1.7 KiB

  1. #
  2. # Copyright (C) 2016-2017 Mauro Mozzarelli
  3. #
  4. # This is free software, licensed under the GNU General Public License
  5. # See /LICENSE for more information.
  6. #
  7. # AUTHOR: Mauro Mozzarelli <mauro@ezplanet.org>
  8. #
  9. include $(TOPDIR)/rules.mk
  10. PKG_NAME:=ipvsadm
  11. PKG_VERSION:=1.29
  12. PKG_MAINTAINER:=Mauro Mozzarelli <mauro@ezplanet.org>, \
  13. Florian Eckert <fe@dev.tdt.de>
  14. PKG_LICENSE:=GPL-2.0+
  15. PKG_RELEASE:=1
  16. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  17. PKG_SOURCE_URL:=https://www.kernel.org/pub/linux/utils/kernel/ipvsadm/
  18. PKG_HASH:=c3de4a21d90a02c621f0c72ee36a7aa27374b6f29fd4178f33fbf71b4c66c149
  19. PKG_BUILD_PARALLEL:=1
  20. PKG_INSTALL:=1
  21. include $(INCLUDE_DIR)/package.mk
  22. define Package/ipvsadm
  23. SECTION:=net
  24. CATEGORY:=Network
  25. TITLE:=IP Virtual Server Configuration Manager
  26. URL:=http://www.linuxvirtualserver.org
  27. DEPENDS:= +kmod-nf-ipvs +libnl-tiny +libpopt
  28. endef
  29. define Package/ipvsadm/description
  30. IPVS (IP Virtual Server) implements transport-layer load balancing
  31. inside the Linux kernel, so called Layer-4 switching. The command line tool
  32. ipvsadm is used to set up, maintain or inspect the virtual server table
  33. in the Linux kernel. The Linux Virtual Server can be used to build scalable
  34. network services based on a cluster of two or more nodes.
  35. endef
  36. TARGET_CFLAGS += \
  37. -D_GNU_SOURCE \
  38. -I$(STAGING_DIR)/usr/include/libnl-tiny
  39. define Build/Compile
  40. CFLAGS="$(TARGET_CFLAGS)" \
  41. $(MAKE) -C $(PKG_BUILD_DIR) \
  42. CC="$(TARGET_CC)" \
  43. LIBS="$(TARGET_LDFLAGS) -lnl-tiny -lpopt"
  44. endef
  45. define Package/ipvsadm/install
  46. $(INSTALL_DIR) $(1)/sbin
  47. $(INSTALL_BIN) $(PKG_BUILD_DIR)/ipvsadm $(1)/sbin/
  48. $(INSTALL_BIN) $(PKG_BUILD_DIR)/ipvsadm-save $(1)/sbin/
  49. $(INSTALL_BIN) $(PKG_BUILD_DIR)/ipvsadm-restore $(1)/sbin/
  50. endef
  51. $(eval $(call BuildPackage,ipvsadm))