This commit is contained in:
commit
9ffc1a4659
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
3
src_vipa-2.0.3.tar.gz
Normal file
3
src_vipa-2.0.3.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:4677330ddfce0f981525192e6c754e928ab7f56ce88d9ef7ad60cda074406070
|
||||
size 20001
|
34
src_vipa.build.patch
Normal file
34
src_vipa.build.patch
Normal file
@ -0,0 +1,34 @@
|
||||
This patch fixes
|
||||
* a build failure
|
||||
* usage of uninitialized variable
|
||||
* usage of unneeded LD_LIBRARY_PATH
|
||||
|
||||
--- Makefile
|
||||
+++ Makefile
|
||||
@@ -34,7 +34,6 @@
|
||||
|
||||
src_vipa.sh:
|
||||
echo '#!/bin/bash' > src_vipa.sh
|
||||
- echo 'export LD_LIBRARY_PATH=$(SRC_VIPA_PATH):$$LD_LIBRARY_PATH' >> src_vipa.sh
|
||||
echo 'export LD_PRELOAD=$(SRC_VIPA_PATH)/src_vipa.so' >> src_vipa.sh
|
||||
echo 'exec $$@' >> src_vipa.sh
|
||||
chmod 755 src_vipa.sh
|
||||
--- src_vipa.c
|
||||
+++ src_vipa.c
|
||||
@@ -26,7 +26,6 @@
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
|
||||
-#include <asm/atomic.h>
|
||||
#include <pthread.h>
|
||||
|
||||
#include <sys/types.h>
|
||||
@@ -863,7 +862,7 @@
|
||||
{
|
||||
ssize_t result;
|
||||
struct sv_entry *entry=NULL;
|
||||
- struct sockaddr *dst_addr;
|
||||
+ struct sockaddr *dst_addr = NULL;
|
||||
struct sockaddr_in src_addr;
|
||||
|
||||
if (msg->msg_name)
|
53
src_vipa.changes
Normal file
53
src_vipa.changes
Normal file
@ -0,0 +1,53 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Aug 25 08:09:22 CEST 2006 - aj@suse.de
|
||||
|
||||
- Fix build.
|
||||
- Do not set LD_LIBRARY without need.
|
||||
- Fix usage of uninitialized variable.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu May 18 18:45:01 CEST 2006 - schwab@suse.de
|
||||
|
||||
- Use RPM_OPT_FLAGS.
|
||||
- Fix building of shared library.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jan 25 21:41:48 CET 2006 - mls@suse.de
|
||||
|
||||
- converted neededforbuild to BuildRequires
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Apr 12 16:41:38 CEST 2005 - ihno@suse.de
|
||||
|
||||
- update to 2.0.3 (code drop 2005-02-15)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Nov 11 13:04:59 CET 2004 - ro@suse.de
|
||||
|
||||
- fixed file list
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Nov 28 16:02:59 CET 2003 - bk@suse.de
|
||||
|
||||
- update to 2.0.0 and added further glibc-2.3.2 compile fixes
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Aug 12 19:48:59 CEST 2003 - ro@suse.de
|
||||
|
||||
- fix build on x86_64
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jun 25 02:03:20 CEST 2003 - ro@suse.de
|
||||
|
||||
- fix bind definition
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jul 22 20:33:37 CEST 2002 - bk@suse.de
|
||||
|
||||
- update to 1.0.1 which fixes a lib64 problem
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Jul 19 16:56:03 CEST 2002 - bk@suse.de
|
||||
|
||||
- initial version
|
||||
|
43
src_vipa.makefile.patch
Normal file
43
src_vipa.makefile.patch
Normal file
@ -0,0 +1,43 @@
|
||||
--- Makefile
|
||||
+++ Makefile
|
||||
@@ -13,8 +13,9 @@
|
||||
#
|
||||
|
||||
CC=gcc
|
||||
-CC_FLAGS=-fPIC -Wall
|
||||
-LD=ld
|
||||
+LIBC=$(shell ldd `which bash`|grep 'libc.so.6'| sed 's/^.*=> *//g;s/ .*$$//g')
|
||||
+CC_FLAGS=-fPIC $(RPM_OPT_FLAGS) -DLIBC_PATH=\"$(LIBC)\"
|
||||
+LD=$(CC)
|
||||
LD_FLAGS=-shared
|
||||
INSTALL=install
|
||||
|
||||
--- src_vipa.c
|
||||
+++ src_vipa.c
|
||||
@@ -42,7 +42,7 @@
|
||||
#include <sys/time.h>
|
||||
|
||||
|
||||
-#define LIBC_PATH "libc.so.6"
|
||||
+/* #define LIBC_PATH "libc.so.6" defined in Makefile */
|
||||
#define DLOPEN_FLAG RTLD_LAZY
|
||||
|
||||
|
||||
@@ -1255,7 +1255,7 @@
|
||||
}
|
||||
|
||||
#ifndef LC_TEST
|
||||
-void _init(void)
|
||||
+static void __attribute__((constructor)) _init(void)
|
||||
{
|
||||
leader_pid = getpid();
|
||||
init_mutexes();
|
||||
@@ -1265,7 +1265,7 @@
|
||||
read_config_file();
|
||||
}
|
||||
|
||||
-void _fini(void)
|
||||
+static void __attribute__((destructor)) _fini(void)
|
||||
{
|
||||
if (dl_handle) dlclose(dl_handle);
|
||||
destroy_shm();
|
81
src_vipa.spec
Normal file
81
src_vipa.spec
Normal file
@ -0,0 +1,81 @@
|
||||
#
|
||||
# spec file for package src_vipa (Version 2.0.3)
|
||||
#
|
||||
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# This file and all modifications and additions to the pristine
|
||||
# package are under the same license as the package itself.
|
||||
#
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
Name: src_vipa
|
||||
URL: http://www10.software.ibm.com/developerworks/opensource/linux390/useful_add-ons.shtml
|
||||
Version: 2.0.3
|
||||
Release: 14
|
||||
Summary: Virtual Source IP address support for HA solutions
|
||||
License: Other License(s), see package
|
||||
Group: Productivity/Clustering/HA
|
||||
Autoreqprov: on
|
||||
Source: src_vipa-%version.tar.gz
|
||||
Patch: src_vipa.makefile.patch
|
||||
Patch1: src_vipa.build.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
|
||||
%description
|
||||
This package provides very flexible means of source IP address
|
||||
selection to arbitrary applications. This is particularly useful for
|
||||
high availability setups, where the dummy device holds a "VIPA"
|
||||
(virtual IP address). Please read the
|
||||
/usr/share/doc/packages/src_vipa/README and the manpage of src_vipa for
|
||||
further information.
|
||||
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q -n %name
|
||||
%patch
|
||||
%patch1
|
||||
|
||||
%build
|
||||
make SRC_VIPA_PATH=%_libdir
|
||||
make CFLAGS="$RPM_OPT_FLAGS -Wall"
|
||||
|
||||
%install
|
||||
make INSTROOT=%buildroot SRC_VIPA_PATH=%buildroot%_libdir install
|
||||
#mkdir -p $RPM_BUILD_ROOT/{%{_sbindir},%{_mandir}/man8/}
|
||||
#install vconfig $RPM_BUILD_ROOT/%{_sbindir}
|
||||
#cp -p vconfig.8 $RPM_BUILD_ROOT%{_mandir}/man8/
|
||||
#cp %SOURCE2 .
|
||||
|
||||
%files
|
||||
%defattr(444,root,root,755)
|
||||
%doc README LICENSE
|
||||
%doc %{_mandir}/man8/*.8.gz
|
||||
%attr(555,root,root) %_sbindir/*
|
||||
%attr(555,root,root) %_libdir/src_vipa*
|
||||
|
||||
%changelog -n src_vipa
|
||||
* Fri Aug 25 2006 - aj@suse.de
|
||||
- Fix build.
|
||||
- Do not set LD_LIBRARY without need.
|
||||
- Fix usage of uninitialized variable.
|
||||
* Thu May 18 2006 - schwab@suse.de
|
||||
- Use RPM_OPT_FLAGS.
|
||||
- Fix building of shared library.
|
||||
* Wed Jan 25 2006 - mls@suse.de
|
||||
- converted neededforbuild to BuildRequires
|
||||
* Tue Apr 12 2005 - ihno@suse.de
|
||||
- update to 2.0.3 (code drop 2005-02-15)
|
||||
* Thu Nov 11 2004 - ro@suse.de
|
||||
- fixed file list
|
||||
* Fri Nov 28 2003 - bk@suse.de
|
||||
- update to 2.0.0 and added further glibc-2.3.2 compile fixes
|
||||
* Tue Aug 12 2003 - ro@suse.de
|
||||
- fix build on x86_64
|
||||
* Wed Jun 25 2003 - ro@suse.de
|
||||
- fix bind definition
|
||||
* Mon Jul 22 2002 - bk@suse.de
|
||||
- update to 1.0.1 which fixes a lib64 problem
|
||||
* Fri Jul 19 2002 - bk@suse.de
|
||||
- initial version
|
Loading…
Reference in New Issue
Block a user