SPECS: slony1.spec (NEW) - new spec for slony1 (based on template....

jajcus jajcus at pld-linux.org
Fri Jul 1 09:04:42 CEST 2005


Author: jajcus                       Date: Fri Jul  1 07:04:42 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- new spec for slony1 (based on template.spec and postgresql.spec) -- version: 1.1 doesn't have to be built with postgresql any more

---- Files affected:
SPECS:
   slony1.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/slony1.spec
diff -u /dev/null SPECS/slony1.spec:1.1
--- /dev/null	Fri Jul  1 09:04:42 2005
+++ SPECS/slony1.spec	Fri Jul  1 09:04:37 2005
@@ -0,0 +1,119 @@
+# $Revision$, $Date$
+#
+# Conditional build:
+%bcond_with	tests		# build with tests
+%bcond_without	tests		# build without tests
+#
+# TODO:
+#	- trigger for upgrading
+#		e.g. stop slony1, warn user. No automatic upgrade possible (must be done all all nodes)
+#
+Summary:	Slony-I - a "master to multiple slaves" replication system for PostgreSQL
+Summary(pl):	Slony-I - system replikacji dla PostgreSQL
+Name:		slony1
+Version:	1.1.0
+Release:	0.1
+Epoch:		0
+License:	BSD
+Group:		Applications/Databases
+Source0:	http://developer.postgresql.org/~wieck/slony1/download/%{name}-%{version}.tar.bz2
+Source1:	%{name}.init
+Source2:	%{name}.pgpass
+Source3:	%{name}.sysconfig
+URL:		http://slony.info/
+BuildRequires:	autoconf
+BuildRequires:	automake
+Conflicts: 	postgresql <= 8.0.3-3
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define		_pgmoduledir	%{_libdir}/postgresql
+%define		_pgsqldir	%{_datadir}/postgresql
+
+%description
+Slony-I is a "master to multiple slaves" replication system with
+cascading and failover.
+
+The big picture for the development of Slony-I is a master-slave
+system that includes all features and capabilities needed to replicate
+large databases to a reasonably limited number of slave systems.
+
+Slony-I is a system for data centers and backup sites, where the
+normal mode of operation is that all nodes are available. 
+
+%description -l pl
+Slony-I jest systemem replikacji dla PostgreSQL. Pozwala na replikację
+typu "jeden serwer głowny, wiele serwerów pomocniczych".
+
+Główną zaletą Slony-I jest system "master-slave". Zawiera on wszelką
+funkcjonalność potrzebną do replikowania dużych baz danych na
+określoną ilość serwerów pomocniczych lub zastępczych.
+
+Slony-I jest przeznaczony dla systemów, gdzie normalny tryb pracy
+wymaga aby zarówno serwer główny jak i wszystkie serwery pomocnicze
+były cały czas operacyjne.
+
+
+%prep
+%setup -q 
+
+%build
+#%%{__libtoolize}
+%{__aclocal} -I config
+%{__autoconf}
+%configure
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{/etc/rc.d/init.d/,/etc/sysconfig/slony1,/home/services/slony1}
+
+%{__make} install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/slony1
+install %{SOURCE2} $RPM_BUILD_ROOT/home/services/slony1/.pgpass
+install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/slony1
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%pre
+%groupadd -P slony1 -g 131 -r slony1
+%useradd -P slony1 -M -o -r -u 131 -d /home/services/slony1 -s /bin/sh -g slony1 -c "Slony-I Replicator" slony1
+
+%post
+/sbin/chkconfig --add slony1
+if [ -f /var/lock/subsys/slony1 ]; then
+	/etc/rc.d/init.d/slony1 restart >&2 || :
+else
+	echo "Run \"/etc/rc.d/init.d/slony1 start\" to start slony1 replicator."
+fi
+
+%preun
+if [ "$1" = "0" ]; then
+	if [ -f /var/lock/subsys/slony1 ]; then
+		/etc/rc.d/init.d/slony1 stop
+	fi
+	/sbin/chkconfig --del slony1
+fi
+
+%files
+%defattr(644,root,root,755)
+%doc HISTORY-1.1 README SAMPLE TODO UPGRADING doc/adminguide/prebuilt/* doc/*/*.txt
+%attr(755,root,root) %{_bindir}/*
+%attr(755,root,root) %{_pgmoduledir}/*.so
+%{_pgsqldir}/*
+%attr(754,root,root) /etc/rc.d/init.d/%{name}
+%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}
+%attr(750,slony1,slony1) %dir /home/services/slony1
+%attr(600,slony1,slony1) /home/services/slony1/.pgpass
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2005/07/01 07:04:37  jajcus
+- new spec for slony1 (based on template.spec and postgresql.spec) -- version: 1.1 doesn't have to be built with postgresql any more
+
================================================================



More information about the pld-cvs-commit mailing list