rpms/bucardo/F-12 bucardo.spec, NONE, 1.1 import.log, NONE, 1.1 master-master-replication-example.txt, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Author: itamarjp

Update of /cvs/pkgs/rpms/bucardo/F-12
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv26482/F-12

Modified Files:
	.cvsignore sources 
Added Files:
	bucardo.spec import.log master-master-replication-example.txt 
Log Message:
initial cvs import



--- NEW FILE bucardo.spec ---
%define         realname Bucardo
Name:           bucardo
Version:        4.4.0
Release:        2%{?dist}
Summary:        Postgres replication system for both multi-master and multi-slave operations

Group:          Applications/Databases
License:        BSD
URL:            http://bucardo.org/
Source0:        http://bucardo.org/downloads/Bucardo-%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

Source1: master-master-replication-example.txt

BuildArch:     noarch

BuildRequires:  perl(ExtUtils::MakeMaker)
BuildRequires:  perl(DBI)
BuildRequires:  perl(DBD::Pg)
BuildRequires:  perl(IO::Handle)
BuildRequires:  perl(Sys::Hostname)
BuildRequires:  perl(Sys::Syslog)
BuildRequires:  perl(Net::SMTP)
# available from fedora 10
BuildRequires:  perl(DBIx::Safe)

Requires:  perl(ExtUtils::MakeMaker)
Requires:  postgresql-plperl

Requires:  perl(DBI)
Requires:  perl(DBD::Pg)
Requires:  perl(DBIx::Safe)
Requires:  perl(IO::Handle)
Requires:  perl(Sys::Hostname)
Requires:  perl(Sys::Syslog)
Requires:  perl(Net::SMTP)

#testsuite
Requires:  perl(Test::Simple)
Requires:  perl(Test::Harness)

%description
Bucardo is an asynchronous PostgreSQL replication system, allowing for both
multi-master and multi-slave operations.It was developed at Backcountry.com
primarily by Greg Sabino Mullane of End Point Corporation.

%prep
%setup -q -n %{realname}-%{version}


%build

%{__perl} Makefile.PL INSTALLDIRS=vendor

make %{?_smp_mflags}


%install
rm -rf $RPM_BUILD_ROOT

make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT

find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} +
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;

sed -i -e '1d;2i#!/usr/bin/perl' bucardo_ctl

rm -f $RPM_BUILD_ROOT/%{_bindir}/bucardo_ctl
install -Dp -m 755 bucardo_ctl $RPM_BUILD_ROOT/%{_sbindir}/bucardo_ctl
mkdir -p $RPM_BUILD_ROOT/%{_localstatedir}/run/bucardo

install -Dp -m 644 %{SOURCE1} .



%{_fixperms} %{buildroot}

%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root,-)
%doc bucardo_ctl.html Bucardo.pm.html Changes
%doc INSTALL LICENSE README SIGNATURE TODO
%doc master-master-replication-example.txt
%{perl_vendorlib}/*
%{_mandir}/man1/*
%{_mandir}/man3/*
%{_sbindir}/bucardo_ctl
%{_datadir}/bucardo/bucardo.schema
%dir %{_localstatedir}/run/bucardo

%changelog
* Sat Nov 14 2009 Itamar Reis Peixoto <itamar@xxxxxxxxxxxxxxxx> - 4.4.0-2
- Removed some duplicated modules, changed Mail::Sendmail to Net::SMTP.

* Sat Nov 14 2009 Itamar Reis Peixoto <itamar@xxxxxxxxxxxxxxxx> - 4.4.0-1
- rebuild with latest version

* Mon Oct 12 2009 David Fraser <davidf@xxxxxxxxxx> - 4.3.0-1
- Rebuild with latest version

* Sun Feb 01 2009 Itamar Reis Peixoto <itamar@xxxxxxxxxxxxxxxx> - 3.0.9-2
- Don't strip tarball (removing DBIx-Safe and Test-Dynamic)

* Thu Jan 29 2009 Itamar Reis Peixoto <itamar@xxxxxxxxxxxxxxxx> - 3.0.9-1
- Initial RPM release


--- NEW FILE import.log ---
bucardo-4_4_0-2_fc12:F-12:bucardo-4.4.0-2.fc12.src.rpm:1258477278


--- NEW FILE master-master-replication-example.txt ---
#be carefull this will erase bucardo database

psql -U postgres -c 'drop database if exists bucardo'

bucardo_ctl install

psql -U postgres -c 'CREATE DATABASE one'

psql -U postgres -d one -c "
CREATE TABLE customers
(
  id serial NOT NULL,
  nome character varying(50),
  CONSTRAINT customers_pkey PRIMARY KEY (id)
)
"

psql -U postgres -c 'CREATE DATABASE two TEMPLATE one'

bucardo_ctl add db one

bucardo_ctl add table customers herd=alpha standard_conflict=source ping=false db=one

bucardo_ctl add db two

bucardo_ctl add sync replica source=alpha targetdb=two type=swap


echo "now run bucardo_ctl start as root and test the replication inserting / changing data in one.customers and two.customers"


Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/bucardo/F-12/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- .cvsignore	17 Nov 2009 16:32:35 -0000	1.1
+++ .cvsignore	17 Nov 2009 17:04:44 -0000	1.2
@@ -0,0 +1 @@
+Bucardo-4.4.0.tar.gz


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/bucardo/F-12/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- sources	17 Nov 2009 16:32:35 -0000	1.1
+++ sources	17 Nov 2009 17:04:44 -0000	1.2
@@ -0,0 +1 @@
+bf32b4dc7302baa1bc269dd34ff65da5  Bucardo-4.4.0.tar.gz

--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
Fedora-perl-devel-list mailing list
Fedora-perl-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-perl-devel-list

[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Legacy Announce]     [Fedora PHP Devel]     [Kernel Devel]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Big List of Linux Books]     [Gimp]     [Yosemite Information]
  Powered by Linux