SHA256
1
0
forked from pool/csync2

*** WORK IN PROGRESS - DO NOT SHIP ***

OBS-URL: https://build.opensuse.org/package/show/network:ha-clustering:Factory/csync2?expand=0&rev=21
This commit is contained in:
Tim Serong 2013-08-22 09:22:31 +00:00 committed by Git OBS Bridge
parent 4290cb6691
commit 05580bbff0
6 changed files with 90 additions and 48 deletions

16
_service Normal file
View File

@ -0,0 +1,16 @@
<services>
<service name="tar_scm" mode="disabled">
<param name="url">git://git.linbit.com/csync2.git</param>
<param name="scm">git</param>
<param name="exclude">.git</param>
<param name="versionformat">2.0+git.%ct.%h</param>
<param name="revision">master</param>
</service>
<service name="recompress" mode="disabled">
<param name="file">csync2*.tar</param>
<param name="compression">bz2</param>
</service>
<service name="set_version" mode="disabled"/>
</services>

12
add-ac_prog_cpp.patch Normal file
View File

@ -0,0 +1,12 @@
Index: csync2-2.0+git.1368794815.cf835a7/configure.ac
===================================================================
--- csync2-2.0+git.1368794815.cf835a7.orig/configure.ac
+++ csync2-2.0+git.1368794815.cf835a7/configure.ac
@@ -29,6 +29,7 @@ AM_CONFIG_HEADER(config.h)
# Checks for programs.
AC_PROG_CC
+AC_PROG_CPP
AC_PROG_INSTALL
AC_PROG_YACC
AM_PROG_LEX

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:32b250dd4a0353f71015c5c3961174b975dd5e799e4a084e8f6d00792bd8c833
size 222765

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e9613f71d49c15b3b4b1d4d747f0bc9f397ff0823dd9daaf2743ab93bd298781
size 91654

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Wed Aug 21 05:38:19 UTC 2013 - tserong@suse.com
*** WORK IN PROGRESS - DO NOT SHIP ***
- Update to upstream version 2.0-rc2
------------------------------------------------------------------- -------------------------------------------------------------------
Fri May 10 12:56:38 UTC 2013 - tserong@suse.com Fri May 10 12:56:38 UTC 2013 - tserong@suse.com

View File

@ -17,68 +17,75 @@
Summary: Cluster synchronization tool Summary: Cluster synchronization tool
License: GPL-2.0+ and LGPL-2.1+ License: GPL-2.0+
Group: Productivity/Clustering/HA Group: Productivity/Clustering/HA
Name: csync2 Name: csync2
Version: 1.34 Version: 2.0+git.1368794815.cf835a7
Release: 0 Release: 0
Url: http://oss.linbit.com/csync2/ Url: http://oss.linbit.com/csync2/
Source0: http://oss.linbit.com/csync2/%{name}-%{version}.tar.gz #Source0: http://oss.linbit.com/csync2/%{name}-%{version}.tar.gz
Source0: %{name}-%{version}.tar.bz2
Source1: csync2-README.quickstart Source1: csync2-README.quickstart
Source2: csync2-rm-ssl-cert Source2: csync2-rm-ssl-cert
# PATCH-MISSING-TAG -- See http://wiki.opensuse.org/openSUSE:Packaging_Patches_guidelines
Patch0: csync2-fix-xinetd.patch Patch0: csync2-fix-xinetd.patch
Patch1: fix-missing-sentinels.diff # PATCH-MISSING-TAG -- See http://wiki.opensuse.org/openSUSE:Packaging_Patches_guidelines
%if 0%{?suse_version} > 1120
Patch2: csync2-1.34-pure-gnutls-r2.patch
BuildRequires: pkg-config
%endif
Patch3: force-debug-stderr-off-inetd.patch Patch3: force-debug-stderr-off-inetd.patch
# PATCH-MISSING-TAG -- See http://wiki.opensuse.org/openSUSE:Packaging_Patches_guidelines
Patch4: bind-to-local-hostname.patch Patch4: bind-to-local-hostname.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build Patch10: add-ac_prog_cpp.patch
Requires(post): openssl
Requires: gnutls Requires: openssl
Requires: sqlite2 Requires: sqlite3
Requires: xinetd BuildRequires: autoconf
BuildRequires: automake
BuildRequires: bison BuildRequires: bison
BuildRequires: flex BuildRequires: flex
BuildRequires: libgnutls-devel BuildRequires: libgnutls-devel
%if 0%{?sles_version} == 11 BuildRequires: libmysqlclient-devel
BuildRequires: libgnutls-extra-devel
%endif
BuildRequires: libtasn1-devel
BuildRequires: sqlite2-devel
%if 0%{?suse_version} > 1210
BuildRequires: librsync-devel BuildRequires: librsync-devel
%else BuildRequires: librsync-devel
BuildRequires: librsync BuildRequires: pkgconfig
%endif BuildRequires: postgresql-devel
BuildRequires: sqlite3-devel
# texlive is for pdflatex to build PDF version of the manual
BuildRequires: texlive-latex
BuildRequires: texlive-nopageno
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description %description
Csync2 is a cluster synchronization tool. It can be used to keep files Csync2 is a cluster synchronization tool. It can be used to keep files on
on multiple hosts in a cluster in sync. Csync2 can handle complex multiple hosts in a cluster in sync. Csync2 can handle complex setups with
setups with much more than just 2 hosts, handle file deletions and can much more than just 2 hosts, handle file deletions and can detect conflicts.
detect conflicts. It is expedient for HA-clusters, HPC-clusters, COWs It is expedient for HA-clusters, HPC-clusters, COWs and server farms.
and server farms.
%prep %prep
%setup -q %setup
%patch0 -p1 -b .fix-xinetd # Is this next really necessary?
%patch1 -p1 %{?suse_update_config:%{suse_update_config}}
%if 0%{?suse_version} > 1120
%patch2 -p1 #%patch0 -p1 -b .fix-xinetd
%endif # might actually want patch3
%patch3 -p1 #%patch3 -p1
%patch4 -p1 # patch4 needs rewriting, presumably
#%patch4 -p1
#%patch10 -p1
install -p -m 644 %{SOURCE1} README.quickstart install -p -m 644 %{SOURCE1} README.quickstart
%build %build
%configure --sysconfdir=%{_sysconfdir}/csync2 export CFLAGS="$RPM_OPT_FLAGS -I/usr/include/pgsql"
make %{?_smp_mflags} if ! [ -f configure ]; then ./autogen.sh; fi
%configure --enable-mysql --enable-postgres --enable-sqlite3 \
--sysconfdir=%{_sysconfdir}/csync2 --docdir=%{_docdir}/%{name}
make all
#make %{?_smp_mflags}
%install %install
make install DESTDIR=%{buildroot} %makeinstall
mkdir -p %{buildroot}%{_var}/lib/csync2 mkdir -p %{buildroot}%{_localstatedir}/lib/csync2
install -p -D -m 644 csync2.xinetd %{buildroot}%{_sysconfdir}/xinetd.d/csync2 install -p -D -m 644 csync2.xinetd %{buildroot}%{_sysconfdir}/xinetd.d/csync2
install -p -m 755 %{SOURCE2} %{buildroot}%{_sbindir}/csync2-rm-ssl-cert install -p -m 755 %{SOURCE2} %{buildroot}%{_sbindir}/csync2-rm-ssl-cert
# We need these empty files to be able to %%ghost them # We need these empty files to be able to %%ghost them
@ -109,21 +116,21 @@ fi
%preun %preun
# Cleanup all databases upon last removal # Cleanup all databases upon last removal
if [ $1 -eq 0 ]; then if [ $1 -eq 0 ]; then
%{__rm} -f %{_var}/lib/csync2/* rm -f %{_localstatedir}/lib/csync2/*
fi fi
%files %files
%defattr(-,root,root,-) %defattr(-,root,root)
%doc README README.quickstart AUTHORS COPYING paper.pdf %{_sbindir}/csync2
%{_sbindir}/csync2-compare
%dir %{_localstatedir}/lib/csync2/
%{_docdir}/%{name}
%dir %{_sysconfdir}/csync2/ %dir %{_sysconfdir}/csync2/
%config(noreplace) %{_sysconfdir}/csync2/csync2.cfg %config(noreplace) %{_sysconfdir}/csync2/csync2.cfg
%config(noreplace) %{_sysconfdir}/xinetd.d/csync2 %config(noreplace) %{_sysconfdir}/xinetd.d/csync2
%ghost %config %{_sysconfdir}/csync2/csync2_ssl_key.pem %ghost %config %{_sysconfdir}/csync2/csync2_ssl_key.pem
%ghost %config %{_sysconfdir}/csync2/csync2_ssl_cert.pem %ghost %config %{_sysconfdir}/csync2/csync2_ssl_cert.pem
%{_sbindir}/csync2
%{_sbindir}/csync2-compare
%{_sbindir}/csync2-rm-ssl-cert %{_sbindir}/csync2-rm-ssl-cert
%{_mandir}/man1/csync2.1* %{_mandir}/man1/csync2.1*
%dir %{_var}/lib/csync2/
%changelog %changelog