diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2016-11-07 11:15:04 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2016-11-07 11:16:48 +0000 |
commit | 76bd1baf8e87c784714de73e9c61725ca4b7ccb0 (patch) | |
tree | cd45a11941c3aaef7a82d7e8742a50d62bd9a789 /testing/ipvsadm | |
parent | ef1428b0c6a5aa65442374ca24470ca12d229340 (diff) | |
download | aports-76bd1baf8e87c784714de73e9c61725ca4b7ccb0.tar.bz2 aports-76bd1baf8e87c784714de73e9c61725ca4b7ccb0.tar.xz |
main/ipvsadm: move from testing
Diffstat (limited to 'testing/ipvsadm')
-rw-r--r-- | testing/ipvsadm/APKBUILD | 47 | ||||
-rw-r--r-- | testing/ipvsadm/ipvsadm.initd | 42 |
2 files changed, 0 insertions, 89 deletions
diff --git a/testing/ipvsadm/APKBUILD b/testing/ipvsadm/APKBUILD deleted file mode 100644 index dbd047ed74..0000000000 --- a/testing/ipvsadm/APKBUILD +++ /dev/null @@ -1,47 +0,0 @@ -# Contributor: Leonardo Arena <rnalrd@gmail.com> -# Maintainer: Natanael Copa <ncopa@alpinelinux.org> -pkgname=ipvsadm -pkgver=1.28 -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 linux-headers" -install= -subpackages="$pkgname-doc" -source="https://kernel.org/pub/linux/utils/kernel/ipvsadm/$pkgname-$pkgver.tar.xz - $pkgname.initd" - -builddir="$srcdir"/$pkgname-$pkgver - -build() { - cd "$builddir" - make libs && make BUILD_ROOT="$pkgdir" \ - MANDIR=usr/share/man \ - SBIN="$pkgdir/usr/sbin" \ - INIT="$pkgdir/etc/init.d" \ - || return 1 -} - -package() { - cd "$builddir" - make -j1 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="b2c8fa302d5a9e9ebd4f60dd34aecd83 ipvsadm-1.28.tar.xz -bebb015ea02ead2a84be2bd5af4eb74c ipvsadm.initd" -sha256sums="90e0e49cad5acb9db1c04ed4cdadf7933152a472c2f694039b9d7a291c37f3ab ipvsadm-1.28.tar.xz -d18d70c39d5dff6325b7e21fbd61485384b642b15a0dfee935ec9b7d4b9f0b66 ipvsadm.initd" -sha512sums="a1e10ce30751d9439f832e221e5c41b338f87dcc94a0b21329d908a9164f8882049af9d9d918b764b36c30e353d5b8db49d7088e60c24e4748713c06cccf7035 ipvsadm-1.28.tar.xz -43b2186f48f17d43524c1f4e9de06227c6d491845c466cf6f00214b74fcd5e181e8b855fef8c6fa78c62a924ee3cc3317099278f9656183de8678440bb070625 ipvsadm.initd" diff --git a/testing/ipvsadm/ipvsadm.initd b/testing/ipvsadm/ipvsadm.initd deleted file mode 100644 index 17a4bfac5e..0000000000 --- a/testing/ipvsadm/ipvsadm.initd +++ /dev/null @@ -1,42 +0,0 @@ -#!/sbin/runscript -# Copyright 1999-2011 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-cluster/ipvsadm/files/ipvsadm-init,v 1.5 2011/12/04 10:40:20 swegener Exp $ - -extra_commands="save" - -depend() { - need net -} - -checkconfig() { - - checkpath --directory /var/lib/ipvsadm - - if [ ! -f /var/lib/ipvsadm/rules-save ] ; then - eerror "Not starting ipvsadm. First create some rules then run" - eerror "/etc/init.d/ipvsadm save" - return 1 - fi -} - -start() { - checkconfig || return 1 - ebegin "Starting ipvsadm" - einfo "Clearing previous rules" - ipvsadm -C - ipvsadm-restore < /var/lib/ipvsadm/rules-save - eend $? -} - -stop() { - ebegin "Stopping ipvsadm" - eend $? -} - -save() { - ebegin "Saving ipvsadm state" - ipvsadm-save > /var/lib/ipvsadm/rules-save - eend $? -} - |