Compare commits

...
Sign in to create a new pull request.

70 commits

Author SHA1 Message Date
Gwyn Ciesla
5c633991d8 Dead upstream, old website NSFW 2025-05-08 09:31:17 -05:00
Fedora Release Engineering
ddd2056b32 Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild 2025-01-19 13:34:34 +00:00
Gwyn Ciesla
a940a0f63c Require initscripts 2024-11-26 09:29:58 -06:00
Fedora Release Engineering
a90c26ed66 Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild 2024-07-20 08:06:13 +00:00
Software Management Team
c102942de2 Eliminate use of obsolete %patchN syntax (#2283636) 2024-05-30 12:46:49 +02:00
Fedora Release Engineering
1e6ea6df1f Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-27 06:56:49 +00:00
Fedora Release Engineering
45c2bbe93c Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-07-22 16:57:35 +00:00
Gwyn Ciesla
3d0685ad49 migrated to SPDX license 2023-03-07 11:38:24 -06:00
Fedora Release Engineering
67176127f7 Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-01-21 05:38:53 +00:00
Fedora Release Engineering
1daec872df Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-07-23 11:14:05 +00:00
Fedora Release Engineering
9bf991c571 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-01-22 03:22:35 +00:00
Fedora Release Engineering
35e9a36e52 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-07-23 19:53:33 +00:00
ac371a9a0f Rebuilt for updated systemd-rpm-macros
See https://pagure.io/fesco/issue/2583.
2021-03-02 16:12:07 +01:00
Fedora Release Engineering
3b54f72524 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-01-27 22:32:18 +00:00
Tom Stellard
cc1a63916f Add BuildRequires: make
https://fedoraproject.org/wiki/Changes/Remove_make_from_BuildRoot
2021-01-09 00:16:38 +00:00
Fedora Release Engineering
f50886b60c - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-07-29 13:08:27 +00:00
Gwyn Ciesla
175818c8e1 Fix FTBFS. 2020-02-10 13:46:07 -06:00
Fedora Release Engineering
de91729541 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-01-31 02:24:09 +00:00
Fedora Release Engineering
776b2f8823 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-07-27 02:17:30 +00:00
Fedora Release Engineering
5a1034bcdc - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-02-03 10:38:19 +00:00
Fedora Release Engineering
1f0f5d5b45 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2018-07-14 08:07:29 +00:00
Jason Tibbitts
5a85ed7536 Remove needless use of %defattr 2018-07-10 01:40:30 -05:00
Gwyn Ciesla
d5dcab08e2 Move from PASSWORD to PASSFILE. 2018-02-27 08:23:51 -06:00
305f99180d
Remove %clean section
None of currently supported distributions need that.
Last one was EL5 which is EOL for a while.

Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2018-02-14 09:13:50 +01:00
Fedora Release Engineering
63773ac56d - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2018-02-09 19:50:47 +00:00
Gwyn Ciesla
1f9279f886 Unit file fix. 2017-08-08 12:07:57 -05:00
Fedora Release Engineering
4907124fd3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild 2017-08-03 09:41:32 +00:00
Fedora Release Engineering
01909a11de - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild 2017-07-27 20:51:40 +00:00
Jon Ciesla
5c7ce03175 systemd cleanup 2017-03-14 12:52:37 -05:00
Fedora Release Engineering
97aa08af62 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild 2017-02-11 16:35:58 +00:00
Fedora Release Engineering
b210e49e05 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild 2016-02-05 02:13:31 +00:00
Dennis Gilmore
31cec7534a - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild 2015-06-19 01:24:40 +00:00
Kevin Fenzi
186d33b8f1 Rebuild for rpm bug 1131960 2014-08-21 11:53:42 -06:00
e79fe0396b - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild 2014-08-18 06:38:58 +00:00
Dennis Gilmore
f6d89addd0 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild 2014-06-07 21:28:05 -05:00
Jon Ciesla
9f67b01cfc Fix FTBFS. 2013-08-05 12:27:44 -05:00
Dennis Gilmore
17028ce880 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild 2013-08-04 00:19:26 -05:00
Dennis Gilmore
e1f5a53f2e - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild 2013-02-14 20:19:50 -06:00
Jon Ciesla
35d35131f9 Add patch. 2012-10-25 09:31:00 -05:00
Jon Ciesla
ef008cc828 Fix crash. 2012-10-25 09:28:56 -05:00
Dennis Gilmore
9b61e32be3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild 2012-07-21 20:16:11 -05:00
Jon Ciesla
a46ac137b6 Add hardened build. 2012-04-13 07:16:33 -05:00
Jon Ciesla
e53bbcc55b Add unit file. 2012-03-14 10:53:57 -05:00
Jon Ciesla
d6dd6869c4 Migrate to systemd. 2012-03-14 10:50:03 -05:00
Dennis Gilmore
414ca79f7a - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild 2012-01-14 01:24:10 -06:00
Dennis Gilmore
5b318e1d06 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild 2011-02-07 17:53:48 -06:00
Fedora Release Engineering
30370f7675 dist-git conversion 2010-07-29 14:36:22 +00:00
563767d618 New upstream, noreplace for vip-up and vip-down. 2010-04-28 18:27:30 +00:00
Bill Nottingham
c423aa22b8 Fix typo that causes a failure to update the common directory. (releng
#2781)
2009-11-25 22:52:45 +00:00
Jesse Keating
62d07c579c - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild 2009-07-27 06:26:06 +00:00
c6a1471c08 1.5.1 2009-07-08 18:39:20 +00:00
fd6dcdfb01 1.5, initscript fix. 2009-04-13 13:56:19 +00:00
Jesse Keating
ac8da6f49e - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild 2009-02-25 22:26:34 +00:00
Matthias Saou
eaa85561dc Add vip-common.conf, missed in the previous commit. 2008-02-03 19:52:36 +00:00
Matthias Saou
7d08fca89e Update to 1.4 and major changes in the configuration (#427495). 2008-02-03 19:51:44 +00:00
Matthias Saou
4bc0622a55 Rebuild for new BuildID feature. 2007-08-23 08:06:06 +00:00
Matthias Saou
66ced50550 Update License field. 2007-08-05 19:59:35 +00:00
Matthias Saou
c8c7770c2f Move all configuration to /etc/ucarp and other minor changes. 2007-02-05 13:06:40 +00:00
Matthias Saou
c557006180 Improvements from Denis Ovsienko (#200395) and rebuild against new libpcap. 2006-11-29 12:00:11 +00:00
Matthias Saou
3755c9fa63 FC6 rebuilds. 2006-08-28 16:40:12 +00:00
Ville Skyttä
bf3e84a2d2 http://fedoraproject.org/wiki/Extras/Schedule/FC6MassRebuild 2006-08-27 21:12:54 +00:00
Matthias Saou
84ffe4e370 Fix segfaults by updating to 1.3 snapshot and fix init script on FC5+. 2006-08-22 13:08:17 +00:00
Matthias Saou
5af1441296 Include fix for ARP problem (#196095). 2006-06-22 10:05:17 +00:00
Matthias Saou
3a5fee8e4f Update to 1.2 and build require libpcap-devel instead of libpcap now that
it has been split.
2006-06-20 22:55:39 +00:00
Matthias Saou
8780d75a4d FC5 rebuild. 2006-03-06 15:07:21 +00:00
Matthias Saou
fed451c714 Rebuild for new gcc/glibc. 2006-02-09 19:07:30 +00:00
Matthias Saou
1aa92b7f85 Rebuild against new libpcap library. 2005-11-17 12:40:30 +00:00
Michael Schwendt
096b5b4319 second and final batch of fixes for missing directories 2005-04-01 16:36:00 +00:00
Matthias Saou
e43424a72e Update. 2005-01-13 18:13:20 +00:00
gafton
14946aced8 Fix braindead typo from the original import 2004-11-24 05:05:03 +00:00
7 changed files with 1 additions and 289 deletions

View file

@ -1 +0,0 @@
ucarp-1.0.tar.bz2

View file

@ -1,21 +0,0 @@
# Makefile for source rpm: ucarp
# $Id$
NAME := ucarp
SPECFILE = $(firstword $(wildcard *.spec))
define find-makefile-common
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
endef
MAKEFILE_COMMON := $(shell $(find-makefile-common))
ifeq ($(MAKEFILE_COMMON),)
# attept a checkout
define checkout-makefile-common
test -f CVS/Rootx && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
endef
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
endif
include $(MAKEFILE_COMMON)

143
carp.init
View file

@ -1,143 +0,0 @@
#!/bin/bash
# $Id: carp.init,v 1.1 2004/11/09 02:50:47 cvsextras Exp $
#
# chkconfig: - 91 09
# description: Starts and stops ucarp. \
# used to provide common address redundancy.
# Source function library.
. /etc/init.d/functions
# Source networking configuration.
. /etc/sysconfig/network
# Check that networking is up.
[ ${NETWORKING} = "no" ] && exit 0
get_files() {
FILES=`find /etc/sysconfig/carp -type f -name 'vip-*.conf' -maxdepth 1 \
-printf "%f\n" | LC_COLLATE="C" sort`
}
prog=$"common address redundancy protocol daemon"
RETVAL=0
start() {
echo -n $"Starting ${prog}: "
get_files
if [ -z "${FILES}" ]; then
failure $"no virtual addresses are configured in /etc/sysconfig/carp/"
RETVAL=1
else
for FILE in ${FILES}; do
# Check that the file name gives us an ID between 1 and 255
ID=`echo ${FILE}| sed 's/^vip-\(.*\).conf/\1/'`
if [ ${ID} -lt 1 -o ${ID} -gt 255 ]; then
initlog $INITLOG_ARGS -n carp -s "configuration file name ${FILE} gave us a bad ID of ${ID}:" -e 2
RETVAL=1
break
fi
# Source ucarp settings
. /etc/sysconfig/carp/${FILE}
# Check that we have the ifcfg-<if> file for the main interface
if [ -f /etc/sysconfig/network-scripts/ifcfg-${BIND_INTERFACE} ]; then
. /etc/sysconfig/network-scripts/ifcfg-${BIND_INTERFACE}
else
initlog $INITLOG_ARGS -n carp -s $"no ifcfg-${BIND_INTERFACE} file found for carp ${FILE} configuration:" -e 2
RETVAL=1
break
fi
# Check that the ifcfg-<if> file does have an IPADDR
BIND_ADDRESS=${IPADDR}
if [ -z "${BIND_ADDRESS}" ]; then
initlog $INITLOG_ARGS -n carp -s $"no IPADDR found in interface file ifcfg-${BIND_INTERFACE}:" -e 2
RETVAL=1
break
fi
# Check that we have the ifcfg-<if> file for the virtual interface
if [ -f /etc/sysconfig/network-scripts/ifcfg-${VIP_INTERFACE} ]; then
. /etc/sysconfig/network-scripts/ifcfg-${VIP_INTERFACE}
else
initlog $INITLOG_ARGS -n carp -s $"no ifcfg-${VIP_INTERFACE} file found for carp ${FILE} configuration:" -e 2
RETVAL=1
break
fi
# Check that the ifcfg-<if> file does have an IPADDR
VIP_ADDRESS=${IPADDR}
if [ -z "${VIP_ADDRESS}" ]; then
initlog $INITLOG_ARGS -n carp -s "no IPADDR found in interface file ifcfg-${VIP_INTERFACE}:" -e 2
RETVAL=1
break
fi
daemon /usr/sbin/ucarp -v ${ID} -p ${PASSWORD} -s ${BIND_ADDRESS} -a ${VIP_ADDRESS} -i ${VIP_INTERFACE} ${OPTIONS} -B --upscript=/etc/sysconfig/carp/vip-up --downscript=/etc/sysconfig/carp/vip-down
LAUNCH_RETVAL=$?
[ ${LAUNCH_RETVAL} -ne 0 ] && RETVAL=1
done
[ "${RETVAL}" -ne 0 ] && failure $"error in one or more of the carp configurations, see above:"
fi
echo
[ "$RETVAL" -eq 0 ] && touch /var/lock/subsys/carp
}
stop() {
echo -n $"Shutting down $prog: "
killproc /usr/sbin/ucarp
RETVAL=$?
# We put all interfaces managed by ucarp down when stopping the service
# to avoid conflicting "leftovers"
get_files
[ ! -z "${FILES}" ] && \
for FILE in ${FILES}; do
# Source ucarp settings
. /etc/sysconfig/carp/${FILE}
# Check that we have the ifcfg-<if> file for the virtual interface
if [ -f /etc/sysconfig/network-scripts/ifcfg-${VIP_INTERFACE} ]; then
if /sbin/ifconfig ${VIP_INTERFACE} down >/dev/null 2>&1; then
initlog $INITLOG_ARGS -n carp -s $"bringing down carp managed interface ${VIP_INTERFACE}:" -e 1
else
initlog $INITLOG_ARGS -n carp -s $"bringing down carp managed interface ${VIP_INTERFACE}:" -e 2
fi
fi
done
echo
[ "$RETVAL" -eq 0 ] && rm -f /var/lock/subsys/carp
}
# See how we were called.
case "$1" in
start)
start
;;
stop)
stop
;;
restart|reload)
stop
start
;;
condrestart)
if [ -f /var/lock/subsys/carp ]; then
stop
start
fi
;;
status)
status /usr/sbin/ucarp
;;
*)
echo $"Usage: $0 {start|stop|restart|condrestart|status}"
exit 1
esac
exit $RETVAL

1
dead.package Normal file
View file

@ -0,0 +1 @@
Dead upstream, old website NSFW

View file

@ -1 +0,0 @@
f40451c2d614e00121cbae0b0cbdb832 ucarp-1.0.tar.bz2

View file

@ -1,103 +0,0 @@
# $Id: ucarp.spec,v 1.2 2004/11/09 02:50:54 cvsextras Exp $
Summary: Common Address Redundancy Protocol (CARP) for Unix
Name: ucarp
Version: 1.0
Release: 1.1.fc2.fr
License: BSD
Group: System Environment/Daemons
URL: http://www.ucarp.org/
Source: http://www.pureftpd.org/ucarp/ucarp-%{version}.tar.bz2
Source1: carp.init
Source2: vip-001.conf.example
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
Requires(post): /sbin/chkconfig
Requires(preun): /sbin/chkconfig, /sbin/service
Requires(postun): /sbin/service
BuildRequires: libpcap, gettext
%description
UCARP allows a couple of hosts to share common virtual IP addresses in order
to provide automatic failover. It is a portable userland implementation of the
secure and patent-free Common Address Redundancy Protocol (CARP, OpenBSD's
alternative to the patents-bloated VRRP).
Strong points of the CARP protocol are: very low overhead, cryptographically
signed messages, interoperability between different operating systems and no
need for any dedicated extra network link between redundant hosts.
%prep
%setup
%build
%configure
%{__make} %{?_smp_mflags}
%install
%{__rm} -rf %{buildroot}
%makeinstall
%find_lang %{name}
# Install the init script
%{__install} -D -m 0755 %{SOURCE1} \
%{buildroot}/etc/rc.d/init.d/carp
# Install the example config file
%{__install} -D -m 0600 %{SOURCE2} \
%{buildroot}/etc/sysconfig/carp/vip-001.conf.example
# Install trivial interface up/down scripts
%{__cat} << 'EOF' > %{buildroot}/etc/sysconfig/carp/vip-up
#!/bin/sh
# We could use ifup directly, but it complains if the address is already used
#/sbin/ifup $1
. /etc/sysconfig/network-scripts/ifcfg-$1
#exec /sbin/ip addr add ${IPADDR}/${NETMASK} dev "$1"
exec /sbin/ifconfig $1 ${IPADDR} netmask ${NETMASK} up
EOF
%{__cat} << 'EOF' > %{buildroot}/etc/sysconfig/carp/vip-down
#!/bin/sh
#. /etc/sysconfig/network-scripts/ifcfg-$1
#exec /sbin/ip addr del ${IPADDR}/${NETMASK} dev "$1"
exec /sbin/ifconfig $1 down
EOF
%clean
%{__rm} -rf %{buildroot}
%post
if [ $1 -eq 1 ]; then
/sbin/chkconfig --add carp
fi
%preun
if [ $1 -eq 0 ]; then
/sbin/service carp stop >/dev/null 2>&1 || :
/sbin/chkconfig --del carp
fi
%postun
if [ $1 -ge 1 ]; then
/sbin/service carp condrestart >/dev/null 2>&1 || :
fi
%files -f %{name}.lang
%defattr(-, root, root, 0755)
%doc AUTHORS COPYING ChangeLog NEWS README examples/linux/*.sh
/etc/rc.d/init.d/carp
/etc/sysconfig/carp/vip-001.conf.example
%attr(0700, root, root) %config(noreplace) /etc/sysconfig/carp/vip-up
%attr(0700, root, root) %config(noreplace) /etc/sysconfig/carp/vip-down
%{_sbindir}/ucarp
%changelog
* Fri Jul 9 2004 Matthias Saou <http://freshrpms.net/> 1.0-1
- Initial RPM release.

View file

@ -1,20 +0,0 @@
# Virtual IP configuration file for UCARP
# The number (from 001 to 255) in the name of the file is the identifier
# $Id: vip-001.conf.example,v 1.1 2004/11/09 02:50:47 cvsextras Exp $
# Set the same password on all mamchines sharing the same virtual IP
PASSWORD="love"
# You are required to have an IPADDR= line in the configuration file for
# this interface (so no DHCP allowed)
BIND_INTERFACE="eth0"
# Do *NOT* use a main interface for the virtual IP, use an ethX:Y alias
# with the corresponding /etc/sysconfig/network-scripts/ifcfg-ethX:Y file
# already configured and ith ONBOOT=no
VIP_INTERFACE="eth0:0"
# If you have extra options to add, see "ucarp --help" output
# (the lower the "-k <val>" the higher priority and "-P" to become master ASAP)
OPTIONS="-k 128 -P"