Systemd service file
OBS-URL: https://build.opensuse.org/package/show/filesystems/glusterfs?expand=0&rev=16
This commit is contained in:
parent
b71c647f86
commit
ea25762b6b
@ -4,6 +4,7 @@ Fri Nov 9 21:47:11 UTC 2012 - jengelh@inai.de
|
|||||||
- Update to new upstream release 3.4.0qa2
|
- Update to new upstream release 3.4.0qa2
|
||||||
* No changelog provided by upstream
|
* No changelog provided by upstream
|
||||||
- Remove glusterfs-init.diff, merged upstream
|
- Remove glusterfs-init.diff, merged upstream
|
||||||
|
- Provide systemd service file
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Oct 31 12:19:47 UTC 2012 - jengelh@inai.de
|
Wed Oct 31 12:19:47 UTC 2012 - jengelh@inai.de
|
||||||
|
@ -31,6 +31,7 @@ Url: http://gluster.org/
|
|||||||
|
|
||||||
#Git-Clone: git://github.com/gluster/glusterfs
|
#Git-Clone: git://github.com/gluster/glusterfs
|
||||||
Source: %name-%rversion.tar.xz
|
Source: %name-%rversion.tar.xz
|
||||||
|
Source3: glusterd.service
|
||||||
Patch1: glusterfs-date.diff
|
Patch1: glusterfs-date.diff
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
BuildRequires: automake
|
BuildRequires: automake
|
||||||
@ -53,6 +54,9 @@ BuildRequires: pkgconfig(libcrypto)
|
|||||||
BuildRequires: pkgconfig(libxml-2.0)
|
BuildRequires: pkgconfig(libxml-2.0)
|
||||||
BuildRequires: pkgconfig(uuid)
|
BuildRequires: pkgconfig(uuid)
|
||||||
%endif
|
%endif
|
||||||
|
%if 0%{?suse_version} >= 1210
|
||||||
|
BuildRequires: systemd
|
||||||
|
%endif
|
||||||
Requires: python
|
Requires: python
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -161,19 +165,24 @@ find "$b/%_libdir" -maxdepth 1 -type f -name "*.la" -delete;
|
|||||||
# W: wrong-file-end-of-line-encoding
|
# W: wrong-file-end-of-line-encoding
|
||||||
perl -i -pe 's{\x0d\x0a}{\x0a}gs' %_docdir/%name/glusterfs-mode.el;
|
perl -i -pe 's{\x0d\x0a}{\x0a}gs' %_docdir/%name/glusterfs-mode.el;
|
||||||
|
|
||||||
|
%if 0%{?_unitdir:1}
|
||||||
|
mkdir -p "$b/%_unitdir";
|
||||||
|
install -pm0644 "%{S:3}" "$b/%_unitdir/";
|
||||||
|
%endif
|
||||||
|
|
||||||
%fdupes %buildroot
|
%fdupes %buildroot
|
||||||
|
|
||||||
|
%pre
|
||||||
|
%service_add_pre glusterd.service
|
||||||
|
|
||||||
%post
|
%post
|
||||||
/sbin/ldconfig
|
%service_add_post glusterd.service
|
||||||
%insserv_cleanup
|
|
||||||
%restart_on_update glusterd
|
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
%stop_on_removal glusterd
|
%service_del_preun glusterd.service
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
/sbin/ldconfig
|
%service_del_postun glusterd.service
|
||||||
%insserv_cleanup
|
|
||||||
|
|
||||||
%post -n %lname_api -p /sbin/ldconfig
|
%post -n %lname_api -p /sbin/ldconfig
|
||||||
%postun -n %lname_api -p /sbin/ldconfig
|
%postun -n %lname_api -p /sbin/ldconfig
|
||||||
@ -199,6 +208,9 @@ perl -i -pe 's{\x0d\x0a}{\x0a}gs' %_docdir/%name/glusterfs-mode.el;
|
|||||||
%_docdir/%name
|
%_docdir/%name
|
||||||
%_localstatedir/lib/glusterd
|
%_localstatedir/lib/glusterd
|
||||||
%_localstatedir/log/%name
|
%_localstatedir/log/%name
|
||||||
|
%if 0%{?_unitdir:1}
|
||||||
|
%_unitdir/glusterd.service
|
||||||
|
%endif
|
||||||
|
|
||||||
%files -n %lname_api
|
%files -n %lname_api
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
|
Loading…
Reference in New Issue
Block a user