summaryrefslogtreecommitdiff
path: root/package/ipvsadm/Makefile
diff options
context:
space:
mode:
authorWaldemar Brodkorb <mail@waldemar-brodkorb.de>2012-07-20 17:02:27 +0200
committerWaldemar Brodkorb <mail@waldemar-brodkorb.de>2012-07-20 17:02:27 +0200
commitbf88402712c1983e7dac54c345dd2cf4f9259b73 (patch)
treea7886e6ad472485bbdb33fc2f3f7e3d18e47a134 /package/ipvsadm/Makefile
parentedc12a0db71dbc933d9167b59bb07939bc9daa8f (diff)
add new package ipvsadm
Diffstat (limited to 'package/ipvsadm/Makefile')
-rw-r--r--package/ipvsadm/Makefile34
1 files changed, 34 insertions, 0 deletions
diff --git a/package/ipvsadm/Makefile b/package/ipvsadm/Makefile
new file mode 100644
index 000000000..09004b2e3
--- /dev/null
+++ b/package/ipvsadm/Makefile
@@ -0,0 +1,34 @@
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:= ipvsadm
+PKG_VERSION:= 1.26
+PKG_RELEASE:= 1
+PKG_MD5SUM:= eac3ba3f62cd4dea2da353aeddd353a8
+PKG_DESCR:= IPVS admin utility
+PKG_SECTION:= net
+PKG_DEPENDS:= libpopt kmod-ip-vs
+PKG_BUILDDEP:= popt
+PKG_URL:= http://www.linuxvirtualserver.org/
+PKG_SITES:= http://www.linuxvirtualserver.org/software/kernel-2.6/
+PKG_NOPARALLEL:= 1
+
+include $(TOPDIR)/mk/package.mk
+
+TARGET_CFLAGS+= -I$(STAGING_DIR)/usr/include/libnl3 -fPIC -DHAVE_NL=0
+CONFIG_STYLE:= manual
+XAKE_FLAGS+= HAVE_NL=0
+
+$(eval $(call PKG_template,IPVSADM,ipvsadm,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
+
+ipvsadm-install:
+ $(INSTALL_DIR) $(IDIR_IPVSADM)/usr/sbin
+ $(INSTALL_DIR) $(IDIR_IPVSADM)/usr/lib
+ $(CP) $(WRKBUILD)/libipvs/libipvs.so \
+ $(IDIR_IPVSADM)/usr/lib
+ $(INSTALL_BIN) $(WRKINST)/sbin/ipvsadm \
+ $(IDIR_IPVSADM)/usr/sbin
+
+include ${TOPDIR}/mk/pkg-bottom.mk