2013-11-22 13:26:40 +00:00
|
|
|
|
2014-06-02 06:19:34 +00:00
|
|
|
%global _hardened_build 1
|
2013-12-02 18:19:07 +00:00
|
|
|
|
2015-02-13 18:23:18 +00:00
|
|
|
%if 0%{?fedora} >= 15 || 0%{?rhel} >= 7
|
|
|
|
%global with_nfsidmap 1
|
|
|
|
%else
|
|
|
|
%global with_nfsidmap 0
|
2014-01-02 16:20:03 +00:00
|
|
|
%endif
|
|
|
|
|
2015-02-13 18:23:18 +00:00
|
|
|
%if ( 0%{?fedora} >= 18 || 0%{?rhel} >= 7 )
|
|
|
|
%global with_systemd 1
|
|
|
|
%else
|
|
|
|
%global with_systemd 0
|
2014-10-02 16:14:19 +00:00
|
|
|
%endif
|
2014-01-04 16:21:56 +00:00
|
|
|
|
2015-02-13 18:23:18 +00:00
|
|
|
# Conditionally enable some FSALs, disable others.
|
|
|
|
#
|
|
|
|
# 1. rpmbuild accepts these options (gpfs as example):
|
|
|
|
# --with gpfs
|
|
|
|
# --without gpfs
|
2014-06-02 06:19:34 +00:00
|
|
|
|
2015-02-13 18:23:18 +00:00
|
|
|
%define on_off_switch() %%{?with_%1:ON}%%{!?with_%1:OFF}
|
2014-10-02 15:47:39 +00:00
|
|
|
|
2015-02-13 18:23:18 +00:00
|
|
|
# A few explanation about %%bcond_with and %%bcond_without
|
|
|
|
# /!\ be careful: this syntax can be quite messy
|
|
|
|
# %%bcond_with means you add a "--with" option, default = without this feature
|
|
|
|
# %%bcond_without adds a"--without" so the feature is enabled by default
|
2014-10-02 15:47:39 +00:00
|
|
|
|
2015-02-13 18:23:18 +00:00
|
|
|
#%%bcond_without gpfs
|
|
|
|
%global use_fsal_gpfs OFF
|
2013-11-22 13:26:40 +00:00
|
|
|
|
2015-02-13 18:23:18 +00:00
|
|
|
%bcond_without xfs
|
|
|
|
%global use_fsal_xfs %{on_off_switch xfs}
|
2013-11-22 13:26:40 +00:00
|
|
|
|
2015-02-13 18:23:18 +00:00
|
|
|
%bcond_without ceph
|
|
|
|
%global use_fsal_ceph %{on_off_switch ceph}
|
|
|
|
|
|
|
|
#%%bcond_with lustre
|
|
|
|
%global use_fsal_lustre OFF
|
|
|
|
|
|
|
|
#%%bcond_with shook
|
|
|
|
%global use_fsal_shook OFF
|
|
|
|
|
|
|
|
%bcond_without gluster
|
|
|
|
%global use_fsal_gluster %{on_off_switch gluster}
|
|
|
|
|
|
|
|
#%%bcond_with hpss
|
|
|
|
%global use_fsal_hpss OFF
|
|
|
|
|
|
|
|
#%%bcond_without panfs
|
|
|
|
%global use_fsal_panfs OFF
|
|
|
|
|
|
|
|
#%%bcond_with pt
|
|
|
|
%global use_fsal_pt OFF
|
|
|
|
|
|
|
|
%bcond_with rdma
|
|
|
|
%global use_rdma %{on_off_switch rdma}
|
|
|
|
|
|
|
|
%bcond_without jemalloc
|
|
|
|
|
|
|
|
#%%bcond_with lustre_up
|
|
|
|
%global use_lustre_up OFF
|
|
|
|
|
|
|
|
#%%bcond_with lttng
|
|
|
|
%global use_lttng OFF
|
|
|
|
|
|
|
|
%bcond_without utils
|
|
|
|
%global use_utils %{on_off_switch utils}
|
|
|
|
|
2015-03-30 11:45:15 +00:00
|
|
|
%bcond_without gui_utils
|
|
|
|
%global use_gui_utils %{on_off_switch gui_utils}
|
|
|
|
|
2015-04-20 13:09:55 +00:00
|
|
|
%global dev_version %{lua: extraver = string.gsub('-rc-final', '%-', ''); print(extraver) }
|
2015-02-13 18:23:18 +00:00
|
|
|
|
2015-04-20 14:07:17 +00:00
|
|
|
%global ntirpcname ntirpc
|
|
|
|
%global ntirpcvers 1.2.1
|
2015-04-20 13:09:55 +00:00
|
|
|
%global versiontag 2.2-rc-final
|
2015-02-13 18:23:18 +00:00
|
|
|
|
|
|
|
Name: nfs-ganesha
|
|
|
|
Version: 2.2.0
|
2015-04-20 13:34:31 +00:00
|
|
|
Release: 0.12%{?dev_version:%{dev_version}}%{?dist}
|
2015-02-13 18:23:18 +00:00
|
|
|
Summary: NFS-Ganesha is a NFS Server running in user space
|
|
|
|
Group: Applications/System
|
|
|
|
License: LGPLv3+
|
|
|
|
Url: https://github.com/nfs-ganesha/nfs-ganesha/wiki
|
|
|
|
|
2015-04-20 13:09:55 +00:00
|
|
|
Source0: https://github.com/%{name}/%{name}/archive/V%{versiontag}/%{name}-%{version}rc-final.tar.gz
|
2015-04-20 13:52:28 +00:00
|
|
|
Source1: https://github.com/%{name}/%{ntirpcname}/archive/v%{ntirpcvers}/%{ntirpcname}-%{ntirpcvers}.tar.gz
|
|
|
|
|
|
|
|
# Bundling exception through Fedora 23
|
|
|
|
# https://fedorahosted.org/fpc/ticket/363
|
|
|
|
Provides: bundled(libntirpc)
|
2015-03-23 01:28:54 +00:00
|
|
|
|
2014-01-02 16:20:03 +00:00
|
|
|
%if ( 0%{?rhel} && 0%{?rhel} < 7 )
|
2015-03-15 22:51:55 +00:00
|
|
|
BuildRequires: cmake28
|
2014-01-02 16:20:03 +00:00
|
|
|
%else
|
2015-02-13 18:23:18 +00:00
|
|
|
BuildRequires: cmake
|
|
|
|
%endif
|
|
|
|
BuildRequires: bison flex
|
|
|
|
BuildRequires: flex
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: krb5-devel
|
|
|
|
BuildRequires: dbus-devel
|
|
|
|
BuildRequires: libcap-devel
|
|
|
|
BuildRequires: libblkid-devel
|
|
|
|
BuildRequires: libuuid-devel
|
|
|
|
Requires: dbus
|
2015-03-30 11:45:15 +00:00
|
|
|
Requires: nfs-utils
|
2015-02-13 18:23:18 +00:00
|
|
|
%if %{with_nfsidmap}
|
|
|
|
BuildRequires: libnfsidmap-devel
|
2014-01-02 16:20:03 +00:00
|
|
|
%else
|
2015-02-13 18:23:18 +00:00
|
|
|
BuildRequires: nfs-utils-lib-devel
|
|
|
|
%endif
|
|
|
|
%if %{with rdma}
|
|
|
|
BuildRequires: libmooshika-devel >= 0.6-0
|
|
|
|
%endif
|
|
|
|
%if %{with jemalloc}
|
|
|
|
BuildRequires: jemalloc-devel
|
|
|
|
%endif
|
|
|
|
%if %{with lustre_up}
|
2015-03-15 22:51:55 +00:00
|
|
|
BuildRequires: lcap-devel >= 0.1-0
|
2014-01-02 16:20:03 +00:00
|
|
|
%endif
|
2015-02-13 18:23:18 +00:00
|
|
|
%if %{with_systemd}
|
2015-03-15 22:51:55 +00:00
|
|
|
BuildRequires: systemd
|
|
|
|
Requires(post): systemd
|
2015-02-13 18:23:18 +00:00
|
|
|
Requires(preun): systemd
|
|
|
|
Requires(postun): systemd
|
|
|
|
%else
|
|
|
|
BuildRequires: initscripts
|
2014-10-02 15:47:39 +00:00
|
|
|
%endif
|
2014-03-31 13:40:29 +00:00
|
|
|
|
2015-02-13 18:23:18 +00:00
|
|
|
# Use CMake variables
|
|
|
|
|
2014-03-31 13:40:29 +00:00
|
|
|
%description
|
2015-02-13 18:23:18 +00:00
|
|
|
nfs-ganesha : NFS-GANESHA is a NFS Server running in user space.
|
|
|
|
It comes with various back-end modules (called FSALs) provided as
|
|
|
|
shared objects to support different file systems and name-spaces.
|
|
|
|
|
|
|
|
%package mount-9P
|
|
|
|
Summary: a 9p mount helper
|
|
|
|
Group: Applications/System
|
2015-02-16 13:50:40 +00:00
|
|
|
Requires: nfs-ganesha = %{version}-%{release}
|
2015-02-13 18:23:18 +00:00
|
|
|
|
|
|
|
%description mount-9P
|
|
|
|
This package contains the mount.9P script that clients can use
|
|
|
|
to simplify mounting to NFS-GANESHA. This is a 9p mount helper.
|
|
|
|
|
|
|
|
%package vfs
|
|
|
|
Summary: The NFS-GANESHA's VFS FSAL
|
|
|
|
Group: Applications/System
|
|
|
|
BuildRequires: libattr-devel
|
2015-02-16 13:50:40 +00:00
|
|
|
Requires: nfs-ganesha = %{version}-%{release}
|
2015-02-13 18:23:18 +00:00
|
|
|
|
|
|
|
%description vfs
|
|
|
|
This package contains a FSAL shared object to
|
|
|
|
be used with NFS-Ganesha to support VFS based filesystems
|
|
|
|
|
|
|
|
%package nullfs
|
|
|
|
Summary: The NFS-GANESHA's NULLFS Stackable FSAL
|
|
|
|
Group: Applications/System
|
2015-02-16 13:50:40 +00:00
|
|
|
Requires: nfs-ganesha = %{version}-%{release}
|
2015-02-13 18:23:18 +00:00
|
|
|
|
|
|
|
%description nullfs
|
|
|
|
This package contains a Stackable FSAL shared object to
|
|
|
|
be used with NFS-Ganesha. This is mostly a template for future (more sophisticated) stackable FSALs
|
|
|
|
|
|
|
|
%package proxy
|
|
|
|
Summary: The NFS-GANESHA's PROXY FSAL
|
|
|
|
Group: Applications/System
|
|
|
|
BuildRequires: libattr-devel
|
2015-02-16 13:50:40 +00:00
|
|
|
Requires: nfs-ganesha = %{version}-%{release}
|
2015-02-13 18:23:18 +00:00
|
|
|
|
|
|
|
%description proxy
|
|
|
|
This package contains a FSAL shared object to
|
|
|
|
be used with NFS-Ganesha to support PROXY based filesystems
|
|
|
|
|
|
|
|
%if %{with utils}
|
|
|
|
%package utils
|
|
|
|
Summary: The NFS-GANESHA's util scripts
|
|
|
|
Group: Applications/System
|
2015-03-30 11:45:15 +00:00
|
|
|
%if %{with gui_utils}
|
2015-02-13 18:23:18 +00:00
|
|
|
BuildRequires: PyQt4-devel
|
|
|
|
Requires: PyQt4
|
2015-03-30 11:45:15 +00:00
|
|
|
%endif
|
2015-02-16 13:50:40 +00:00
|
|
|
Requires: nfs-ganesha = %{version}-%{release}, python
|
2015-02-13 18:23:18 +00:00
|
|
|
|
|
|
|
%description utils
|
|
|
|
This package contains utility scripts for managing the NFS-GANESHA server
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if %{with lttng}
|
|
|
|
%package lttng
|
|
|
|
Summary: The NFS-GANESHA's library for use with LTTng
|
|
|
|
Group: Applications/System
|
|
|
|
BuildRequires: lttng-ust-devel >= 2.3
|
2015-02-16 13:50:40 +00:00
|
|
|
Requires: nfs-ganesha = %{version}-%{release}, lttng-tools >= 2.3, lttng-ust >= 2.3
|
2015-02-13 18:23:18 +00:00
|
|
|
|
|
|
|
%description lttng
|
|
|
|
This package contains the libganesha_trace.so library. When preloaded
|
|
|
|
to the ganesha.nfsd server, it makes it possible to trace using LTTng.
|
|
|
|
%endif
|
|
|
|
|
|
|
|
# Option packages start here. use "rpmbuild --with lustre" (or equivalent)
|
|
|
|
# for activating this part of the spec file
|
|
|
|
|
|
|
|
# GPFS
|
|
|
|
%if %{with gpfs}
|
|
|
|
%package gpfs
|
|
|
|
Summary: The NFS-GANESHA's GPFS FSAL
|
|
|
|
Group: Applications/System
|
2015-02-16 13:50:40 +00:00
|
|
|
Requires: nfs-ganesha = %{version}-%{release}
|
2015-02-13 18:23:18 +00:00
|
|
|
|
|
|
|
%description gpfs
|
|
|
|
This package contains a FSAL shared object to
|
|
|
|
be used with NFS-Ganesha to support GPFS backend
|
|
|
|
%endif
|
|
|
|
|
|
|
|
# CEPH
|
|
|
|
%if %{with ceph}
|
|
|
|
%package ceph
|
|
|
|
Summary: The NFS-GANESHA's CEPH FSAL
|
|
|
|
Group: Applications/System
|
|
|
|
Requires: ceph >= 0.78
|
|
|
|
BuildRequires: ceph-devel >= 0.78
|
2015-02-16 13:50:40 +00:00
|
|
|
Requires: nfs-ganesha = %{version}-%{release}
|
2015-02-13 18:23:18 +00:00
|
|
|
|
|
|
|
%description ceph
|
|
|
|
This package contains a FSAL shared object to
|
|
|
|
be used with NFS-Ganesha to support CEPH
|
|
|
|
%endif
|
|
|
|
|
|
|
|
# LUSTRE
|
|
|
|
%if %{with lustre}
|
|
|
|
%package lustre
|
|
|
|
Summary: The NFS-GANESHA's LUSTRE FSAL
|
|
|
|
Group: Applications/System
|
2015-02-16 13:50:40 +00:00
|
|
|
Requires: nfs-ganesha = %{version}-%{release}, lustre
|
2015-02-13 18:23:18 +00:00
|
|
|
BuildRequires: libattr-devel lustre
|
|
|
|
|
|
|
|
%description lustre
|
|
|
|
This package contains a FSAL shared object to
|
|
|
|
be used with NFS-Ganesha to support LUSTRE
|
|
|
|
%endif
|
|
|
|
|
|
|
|
# SHOOK
|
|
|
|
%if %{with shook}
|
|
|
|
%package shook
|
|
|
|
Summary: The NFS-GANESHA's LUSTRE/SHOOK FSAL
|
|
|
|
Group: Applications/System
|
2015-02-16 13:50:40 +00:00
|
|
|
Requires: nfs-ganesha = %{version}-%{release}, lustre, shook-client
|
2015-02-13 18:23:18 +00:00
|
|
|
BuildRequires: libattr-devel lustre shook-devel
|
|
|
|
|
|
|
|
%description shook
|
|
|
|
This package contains a FSAL shared object to
|
|
|
|
be used with NFS-Ganesha to support LUSTRE via SHOOK
|
|
|
|
%endif
|
|
|
|
|
|
|
|
# XFS
|
|
|
|
%if %{with xfs}
|
|
|
|
%package xfs
|
|
|
|
Summary: The NFS-GANESHA's XFS FSAL
|
|
|
|
Group: Applications/System
|
2015-02-16 13:50:40 +00:00
|
|
|
Requires: nfs-ganesha = %{version}-%{release}
|
2015-02-13 18:23:18 +00:00
|
|
|
BuildRequires: libattr-devel xfsprogs-devel
|
|
|
|
|
|
|
|
%description xfs
|
|
|
|
This package contains a shared object to be used with FSAL_VFS
|
|
|
|
to support XFS correctly
|
|
|
|
%endif
|
|
|
|
|
|
|
|
# HPSS
|
|
|
|
%if %{with hpss}
|
|
|
|
%package hpss
|
|
|
|
Summary: The NFS-GANESHA's HPSS FSAL
|
|
|
|
Group: Applications/System
|
2015-02-16 13:50:40 +00:00
|
|
|
Requires: nfs-ganesha = %{version}-%{release}
|
2015-02-13 18:23:18 +00:00
|
|
|
#BuildRequires: hpssfs
|
|
|
|
|
|
|
|
%description hpss
|
|
|
|
This package contains a FSAL shared object to
|
|
|
|
be used with NFS-Ganesha to support HPSS
|
|
|
|
%endif
|
|
|
|
|
|
|
|
# PANFS
|
|
|
|
%if %{with panfs}
|
|
|
|
%package panfs
|
|
|
|
Summary: The NFS-GANESHA's PANFS FSAL
|
|
|
|
Group: Applications/System
|
2015-02-16 13:50:40 +00:00
|
|
|
Requires: nfs-ganesha = %{version}-%{release}
|
2015-02-13 18:23:18 +00:00
|
|
|
|
|
|
|
%description panfs
|
|
|
|
This package contains a FSAL shared object to
|
|
|
|
be used with NFS-Ganesha to support PANFS
|
|
|
|
%endif
|
|
|
|
|
|
|
|
# PT
|
|
|
|
%if %{with pt}
|
|
|
|
%package pt
|
|
|
|
Summary: The NFS-GANESHA's PT FSAL
|
|
|
|
Group: Applications/System
|
2015-02-16 13:50:40 +00:00
|
|
|
Requires: nfs-ganesha = %{version}-%{release}
|
2015-02-13 18:23:18 +00:00
|
|
|
|
|
|
|
%description pt
|
|
|
|
This package contains a FSAL shared object to
|
|
|
|
be used with NFS-Ganesha to support PT
|
|
|
|
%endif
|
|
|
|
|
|
|
|
# GLUSTER
|
|
|
|
%if %{with gluster}
|
|
|
|
%package gluster
|
|
|
|
Summary: The NFS-GANESHA's GLUSTER FSAL
|
|
|
|
Group: Applications/System
|
2015-02-16 13:50:40 +00:00
|
|
|
Requires: nfs-ganesha = %{version}-%{release}
|
2015-02-13 18:23:18 +00:00
|
|
|
BuildRequires: glusterfs-api-devel >= 3.5.1
|
|
|
|
BuildRequires: libattr-devel
|
|
|
|
|
|
|
|
%description gluster
|
|
|
|
This package contains a FSAL shared object to
|
|
|
|
be used with NFS-Ganesha to support Gluster
|
|
|
|
%endif
|
2013-11-22 13:26:40 +00:00
|
|
|
|
|
|
|
%prep
|
2015-04-20 14:07:17 +00:00
|
|
|
%setup -q -n %{name}-%{versiontag} -a 1
|
2013-11-22 13:26:40 +00:00
|
|
|
rm -rf contrib/libzfswrapper
|
2015-04-20 14:07:17 +00:00
|
|
|
mv %{ntirpcname}-%{ntirpcvers}/* src/libntirpc/
|
2013-11-22 13:26:40 +00:00
|
|
|
|
|
|
|
%build
|
2014-01-02 16:20:03 +00:00
|
|
|
%if ( 0%{?rhel} && 0%{?rhel} < 7 )
|
|
|
|
%global cmake %cmake28
|
|
|
|
%endif
|
2015-02-13 18:23:18 +00:00
|
|
|
%cmake ./src -DCMAKE_BUILD_TYPE=Debug \
|
|
|
|
-DBUILD_CONFIG=rpmbuild \
|
|
|
|
-DUSE_FSAL_ZFS=NO \
|
|
|
|
-DUSE_FSAL_XFS=%{use_fsal_xfs} \
|
|
|
|
-DUSE_FSAL_CEPH=%{use_fsal_ceph} \
|
|
|
|
-DUSE_FSAL_LUSTRE=%{use_fsal_lustre} \
|
|
|
|
-DUSE_FSAL_SHOOK=%{use_fsal_shook} \
|
|
|
|
-DUSE_FSAL_GPFS=%{use_fsal_gpfs} \
|
|
|
|
-DUSE_FSAL_HPSS=%{use_fsal_hpss} \
|
|
|
|
-DUSE_FSAL_PANFS=%{use_fsal_panfs} \
|
|
|
|
-DUSE_FSAL_PT=%{use_fsal_pt} \
|
|
|
|
-DUSE_FSAL_GLUSTER=%{use_fsal_gluster} \
|
|
|
|
-DUSE_9P_RDMA=%{use_rdma} \
|
|
|
|
-DUSE_FSAL_LUSTRE_UP=%{use_lustre_up} \
|
|
|
|
-DUSE_LTTNG=%{use_lttng} \
|
|
|
|
-DUSE_ADMIN_TOOLS=%{use_utils} \
|
2015-03-30 11:45:15 +00:00
|
|
|
-DUSE_GUI_ADMIN_TOOLS=%{use_gui_utils} \
|
2015-02-13 18:23:18 +00:00
|
|
|
-DUSE_FSAL_VFS=ON \
|
|
|
|
-DUSE_FSAL_PROXY=ON \
|
|
|
|
-DUSE_DBUS=ON \
|
|
|
|
-DUSE_9P=ON \
|
|
|
|
-DDISTNAME_HAS_GIT_DATA=OFF \
|
|
|
|
-DCMAKE_INSTALL_PREFIX= \
|
|
|
|
%if %{with jemalloc}
|
|
|
|
-DALLOCATOR=jemalloc
|
2014-10-02 15:47:39 +00:00
|
|
|
%endif
|
2015-02-13 18:23:18 +00:00
|
|
|
|
|
|
|
make %{?_smp_mflags} || make %{?_smp_mflags} || make
|
2013-11-22 13:26:40 +00:00
|
|
|
|
|
|
|
%install
|
2015-02-13 18:23:18 +00:00
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/ganesha/
|
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/dbus-1/system.d
|
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/sysconfig
|
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/logrotate.d
|
|
|
|
mkdir -p %{buildroot}%{_bindir}
|
|
|
|
mkdir -p %{buildroot}%{_sbindir}
|
|
|
|
mkdir -p %{buildroot}%{_libdir}/ganesha
|
|
|
|
mkdir -p %{buildroot}%{_localstatedir}/run/ganesha
|
|
|
|
install -m 644 src/config_samples/logrotate_ganesha %{buildroot}%{_sysconfdir}/logrotate.d/ganesha
|
|
|
|
install -m 644 src/scripts/ganeshactl/org.ganesha.nfsd.conf %{buildroot}%{_sysconfdir}/dbus-1/system.d
|
|
|
|
install -m 755 src/tools/mount.9P %{buildroot}%{_sbindir}/mount.9P
|
|
|
|
|
|
|
|
install -m 644 src/config_samples/vfs.conf %{buildroot}%{_sysconfdir}/ganesha
|
|
|
|
|
|
|
|
%if %{with_systemd}
|
|
|
|
mkdir -p %{buildroot}%{_unitdir}
|
|
|
|
install -m 644 src/scripts/systemd/nfs-ganesha.service %{buildroot}%{_unitdir}/nfs-ganesha.service
|
|
|
|
install -m 644 src/scripts/systemd/nfs-ganesha-lock.service %{buildroot}%{_unitdir}/nfs-ganesha-lock.service
|
|
|
|
install -m 644 src/scripts/systemd/sysconfig/nfs-ganesha %{buildroot}%{_sysconfdir}/sysconfig/ganesha
|
2014-01-02 16:20:03 +00:00
|
|
|
%else
|
2015-02-13 18:23:18 +00:00
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/init.d
|
2015-04-13 04:58:39 +00:00
|
|
|
install -m 755 scripts/init.d/nfs-ganesha %{buildroot}%{_sysconfdir}/init.d/nfs-ganesha
|
|
|
|
install -m 644 scripts/init.d/sysconfig/ganesha %{buildroot}%{_sysconfdir}/sysconfig/ganesha
|
2015-02-13 18:23:18 +00:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%if %{with utils} && 0%{?rhel} && 0%{?rhel} <= 6
|
|
|
|
%{!?__python2: %global __python2 /usr/bin/python2}
|
|
|
|
%{!?python2_sitelib: %global python2_sitelib %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
|
|
|
|
%{!?python2_sitearch: %global python2_sitearch %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if %{with pt}
|
|
|
|
install -m 755 src/ganesha.pt.init %{buildroot}%{_sysconfdir}/init.d/nfs-ganesha-pt
|
|
|
|
install -m 644 src/config_samples/pt.conf %{buildroot}%{_sysconfdir}/ganesha
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if %{with xfs}
|
|
|
|
install -m 644 src/config_samples/xfs.conf %{buildroot}%{_sysconfdir}/ganesha
|
2014-01-02 16:20:03 +00:00
|
|
|
%endif
|
2015-02-13 18:23:18 +00:00
|
|
|
|
|
|
|
%if %{with ceph}
|
|
|
|
install -m 644 src/config_samples/ceph.conf %{buildroot}%{_sysconfdir}/ganesha
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if %{with lustre}
|
|
|
|
install -m 755 src/config_samples/lustre.conf %{buildroot}%{_sysconfdir}/ganesha
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if %{with gpfs}
|
|
|
|
install -m 644 src/config_samples/gpfs.conf %{buildroot}%{_sysconfdir}/ganesha
|
|
|
|
install -m 644 src/config_samples/gpfs.ganesha.nfsd.conf %{buildroot}%{_sysconfdir}/ganesha
|
|
|
|
install -m 644 src/config_samples/gpfs.ganesha.main.conf %{buildroot}%{_sysconfdir}/ganesha
|
|
|
|
install -m 644 src/config_samples/gpfs.ganesha.log.conf %{buildroot}%{_sysconfdir}/ganesha
|
|
|
|
install -m 644 src/config_samples/gpfs.ganesha.exports.conf %{buildroot}%{_sysconfdir}/ganesha
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if %{with utils}
|
|
|
|
pushd .
|
|
|
|
cd scripts/ganeshactl/
|
|
|
|
python setup.py --quiet install --root=%{buildroot}
|
|
|
|
popd
|
|
|
|
install -m 755 Protocols/NLM/sm_notify.ganesha %{buildroot}%{_bindir}/sm_notify.ganesha
|
|
|
|
%endif
|
|
|
|
|
|
|
|
make DESTDIR=%{buildroot}/usr install
|
|
|
|
rm -f %{buildroot}/usr/bin/libntirpc.a
|
|
|
|
mv %{buildroot}/usr%{_sysconfdir}/ganesha/ganesha.conf %{buildroot}%{_sysconfdir}/ganesha/
|
2013-11-22 13:26:40 +00:00
|
|
|
|
|
|
|
%post
|
2015-02-13 18:23:18 +00:00
|
|
|
%if %{with_systemd}
|
2013-11-22 13:26:40 +00:00
|
|
|
%systemd_post nfs-ganesha.service
|
2015-02-13 18:23:18 +00:00
|
|
|
%systemd_post nfs-ganesha-lock.service
|
2014-01-02 16:20:03 +00:00
|
|
|
%endif
|
2013-11-22 13:26:40 +00:00
|
|
|
|
|
|
|
%preun
|
2015-02-13 18:23:18 +00:00
|
|
|
%if %{with_systemd}
|
|
|
|
%systemd_preun nfs-ganesha-lock.service
|
2014-01-02 16:20:03 +00:00
|
|
|
%endif
|
2013-11-22 13:26:40 +00:00
|
|
|
|
|
|
|
%postun
|
2015-02-13 18:23:18 +00:00
|
|
|
%if %{with_systemd}
|
|
|
|
%systemd_postun_with_restart nfs-ganesha-lock.service
|
2014-01-02 16:20:03 +00:00
|
|
|
%endif
|
2013-11-22 13:26:40 +00:00
|
|
|
|
|
|
|
%files
|
2015-02-13 18:23:18 +00:00
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_bindir}/ganesha.nfsd
|
|
|
|
#%%{_bindir}/libntirpc.a
|
|
|
|
%config %{_sysconfdir}/dbus-1/system.d/org.ganesha.nfsd.conf
|
|
|
|
%config(noreplace) %{_sysconfdir}/sysconfig/ganesha
|
|
|
|
%config(noreplace) %{_sysconfdir}/logrotate.d/ganesha
|
|
|
|
%dir %{_sysconfdir}/ganesha/
|
|
|
|
%config(noreplace) %{_sysconfdir}/ganesha/ganesha.conf
|
|
|
|
%dir %{_defaultdocdir}/ganesha/
|
|
|
|
%{_defaultdocdir}/ganesha/*
|
|
|
|
%dir %{_localstatedir}/run/ganesha
|
|
|
|
|
|
|
|
%if %{with_systemd}
|
|
|
|
%{_unitdir}/nfs-ganesha.service
|
|
|
|
%{_unitdir}/nfs-ganesha-lock.service
|
2014-01-02 16:20:03 +00:00
|
|
|
%else
|
2015-02-13 18:23:18 +00:00
|
|
|
%{_sysconfdir}/init.d/nfs-ganesha
|
2014-01-02 16:20:03 +00:00
|
|
|
%endif
|
2015-02-13 18:23:18 +00:00
|
|
|
|
|
|
|
%files mount-9P
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_sbindir}/mount.9P
|
|
|
|
|
|
|
|
|
|
|
|
%files vfs
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_libdir}/ganesha/libfsalvfs*
|
|
|
|
%config(noreplace) %{_sysconfdir}/ganesha/vfs.conf
|
|
|
|
|
|
|
|
|
|
|
|
%files nullfs
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_libdir}/ganesha/libfsalnull*
|
|
|
|
|
|
|
|
|
|
|
|
%files proxy
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_libdir}/ganesha/libfsalproxy*
|
|
|
|
|
|
|
|
# Optional packages
|
|
|
|
%if %{with gpfs}
|
|
|
|
%files gpfs
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_libdir}/ganesha/libfsalgpfs*
|
|
|
|
%config(noreplace) %{_sysconfdir}/ganesha/gpfs.conf
|
|
|
|
%config(noreplace) %{_sysconfdir}/ganesha/gpfs.ganesha.nfsd.conf
|
|
|
|
%config(noreplace) %{_sysconfdir}/ganesha/gpfs.ganesha.main.conf
|
|
|
|
%config(noreplace) %{_sysconfdir}/ganesha/gpfs.ganesha.log.conf
|
|
|
|
%config(noreplace) %{_sysconfdir}/ganesha/gpfs.ganesha.exports.conf
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if %{with xfs}
|
|
|
|
%files xfs
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_libdir}/ganesha/libfsalxfs*
|
|
|
|
%config(noreplace) %{_sysconfdir}/ganesha/xfs.conf
|
2014-10-02 15:47:39 +00:00
|
|
|
%endif
|
2013-11-22 13:26:40 +00:00
|
|
|
|
2015-02-13 18:23:18 +00:00
|
|
|
%if %{with ceph}
|
|
|
|
%files ceph
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_libdir}/ganesha/libfsalceph*
|
|
|
|
%config(noreplace) %{_sysconfdir}/ganesha/ceph.conf
|
2014-03-31 13:40:29 +00:00
|
|
|
%endif
|
|
|
|
|
2015-02-13 18:23:18 +00:00
|
|
|
%if %{with lustre}
|
|
|
|
%files lustre
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%config(noreplace) %{_sysconfdir}/ganesha/lustre.conf
|
|
|
|
%{_libdir}/ganesha/libfsallustre*
|
2014-05-10 10:24:30 +00:00
|
|
|
%endif
|
|
|
|
|
2015-02-13 18:23:18 +00:00
|
|
|
%if %{with shook}
|
|
|
|
%files shook
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_libdir}/ganesha/libfsalshook*
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if %{with gluster}
|
|
|
|
%files gluster
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_libdir}/ganesha/libfsalgluster*
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if %{with hpss}
|
|
|
|
%files hpss
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_libdir}/ganesha/libfsalhpss*
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if %{with panfs}
|
|
|
|
%files panfs
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_libdir}/ganesha/libfsalpanfs*
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if %{with pt}
|
|
|
|
%files pt
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_libdir}/ganesha/libfsalpt*
|
|
|
|
%config(noreplace) %{_sysconfdir}/init.d/nfs-ganesha-pt
|
|
|
|
%config(noreplace) %{_sysconfdir}/ganesha/pt.conf
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if %{with lttng}
|
|
|
|
%files lttng
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_libdir}/ganesha/libganesha_trace*
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if %{with utils}
|
|
|
|
%files utils
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{python2_sitelib}/Ganesha/*
|
|
|
|
%{python2_sitelib}/ganeshactl-*-info
|
2015-03-30 11:45:15 +00:00
|
|
|
%if %{with gui_utils}
|
2015-02-13 18:23:18 +00:00
|
|
|
%{_bindir}/ganesha-admin
|
|
|
|
%{_bindir}/manage_clients
|
|
|
|
%{_bindir}/manage_exports
|
|
|
|
%{_bindir}/manage_logger
|
|
|
|
%{_bindir}/ganeshactl
|
2015-03-30 11:45:15 +00:00
|
|
|
%endif
|
2015-02-13 18:23:18 +00:00
|
|
|
%{_bindir}/fake_recall
|
|
|
|
%{_bindir}/get_clientids
|
|
|
|
%{_bindir}/grace_period
|
|
|
|
%{_bindir}/purge_gids
|
|
|
|
%{_bindir}/ganesha_stats
|
|
|
|
%{_bindir}/sm_notify.ganesha
|
|
|
|
%{_bindir}/ganesha_mgr
|
|
|
|
%endif
|
2013-11-22 13:26:40 +00:00
|
|
|
|
|
|
|
%changelog
|
2015-04-20 13:34:31 +00:00
|
|
|
* Mon Apr 20 2015 Kaleb S. KEITHLEY <kkeithle at redhat.com> 2.2.0-0.12rc-final
|
|
|
|
- 2.2.0-0.12rc-final
|
2015-04-20 13:09:55 +00:00
|
|
|
|
2015-04-13 04:58:39 +00:00
|
|
|
* Mon Apr 13 2015 Kaleb S. KEITHLEY <kkeithle at redhat.com> 2.2.0-0.11rc8
|
|
|
|
- 2.2.0-0.11rc8
|
|
|
|
|
2015-04-06 05:13:05 +00:00
|
|
|
* Mon Apr 6 2015 Kaleb S. KEITHLEY <kkeithle at redhat.com> 2.2.0-0.10rc7
|
|
|
|
- 2.2.0-0.10rc7
|
2015-03-30 11:45:15 +00:00
|
|
|
* Mon Mar 30 2015 Kaleb S. KEITHLEY <kkeithle at redhat.com> 2.2.0-0.9rc6
|
|
|
|
- 2.2.0-0.9rc6
|
|
|
|
|
2015-03-23 01:28:54 +00:00
|
|
|
* Sun Mar 22 2015 Kaleb S. KEITHLEY <kkeithle at redhat.com> 2.2.0-0.8rc5
|
|
|
|
- 2.2.0-0.8rc5
|
|
|
|
|
2015-03-17 18:31:48 +00:00
|
|
|
* Tue Mar 17 2015 Kaleb S. KEITHLEY <kkeithle at redhat.com> 2.2.0-0.7rc4
|
|
|
|
- ntirpc-1.2.1.tar.gz
|
|
|
|
|
2015-03-17 14:25:37 +00:00
|
|
|
* Tue Mar 17 2015 Kaleb S. KEITHLEY <kkeithle at redhat.com> 2.2.0-0.6rc4
|
|
|
|
- updated ntirpc-1.2.0.tar.gz
|
|
|
|
|
2015-03-15 22:51:55 +00:00
|
|
|
* Sun Mar 15 2015 Kaleb S. KEITHLEY <kkeithle at redhat.com> 2.2.0-0.5rc4
|
2015-03-23 01:28:54 +00:00
|
|
|
- 2.2.0-0.5rc4
|
2015-03-15 22:51:55 +00:00
|
|
|
|
2015-02-23 19:13:49 +00:00
|
|
|
* Mon Feb 23 2015 Kaleb S. KEITHLEY <kkeithle at redhat.com> 2.2.0-0.4rc3
|
|
|
|
- 2.2.0-0.4rc3
|
|
|
|
|
2015-02-16 13:50:40 +00:00
|
|
|
* Mon Feb 16 2015 Kaleb S. KEITHLEY <kkeithle at redhat.com> 2.2.0-0.3rc2
|
|
|
|
- subpackage Requires: nfs-ganesha = %{version}-%{release}
|
|
|
|
|
2015-02-16 12:56:22 +00:00
|
|
|
* Mon Feb 16 2015 Kaleb S. KEITHLEY <kkeithle at redhat.com> 2.2.0-0.2rc2
|
|
|
|
- 2.2.0-0.2rc2
|
|
|
|
|
2015-02-13 18:23:18 +00:00
|
|
|
* Fri Feb 13 2015 Kaleb S. KEITHLEY <kkeithle at redhat.com> 2.2.0-0.1rc1
|
|
|
|
- 2.2.0-0.1rc1
|
|
|
|
- nfs-ganesha.spec based on upstream
|
|
|
|
|
2015-02-12 17:15:16 +00:00
|
|
|
* Thu Feb 12 2015 Kaleb S. KEITHLEY <kkeithle at redhat.com> 2.1.0-14
|
|
|
|
- Fedora 23/rawhide build fixes
|
2015-02-12 17:18:26 +00:00
|
|
|
- Ceph restored in EPEL
|
2015-02-12 17:15:16 +00:00
|
|
|
|
2015-01-19 14:07:51 +00:00
|
|
|
* Mon Jan 19 2015 Kaleb S. KEITHLEY <kkeithle at redhat.com> 2.1.0-13
|
2015-01-19 14:04:03 +00:00
|
|
|
- Ceph retired from EPEL 7
|
|
|
|
|
2014-11-06 12:23:59 +00:00
|
|
|
* Thu Nov 6 2014 Kaleb S. KEITHLEY <kkeithle at redhat.com> 2.1.0-12
|
|
|
|
- rebuild after libnfsidmap symbol version revert
|
|
|
|
|
2014-10-29 12:00:21 +00:00
|
|
|
* Wed Oct 29 2014 Kaleb S. KEITHLEY <kkeithle at redhat.com> 2.1.0-11
|
|
|
|
- PyQt -> PyQt4 typo
|
|
|
|
|
2014-10-28 11:36:57 +00:00
|
|
|
* Mon Oct 27 2014 Kaleb S. KEITHLEY <kkeithle at redhat.com> 2.1.0-10
|
|
|
|
- use upstream init.d script
|
|
|
|
|
2014-10-02 16:14:19 +00:00
|
|
|
* Thu Oct 2 2014 Kaleb S. KEITHLEY <kkeithle at redhat.com> 2.1.0-9
|
|
|
|
- restore exclusion of gluster gfapi on rhel
|
|
|
|
|
2014-10-02 15:47:39 +00:00
|
|
|
* Thu Oct 2 2014 Kaleb S. KEITHLEY <kkeithle at redhat.com> 2.1.0-8
|
|
|
|
- install /etc/dbus-1/system.d/org.ganesha.nfsd.conf
|
|
|
|
- build and install admin tools
|
|
|
|
|
2014-09-29 14:39:19 +00:00
|
|
|
* Mon Sep 29 2014 Kaleb S. KEITHLEY <kkeithle at redhat.com> 2.1.0-7
|
|
|
|
- install /etc/sysconfig/nfs-ganesha file
|
|
|
|
|
2014-08-29 11:27:00 +00:00
|
|
|
* Fri Aug 29 2014 Kaleb S. KEITHLEY <kkeithle at redhat.com>
|
|
|
|
- Ceph FSAL typo, #1135437
|
|
|
|
|
2014-08-17 11:46:49 +00:00
|
|
|
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.0-6
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
|
|
2014-07-24 14:09:41 +00:00
|
|
|
* Thu Jul 24 2014 Kaleb S. KEITHLEY <kkeithle at redhat.com> 2.1.0-5
|
|
|
|
- use upstream nfs-ganesha.service
|
|
|
|
|
2014-07-11 21:22:09 +00:00
|
|
|
* Fri Jul 11 2014 Kaleb S. KEITHLEY <kkeithle at redhat.com> 2.1.0-4
|
|
|
|
- keep fsal .so files, implementation now uses them
|
|
|
|
|
2014-07-01 15:23:25 +00:00
|
|
|
* Tue Jul 1 2014 Kaleb S. KEITHLEY <kkeithle at redhat.com> 2.1.0-3
|
|
|
|
- static libuid2grp
|
|
|
|
|
2014-07-01 11:06:55 +00:00
|
|
|
* Tue Jul 1 2014 Kaleb S. KEITHLEY <kkeithle at redhat.com> 2.1.0-2
|
|
|
|
- add libuid2grp.so
|
|
|
|
|
2014-06-30 12:14:07 +00:00
|
|
|
* Mon Jun 30 2014 Kaleb S. KEITHLEY <kkeithle at redhat.com> 2.1.0-1
|
|
|
|
- nfs-ganesha-2.1.0 GA
|
|
|
|
|
2014-06-07 12:44:43 +00:00
|
|
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.0-10
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
2014-06-02 06:19:34 +00:00
|
|
|
* Mon Jun 2 2014 Kaleb S. KEITHLEY <kkeithle at redhat.com> 2.0.0-9
|
|
|
|
- Ceph FSAL enabled with ceph-0.80
|
|
|
|
|
2014-05-22 11:12:56 +00:00
|
|
|
* Wed May 21 2014 Kaleb S. KEITHLEY <kkeithle at redhat.com> 2.0.0-8
|
|
|
|
- getdents()->getdents64(), struct dirent -> struct dirent64
|
|
|
|
|
2014-05-10 13:57:04 +00:00
|
|
|
* Sat May 10 2014 Kaleb S. KEITHLEY <kkeithle at redhat.com>
|
|
|
|
- and exclude libfsalceph
|
|
|
|
|
2014-05-10 13:49:48 +00:00
|
|
|
* Sat May 10 2014 Kaleb S. KEITHLEY <kkeithle at redhat.com>
|
|
|
|
- exclude libfsalgluster correctly
|
|
|
|
|
2014-05-10 10:24:30 +00:00
|
|
|
* Fri May 9 2014 Kaleb S. KEITHLEY <kkeithle at redhat.com> 2.0.0-7
|
|
|
|
- Ceph FSAL, in a subpackage, (but requires ceph >= 0.78)
|
|
|
|
|
2014-03-31 13:40:29 +00:00
|
|
|
* Mon Mar 31 2014 Kaleb S. KEITHLEY <kkeithle at redhat.com>
|
|
|
|
- GlusterFS FSAL in a subpackage
|
|
|
|
- EPEL7 has jemalloc as of 2014-02-25
|
|
|
|
|
2014-01-21 19:35:41 +00:00
|
|
|
* Tue Jan 21 2014 Kaleb S. KEITHLEY <kkeithle at redhat.com>
|
|
|
|
- sussed out github archive so as to allow correct Source0
|
|
|
|
|
2014-01-17 19:06:53 +00:00
|
|
|
* Fri Jan 17 2014 Kaleb S. KEITHLEY <kkeithle at redhat.com> 2.0.0-6
|
|
|
|
- EPEL7 and xfsprogs
|
|
|
|
|
2014-01-17 14:38:29 +00:00
|
|
|
* Fri Jan 17 2014 Kaleb S. KEITHLEY <kkeithle at redhat.com> 2.0.0-5
|
|
|
|
- EPEL7
|
|
|
|
|
2014-01-06 15:06:27 +00:00
|
|
|
* Mon Jan 6 2014 Kaleb S. KEITHLEY <kkeithle at redhat.com> 2.0.0-4
|
|
|
|
- with glusterfs-api(-devel) >= 3.4.2
|
|
|
|
|
2014-01-04 16:21:56 +00:00
|
|
|
* Sat Jan 4 2014 Kaleb S. KEITHLEY <kkeithle at redhat.com> 2.0.0-3
|
|
|
|
- with glusterfs-api
|
|
|
|
|
2014-01-02 16:20:03 +00:00
|
|
|
* Thu Jan 2 2014 Kaleb S. KEITHLEY <kkeithle at redhat.com> 2.0.0-2
|
|
|
|
- Build on RHEL6. Add sample init.d script
|
|
|
|
|
2013-12-11 01:18:46 +00:00
|
|
|
* Wed Dec 11 2013 Jim Lieb <lieb@sea-troll.net> - 2.0.0-1
|
|
|
|
- Update to V2.0.0 release
|
|
|
|
|
2013-11-25 17:58:01 +00:00
|
|
|
* Mon Nov 25 2013 Kaleb S. KEITHLEY <kkeithle at redhat.com> 2.0.0-0.2.rcfinal
|
|
|
|
- update to RC-final
|
2013-11-25 18:01:01 +00:00
|
|
|
|
|
|
|
* Fri Nov 22 2013 Kaleb S. KEITHLEY <kkeithle at redhat.com> 2.0.0-0.1.rc5
|
|
|
|
- Initial commit
|