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
4ed58345
Commit
4ed58345
authored
Sep 03, 2008
by
Konstantin Baev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Release 1:1.0-alt1
parent
185c8f27
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
17 deletions
+2
-17
.gitignore
.gitignore
+0
-6
linux-cifs.spec
linux-cifs.spec
+1
-1
buildmodule.sh
linux-cifs/buildmodule.sh
+1
-10
No files found.
.gitignore
View file @
4ed58345
linux-cifs.spec~
linux-cifs/test.sh
linux-cifs/kernel_src.list_old
linux-cifs/buildmodule.sh1
linux-cifs/build.sh
linux-cifs/gentoo
linux-cifs.spec
View file @
4ed58345
...
...
@@ -132,7 +132,7 @@ do
done
mkdir -p %buildroot%_datadir/%name
install -m644 buildmodule.sh functions.sh kernel_src.list %buildroot%_datadir/%name
install -m644 buildmodule.sh functions.sh kernel_src.list
etercifs_src.list
%buildroot%_datadir/%name
mkdir -p %buildroot%_initdir
sed -e "s|@DATADIR@|%_datadir/%name|g" < %name.init > %name.init.repl
...
...
linux-cifs/buildmodule.sh
View file @
4ed58345
...
...
@@ -26,21 +26,13 @@ tmpdir=
tmpdir
=
"
$(
mktemp
-dt
"Etercifs.XXXXXXXX"
)
"
# TODO:
сделать независимо от типа архива
# TODO:
wonts independency of type archive
tar
-xjf
$KERNEL_SOURCE_ETERCIFS
-C
$tmpdir
trap
exit_handler HUP PIPE INT QUIT TERM EXIT
FILENAME
=
`
basename
$KERNEL_SOURCE_ETERCIFS
`
BUILDDIR
=
$tmpdir
/
${
FILENAME
%.tar.bz2
}
# распаковать его в $BUILDDIR, и собрать
# TODO:
# При запуске сервиса:
# Проверка, что если ядро обновилось до нашего, но новее - пересобираем
# Проверка, что если ядро обновилось до нового - ругаемся
# SMP build
[
-z
"
$RPM_BUILD_NCPUS
"
]
&&
RPM_BUILD_NCPUS
=
`
/usr/bin/getconf _NPROCESSORS_ONLN
`
[
"
$RPM_BUILD_NCPUS
"
-gt
1
]
&&
MAKESMP
=
"-j
$RPM_BUILD_NCPUS
"
||
MAKESMP
=
""
...
...
@@ -89,7 +81,6 @@ if ! which $GCCNAME ; then
exit
1
fi
# Clean, build and check
rm
-f
$BUILDDIR
/
$MODULEFILENAME
make
$USEGCC
-C
$KERNSRC
here
=
$BUILDDIR
SUBDIRS
=
$BUILDDIR
clean
...
...
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