aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorMichael Mason <ms13sp@gmail.com>2009-12-30 13:55:21 +0000
committerMichael Mason <ms13sp@gmail.com>2009-12-30 13:55:21 +0000
commit924ee4d8efcb71c021838dbe94a1dbb27f6e1f1e (patch)
treee8136a211836d998c757f37a5ddbfb81b18689d5 /testing
parent96265791c63b3d6036b230257203f1aa1e670180 (diff)
parent5a870abb1f2b075a701c5b4c62812cc2ee8146ea (diff)
downloadaports-924ee4d8efcb71c021838dbe94a1dbb27f6e1f1e.tar.bz2
aports-924ee4d8efcb71c021838dbe94a1dbb27f6e1f1e.tar.xz
Merge branch 'master' of git://git.alpinelinux.org/aports
Diffstat (limited to 'testing')
-rw-r--r--testing/ucarp/APKBUILD36
-rw-r--r--testing/ucarp/ucarp.confd13
-rwxr-xr-xtesting/ucarp/ucarp.initd63
3 files changed, 0 insertions, 112 deletions
diff --git a/testing/ucarp/APKBUILD b/testing/ucarp/APKBUILD
deleted file mode 100644
index e061ae0d65..0000000000
--- a/testing/ucarp/APKBUILD
+++ /dev/null
@@ -1,36 +0,0 @@
-# Contributor: Leonardo Arena <rnalrd@gmail.com>
-# Maintainer:
-pkgname=ucarp
-pkgver=1.5.1
-pkgrel=0
-pkgdesc="Share common IP and do fail over"
-url="http://www.ucarp.org"
-license="GPL"
-depends="uclibc libpcap"
-makedepends="libpcap-dev"
-install=
-subpackages=""
-source="http://download.pureftpd.org/pub/ucarp/$pkgname-$pkgver.tar.gz
- ucarp.initd
- ucarp.confd"
-
-build() {
- cd "$srcdir/$pkgname-$pkgver"
-
- ./configure --prefix=/usr \
- --sysconfdir=/etc \
- --mandir=/usr/share/man \
- --infodir=/usr/share/info
- make || return 1
-}
-
-package() {
- cd "$srcdir/$pkgname-$pkgver"
- make DESTDIR="$pkgdir" install || return 1
- install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
- install -m644 -D "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname
-}
-
-md5sums="391caa69fc17ffbc8a3543d8692021c9 ucarp-1.5.1.tar.gz
-e8f1e2fd144797524025343603dbe2b8 ucarp.initd
-bf914f6ce4fe4fea33a45d4d5b2c1fff ucarp.confd"
diff --git a/testing/ucarp/ucarp.confd b/testing/ucarp/ucarp.confd
deleted file mode 100644
index 824358b430..0000000000
--- a/testing/ucarp/ucarp.confd
+++ /dev/null
@@ -1,13 +0,0 @@
-# Things you can set here
-# REALIP - if not set, will be first addr on iface
-# VHID - Virtual Server ID
-# VIP - The Virtual IP
-# PASSWORD - The password for the carp announcements
-# EXTRA_ARGS - extra arguments
-
-REALIP=
-VHID=2
-VIP=127.0.0.1
-PASSWORD=SecretPassword
-#EXTRA_ARGS="--neutral --advbase=3"
-
diff --git a/testing/ucarp/ucarp.initd b/testing/ucarp/ucarp.initd
deleted file mode 100755
index d03329fcb3..0000000000
--- a/testing/ucarp/ucarp.initd
+++ /dev/null
@@ -1,63 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2008 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-
-# A simple script to start and stop a ucarp instance
-DAEMON=/usr/sbin/ucarp
-
-IFACE="${SVCNAME#*.}"
-if [ -n "$IFACE" ] && [ "${SVCNAME}" != "ucarp" ]; then
- UP="/etc/ucarp/vip-up-$IFACE.sh"
- DOWN="/etc/ucarp/vip-down-$IFACE.sh"
- . /etc/conf.d/ucarp.$IFACE
-else
- UP="/etc/ucarp/vip-up.sh"
- DOWN="/etc/ucarp/vip-down.sh"
-fi
-
-
-# Get the primary ip address for a given interface
-get_first_ip() {
- local foo=$( ip addr show $1 )
- [ $? != 0 ] && foo=""
- echo $( echo "$foo" | grep "inet " | head -n1 | \
- sed "s+^.*inet ++g; s+/.*$++g" )
-}
-
-if [ -z "$REALIP" ]; then
- REALIP=$( get_first_ip $IFACE )
-fi
-
-start () {
- ebegin "Starting ucarp $IFACE"
- start-stop-daemon --start --exec $DAEMON \
- --background -m -p /var/run/ucarp-$IFACE.pid -- \
- -i $IFACE -s $REALIP -v $VHID -p $PASSWORD -a $VIP \
- -u $UP -d $DOWN $EXTRA_ARGS -z
- eend $?
-}
-
-status () {
- ebegin "ucarp $IFACE is ..."
- PIDS=$( pidof $( basename $DAEMON ))
- PID=$( cat /var/run/ucarp-$IFACE.pid 2>/dev/null )
- [ -n "$PID" ] && OK=$( echo "$PIDS" | grep "$PID" )
- if [ -n "$OK" ]; then
- echo "running"
- exit 0
- else
- echo "not running"
- exit 1
- fi
-}
-
-stop () {
- ebegin "Shuting down ucarp $IFACE"
- start-stop-daemon --stop --exec $DAEMON \
- -p /var/run/ucarp-$IFACE.pid
- [ $? -eq 0 ] && rm /var/run/ucarp-$IFACE.pid
- eend $?
-}
-