diff options
author | Leonardo Arena <rnalrd@alpinelinux.org> | 2013-01-29 12:04:12 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2013-01-29 12:04:45 +0000 |
commit | 43858937d26e2caadbe35bf9b2c0ac402cfd1e5e (patch) | |
tree | db1da811e47bd7f831b118a0b5372bd4bd24b6c7 /testing/ipvsadm | |
parent | 333ddae109196aa6066ab2c738d5b813cc213de2 (diff) | |
download | aports-43858937d26e2caadbe35bf9b2c0ac402cfd1e5e.tar.bz2 aports-43858937d26e2caadbe35bf9b2c0ac402cfd1e5e.tar.xz |
testing/ipvsadm: new aport
The IP Virtual Server administration utility
Diffstat (limited to 'testing/ipvsadm')
-rw-r--r-- | testing/ipvsadm/01-fix-not-showing-all-server.patch | 24 | ||||
-rw-r--r-- | testing/ipvsadm/APKBUILD | 49 |
2 files changed, 73 insertions, 0 deletions
diff --git a/testing/ipvsadm/01-fix-not-showing-all-server.patch b/testing/ipvsadm/01-fix-not-showing-all-server.patch new file mode 100644 index 0000000000..7af6b3c556 --- /dev/null +++ b/testing/ipvsadm/01-fix-not-showing-all-server.patch @@ -0,0 +1,24 @@ +diff -urN ipvsadm-1.26.vanilla/libipvs/ip_vs.h ipvsadm-1.26/libipvs/ip_vs.h +--- ipvsadm-1.26.vanilla/libipvs/ip_vs.h 2011-02-06 18:38:57.000000000 -0800 ++++ ipvsadm-1.26/libipvs/ip_vs.h 2011-08-23 15:03:59.000000000 -0700 +@@ -413,7 +413,7 @@ + __IPVS_CMD_ATTR_MAX, + }; + +-#define IPVS_CMD_ATTR_MAX (__IPVS_SVC_ATTR_MAX - 1) ++#define IPVS_CMD_ATTR_MAX (__IPVS_CMD_ATTR_MAX - 1) + + /* + * Attributes used to describe a service +diff -urN ipvsadm-1.26.vanilla/libipvs/ip_vs_nl_policy.c +ipvsadm-1.26/libipvs/ip_vs_nl_policy.c +--- ipvsadm-1.26.vanilla/libipvs/ip_vs_nl_policy.c 2008-09-18 +08:57:37.000000000 -0700 ++++ ipvsadm-1.26/libipvs/ip_vs_nl_policy.c 2011-08-23 14:45:34.000000000 -0700 +@@ -26,6 +26,8 @@ + [IPVS_SVC_ATTR_TIMEOUT] = { .type = NLA_U32 }, + [IPVS_SVC_ATTR_NETMASK] = { .type = NLA_U32 }, + [IPVS_SVC_ATTR_STATS] = { .type = NLA_NESTED }, ++ [IPVS_SVC_ATTR_PE_NAME] = { .type = NLA_STRING, ++ .maxlen = IP_VS_PENAME_MAXLEN}, + }; diff --git a/testing/ipvsadm/APKBUILD b/testing/ipvsadm/APKBUILD new file mode 100644 index 0000000000..c702550270 --- /dev/null +++ b/testing/ipvsadm/APKBUILD @@ -0,0 +1,49 @@ +# Contributor: Leonardo Arena <rnalrd@gmail.com> +pkgname=ipvsadm +pkgver=1.26 +pkgrel=0 +pkgdesc="The IP Virtual Server administration utility" +url="http://www.linuxvirtualserver.org/software/ipvs.html" +arch="all" +license="GPL2" +depends= +depends_dev="libnl-dev popt-dev" +makedepends="$depends_dev" +install= +subpackages="$pkgname-doc" +source="http://www.linuxvirtualserver.org/software/kernel-2.6/$pkgname-$pkgver.tar.gz + 01-fix-not-showing-all-server.patch + " + + +_builddir="$srcdir"/$pkgname-$pkgver + +prepare() { + cd "$_builddir" + patch -p1 -i ../01-fix-not-showing-all-server.patch +} + +build() { + cd "$_builddir" + make BUILD_ROOT="$pkgdir" \ + MANDIR=usr/share/man \ + SBIN="$pkgdir/usr/sbin" \ + INIT="$pkgdir/etc/init.d" \ + || return 1 +} + +package() { + cd "$_builddir" + make BUILD_ROOT="$pkgdir" \ + MANDIR=usr/share/man \ + SBIN="$pkgdir/usr/sbin" \ + INIT="$pkgdir/etc/init.d" \ + install + + # remove the 2 lines below (and this) if there is no init.d script + # install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname + # install -m644 -D "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname +} + +md5sums="eac3ba3f62cd4dea2da353aeddd353a8 ipvsadm-1.26.tar.gz +69e697b4c68f79b2b676bc9f8ef7ec3c 01-fix-not-showing-all-server.patch" |