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
b1e3141a
Commit
b1e3141a
authored
Mar 05, 2017
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
some fixes
parent
cc8bd06c
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
10 deletions
+19
-10
checkmodule.sh
etercifs/checkmodule.sh
+0
-1
etercifs-build
etercifs/etercifs-build
+1
-1
functions.sh
etercifs/functions.sh
+11
-8
package.conf.devel
etercifs/package.conf.devel
+7
-0
No files found.
etercifs/checkmodule.sh
View file @
b1e3141a
...
@@ -21,7 +21,6 @@
...
@@ -21,7 +21,6 @@
compile_module
compile_module
check_build_module
check_build_module
fi
fi
fi
done
done
echo
"====================================================================="
echo
"====================================================================="
echo
"CIFS Linux kernel module
$MODULENAME
$MODULEVERSION
built for follow kernels (marked as ---DONE or ---FAILURE):"
echo
"CIFS Linux kernel module
$MODULENAME
$MODULEVERSION
built for follow kernels (marked as ---DONE or ---FAILURE):"
...
...
etercifs/etercifs-build
View file @
b1e3141a
...
@@ -5,4 +5,4 @@
...
@@ -5,4 +5,4 @@
# 2006, 2007, 2008, 2009, 2010, 2013 Public domain
# 2006, 2007, 2008, 2009, 2010, 2013 Public domain
cd
@DATADIR@
cd
@DATADIR@
sh
buildmodule.sh
.
./
buildmodule.sh
etercifs/functions.sh
View file @
b1e3141a
...
@@ -15,7 +15,7 @@ fatal()
...
@@ -15,7 +15,7 @@ fatal()
exit
1
exit
1
}
}
PACKAGEINFO
=
@DATADIR@/package.conf
[
-s
"
$PACKAGEINFO
"
]
||
PACKAGEINFO
=
@DATADIR@/package.conf
if
[
-f
"
$PACKAGEINFO
"
]
;
then
if
[
-f
"
$PACKAGEINFO
"
]
;
then
.
$PACKAGEINFO
.
$PACKAGEINFO
else
else
...
@@ -215,12 +215,15 @@ detect_etercifs_sources()
...
@@ -215,12 +215,15 @@ detect_etercifs_sources()
# try get like version
# try get like version
if
[
-z
"
$KERNEL_SOURCE_ETERCIFS
"
]
;
then
if
[
-z
"
$KERNEL_SOURCE_ETERCIFS
"
]
;
then
KERNEL_SOURCE_ETERCIFS
=
$(
list_source_versions |
sort
-r
-V
|
head
-n
1
)
KERNEL_SOURCE_ETERCIFS
=
$(
list_source_versions |
sort
-r
-V
|
head
-n
1
)
LATEST_SOURCES
=
$(
echo
$KERNEL_SOURCE_ETERCIFS
|
cut
-d
"-"
-f
4
)
if
[
-n
"
$KERNEL_SOURCE_ETERCIFS
"
]
;
then
echo
"Warning! Couldn't find module sources for the current kernel
$KERNEL
!"
LATEST_SOURCES
=
$(
echo
$KERNEL_SOURCE_ETERCIFS
|
cut
-d
"-"
-f
4
)
echo
"Using the latest supported sources - from v
$LATEST_SOURCES
kernel!"
echo
"Warning! Couldn't find module sources for the kernel
$KERNEL
!"
echo
"Using the latest supported sources - from v
$LATEST_SOURCES
kernel!"
else
echo
"Can't locate any appropiate kernel sources for the kernel
$KERNEL
"
fi
fi
fi
[
-n
"
$KERNEL_SOURCE_ETERCIFS
"
]
||
fatal
"Can't locate etercifs kernel module sources for current kernel!"
}
}
exit_handler
()
exit_handler
()
...
@@ -352,7 +355,7 @@ dkms_build_module()
...
@@ -352,7 +355,7 @@ dkms_build_module()
STATUS
=
`
dkms status
-m
$MODULENAME
-v
$MODULEVERSION
`
STATUS
=
`
dkms status
-m
$MODULENAME
-v
$MODULEVERSION
`
[
"
$STATUS
"
]
||
a
=
dkms add
-m
$MODULENAME
-v
$MODULEVERSION
[
"
$STATUS
"
]
||
a
=
dkms add
-m
$MODULENAME
-v
$MODULEVERSION
BUILDDIR
=
$SRC_DIR
BUILDDIR
=
$SRC_DIR
create_builddir
create_builddir
||
fatal
change_cifsversion
change_cifsversion
a
=
dkms uninstall
-m
$MODULENAME
-v
$MODULEVERSION
--rpm_safe_upgrade
a
=
dkms uninstall
-m
$MODULENAME
-v
$MODULEVERSION
--rpm_safe_upgrade
a
=
dkms build
-m
$MODULENAME
-v
$MODULEVERSION
--rpm_safe_upgrade
a
=
dkms build
-m
$MODULENAME
-v
$MODULEVERSION
--rpm_safe_upgrade
...
@@ -377,8 +380,8 @@ change_cifsversion()
...
@@ -377,8 +380,8 @@ change_cifsversion()
compile_module
()
compile_module
()
{
{
detect_etercifs_sources
detect_etercifs_sources
c
reate_builddir
c
heck_headers
||
return
c
heck_headers
c
reate_builddir
||
return
set_gcc
set_gcc
# SMP build
# SMP build
...
...
etercifs/package.conf.devel
0 → 100644
View file @
b1e3141a
DATADIR=./
SRC_DIR=/usr/src/etercifs-5.5.0
MODULENAME=etercifs
MODULEFILENAME=etercifs.ko
MODULEVERSION=5.5.0
PACKAGEVEREL=5.5.0-alt1
CHECK_VERSION=1
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