packages: resource-agents/resource-agents.spec (NEW) - new, based on bundle...

glen glen at
Wed Jan 13 18:28:19 CET 2010

Author: glen                         Date: Wed Jan 13 17:28:19 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- new, based on bundled suse based .spec

---- Files affected:
   resource-agents.spec (NONE -> 1.1)  (NEW)

---- Diffs:

Index: packages/resource-agents/resource-agents.spec
diff -u /dev/null packages/resource-agents/resource-agents.spec:1.1
--- /dev/null	Wed Jan 13 18:28:19 2010
+++ packages/resource-agents/resource-agents.spec	Wed Jan 13 18:28:14 2010
@@ -0,0 +1,150 @@
+# $Revision$, $Date$
+# - docbook deps
+# - avoid remote docbook.xsl include:
+#  /usr/bin/xsltproc --xinclude
+# - sync with heartbeat.spec (if any)
+%define		subver	rc2
+%define		rel		0.1
+Summary:	Reusable cluster resource scripts
+Name:		resource-agents
+Version:	1.0.2
+Release:	0.%{subver}.%{rel}
+License:	GPL v2+; LGPL v2.1+
+Group:		Daemons
+# Source0-md5:	fe1ec605e57279f689d893f0c85bef2c
+BuildRequires:	autoconf
+BuildRequires:	automake
+BuildRequires:	cluster-glue-libs-devel
+#BuildRequires:	docbook-dtds
+BuildRequires:	docbook-style-xsl
+BuildRequires:	glib2-devel
+BuildRequires:	libxslt
+BuildRequires:	pkgconfig
+BuildRequires:	python-devel
+BuildRequires:	which
+Obsoletes:	heartbeat-resources < 3.0
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+Scripts to allow common services to operate in a High Availability
+%package -n ldirectord
+Summary:	A Monitoring Daemon for Maintaining High Availability Resources
+License:	GPL v2+
+Group:		Applications/System
+Requires(post):	/sbin/chkconfig
+Requires(preun):	/sbin/chkconfig
+Requires:	ipvsadm
+Requires:	perl-MailTools
+Requires:	perl-Net-SSLeay
+Requires:	perl-libwww-perl
+Provides:	heartbeat-ldirectord
+Obsoletes:	heartbeat-ldirectord
+%description -n ldirectord
+The Linux Director Daemon (ldirectord) was written by Jacob Rief.
+<jacob.rief at>
+ldirectord is a stand alone daemon for monitoring the services on real
+servers. Currently, HTTP, HTTPS, and FTP services are supported.
+lditrecord is simple to install and works with the heartbeat code
+See 'ldirectord -h' and linux-ha/doc/ldirectord for more information.
+%setup -q -n %{name}-%{version}-%{subver}
+%configure \
+	--with-initdir=/etc/rc.d/init.d \
+	--enable-fatal-warnings=yes \
+	--docdir=%{_docdir}/%{name}-%{version}
+%{__make} install \
+#install -d $RPM_BUILD_ROOT%{_sysconfdir}/ha.d/resource.d
+#ln -s %{_sbindir}/ldirectord $RPM_BUILD_ROOT%{_sysconfdir}/ha.d/resource.d/ldirectord
+mkdir $RPM_BUILD_ROOT/sbin
+cd $RPM_BUILD_ROOT/sbin
+ln -sf %{_sysconfdir}/rc.d/init.d/ldirectord rcldirectord
+# Dont package static libs or compiled python
+find $RPM_BUILD_ROOT -name '*.a' -type f -print0 | xargs -0 rm -f
+find $RPM_BUILD_ROOT -name '*.la' -type f -print0 | xargs -0 rm -f
+find $RPM_BUILD_ROOT -name '*.pyc' -type f -print0 | xargs -0 rm -f
+find $RPM_BUILD_ROOT -name '*.pyo' -type f -print0 | xargs -0 rm -f
+# Unset execute permissions from things that shouln't have it
+find $RPM_BUILD_ROOT -name '.ocf-*' -type f -print0 | xargs -0 chmod a-x
+find $RPM_BUILD_ROOT -name 'ocf-*'  -type f -print0 | xargs -0 chmod a-x
+find $RPM_BUILD_ROOT -name '*.dtd'  -type f -print0 | xargs -0 chmod a-x
+chmod 0755 $RPM_BUILD_ROOT%{_sbindir}/ocf-tester
+%preun -n ldirectord
+/sbin/chkconfig --del ldirectord
+%postun -n ldirectord -p /sbin/ldconfig
+%post -n ldirectord
+/sbin/chkconfig --add ldirectord
+%doc AUTHORS doc/README.webapps
+%doc %{_datadir}/%{name}/ra-api-1.dtd
+%dir %{_prefix}/lib/ocf
+%dir %{_prefix}/lib/ocf/resource.d
+%attr(755,root,root) %{_sbindir}/ocf-tester
+%attr(755,root,root) %{_sbindir}/sfex_init
+# For compatability with pre-existing agents
+%dir %{_libdir}/heartbeat
+%dir %{_sysconfdir}/ha.d
+%files -n ldirectord
+%doc ldirectord/
+%config(noreplace) /etc/logrotate.d/ldirectord
+%attr(754,root,root) /etc/rc.d/init.d/ldirectord
+%dir %{_sysconfdir}/ha.d/resource.d
+%attr(755,root,root) %{_sbindir}/ldirectord
+%attr(755,root,root) /sbin/rcldirectord
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+* %{date} PLD Team <feedback at>
+All persons listed below can be reached at <cvs_login>
+Revision 1.1  2010/01/13 17:28:14  glen
+- new, based on bundled suse based .spec

More information about the pld-cvs-commit mailing list