updating to 0.3.0
This commit is contained in:
parent
5a457ec897
commit
b38cd21978
|
@ -1,2 +1,3 @@
|
||||||
/sheepdog-0.2.3.tar.gz
|
/sheepdog-0.2.3.tar.gz
|
||||||
/sheepdog-0.2.4.tar.gz
|
/sheepdog-0.2.4.tar.gz
|
||||||
|
/collie-sheepdog-v0.3.0-0-gbb41896.tar.gz
|
||||||
|
|
|
@ -0,0 +1,10 @@
|
||||||
|
[Unit]
|
||||||
|
Description=Sheepdog QEMU/KVM Block Storage
|
||||||
|
After=syslog.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
ExecStart=/usr/sbin/sheep
|
||||||
|
Type=forking
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
|
@ -1,20 +1,26 @@
|
||||||
Name: sheepdog
|
Name: sheepdog
|
||||||
Summary: The Sheepdog Distributed Storage System for KVM/QEMU
|
Summary: The Sheepdog Distributed Storage System for KVM/QEMU
|
||||||
Version: 0.2.4
|
Version: 0.3.0
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
License: GPLv2 and GPLv2+
|
License: GPLv2 and GPLv2+
|
||||||
Group: System Environment/Base
|
Group: System Environment/Base
|
||||||
URL: http://www.osrg.net/sheepdog
|
URL: http://www.osrg.net/sheepdog
|
||||||
Source0: http://downloads.sourceforge.net/project/sheepdog/%{name}/%{version}/%{name}-%{version}.tar.gz
|
Source0: collie-sheepdog-v0.3.0-0-gbb41896.tar.gz
|
||||||
|
#get source from github here https://github.com/collie/sheepdog/tarball/v0.3.0
|
||||||
|
Source1: sheepdog.service
|
||||||
|
|
||||||
# Runtime bits
|
# Runtime bits
|
||||||
Requires: corosync
|
Requires: corosync
|
||||||
Requires(post): chkconfig
|
Requires(post): chkconfig
|
||||||
Requires(preun): chkconfig
|
Requires(preun): chkconfig
|
||||||
Requires(preun): initscripts
|
Requires(preun): initscripts
|
||||||
|
Requires(post): systemd-units
|
||||||
|
Requires(preun): systemd-units
|
||||||
|
Requires(postun): systemd-units
|
||||||
|
Requires(post): systemd-sysv
|
||||||
|
|
||||||
# Build bits
|
# Build bits
|
||||||
BuildRequires: autoconf automake
|
BuildRequires: autoconf automake systemd-units
|
||||||
BuildRequires: corosync corosynclib corosynclib-devel
|
BuildRequires: corosync corosynclib corosynclib-devel
|
||||||
|
|
||||||
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
|
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
|
||||||
|
@ -31,8 +37,7 @@ This package contains the Sheepdog server, and command line tool which offer
|
||||||
a distributed object storage system for KVM.
|
a distributed object storage system for KVM.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -qn collie-sheepdog-bc0ab52
|
%setup -qn collie-sheepdog-bb41896
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
./autogen.sh
|
./autogen.sh
|
||||||
|
@ -43,39 +48,56 @@ make %{_smp_mflags}
|
||||||
rm -rf %{buildroot}
|
rm -rf %{buildroot}
|
||||||
|
|
||||||
make install DESTDIR=%{buildroot}
|
make install DESTDIR=%{buildroot}
|
||||||
|
mkdir -p %{buildroot}/%{_unitdir}
|
||||||
|
cp -a %{SOURCE1} %{buildroot}/%{_unitdir}/
|
||||||
## tree fixup
|
## tree fixup
|
||||||
# drop static libs
|
# drop static libs
|
||||||
rm -f %{buildroot}%{_libdir}/*.a
|
rm -f %{buildroot}%{_libdir}/*.a
|
||||||
|
rm -f %{buildroot}%{_initddir}/sheepdog
|
||||||
%clean
|
%clean
|
||||||
rm -rf %{buildroot}
|
rm -rf %{buildroot}
|
||||||
|
|
||||||
%post
|
%post
|
||||||
/sbin/chkconfig --add sheepdog
|
if [ $1 -eq 1 ] ; then
|
||||||
|
# Initial installation
|
||||||
|
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
|
||||||
|
fi
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
if [ $1 -eq 0 ] ; then
|
if [ $1 -eq 0 ] ; then
|
||||||
/sbin/service sheepdog stop >/dev/null 2>&1
|
# Package removal, not upgrade
|
||||||
/sbin/chkconfig --del sheepdog
|
/bin/systemctl --no-reload disable sheepdog.service > /dev/null 2>&1 || :
|
||||||
|
/bin/systemctl stop sheepdog.service > /dev/null 2>&1 || :
|
||||||
fi
|
fi
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
if [ "$1" -ge "1" ] ; then
|
%triggerun -- sheepdog < 0.2.4-2
|
||||||
/sbin/service sheepdog condrestart >/dev/null 2>&1 || :
|
/usr/bin/systemd-sysv-convert --save httpd >/dev/null 2>&1 ||:
|
||||||
|
/sbin/chkconfig --del httpd >/dev/null 2>&1 || :
|
||||||
|
/bin/systemctl try-restart sheepdog.service >/dev/null 2>&1 || :
|
||||||
|
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
|
||||||
|
if [ $1 -ge 1 ] ; then
|
||||||
|
# Package upgrade, not uninstall
|
||||||
|
/bin/systemctl try-restart sheepdog.service >/dev/null 2>&1 || :
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc COPYING README INSTALL
|
%doc COPYING README INSTALL
|
||||||
%{_sbindir}/sheep
|
%{_sbindir}/sheep
|
||||||
%{_sbindir}/collie
|
%{_sbindir}/collie
|
||||||
%attr(755,-,-)%config %{_initddir}/sheepdog
|
#%attr(755,-,-)%config %{_initddir}/sheepdog
|
||||||
|
%{_unitdir}/sheepdog.service
|
||||||
%dir %{_localstatedir}/lib/sheepdog
|
%dir %{_localstatedir}/lib/sheepdog
|
||||||
%{_mandir}/man8/sheep.8*
|
%{_mandir}/man8/sheep.8*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Jan 15 2012 David Nalley <david@gnsa.us> - 0.3.0-1
|
||||||
|
- updating to 0.3.0
|
||||||
|
|
||||||
|
* Thu Nov 24 2011 David Nalley <david@gnsa.us> - 0.2.4-2
|
||||||
|
- adding systemd support
|
||||||
|
|
||||||
* Thu Nov 24 2011 David Nalley <david@gnsa.us> - 0.2.4-1
|
* Thu Nov 24 2011 David Nalley <david@gnsa.us> - 0.2.4-1
|
||||||
- updating to 0.2.4
|
- updating to 0.2.4
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue