Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
etercifs
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
etercifs
Commits
967ec4eb
Commit
967ec4eb
authored
Mar 05, 2017
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add dkms-etercifs subpackage
parent
058c431c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
56 additions
and
0 deletions
+56
-0
etercifs.spec
etercifs.spec
+56
-0
No files found.
etercifs.spec
View file @
967ec4eb
# Etersoft (c) 2007-2017
# Multiplatform spec for Korinf autobuild system (ALT Linux package spec policy)
%define modname etercifs
Name: etercifs
Version: 5.4.18
Release: alt1
...
...
@@ -51,6 +53,26 @@ VFS). With the addition of upcoming improvements to the mount helper
(mount.cifs) the CIFS VFS will be able to take advantage of the new CIFS
URL specification though.
%if %_vendor != "alt"
%package -n dkms-etercifs
Summary: DKMS-ready CIFS Linux kernel module with Etersoft extensions
Group: System/Kernel and hardware
Requires(preun): dkms
Requires(post): dkms
Requires: etercifs = %version-%release
Buildarch: noarch
%description -n dkms-etercifs
The CIFS VFS is a virtual file system for Linux to allow access to
servers and storage appliances compliant with the SNIA CIFS
Specification version 1.0 or later.
This package contains DKMS-ready CIFS Linux kernel module with Etersoft
extensions.
%endif
%prep
%setup
...
...
@@ -106,6 +128,35 @@ cp %SOURCE1 %buildroot%_datadir/%name/
mkdir -p %buildroot%_bindir
install -m755 etermount %buildroot%_bindir/
%if %_vendor != "alt"
# dkms part
mkdir -p %buildroot%_usrsrc/%modname-%version/
cat > %buildroot%_usrsrc/%modname-%version/dkms.conf <<EOF
# DKMS file for Linux CIFS with Etersoft's extensions
PACKAGE_NAME="%modname"
PACKAGE_VERSION="%version"
BUILT_MODULE_NAME[0]="etercifs"
DEST_MODULE_LOCATION[0]="/kernel/fs/cifs/"
REMAKE_INITRD="no"
AUTOINSTALL="YES"
EOF
%post -n dkms-etercifs
if [ "$1" == 1 ]
then
dkms add -m %modname -v %version --rpm_safe_upgrade
fi
%_initdir/%modname build
%preun -n dkms-etercifs
if [ "$1" == 0 ]
then
dkms remove -m %modname -v %version --rpm_safe_upgrade --all
fi
%endif
%post
%post_service %name
...
...
@@ -122,6 +173,11 @@ install -m755 etermount %buildroot%_bindir/
%config %_sysconfdir/modprobe.d/etersoft.conf
%_datadir/%name/
%if %_vendor != "alt"
%files -n dkms-etercifs
%_usrsrc/%modname-%version/dkms.conf
%endif
%changelog
* Fri Mar 03 2017 Konstantin Artyushkin <akv@altlinux.org> 5.4.18-alt1
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment