|
|
|
@ -38,6 +38,9 @@
|
|
|
|
|
%bcond_without ceph
|
|
|
|
|
%global use_fsal_ceph %{on_off_switch ceph}
|
|
|
|
|
|
|
|
|
|
%bcond_with rgw
|
|
|
|
|
%global use_fsal_rgw %{on_off_switch rgw}
|
|
|
|
|
|
|
|
|
|
%bcond_with lustre
|
|
|
|
|
%global use_fsal_lustre %{on_off_switch lustre}
|
|
|
|
|
|
|
|
|
@ -79,14 +82,14 @@
|
|
|
|
|
%global dev_version %{lua: extraver = string.gsub('', '%-', '.'); print(extraver) }
|
|
|
|
|
|
|
|
|
|
Name: nfs-ganesha
|
|
|
|
|
Version: 2.3.0
|
|
|
|
|
Version: 2.3.3
|
|
|
|
|
Release: 1%{?dev_version:%{dev_version}}%{?dist}
|
|
|
|
|
Summary: NFS-Ganesha is a NFS Server running in user space
|
|
|
|
|
Summary: NFS Server running in user space
|
|
|
|
|
Group: Applications/System
|
|
|
|
|
License: LGPLv3+
|
|
|
|
|
Url: https://github.com/nfs-ganesha/nfs-ganesha/wiki
|
|
|
|
|
|
|
|
|
|
Source0: https://github.com/%{name}/%{name}/archive/V%{version}/%{name}-%{version}%{dev_version}.tar.gz
|
|
|
|
|
Source0: https://github.com/%{name}/%{name}/archive/V%{version}/%{name}-%{version}%{dev_version}.tar.gz
|
|
|
|
|
|
|
|
|
|
BuildRequires: cmake
|
|
|
|
|
BuildRequires: bison
|
|
|
|
@ -102,6 +105,11 @@ BuildRequires: libntirpc-devel >= 1.3.1
|
|
|
|
|
%endif
|
|
|
|
|
Requires: dbus
|
|
|
|
|
Requires: nfs-utils
|
|
|
|
|
%if ( 0%{?fedora} ) || ( 0%{?rhel} && 0%{?rhel} >= 6 )
|
|
|
|
|
Requires: rpcbind
|
|
|
|
|
%else
|
|
|
|
|
Requires: portmap
|
|
|
|
|
%endif
|
|
|
|
|
%if %{with_nfsidmap}
|
|
|
|
|
BuildRequires: libnfsidmap-devel
|
|
|
|
|
%else
|
|
|
|
@ -220,14 +228,26 @@ be used with NFS-Ganesha to support GPFS backend
|
|
|
|
|
Summary: The NFS-GANESHA's CEPH FSAL
|
|
|
|
|
Group: Applications/System
|
|
|
|
|
Requires: nfs-ganesha = %{version}-%{release}
|
|
|
|
|
Requires: ceph >= 0.78
|
|
|
|
|
BuildRequires: ceph-devel >= 0.78
|
|
|
|
|
BuildRequires: libcephfs1-devel >= 0.94
|
|
|
|
|
|
|
|
|
|
%description ceph
|
|
|
|
|
This package contains a FSAL shared object to
|
|
|
|
|
be used with NFS-Ganesha to support CEPH
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
# RGW
|
|
|
|
|
%if %{with rgw}
|
|
|
|
|
%package rgw
|
|
|
|
|
Summary: The NFS-GANESHA's Ceph RGW FSAL
|
|
|
|
|
Group: Applications/System
|
|
|
|
|
Requires: nfs-ganesha = %{version}-%{release}
|
|
|
|
|
BuildRequires: librgw2-devel >= 10.2.0
|
|
|
|
|
|
|
|
|
|
%description rgw
|
|
|
|
|
This package contains a FSAL shared object to
|
|
|
|
|
be used with NFS-Ganesha to support Ceph RGW
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
# LUSTRE
|
|
|
|
|
%if %{with lustre}
|
|
|
|
|
%package lustre
|
|
|
|
@ -332,6 +352,7 @@ cd src && %cmake . -DCMAKE_BUILD_TYPE=Debug \
|
|
|
|
|
-DUSE_FSAL_ZFS=NO \
|
|
|
|
|
-DUSE_FSAL_XFS=%{use_fsal_xfs} \
|
|
|
|
|
-DUSE_FSAL_CEPH=%{use_fsal_ceph} \
|
|
|
|
|
-DUSE_FSAL_RGW=%{use_fsal_rgw} \
|
|
|
|
|
-DUSE_FSAL_LUSTRE=%{use_fsal_lustre} \
|
|
|
|
|
-DUSE_FSAL_SHOOK=%{use_fsal_shook} \
|
|
|
|
|
-DUSE_FSAL_GPFS=%{use_fsal_gpfs} \
|
|
|
|
@ -365,17 +386,23 @@ mkdir -p %{buildroot}%{_bindir}
|
|
|
|
|
mkdir -p %{buildroot}%{_sbindir}
|
|
|
|
|
mkdir -p %{buildroot}%{_libdir}/ganesha
|
|
|
|
|
mkdir -p %{buildroot}%{_localstatedir}/run/ganesha
|
|
|
|
|
mkdir -p %{buildroot}%{_libexecdir}/ganesha
|
|
|
|
|
cd src
|
|
|
|
|
install -m 644 config_samples/logrotate_ganesha %{buildroot}%{_sysconfdir}/logrotate.d/ganesha
|
|
|
|
|
install -m 644 scripts/ganeshactl/org.ganesha.nfsd.conf %{buildroot}%{_sysconfdir}/dbus-1/system.d
|
|
|
|
|
install -m 644 config_samples/logrotate_ganesha %{buildroot}%{_sysconfdir}/logrotate.d/ganesha
|
|
|
|
|
install -m 644 scripts/ganeshactl/org.ganesha.nfsd.conf %{buildroot}%{_sysconfdir}/dbus-1/system.d
|
|
|
|
|
install -m 755 scripts/nfs-ganesha-config.sh %{buildroot}%{_libexecdir}/ganesha
|
|
|
|
|
install -m 755 tools/mount.9P %{buildroot}%{_sbindir}/mount.9P
|
|
|
|
|
|
|
|
|
|
install -m 644 config_samples/vfs.conf %{buildroot}%{_sysconfdir}/ganesha
|
|
|
|
|
%if %{with rgw}
|
|
|
|
|
install -m 644 config_samples/rgw.conf %{buildroot}%{_sysconfdir}/ganesha
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%if %{with_systemd}
|
|
|
|
|
mkdir -p %{buildroot}%{_unitdir}
|
|
|
|
|
install -m 644 scripts/systemd/nfs-ganesha.service %{buildroot}%{_unitdir}/nfs-ganesha.service
|
|
|
|
|
install -m 644 scripts/systemd/nfs-ganesha-lock.service %{buildroot}%{_unitdir}/nfs-ganesha-lock.service
|
|
|
|
|
install -m 644 scripts/systemd/nfs-ganesha-config.service %{buildroot}%{_unitdir}/nfs-ganesha-config.service
|
|
|
|
|
install -m 644 scripts/systemd/sysconfig/nfs-ganesha %{buildroot}%{_sysconfdir}/sysconfig/ganesha
|
|
|
|
|
%else
|
|
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/init.d
|
|
|
|
@ -425,6 +452,7 @@ install -m 644 ChangeLog %{buildroot}%{_defaultdocdir}/ganesha
|
|
|
|
|
%if %{with_systemd}
|
|
|
|
|
%systemd_post nfs-ganesha.service
|
|
|
|
|
%systemd_post nfs-ganesha-lock.service
|
|
|
|
|
%systemd_post nfs-ganesha-config.service
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%preun
|
|
|
|
@ -438,6 +466,7 @@ install -m 644 ChangeLog %{buildroot}%{_defaultdocdir}/ganesha
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%{!?_licensedir:%global license %%doc}
|
|
|
|
|
%license src/LICENSE.txt
|
|
|
|
|
%{_bindir}/ganesha.nfsd
|
|
|
|
|
%if ! %{with system_ntirpc}
|
|
|
|
@ -456,10 +485,12 @@ install -m 644 ChangeLog %{buildroot}%{_defaultdocdir}/ganesha
|
|
|
|
|
%{_defaultdocdir}/ganesha/*
|
|
|
|
|
%doc %{_defaultdocdir}/ganesha/ChangeLog
|
|
|
|
|
%dir %{_localstatedir}/run/ganesha
|
|
|
|
|
%{_libexecdir}/ganesha/nfs-ganesha-config.sh
|
|
|
|
|
|
|
|
|
|
%if %{with_systemd}
|
|
|
|
|
%{_unitdir}/nfs-ganesha.service
|
|
|
|
|
%{_unitdir}/nfs-ganesha-lock.service
|
|
|
|
|
%{_unitdir}/nfs-ganesha-config.service
|
|
|
|
|
%else
|
|
|
|
|
%{_sysconfdir}/init.d/nfs-ganesha
|
|
|
|
|
%endif
|
|
|
|
@ -507,6 +538,13 @@ install -m 644 ChangeLog %{buildroot}%{_defaultdocdir}/ganesha
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/ganesha/ceph.conf
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%if %{with rgw}
|
|
|
|
|
%files rgw
|
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
|
%{_libdir}/ganesha/libfsalrgw*
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/ganesha/rgw.conf
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%if %{with lustre}
|
|
|
|
|
%files lustre
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/ganesha/lustre.conf
|
|
|
|
@ -567,6 +605,24 @@ install -m 644 ChangeLog %{buildroot}%{_defaultdocdir}/ganesha
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Mon Aug 15 2016 Kaleb S. KEITHLEY <kkeithle at redhat.com> 2.3.3-1
|
|
|
|
|
- 2.3.3 GA
|
|
|
|
|
|
|
|
|
|
* Mon May 02 2016 Jiffin Tony Thottan <jthottan at redhat.com> 2.3.2-1
|
|
|
|
|
- 2.3.2 GA
|
|
|
|
|
|
|
|
|
|
* Wed Apr 6 2016 Kaleb S. KEITHLEY <kkeithle at redhat.com> 2.3.1-4
|
|
|
|
|
- w/ fsal_gluster, fsal_xfs, fsal_ceph
|
|
|
|
|
|
|
|
|
|
* Wed Mar 30 2016 Kaleb S. KEITHLEY <kkeithle at redhat.com> 2.3.1-3
|
|
|
|
|
- w/ nfs-ganesha-config.service
|
|
|
|
|
|
|
|
|
|
* Wed Mar 16 2016 Kaleb S. KEITHLEY <kkeithle at redhat.com> 2.3.1-2
|
|
|
|
|
- 2.3.1 GA, again
|
|
|
|
|
|
|
|
|
|
* Wed Mar 16 2016 Kaleb S. KEITHLEY <kkeithle at redhat.com> 2.3.1-1
|
|
|
|
|
- 2.3.1 GA
|
|
|
|
|
|
|
|
|
|
* Wed Oct 28 2015 Kaleb S. KEITHLEY <kkeithle at redhat.com> 2.3.0-1
|
|
|
|
|
- 2.3.0 GA
|
|
|
|
|
|
|
|
|
|