Just a quick note: Sheepdog packages are now in the Fedora 15 and Fedora rawhide repositories. I just fixed a build issue with EL6 and that is headed for EPEL6-testing, and in a few weeks EPEL6 stable. (obviously EPEL6's libvirt/qemu-kvm doesn't currently support sheepdog, but perhaps that will provide some motivation to get them to backport support in.)
So now installing sheepdog in Fedora is as easy as 'yum install sheepdog'. Additionally, I went ahead and created a feature page for Fedora 16 here: https://fedoraproject.org/wiki/Features/Sheepdog That 'feature' has been approved by Fedora's engineering steering committee, so at a minimum we'll get some publicity for Sheepdog out of it. I've been trying to poke the virt-manager and python-virtinst folks to get sheepdog support there, but not a lot of movement yet. Also attached are my changes to the spec file. --David
--- sheepdog.spec.in 2011-05-20 20:30:14.637767739 -0400
+++ /home/ke4qqq/rpmbuild/SPECS/sheepdog.spec 2011-06-04 23:08:55.013723940 -0400
@@ -1,14 +1,17 @@
Name: sheepdog
Summary: The Sheepdog Distributed Storage System for KVM/QEMU
-Version: @version@
-Release: 1%{?dist}
-License: GPL
+Version: 0.2.3
+Release: 2%{?dist}
+License: GPLv2 and GPLv2+
Group: System Environment/Base
URL: http://www.osrg.net/sheepdog
Source0: http://downloads.sourceforge.net/project/sheepdog/%{name}/%{version}/%{name}-%{version}.tar.gz
# Runtime bits
-Requires: corosync corosynclib
+Requires: corosync
+Requires(post): chkconfig
+Requires(preun): chkconfig
+Requires(preun): initscripts
# Build bits
BuildRequires: autoconf automake
@@ -16,15 +19,26 @@
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
+%if 0%{?rhel} >= 6
+Excludearch: ppc
+Excludearch: ppc64
+%endif
+
+
+
+%description
+This package contains the Sheepdog server, and command line tool which offer
+a distributed object storage system for KVM.
+
%prep
-%setup -q -n %{name}-%{version}
+%setup -q
+
%build
./autogen.sh
%{configure} --with-initddir=%{_initrddir}
make %{_smp_mflags}
-
%install
rm -rf %{buildroot}
@@ -37,18 +51,44 @@
%clean
rm -rf %{buildroot}
-%description
-This package contains the Sheepdog server, and command line tool.
+%post
+/sbin/chkconfig --add sheepdog
+
+%preun
+if [ $1 -eq 0 ] ; then
+ /sbin/service sheepdog stop >/dev/null 2>&1
+ /sbin/chkconfig --del sheepdog
+fi
+
+%postun
+if [ "$1" -ge "1" ] ; then
+ /sbin/service sheepdog condrestart >/dev/null 2>&1 || :
+fi
+
%files
%defattr(-,root,root,-)
-%doc COPYING README
+%doc COPYING README INSTALL
%{_sbindir}/sheep
%{_sbindir}/collie
-%{_initddir}/sheepdog
+%attr(755,-,-)%config %{_initddir}/sheepdog
%dir %{_localstatedir}/lib/sheepdog
%{_mandir}/man8/sheep.8*
%changelog
-* @date@ Autotools generated version <[email protected]> - @version@-1.@alphatag@
+* Sat Jun 04 2011 David Nalley <[email protected]> - 0.2.3-2
+- excluding ppc and ppc64 arch for el6
+
+* Sat May 21 2011 David Nalley <[email protected]> - 0.2.3-1
+- updating to 0.2.3 to track upstream.
+
+* Fri May 20 2011 David Nalley <[email protected]> - 0.2.2-2
+- removed -n from setup
+- hardcoded version number.
+- changed lic from gpl to gplv2
+- added INSTALL to doc
+- added proper handling of initscripts
+
+* Fri May 20 2011 Autotools generated version <[email protected]> - 0.2.2-1
- Autotools generated version
+
signature.asc
Description: This is a digitally signed message part.
-- sheepdog mailing list [email protected] http://lists.wpkg.org/mailman/listinfo/sheepdog
