2018-03-14 18:57:49 +01:00
|
|
|
#
|
|
|
|
# spec file for package openafs
|
|
|
|
#
|
2021-01-11 18:54:53 +01:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2018-03-14 18:57:49 +01:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2019-09-29 17:08:44 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2018-03-14 18:57:49 +01:00
|
|
|
#
|
|
|
|
# needssslcertforbuild
|
|
|
|
|
|
|
|
|
|
|
|
#Compat macro for new _fillupdir macro introduced in Nov 2017
|
|
|
|
%if ! %{defined _fillupdir}
|
2018-03-28 08:39:12 +02:00
|
|
|
%define _fillupdir /var/adm/fillup-templates
|
2018-03-14 18:57:49 +01:00
|
|
|
%endif
|
2019-07-28 20:35:37 +02:00
|
|
|
%define _lto_cflags %{nil}
|
2018-03-14 18:57:49 +01:00
|
|
|
|
|
|
|
#
|
|
|
|
# TUNABLES
|
|
|
|
#
|
|
|
|
|
2018-04-03 09:19:18 +02:00
|
|
|
# package-wide definitions here
|
2018-03-14 18:57:49 +01:00
|
|
|
|
|
|
|
# build authlibs
|
|
|
|
%define build_authlibs 1
|
|
|
|
|
|
|
|
# build kernel modules
|
|
|
|
%define build_kernel_modules 1
|
|
|
|
|
|
|
|
# run regen to create new configure script
|
|
|
|
%define run_regen 1
|
|
|
|
|
2021-01-11 18:54:53 +01:00
|
|
|
# flag for firewalld, only required for SLE-12
|
|
|
|
%if 0%{?sle_version} <= 120500 && !0%{?is_opensuse}
|
|
|
|
%define have_firewalld 0
|
|
|
|
%else
|
|
|
|
%define have_firewalld 1
|
|
|
|
%endif
|
|
|
|
|
2018-03-14 18:57:49 +01:00
|
|
|
#
|
2018-04-03 09:19:18 +02:00
|
|
|
# package internal directories
|
2018-03-14 18:57:49 +01:00
|
|
|
#
|
|
|
|
%define afslogsdir /var/log/openafs
|
|
|
|
%define afsconfdir /etc/openafs/server
|
|
|
|
%define viceetcdir /etc/openafs
|
|
|
|
%define vicecachedir /var/cache/openafs
|
|
|
|
%define afslocaldir /var/lib/openafs
|
|
|
|
|
2021-01-11 18:54:53 +01:00
|
|
|
%ifarch ppc64le ppc64 arm
|
2018-04-03 09:19:18 +02:00
|
|
|
%define build_kernel_modules 0
|
|
|
|
%endif
|
|
|
|
|
2018-03-14 18:57:49 +01:00
|
|
|
# used for %setup only
|
|
|
|
# leave upstream tar-balls untouched for integrity checks.
|
2021-01-17 04:29:07 +01:00
|
|
|
%define upstream_version git-43ef1f2a5d80aa1c3f5b4831ada8e776ac0c7d13
|
2018-03-14 18:57:49 +01:00
|
|
|
|
|
|
|
Name: openafs
|
|
|
|
|
2021-01-17 04:29:07 +01:00
|
|
|
Version: 1.8.7
|
2018-03-14 18:57:49 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: OpenAFS Distributed File System
|
|
|
|
License: IPL-1.0
|
|
|
|
Group: System/Filesystems
|
2020-04-10 10:25:55 +02:00
|
|
|
URL: http://www.openafs.org/
|
|
|
|
|
2020-08-17 16:35:19 +02:00
|
|
|
#Source0: http://www.openafs.org/dl/openafs/%{upstream_version}/openafs-%{upstream_version}-src.tar.bz2
|
|
|
|
#Source1: http://www.openafs.org/dl/openafs/%{upstream_version}/openafs-%{upstream_version}-doc.tar.bz2
|
|
|
|
#Source2: http://www.openafs.org/dl/openafs/%{upstream_version}/openafs-%{upstream_version}-src.tar.bz2.md5
|
|
|
|
#Source3: http://www.openafs.org/dl/openafs/%{upstream_version}/openafs-%{upstream_version}-doc.tar.bz2.md5
|
|
|
|
#Source4: http://www.openafs.org/dl/openafs/%{upstream_version}/openafs-%{upstream_version}-src.tar.bz2.sha256
|
|
|
|
#Source5: http://www.openafs.org/dl/openafs/%{upstream_version}/openafs-%{upstream_version}-doc.tar.bz2.sha256
|
|
|
|
Source0: openafs-%{upstream_version}-src.tar.bz2
|
|
|
|
Source1: openafs-%{upstream_version}-doc.tar.bz2
|
|
|
|
Source2: openafs-%{upstream_version}-src.tar.bz2.md5
|
|
|
|
Source3: openafs-%{upstream_version}-doc.tar.bz2.md5
|
|
|
|
Source4: openafs-%{upstream_version}-src.tar.bz2.sha256
|
|
|
|
Source5: openafs-%{upstream_version}-doc.tar.bz2.sha256
|
|
|
|
|
2018-03-14 18:57:49 +01:00
|
|
|
Source10: README.SUSE.openafs
|
|
|
|
Source15: logrotate.openafs-server
|
2019-03-14 09:42:07 +01:00
|
|
|
Source18: RELNOTES-%{upstream_version}
|
2018-03-14 18:57:49 +01:00
|
|
|
Source19: ChangeLog
|
|
|
|
Source20: kernel-source.build-modules.sh
|
|
|
|
Source23: openafs-client.service
|
2020-10-13 18:00:02 +02:00
|
|
|
Source24: openafs-client.service.allow_unsupported
|
2018-03-14 18:57:49 +01:00
|
|
|
Source25: openafs-server.service
|
|
|
|
Source26: openafs-fuse-client.service
|
2019-05-02 17:05:02 +02:00
|
|
|
Source27: sysconfig.openafs-client
|
|
|
|
Source28: sysconfig.openafs-server
|
|
|
|
Source29: sysconfig.openafs-fuse-client
|
2018-03-14 18:57:49 +01:00
|
|
|
Source30: preamble
|
2020-10-13 18:00:02 +02:00
|
|
|
Source40: afs3-bos.xml
|
|
|
|
Source41: afs3-callback.xml
|
|
|
|
Source42: afs3-fileserver.xml
|
|
|
|
Source43: afs3-prserver.xml
|
|
|
|
Source44: afs3-rmtsys.xml
|
|
|
|
Source45: afs3-update.xml
|
|
|
|
Source46: afs3-vlserver.xml
|
|
|
|
Source47: afs3-volser.xml
|
2018-03-14 18:57:49 +01:00
|
|
|
Source55: openafs.SuidCells
|
|
|
|
Source56: openafs.CellAlias
|
|
|
|
Source57: openafs.ThisCell
|
|
|
|
Source58: openafs.cacheinfo
|
|
|
|
Source99: openafs.changes
|
2019-01-21 17:15:53 +01:00
|
|
|
# PATCH-SUSE-SPECIFIC use proper directory layout
|
|
|
|
Patch3: dir_layout.patch
|
2018-06-27 21:41:18 +02:00
|
|
|
# PATCH-FIX-UPSTREAM make configure detect ncurses 6 correctly
|
2018-05-07 06:15:49 +02:00
|
|
|
Patch4: openafs-1.8.x.ncurses6.patch
|
2018-03-14 18:57:49 +01:00
|
|
|
|
|
|
|
#
|
|
|
|
# GENERAL BuildRequires and Requires
|
|
|
|
#
|
|
|
|
|
|
|
|
BuildRequires: automake
|
|
|
|
BuildRequires: bison
|
|
|
|
BuildRequires: coreutils
|
|
|
|
BuildRequires: fdupes
|
2021-01-11 18:54:53 +01:00
|
|
|
%if %{have_firewalld}
|
2020-10-13 18:00:02 +02:00
|
|
|
BuildRequires: firewall-macros
|
2021-01-11 18:54:53 +01:00
|
|
|
%endif
|
2018-03-14 18:57:49 +01:00
|
|
|
BuildRequires: flex
|
2018-06-27 21:41:18 +02:00
|
|
|
BuildRequires: fuse-devel
|
2018-03-14 18:57:49 +01:00
|
|
|
BuildRequires: git
|
2018-04-19 18:50:20 +02:00
|
|
|
BuildRequires: krb5-devel
|
2018-06-27 21:41:18 +02:00
|
|
|
BuildRequires: libtirpc-devel
|
2018-03-14 18:57:49 +01:00
|
|
|
BuildRequires: libtool
|
|
|
|
BuildRequires: ncurses-devel
|
2018-06-27 21:41:18 +02:00
|
|
|
BuildRequires: pkg-config
|
2018-03-14 18:57:49 +01:00
|
|
|
|
|
|
|
%if 0%{?suse_version} < 1210
|
|
|
|
Requires(post): %insserv_prereq
|
|
|
|
%endif
|
|
|
|
Requires(post): %fillup_prereq
|
|
|
|
|
|
|
|
%if %{build_kernel_modules}
|
2018-06-28 11:17:29 +02:00
|
|
|
BuildRequires: %{kernel_module_package_buildreqs}
|
2018-03-14 18:57:49 +01:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%description
|
|
|
|
AFS is a cross-platform distributed file system product pioneered at
|
|
|
|
Carnegie Mellon University and supported and developed as a product by
|
|
|
|
Transarc Corporation (now IBM Pittsburgh Labs). It offers a
|
|
|
|
client-server architecture for file sharing, providing location
|
|
|
|
independence, scalability, and transparent migration capabilities for
|
|
|
|
data.
|
|
|
|
|
|
|
|
In addition, among its features are authentication, encryption,
|
|
|
|
caching, disconnected operations, replication for higher availability
|
|
|
|
and load balancing, and ACLs.
|
|
|
|
|
|
|
|
%package server
|
|
|
|
Summary: OpenAFS File System Server
|
|
|
|
Group: System/Filesystems
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
|
|
|
|
%description server
|
|
|
|
AFS is a cross-platform distributed file system product pioneered at
|
|
|
|
Carnegie Mellon University and supported and developed as a product by
|
|
|
|
Transarc Corporation (now IBM Pittsburgh Labs). It offers a
|
|
|
|
client-server architecture for file sharing, providing location
|
|
|
|
independence, scalability, and transparent migration capabilities for
|
|
|
|
data.
|
|
|
|
|
|
|
|
In addition, among its features are authentication, encryption,
|
|
|
|
caching, disconnected operations, replication for higher availability
|
|
|
|
and load balancing, and ACLs. This package contains the static
|
|
|
|
libraries and header files needed to develop applications for OpenAFS.
|
|
|
|
|
|
|
|
%if %{build_authlibs}
|
|
|
|
%package authlibs
|
|
|
|
Summary: OpenAFS authentication shared libraries
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
|
|
|
|
%description authlibs
|
|
|
|
The AFS distributed filesystem. AFS is a distributed filesystem
|
|
|
|
allowing cross-platform sharing of files among multiple computers.
|
|
|
|
Facilities are provided for access control, authentication, backup and
|
|
|
|
administrative management.
|
|
|
|
|
|
|
|
This package provides a shared version of libafsrpc and libafsauthent.
|
|
|
|
None of the programs included with OpenAFS currently use these shared
|
|
|
|
libraries; however, third-party software that wishes to perform AFS
|
|
|
|
authentication may link against them.
|
|
|
|
|
|
|
|
%package authlibs-devel
|
|
|
|
Summary: OpenAFS shared library development
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: %{name}-authlibs = %{version}
|
|
|
|
Requires: %{name}-devel = %{version}
|
|
|
|
|
|
|
|
%description authlibs-devel
|
|
|
|
The AFS distributed filesystem. AFS is a distributed filesystem
|
|
|
|
allowing cross-platform sharing of files among multiple computers.
|
|
|
|
Facilities are provided for access control, authentication, backup and
|
|
|
|
administrative management.
|
|
|
|
|
|
|
|
This package includes the static versions of libafsrpc and
|
|
|
|
libafsauthent, and symlinks required for building against the dynamic
|
|
|
|
libraries.
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: OpenAFS Static Libraries and Header Files
|
|
|
|
Group: Development/Libraries/Other
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
AFS is a cross-platform distributed file system product pioneered at
|
|
|
|
Carnegie Mellon University and supported and developed as a product by
|
|
|
|
Transarc Corporation (now IBM Pittsburgh Labs). It offers a
|
|
|
|
client-server architecture for file sharing, providing location
|
|
|
|
independence, scalability, and transparent migration capabilities for
|
|
|
|
data.
|
|
|
|
|
|
|
|
In addition, among its features are authentication, encryption,
|
|
|
|
caching, disconnected operations, replication for higher availability
|
|
|
|
and load balancing, and ACLs. This package contains the OpenAFS server.
|
|
|
|
|
|
|
|
%package kernel-source
|
|
|
|
Summary: OpenAFS Kernel Module source tree
|
|
|
|
Group: System/Filesystems
|
|
|
|
Requires: bison
|
|
|
|
Requires: flex
|
|
|
|
Requires: gcc
|
|
|
|
Requires: kernel-devel
|
|
|
|
Provides: openafs-kernel = %{version}
|
|
|
|
|
|
|
|
%description kernel-source
|
|
|
|
The AFS distributed filesystem. AFS is a distributed filesystem
|
|
|
|
allowing cross-platform sharing of files among multiple computers.
|
|
|
|
Facilities are provided for access control, authentication, backup and
|
|
|
|
administrative management.
|
|
|
|
|
|
|
|
This package provides the source code to build your own AFS kernel
|
|
|
|
module.
|
|
|
|
|
|
|
|
%if %{build_kernel_modules}
|
|
|
|
%package KMP
|
|
|
|
Summary: OpenAFS Distributed File System - kernel module
|
|
|
|
Group: System/Kernel
|
|
|
|
|
2018-06-28 11:17:29 +02:00
|
|
|
%kernel_module_package -x lockdep um pae -p %{S:30}
|
2018-03-14 18:57:49 +01:00
|
|
|
|
|
|
|
%description KMP
|
|
|
|
This package contains the kernel module for OpenAFS. For details see
|
|
|
|
the openafs package.
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%package fuse_client
|
|
|
|
Summary: OpenAFS FUSE File System Client
|
|
|
|
Group: System/Filesystems
|
|
|
|
Conflicts: %{name}-client
|
2018-04-06 16:29:11 +02:00
|
|
|
Requires: %{name} = %{version}
|
2018-03-14 18:57:49 +01:00
|
|
|
|
|
|
|
%description fuse_client
|
|
|
|
AFS is a cross-platform distributed file system product pioneered at
|
|
|
|
Carnegie Mellon University and supported and developed as a product by
|
|
|
|
Transarc Corporation (now IBM Pittsburgh Labs). It offers a
|
|
|
|
client-server architecture for file sharing, providing location
|
|
|
|
independence, scalability, and transparent migration capabilities for
|
|
|
|
data.
|
|
|
|
|
|
|
|
This client is using the EXPERIMENTAL FUSE interface on LINUX.
|
|
|
|
It does not offer authentication etc.
|
|
|
|
|
|
|
|
%package client
|
|
|
|
Summary: OpenAFS File System Client
|
|
|
|
Group: System/Filesystems
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
Requires: %{name}-kmp
|
2019-04-30 12:37:47 +02:00
|
|
|
Requires: krb5-client
|
2018-03-14 18:57:49 +01:00
|
|
|
|
|
|
|
%description client
|
|
|
|
AFS is a cross-platform distributed file system product pioneered at
|
|
|
|
Carnegie Mellon University and supported and developed as a product by
|
|
|
|
Transarc Corporation (now IBM Pittsburgh Labs). It offers a
|
|
|
|
client-server architecture for file sharing, providing location
|
|
|
|
independence, scalability, and transparent migration capabilities for
|
|
|
|
data.
|
|
|
|
|
|
|
|
In addition, among its features are authentication, encryption,
|
|
|
|
caching, disconnected operations, replication for higher availability
|
|
|
|
and load balancing, and ACLs. This package contains the OpenAFS client.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
|
|
|
: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
|
|
|
|
: @@@
|
|
|
|
: @@@ package-name: %{name}
|
|
|
|
: @@@ file-layout: fsh
|
2018-03-22 08:40:27 +01:00
|
|
|
: @@@ lib dir: %{_libdir}
|
2018-03-14 18:57:49 +01:00
|
|
|
: @@@ libexec dir: %{libexecdir}
|
2018-03-22 08:40:27 +01:00
|
|
|
: @@@ bin dir: %{_bindir}
|
|
|
|
: @@@ sbin dir: %{_sbindir}
|
2018-03-14 18:57:49 +01:00
|
|
|
: @@@ include dir: %{includedir}
|
2018-03-22 08:40:27 +01:00
|
|
|
: @@@ sysconf dir: %{_sysconfdir}
|
|
|
|
: @@@ man dir: %{_mandir}
|
2018-03-14 18:57:49 +01:00
|
|
|
: @@@ build modules: %{build_kernel_modules}
|
2018-06-28 11:17:29 +02:00
|
|
|
: @@@ architecture: %{_arch}
|
2018-03-14 18:57:49 +01:00
|
|
|
: @@@ target cpu: %{_target_cpu}
|
|
|
|
: @@@
|
|
|
|
: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
|
|
|
|
|
|
|
|
for src_file in %{S:0} %{S:1}; do
|
|
|
|
if [ "`md5sum $src_file | awk '{print $1}'`" != "`cat $src_file.md5 | awk '{print $1}'`" ]; then
|
|
|
|
echo "ERROR: MD5-Integrity check for $src_file failed.";
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
if [ "`sha256sum $src_file | awk '{print $1}'`" != "`cat $src_file.sha256 | awk '{print $1}'`" ]; then
|
|
|
|
echo "ERROR: SHA256-Integrity check for $src_file failed.";
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
|
|
|
%setup -q -n openafs-%{upstream_version} -T -b 0 -b 1
|
2019-01-21 17:15:53 +01:00
|
|
|
%patch3 -p1
|
2019-04-30 14:46:43 +02:00
|
|
|
%patch4 -p1
|
2018-03-14 18:57:49 +01:00
|
|
|
|
2019-04-30 14:46:43 +02:00
|
|
|
./regen.sh
|
2018-03-14 18:57:49 +01:00
|
|
|
|
|
|
|
%build
|
2018-04-03 09:19:18 +02:00
|
|
|
# architecture specific settings
|
2018-03-28 08:39:12 +02:00
|
|
|
sysbase=%{_arch}
|
2018-04-03 09:19:18 +02:00
|
|
|
|
2018-03-14 18:57:49 +01:00
|
|
|
%ifarch ppc
|
2018-04-03 09:19:18 +02:00
|
|
|
perl -pi -e 's,^(XCFLAGS.*),\1 -fPIC,' src/config/Makefile.ppc_linux24.in
|
|
|
|
%endif
|
|
|
|
%ifarch ppc64 ppc64le
|
|
|
|
sysbase=ppc64
|
|
|
|
export LDFLAGS="$LDFLAGS -m64"
|
2018-03-14 18:57:49 +01:00
|
|
|
%endif
|
2021-01-11 18:54:53 +01:00
|
|
|
%ifarch arm
|
2018-04-03 09:19:18 +02:00
|
|
|
sysbase=arm
|
2018-03-14 18:57:49 +01:00
|
|
|
%endif
|
2018-05-07 06:15:49 +02:00
|
|
|
%ifarch aarch64
|
|
|
|
sysbase=arm64
|
2018-10-01 11:34:36 +02:00
|
|
|
%define _arch arm64
|
2018-05-07 06:15:49 +02:00
|
|
|
%endif
|
2018-03-14 18:57:49 +01:00
|
|
|
%ifarch s390x
|
2018-04-03 09:19:18 +02:00
|
|
|
sysbase=s390
|
2018-03-14 18:57:49 +01:00
|
|
|
%endif
|
|
|
|
%ifarch x86_64
|
2018-04-03 09:19:18 +02:00
|
|
|
sysbase=amd64
|
|
|
|
perl -pi -e 's,^(XCFLAGS.*),\1 -fPIC,' src/config/Makefile.amd64_linux24.in
|
|
|
|
perl -pi -e 's,^(XLIBS.*),\1 -lresolv,' src/config/Makefile.amd64_linux24.in
|
2018-03-14 18:57:49 +01:00
|
|
|
%endif
|
2018-04-03 09:19:18 +02:00
|
|
|
|
2018-03-14 18:57:49 +01:00
|
|
|
afs_sysname=${sysbase}_linux26
|
|
|
|
|
|
|
|
RPM_OPT_FLAGS=`echo ${RPM_OPT_FLAGS} | sed s/-D_FORTIFY_SOURCE=2//`
|
2020-07-01 12:46:52 +02:00
|
|
|
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing -fPIC -fcommon"
|
2018-03-14 18:57:49 +01:00
|
|
|
|
|
|
|
export KRB5LIBS='-lcom_err -lkrb5'
|
|
|
|
export PATH_KRB5_CONFIG=%{krb5_config}
|
|
|
|
|
2018-03-22 08:40:27 +01:00
|
|
|
%configure \
|
2018-03-28 08:39:12 +02:00
|
|
|
--disable-transarc-paths \
|
|
|
|
--disable-pam \
|
|
|
|
--disable-strip-binaries \
|
|
|
|
--includedir=%{_includedir}/openafs \
|
|
|
|
--sysconfdir=%{_sysconfdir} \
|
|
|
|
--mandir=%{_mandir} \
|
|
|
|
--with-afs-sysname=$afs_sysname \
|
|
|
|
--disable-kernel-module
|
2018-03-14 18:57:49 +01:00
|
|
|
|
|
|
|
make CCFLAGS="$CFLAGS" XCFLAGS="$CFLAGS" PAM_CFLAGS="$CFLAGS" KOPTS="$CFLAGS" all_nolibafs
|
|
|
|
make CCFLAGS="$CFLAGS" XCFLAGS="$CFLAGS" PAM_CFLAGS="$CFLAGS" KOPTS="$CFLAGS" only_libafs_tree
|
|
|
|
|
|
|
|
# the test suite need a configured KDC
|
|
|
|
#make -C src/tests all
|
|
|
|
|
|
|
|
# Kernel-module
|
|
|
|
|
|
|
|
%if %{build_kernel_modules}
|
|
|
|
mkdir obj
|
|
|
|
|
|
|
|
for flavor in %flavors_to_build; do
|
|
|
|
rm -rf obj/$flavor
|
|
|
|
cp -a libafs_tree obj/$flavor
|
|
|
|
pushd obj/$flavor
|
2018-09-12 14:46:35 +02:00
|
|
|
find . -name "*.c" -exec sed -i '/MODULE_LICENSE(/a MODULE_INFO(retpoline, "Y");' "{}" "+"
|
2018-06-27 21:41:18 +02:00
|
|
|
./configure --with-linux-kernel-build=/usr/src/linux-obj/%{_target_cpu}/$flavor --with-linux-kernel-headers=/usr/src/linux \
|
2018-03-28 08:39:12 +02:00
|
|
|
--disable-transarc-paths
|
2018-09-12 12:25:00 +02:00
|
|
|
export EXTRA_CFLAGS='-DVERSION=\"%version\"'
|
|
|
|
export LINUX_MAKE_ARCH="ARCH=%{_arch}"
|
2018-03-14 18:57:49 +01:00
|
|
|
make
|
|
|
|
popd
|
|
|
|
done
|
2021-01-11 18:54:53 +01:00
|
|
|
%endif # build_kernel_modules
|
2018-03-14 18:57:49 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
|
|
|
|
#
|
|
|
|
# install build binaries using make
|
|
|
|
|
2018-03-28 08:39:12 +02:00
|
|
|
make DESTDIR=%{buildroot} install_nolibafs
|
2018-03-14 18:57:49 +01:00
|
|
|
|
|
|
|
#
|
|
|
|
# man-pages
|
|
|
|
|
|
|
|
OLD_PWD=`pwd`
|
|
|
|
cd doc/man-pages
|
2018-03-22 08:40:27 +01:00
|
|
|
%make_install
|
2018-03-14 18:57:49 +01:00
|
|
|
cd $OLD_PWD
|
|
|
|
|
|
|
|
#
|
|
|
|
# create directories
|
2018-03-22 08:40:27 +01:00
|
|
|
mkdir -p %{buildroot}/%_unitdir
|
|
|
|
mkdir -p %{buildroot}/%{afslogsdir}/old
|
|
|
|
mkdir -p %{buildroot}/%{_fillupdir}
|
|
|
|
mkdir -p %{buildroot}/%{vicecachedir}
|
|
|
|
mkdir -p %{buildroot}/%{viceetcdir}
|
2018-03-28 08:39:12 +02:00
|
|
|
mkdir -p %{buildroot}%{_datadir}/openafs/C
|
2018-03-22 08:40:27 +01:00
|
|
|
mkdir -p %{buildroot}/%{afsconfdir}
|
|
|
|
mkdir -p %{buildroot}/%{afslocaldir}
|
2018-04-03 09:19:18 +02:00
|
|
|
mkdir -p %{buildroot}/%{_sbindir}
|
2018-03-14 18:57:49 +01:00
|
|
|
|
|
|
|
#
|
|
|
|
# client
|
2018-03-22 08:40:27 +01:00
|
|
|
cp -a src/afsd/CellServDB %{buildroot}/%{viceetcdir}/CellServDB
|
|
|
|
cp -a %{S:55} %{buildroot}/%{viceetcdir}/SuidCells
|
|
|
|
cp -a %{S:56} %{buildroot}/%{viceetcdir}/CellAlias
|
|
|
|
cp -a %{S:57} %{buildroot}/%{viceetcdir}/ThisCell
|
|
|
|
cp -a %{S:58} %{buildroot}/%{viceetcdir}/cacheinfo
|
2018-03-28 08:39:12 +02:00
|
|
|
cp -a src/afs/afszcm.cat %{buildroot}%{_datadir}/openafs/C
|
2018-03-22 08:40:27 +01:00
|
|
|
install -m 644 %{S:27} %{buildroot}/%{_fillupdir}/sysconfig.openafs-client
|
2020-10-13 18:00:02 +02:00
|
|
|
%if 0%{?sle_version} > 150000
|
|
|
|
install -m 644 %{S:24} %{buildroot}/%_unitdir/openafs-client.service
|
|
|
|
%else
|
2018-03-22 08:40:27 +01:00
|
|
|
install -m 644 %{S:23} %{buildroot}/%_unitdir
|
2020-10-13 18:00:02 +02:00
|
|
|
%endif
|
2018-04-03 09:19:18 +02:00
|
|
|
ln -s %{_sbindir}/service %{buildroot}/%{_sbindir}/rcopenafs-client
|
2018-03-14 18:57:49 +01:00
|
|
|
|
|
|
|
#
|
|
|
|
# fuse client package
|
2018-03-22 08:40:27 +01:00
|
|
|
install -m 644 %{S:29} %{buildroot}/%{_fillupdir}/sysconfig.openafs-fuse-client
|
|
|
|
install -m 644 %{S:26} %{buildroot}/%_unitdir
|
2018-03-28 08:39:12 +02:00
|
|
|
ln -s %{_sbindir}/service %{buildroot}/%{_sbindir}/rcopenafs-fuse-client
|
2018-03-14 18:57:49 +01:00
|
|
|
|
|
|
|
#
|
|
|
|
# server
|
2018-03-22 08:40:27 +01:00
|
|
|
install -m 644 %{S:28} %{buildroot}/%{_fillupdir}/sysconfig.openafs-server
|
|
|
|
install -m 644 %{S:25} %{buildroot}/%_unitdir
|
2018-03-28 08:39:12 +02:00
|
|
|
ln -s %{_sbindir}/service %{buildroot}/%{_sbindir}/rcopenafs-server
|
|
|
|
|
2018-03-14 18:57:49 +01:00
|
|
|
#
|
|
|
|
# kernel-source
|
2018-03-22 08:40:27 +01:00
|
|
|
mkdir -p %{buildroot}/usr/src/kernel-modules/openafs
|
2018-03-14 18:57:49 +01:00
|
|
|
chmod -R o-w src/libafs
|
|
|
|
chmod -R o-w libafs_tree
|
2018-03-22 08:40:27 +01:00
|
|
|
cp -a libafs_tree %{buildroot}/usr/src/kernel-modules/openafs
|
|
|
|
install -m 755 %{S:20} %{buildroot}/usr/src/kernel-modules/openafs/build-modules.sh
|
|
|
|
install -m 644 LICENSE %{buildroot}/usr/src/kernel-modules/openafs/LICENSE
|
2018-03-14 18:57:49 +01:00
|
|
|
|
|
|
|
# KMP
|
|
|
|
%if %{build_kernel_modules}
|
2018-03-28 08:39:12 +02:00
|
|
|
export INSTALL_MOD_PATH=%{buildroot}
|
|
|
|
export INSTALL_MOD_DIR=updates
|
2018-03-14 18:57:49 +01:00
|
|
|
|
2018-03-28 08:39:12 +02:00
|
|
|
for flavor in %flavors_to_build; do
|
2018-06-28 11:17:29 +02:00
|
|
|
make -C /usr/src/linux-obj/%{_arch}/$flavor %{?linux_make_arch} modules_install \
|
2018-03-28 08:39:12 +02:00
|
|
|
M=$PWD/`find obj/$flavor/ -name MODLOAD-\* -type d`
|
|
|
|
done
|
2018-03-14 18:57:49 +01:00
|
|
|
%endif
|
|
|
|
|
|
|
|
#
|
|
|
|
# main package
|
|
|
|
cp -a %{S:10} README.SUSE
|
|
|
|
cp -a %{S:18} RELNOTES
|
|
|
|
cp -a %{S:19} ChangeLog
|
2018-03-22 08:40:27 +01:00
|
|
|
mkdir -p %{buildroot}/etc/ld.so.conf.d
|
2020-06-16 21:03:57 +02:00
|
|
|
echo %{_libdir}/openafs > %{buildroot}/etc/ld.so.conf.d/openafs.conf
|
2018-03-14 18:57:49 +01:00
|
|
|
|
|
|
|
# move some bin to sbin
|
2018-03-22 08:40:27 +01:00
|
|
|
mv %{buildroot}/%{_bindir}/asetkey %{buildroot}/%{_sbindir}/asetkey
|
|
|
|
mv %{buildroot}/%{_bindir}/bos %{buildroot}/%{_sbindir}/bos
|
|
|
|
mv %{buildroot}/%{_bindir}/akeyconvert %{buildroot}/%{_sbindir}/akeyconvert
|
|
|
|
mv %{buildroot}/%{_bindir}/udebug %{buildroot}/%{_sbindir}/udebug
|
2018-03-14 18:57:49 +01:00
|
|
|
|
2018-03-28 08:39:12 +02:00
|
|
|
# avoid conflicts with other packages by adding the prefix afs_ to filenames
|
|
|
|
mv %{buildroot}%{_bindir}/scout %{buildroot}%{_bindir}/afs_scout
|
|
|
|
cat %{buildroot}/%{_mandir}/man1/scout.1 | sed 's/\<scout\>/afs_scout/g' > %{buildroot}/%{_mandir}/man1/afs_scout.1
|
|
|
|
rm %{buildroot}/%{_mandir}/man1/scout.1
|
|
|
|
mv %{buildroot}%{_sbindir}/backup %{buildroot}%{_sbindir}/afs_backup
|
|
|
|
OLD_PWD=`pwd`
|
|
|
|
cd %{buildroot}/%{_mandir}/man8/
|
|
|
|
for f in $(ls backup*); do
|
|
|
|
cat $f | sed 's/\<backup\>/afs_backup/g' > afs_"$f"
|
|
|
|
rm $f
|
|
|
|
done
|
|
|
|
cd $OLD_PWD
|
2018-03-14 18:57:49 +01:00
|
|
|
|
2018-04-06 16:29:11 +02:00
|
|
|
# create manpage for afsd.fuse as a real file
|
|
|
|
rm %{buildroot}/%{_mandir}/man8/afsd.fuse.8
|
|
|
|
cp -p %{buildroot}/%{_mandir}/man8/afsd.8 %{buildroot}/%{_mandir}/man8/afsd.fuse.8
|
|
|
|
|
2018-03-22 08:40:27 +01:00
|
|
|
# move %%{_libdir}/afs-stuff to %%{_libdir}/openafs
|
|
|
|
mv %{buildroot}/%{_libdir}/afs/* %{buildroot}/%{_libdir}/openafs
|
|
|
|
mv %{buildroot}/%{_libdir}/*.* %{buildroot}/%{_libdir}/openafs
|
|
|
|
rm -rf %{buildroot}/%{_libdir}/afs
|
2018-03-14 18:57:49 +01:00
|
|
|
|
2020-10-13 18:00:02 +02:00
|
|
|
# firewalld
|
|
|
|
|
2021-01-11 18:54:53 +01:00
|
|
|
%if %{have_firewalld}
|
2020-10-13 18:00:02 +02:00
|
|
|
mkdir -p %{buildroot}%{_prefix}/lib/firewalld/services/
|
|
|
|
install -D -m 644 %{S:40} %{buildroot}%{_prefix}/lib/firewalld/services/
|
|
|
|
install -D -m 644 %{S:41} %{buildroot}%{_prefix}/lib/firewalld/services/
|
|
|
|
install -D -m 644 %{S:42} %{buildroot}%{_prefix}/lib/firewalld/services/
|
|
|
|
install -D -m 644 %{S:43} %{buildroot}%{_prefix}/lib/firewalld/services/
|
|
|
|
install -D -m 644 %{S:44} %{buildroot}%{_prefix}/lib/firewalld/services/
|
|
|
|
install -D -m 644 %{S:45} %{buildroot}%{_prefix}/lib/firewalld/services/
|
|
|
|
install -D -m 644 %{S:46} %{buildroot}%{_prefix}/lib/firewalld/services/
|
|
|
|
install -D -m 644 %{S:47} %{buildroot}%{_prefix}/lib/firewalld/services/
|
2021-01-11 18:54:53 +01:00
|
|
|
%endif
|
2020-10-13 18:00:02 +02:00
|
|
|
|
2018-03-14 18:57:49 +01:00
|
|
|
#
|
|
|
|
# general cleanup
|
|
|
|
#
|
|
|
|
|
2018-03-28 08:39:12 +02:00
|
|
|
# we supposedly don't need this on linux
|
|
|
|
rm %{buildroot}/%{_sbindir}/rmtsysd
|
|
|
|
|
2018-03-14 18:57:49 +01:00
|
|
|
%if %{build_authlibs} == 0
|
2018-03-28 08:39:12 +02:00
|
|
|
rm %{buildroot}/%{_libdir}/libafsauthent.so.*
|
|
|
|
rm %{buildroot}/%{_libdir}/libafsrpc.so.*
|
|
|
|
rm %{buildroot}/%{_libdir}/libkopenafs.so.*
|
|
|
|
rm %{buildroot}/%{_libdir}/libafsauthent.so
|
|
|
|
rm %{buildroot}/%{_libdir}/libafsrpc.so
|
|
|
|
rm %{buildroot}/%{_libdir}/libkopenafs.so
|
2018-03-14 18:57:49 +01:00
|
|
|
%endif
|
|
|
|
|
|
|
|
# remove all static libraries
|
2018-03-22 08:40:27 +01:00
|
|
|
find %{buildroot} -type f -name "*.a" -delete
|
2018-03-14 18:57:49 +01:00
|
|
|
|
2018-03-28 08:39:12 +02:00
|
|
|
# remove unused man pages
|
|
|
|
for x in dlog symlink symlink_list symlink_make symlink_remove; do
|
|
|
|
rm %{buildroot}/%{_mandir}/man1/${x}.1
|
|
|
|
done
|
2018-04-19 18:50:20 +02:00
|
|
|
for x in rmtsysd xfs_size_check aklog_dynamic_auth; do
|
2018-03-28 08:39:12 +02:00
|
|
|
rm %{buildroot}/%{_mandir}/man8/${x}.8
|
|
|
|
done
|
|
|
|
|
|
|
|
# compress man pages
|
|
|
|
OLD_PWD=`pwd`
|
|
|
|
for d in %{buildroot}%{_mandir}/man*; do
|
|
|
|
cd $d
|
|
|
|
for f in *; do
|
|
|
|
if [ -h $f ]; then
|
|
|
|
mv $f $f.gz
|
|
|
|
elif [ -f $f ];then
|
|
|
|
gzip -9 $f
|
|
|
|
else
|
|
|
|
echo "Unknown thing to compress : $f"
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
done
|
|
|
|
cd $OLD_PWD
|
|
|
|
|
2018-04-16 19:13:02 +02:00
|
|
|
# replace duplicates by symlinks
|
|
|
|
%fdupes -s %{buildroot}/usr
|
2018-04-06 16:29:11 +02:00
|
|
|
|
2018-03-14 18:57:49 +01:00
|
|
|
#
|
|
|
|
# main
|
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%post kernel-source
|
|
|
|
echo To install the kernel-module, do:
|
|
|
|
echo cd /usr/src/kernel-modules/openafs
|
|
|
|
echo sh ./build-modules.sh build
|
|
|
|
echo sh ./build-modules.sh install
|
|
|
|
|
|
|
|
#
|
|
|
|
# fuse client
|
|
|
|
|
|
|
|
%pre fuse_client
|
2018-04-03 09:19:18 +02:00
|
|
|
%service_add_pre openafs-fuse-client.service
|
|
|
|
|
|
|
|
%preun fuse_client
|
|
|
|
%service_del_preun openafs-fuse-client.service
|
|
|
|
%{stop_on_removal}
|
2018-03-14 18:57:49 +01:00
|
|
|
|
|
|
|
%post fuse_client
|
2018-04-06 16:29:11 +02:00
|
|
|
if [ ! -d /afs ]; then
|
|
|
|
mkdir /afs
|
|
|
|
fi
|
2018-03-14 18:57:49 +01:00
|
|
|
%{fillup_only -n openafs-fuse-client}
|
2018-04-03 09:19:18 +02:00
|
|
|
%service_add_post openafs-fuse-client.service
|
2018-03-14 18:57:49 +01:00
|
|
|
/sbin/ldconfig
|
|
|
|
|
|
|
|
if [ "x$1" = "x" ]; then
|
2018-03-28 08:39:12 +02:00
|
|
|
my_operation=0
|
2018-03-14 18:57:49 +01:00
|
|
|
else
|
2018-03-28 08:39:12 +02:00
|
|
|
my_operation=$1
|
2018-03-14 18:57:49 +01:00
|
|
|
fi
|
|
|
|
|
|
|
|
if [ $my_operation -gt 1 ]; then
|
|
|
|
echo Not stopping the possibly running client.
|
|
|
|
echo You must restart the client to put the upgrade into effect.
|
|
|
|
else
|
|
|
|
echo This is the experimental FUSE implementation of the openafs-client
|
|
|
|
echo Please configure your cell like with the in-kernel openafs-client
|
|
|
|
echo authentication etc. is not implemented yet in this version.
|
|
|
|
fi
|
|
|
|
|
|
|
|
%postun fuse_client
|
2018-04-03 09:19:18 +02:00
|
|
|
%service_del_postun openafs-fuse-client.service
|
2018-04-06 16:29:11 +02:00
|
|
|
if [ -d /afs ]; then
|
|
|
|
echo make sure to remove directory /afs if unwanted.
|
|
|
|
fi
|
2018-03-14 18:57:49 +01:00
|
|
|
/sbin/ldconfig
|
|
|
|
|
|
|
|
#
|
|
|
|
# client
|
|
|
|
|
|
|
|
%pre client
|
|
|
|
%service_add_pre openafs-client.service
|
|
|
|
|
|
|
|
%post client
|
|
|
|
if [ ! -d /afs ]; then
|
|
|
|
mkdir /afs
|
|
|
|
fi
|
|
|
|
/sbin/ldconfig
|
|
|
|
%{fillup_only -n openafs-client}
|
|
|
|
%service_add_post openafs-client.service
|
2021-01-11 18:54:53 +01:00
|
|
|
%if %{have_firewalld}
|
2020-10-13 18:00:02 +02:00
|
|
|
%firewalld_reload
|
2021-01-11 18:54:53 +01:00
|
|
|
%endif
|
2018-03-14 18:57:49 +01:00
|
|
|
|
|
|
|
if [ "x$1" = "x" ]; then
|
2018-03-28 08:39:12 +02:00
|
|
|
my_operation=0
|
2018-03-14 18:57:49 +01:00
|
|
|
else
|
2018-03-28 08:39:12 +02:00
|
|
|
my_operation=$1
|
2018-03-14 18:57:49 +01:00
|
|
|
fi
|
|
|
|
if [ $my_operation -gt 1 ]; then
|
|
|
|
echo Not stopping the possibly running client.
|
|
|
|
echo You must restart the client to put the upgrade into effect.
|
|
|
|
else
|
|
|
|
echo For configuring the client, please check /etc/sysconfig/openafs-client
|
|
|
|
echo and/or follow the instructions found on http://www.openafs.org how to install an openafs-client.
|
|
|
|
fi
|
|
|
|
|
|
|
|
%preun client
|
|
|
|
%{stop_on_removal}
|
|
|
|
%service_del_preun openafs-client.service
|
|
|
|
|
|
|
|
%postun client
|
|
|
|
if [ -d /afs ]; then
|
2018-03-28 08:39:12 +02:00
|
|
|
echo make sure to remove directory /afs if unwanted.
|
2018-03-14 18:57:49 +01:00
|
|
|
fi
|
|
|
|
/sbin/ldconfig
|
|
|
|
%service_del_postun openafs-client.service
|
|
|
|
|
|
|
|
#
|
|
|
|
# server
|
|
|
|
|
|
|
|
%pre server
|
|
|
|
%service_add_pre openafs-server.service
|
|
|
|
|
|
|
|
%post server
|
|
|
|
/sbin/ldconfig
|
|
|
|
%{fillup_only -n openafs-server}
|
|
|
|
%service_add_post openafs-server.service
|
|
|
|
|
2019-04-30 14:46:43 +02:00
|
|
|
if [ "$FIRST_ARG" -gt 1 ]; then
|
|
|
|
# update no new install
|
2018-03-14 18:57:49 +01:00
|
|
|
echo Not stopping the possibly running services.
|
|
|
|
echo You must restart the service to put the upgrade into effect.
|
2019-04-30 14:46:43 +02:00
|
|
|
if [ -d /var/openafs ]; then
|
|
|
|
echo To upgrade, stop the server, copy the contents of /var/openafs to /var/lib/openafs,
|
|
|
|
echo remove the empty directory /var/openafs and then start the server again.
|
|
|
|
fi
|
2018-03-14 18:57:49 +01:00
|
|
|
else
|
|
|
|
echo For configuring the server, please check /etc/sysconfig/openafs-server
|
|
|
|
echo and/or follow the instructions found on http://www.openafs.org to install an openafs-client.
|
|
|
|
fi
|
|
|
|
|
|
|
|
%preun server
|
|
|
|
%service_del_preun openafs-server.service
|
|
|
|
%{stop_on_removal}
|
|
|
|
|
|
|
|
%postun server
|
|
|
|
/sbin/ldconfig
|
|
|
|
%service_del_postun openafs-server.service
|
|
|
|
|
|
|
|
#
|
|
|
|
# devel
|
|
|
|
|
|
|
|
%post devel
|
|
|
|
|
|
|
|
%postun devel
|
|
|
|
|
|
|
|
#
|
|
|
|
# authlibs
|
|
|
|
|
|
|
|
%if %{build_authlibs}
|
|
|
|
%post authlibs
|
|
|
|
|
|
|
|
%postun authlibs
|
|
|
|
%endif
|
|
|
|
|
|
|
|
#
|
|
|
|
# FILES
|
|
|
|
#
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%config /etc/ld.so.conf.d/openafs.conf
|
|
|
|
%config(noreplace) %{viceetcdir}/CellAlias
|
|
|
|
%config(noreplace) %{viceetcdir}/CellServDB
|
|
|
|
%config(noreplace) %{viceetcdir}/ThisCell
|
|
|
|
%dir %{viceetcdir}
|
2018-03-22 08:40:27 +01:00
|
|
|
%doc %{_mandir}/man5/afsmonitor.5.gz
|
|
|
|
%doc %{_mandir}/man1/afs.1.gz
|
|
|
|
%doc %{_mandir}/man1/afs_compile_et.1.gz
|
|
|
|
%doc %{_mandir}/man1/afs_scout.1.gz
|
|
|
|
%doc %{_mandir}/man1/afsmonitor.1.gz
|
|
|
|
%doc %{_mandir}/man1/cmdebug.1.gz
|
|
|
|
%doc %{_mandir}/man1/pts.1.gz
|
|
|
|
%doc %{_mandir}/man1/pts_*.gz
|
|
|
|
%doc %{_mandir}/man1/restorevol.1.gz
|
|
|
|
%doc %{_mandir}/man1/rxdebug.1.gz
|
|
|
|
%doc %{_mandir}/man1/sys.1.gz
|
|
|
|
%doc %{_mandir}/man1/translate_et.1.gz
|
|
|
|
%doc %{_mandir}/man1/udebug.1.gz
|
|
|
|
%doc %{_mandir}/man1/vos.1.gz
|
|
|
|
%doc %{_mandir}/man1/vos_*gz
|
|
|
|
%doc %{_mandir}/man1/xstat_cm_test.1.gz
|
|
|
|
%doc %{_mandir}/man1/xstat_fs_test.1.gz
|
|
|
|
%doc %{_mandir}/man5/CellAlias.5.gz
|
|
|
|
%doc %{_mandir}/man5/CellServDB.5.gz
|
|
|
|
%doc %{_mandir}/man5/NetInfo.5.gz
|
|
|
|
%doc %{_mandir}/man5/NetRestrict.5.gz
|
|
|
|
%doc %{_mandir}/man5/ThisCell.5.gz
|
|
|
|
%doc %{_mandir}/man5/afs.5.gz
|
|
|
|
%doc %{_mandir}/man5/butc.5.gz
|
|
|
|
%doc %{_mandir}/man5/butc_logs.5.gz
|
|
|
|
%doc %{_mandir}/man5/fms.log.5.gz
|
|
|
|
%doc %{_mandir}/man5/sysid.5.gz
|
|
|
|
%doc %{_mandir}/man5/uss.5.gz
|
|
|
|
%doc %{_mandir}/man5/uss_*.5.gz
|
2018-03-28 08:39:12 +02:00
|
|
|
%doc %{_mandir}/man8/afs_backup.8.gz
|
|
|
|
%doc %{_mandir}/man8/afs_backup_*.8.gz
|
2018-03-22 08:40:27 +01:00
|
|
|
%doc %{_mandir}/man8/bos.8.gz
|
|
|
|
%doc %{_mandir}/man8/bos_[a-t]*.8.gz
|
|
|
|
%doc %{_mandir}/man8/bos_uninstall.8.gz
|
|
|
|
%doc %{_mandir}/man8/butc.8.gz
|
|
|
|
%doc %{_mandir}/man8/fms.8.gz
|
|
|
|
%doc %{_mandir}/man8/read_tape.8.gz
|
|
|
|
%doc %{_mandir}/man8/uss.8.gz
|
|
|
|
%doc %{_mandir}/man8/uss_*.8.gz
|
|
|
|
%doc %{_mandir}/man8/vsys.8.gz
|
2018-03-14 18:57:49 +01:00
|
|
|
%doc NEWS README* RELNOTES ChangeLog
|
2018-03-22 08:40:27 +01:00
|
|
|
%{_bindir}/afs_compile_et
|
|
|
|
%{_bindir}/afs_scout
|
|
|
|
%{_bindir}/afsio
|
|
|
|
%{_bindir}/afsmonitor
|
|
|
|
%{_bindir}/cmdebug
|
|
|
|
%{_bindir}/pts
|
|
|
|
%{_bindir}/restorevol
|
|
|
|
%{_bindir}/sys
|
|
|
|
%{_bindir}/translate_et
|
|
|
|
%{_bindir}/xstat_cm_test
|
|
|
|
%{_bindir}/xstat_fs_test
|
|
|
|
%{_libdir}/openafs/libafshcrypto.so.*
|
|
|
|
%{_libdir}/openafs/librokenafs.so.*
|
2018-03-28 08:39:12 +02:00
|
|
|
%{_sbindir}/afs_backup
|
2018-03-22 08:40:27 +01:00
|
|
|
%{_sbindir}/bos
|
|
|
|
%{_sbindir}/butc
|
|
|
|
%{_sbindir}/fms
|
|
|
|
%{_sbindir}/read_tape
|
|
|
|
%{_sbindir}/rxdebug
|
|
|
|
%{_sbindir}/udebug
|
|
|
|
%{_sbindir}/uss
|
|
|
|
%{_sbindir}/vos
|
|
|
|
%{_sbindir}/vsys
|
2018-03-14 18:57:49 +01:00
|
|
|
|
|
|
|
%files fuse_client
|
|
|
|
%defattr(-,root,root)
|
2018-03-28 08:39:12 +02:00
|
|
|
%{_sbindir}/afsd.fuse
|
2018-04-03 09:19:18 +02:00
|
|
|
%{_sbindir}/rcopenafs-fuse-client
|
2018-03-14 18:57:49 +01:00
|
|
|
%config(noreplace) %{viceetcdir}/SuidCells
|
|
|
|
%config(noreplace) %{viceetcdir}/cacheinfo
|
2018-04-03 09:19:18 +02:00
|
|
|
%doc %{_mandir}/man8/afsd.fuse.8.gz
|
2018-03-14 18:57:49 +01:00
|
|
|
%_unitdir/openafs-fuse-client.service
|
2018-03-28 08:39:12 +02:00
|
|
|
%{_fillupdir}/sysconfig.openafs-fuse-client
|
|
|
|
%{vicecachedir}
|
2018-04-03 09:19:18 +02:00
|
|
|
|
2018-03-14 18:57:49 +01:00
|
|
|
%files client
|
|
|
|
%defattr(-,root,root)
|
2018-03-22 08:40:27 +01:00
|
|
|
%{_bindir}/fs
|
2018-04-19 18:50:20 +02:00
|
|
|
%{_bindir}/aklog
|
2018-03-22 08:40:27 +01:00
|
|
|
%{_bindir}/klog.krb5
|
|
|
|
%{_bindir}/pagsh
|
|
|
|
%{_bindir}/pagsh.krb
|
|
|
|
%{_bindir}/tokens
|
|
|
|
%{_bindir}/tokens.krb
|
|
|
|
%{_bindir}/unlog
|
|
|
|
%{_bindir}/up
|
|
|
|
%{_sbindir}/afsd
|
|
|
|
%{_sbindir}/fstrace
|
|
|
|
%doc %{_mandir}/man1/fs.1.gz
|
|
|
|
%doc %{_mandir}/man1/fs_*.1.gz
|
2018-04-19 18:50:20 +02:00
|
|
|
%doc %{_mandir}/man1/aklog.1.gz
|
2018-03-22 08:40:27 +01:00
|
|
|
%doc %{_mandir}/man1/klog.krb5.1.gz
|
|
|
|
%doc %{_mandir}/man1/pagsh.1.gz
|
|
|
|
%doc %{_mandir}/man1/pagsh.krb.1.gz
|
|
|
|
%doc %{_mandir}/man1/tokens.1.gz
|
|
|
|
%doc %{_mandir}/man1/tokens.krb.1.gz
|
|
|
|
%doc %{_mandir}/man1/unlog.1.gz
|
|
|
|
%doc %{_mandir}/man1/up.1.gz
|
|
|
|
%doc %{_mandir}/man8/afsd.8.gz
|
|
|
|
%doc %{_mandir}/man8/fstrace.8.gz
|
|
|
|
%doc %{_mandir}/man8/fstrace_*.8.gz
|
2018-03-14 18:57:49 +01:00
|
|
|
%_unitdir/openafs-client.service
|
2018-03-22 08:40:27 +01:00
|
|
|
%doc %{_mandir}/man1/copyauth.1.gz
|
|
|
|
%doc %{_mandir}/man5/cacheinfo.5.gz
|
|
|
|
%doc %{_mandir}/man5/afs_cache.5.gz
|
2018-03-28 08:39:12 +02:00
|
|
|
%dir %{_datadir}/openafs
|
|
|
|
%dir %{_datadir}/openafs/C
|
|
|
|
%{_datadir}/openafs/C/afszcm.cat
|
2018-03-22 08:40:27 +01:00
|
|
|
%doc %{_mandir}/man5/afszcm.cat.5.gz
|
2018-03-14 18:57:49 +01:00
|
|
|
%config(noreplace) %{viceetcdir}/SuidCells
|
|
|
|
%config(noreplace) %{viceetcdir}/cacheinfo
|
2018-03-28 08:39:12 +02:00
|
|
|
%{_sbindir}/rcopenafs-client
|
|
|
|
%{_fillupdir}/sysconfig.openafs-client
|
|
|
|
%{vicecachedir}
|
2021-01-11 18:54:53 +01:00
|
|
|
%if %{have_firewalld}
|
2020-10-13 18:00:02 +02:00
|
|
|
%dir %{_prefix}/lib/firewalld
|
|
|
|
%dir %{_prefix}/lib/firewalld/services
|
|
|
|
%{_prefix}/lib/firewalld/services/afs3-callback.xml
|
|
|
|
%{_prefix}/lib/firewalld/services/afs3-rmtsys.xml
|
2021-01-11 18:54:53 +01:00
|
|
|
%endif
|
2018-03-14 18:57:49 +01:00
|
|
|
|
|
|
|
%files server
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%attr(770,root,root) %dir %{afslocaldir}
|
|
|
|
%attr(775,root,root) %dir %{afslogsdir}
|
|
|
|
%config %{viceetcdir}/server
|
2018-03-22 08:40:27 +01:00
|
|
|
%doc %{_mandir}/man5/AuthLog.5.gz
|
|
|
|
%doc %{_mandir}/man5/AuthLog.dir.5.gz
|
|
|
|
%doc %{_mandir}/man5/BackupLog.5.gz
|
|
|
|
%doc %{_mandir}/man5/BosConfig.5.gz
|
|
|
|
%doc %{_mandir}/man5/BosLog.5.gz
|
|
|
|
%doc %{_mandir}/man5/FORCESALVAGE.5.gz
|
|
|
|
%doc %{_mandir}/man5/FileLog.5.gz
|
|
|
|
%doc %{_mandir}/man5/KeyFile.5.gz
|
|
|
|
%doc %{_mandir}/man5/KeyFileExt.5.gz
|
|
|
|
%doc %{_mandir}/man5/NoAuth.5.gz
|
|
|
|
%doc %{_mandir}/man5/PtLog.5.gz
|
|
|
|
%doc %{_mandir}/man5/SALVAGE.fs.5.gz
|
|
|
|
%doc %{_mandir}/man5/SalvageLog.5.gz
|
|
|
|
%doc %{_mandir}/man5/UserList.5.gz
|
|
|
|
%doc %{_mandir}/man5/VLLog.5.gz
|
|
|
|
%doc %{_mandir}/man5/VolserLog.5.gz
|
|
|
|
%doc %{_mandir}/man5/afs_volume_header.5.gz
|
|
|
|
%doc %{_mandir}/man5/bdb.DB0.5.gz
|
|
|
|
%doc %{_mandir}/man5/krb.conf.5.gz
|
|
|
|
%doc %{_mandir}/man5/krb.excl.5.gz
|
|
|
|
%doc %{_mandir}/man5/prdb.DB0.5.gz
|
|
|
|
%doc %{_mandir}/man5/salvage.lock.5.gz
|
|
|
|
%doc %{_mandir}/man5/tapeconfig.5.gz
|
|
|
|
%doc %{_mandir}/man5/vldb.DB0.5.gz
|
|
|
|
%doc %{_mandir}/man8/akeyconvert.8.gz
|
2018-04-19 18:50:20 +02:00
|
|
|
%doc %{_mandir}/man8/asetkey.8.gz
|
2018-03-22 08:40:27 +01:00
|
|
|
%doc %{_mandir}/man8/bos_util.8.gz
|
|
|
|
%doc %{_mandir}/man8/bosserver.8.gz
|
|
|
|
%doc %{_mandir}/man8/buserver.8.gz
|
|
|
|
%doc %{_mandir}/man8/dafileserver.8.gz
|
|
|
|
%doc %{_mandir}/man8/dafssync-debug.8.gz
|
|
|
|
%doc %{_mandir}/man8/dafssync-debug_*.8.gz
|
|
|
|
%doc %{_mandir}/man8/dasalvager.8.gz
|
|
|
|
%doc %{_mandir}/man8/davolserver.8.gz
|
|
|
|
%doc %{_mandir}/man8/fileserver.8.gz
|
|
|
|
%doc %{_mandir}/man8/fssync-debug.8.gz
|
|
|
|
%doc %{_mandir}/man8/fssync-debug_*.8.gz
|
|
|
|
%doc %{_mandir}/man8/prdb_check.8.gz
|
|
|
|
%doc %{_mandir}/man8/pt_util.8.gz
|
|
|
|
%doc %{_mandir}/man8/ptserver.8.gz
|
|
|
|
%doc %{_mandir}/man8/salvager.8.gz
|
|
|
|
%doc %{_mandir}/man8/salvageserver.8.gz
|
|
|
|
%doc %{_mandir}/man8/state_analyzer.8.gz
|
|
|
|
%doc %{_mandir}/man8/upclient.8.gz
|
|
|
|
%doc %{_mandir}/man8/upserver.8.gz
|
|
|
|
%doc %{_mandir}/man8/vldb_check.8.gz
|
|
|
|
%doc %{_mandir}/man8/vldb_convert.8.gz
|
|
|
|
%doc %{_mandir}/man8/vlserver.8.gz
|
|
|
|
%doc %{_mandir}/man8/voldump.8.gz
|
|
|
|
%doc %{_mandir}/man8/volinfo.8.gz
|
|
|
|
%doc %{_mandir}/man8/volscan.8.gz
|
|
|
|
%doc %{_mandir}/man8/volserver.8.gz
|
|
|
|
%dir %{_libexecdir}/openafs
|
|
|
|
%{_libexecdir}/openafs/buserver
|
|
|
|
%{_libexecdir}/openafs/dafileserver
|
|
|
|
%{_libexecdir}/openafs/dasalvager
|
|
|
|
%{_libexecdir}/openafs/davolserver
|
|
|
|
%{_libexecdir}/openafs/fileserver
|
|
|
|
%{_libexecdir}/openafs/ptserver
|
|
|
|
%{_libexecdir}/openafs/salvager
|
|
|
|
%{_libexecdir}/openafs/salvageserver
|
|
|
|
%{_libexecdir}/openafs/upclient
|
|
|
|
%{_libexecdir}/openafs/upserver
|
|
|
|
%{_libexecdir}/openafs/vlserver
|
|
|
|
%{_libexecdir}/openafs/volserver
|
2018-04-19 18:50:20 +02:00
|
|
|
%{_sbindir}/asetkey
|
2018-03-22 08:40:27 +01:00
|
|
|
%{_sbindir}/akeyconvert
|
|
|
|
%{_sbindir}/bos_util
|
|
|
|
%{_sbindir}/bosserver
|
|
|
|
%{_sbindir}/dafssync-debug
|
|
|
|
%{_sbindir}/fssync-debug
|
|
|
|
%{_sbindir}/prdb_check
|
|
|
|
%{_sbindir}/pt_util
|
|
|
|
%{_sbindir}/salvsync-debug
|
|
|
|
%{_sbindir}/state_analyzer
|
|
|
|
%{_sbindir}/vldb_check
|
|
|
|
%{_sbindir}/vldb_convert
|
|
|
|
%{_sbindir}/voldump
|
|
|
|
%{_sbindir}/volinfo
|
|
|
|
%{_sbindir}/volscan
|
2021-01-17 04:29:07 +01:00
|
|
|
%{_sbindir}/rxstat_*
|
2018-03-14 18:57:49 +01:00
|
|
|
%_unitdir/openafs-server.service
|
|
|
|
%{_sbindir}/rcopenafs-server
|
|
|
|
/%{_fillupdir}/sysconfig.openafs-server
|
2021-01-11 18:54:53 +01:00
|
|
|
%if %{have_firewalld}
|
2020-10-13 18:00:02 +02:00
|
|
|
%dir %{_prefix}/lib/firewalld
|
|
|
|
%dir %{_prefix}/lib/firewalld/services
|
|
|
|
%{_prefix}/lib/firewalld/services/afs3-bos.xml
|
|
|
|
%{_prefix}/lib/firewalld/services/afs3-fileserver.xml
|
|
|
|
%{_prefix}/lib/firewalld/services/afs3-prserver.xml
|
|
|
|
%{_prefix}/lib/firewalld/services/afs3-update.xml
|
|
|
|
%{_prefix}/lib/firewalld/services/afs3-vlserver.xml
|
|
|
|
%{_prefix}/lib/firewalld/services/afs3-volser.xml
|
2021-01-11 18:54:53 +01:00
|
|
|
%endif
|
2018-03-14 18:57:49 +01:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
2018-03-22 08:40:27 +01:00
|
|
|
%dir %{_libdir}/openafs
|
|
|
|
%doc %{_mandir}/man1/livesys.1.gz
|
|
|
|
%doc %{_mandir}/man1/rxgen.1.gz
|
|
|
|
%doc %{_mandir}/man3/AFS::ukernel.3.gz
|
|
|
|
%{_bindir}/livesys
|
|
|
|
%{_bindir}/rxgen
|
|
|
|
%{_includedir}/openafs/
|
|
|
|
%{_libdir}/openafs/libafshcrypto.so
|
|
|
|
%{_libdir}/openafs/librokenafs.so
|
2018-03-14 18:57:49 +01:00
|
|
|
|
|
|
|
%files kernel-source
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%dir /usr/src/kernel-modules
|
|
|
|
%dir /usr/src/kernel-modules/openafs
|
|
|
|
/usr/src/kernel-modules/openafs/*
|
|
|
|
|
|
|
|
%if %{build_authlibs}
|
|
|
|
%files authlibs
|
|
|
|
%defattr(-,root,root)
|
2018-03-22 08:40:27 +01:00
|
|
|
%{_libdir}/openafs/libafsauthent.so.*
|
|
|
|
%{_libdir}/openafs/libafsrpc.so.*
|
|
|
|
%{_libdir}/openafs/libkopenafs.so.*
|
2018-03-14 18:57:49 +01:00
|
|
|
|
|
|
|
%files authlibs-devel
|
|
|
|
%defattr(-,root,root)
|
2018-03-22 08:40:27 +01:00
|
|
|
%{_libdir}/openafs/libafsauthent.so
|
|
|
|
%{_libdir}/openafs/libafsrpc.so
|
|
|
|
%{_libdir}/openafs/libkopenafs.so
|
2018-03-14 18:57:49 +01:00
|
|
|
%endif
|
|
|
|
|
|
|
|
#
|
|
|
|
# CHANGELOG
|
|
|
|
#
|
|
|
|
|
|
|
|
%changelog
|