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
0c25afa2
Commit
0c25afa2
authored
Apr 29, 2013
by
Pavel Shilovsky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add etercifs-build script
parent
8dd8d538
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
8 deletions
+29
-8
etercifs.spec
etercifs.spec
+7
-7
etercifs
etercifs/etercifs
+1
-1
etercifs-build
etercifs/etercifs-build
+21
-0
No files found.
etercifs.spec
View file @
0c25afa2
...
...
@@ -178,12 +178,12 @@ DEFAULT_MOUNTPOINT=/net/sharebase
# CHECK_VERSION=0
EOF
%__subst "s|@DATADIR@|%_datadir/%name|g" functions.sh etercifs etermount
%__subst "s|@DATADIR@|%_datadir/%name|g" functions.sh etercifs etermount
etercifs-build
%__subst "s|@SYSCONFIGDIR@|%_sysconfigdir|g" functions.sh etercifs etermount
mkdir -p %buildroot%_datadir/%name/
install -
m644 buildmodule.sh %buildroot%_datadir/%name/
install -
m644 functions.sh %buildroot%_datadir/%name/
install -D -m644 buildmodule.sh %buildroot%_datadir/%name/buildmodule.sh
install -
D -m644 functions.sh %buildroot%_datadir/%name/functions.sh
install -
D -m755 %name-build %buildroot%_sbindir/%name-build
cat <<EOF >%buildroot%_datadir/%name/package.conf
DATADIR=%_datadir/%name
...
...
@@ -202,10 +202,9 @@ install cifs /sbin/modprobe etercifs
blacklist cifs
EOF
mkdir -p %buildroot%_initdir/
install -m755 %name %buildroot%_initdir/
install -D -m755 %name %buildroot%_initdir/%name
install -D -m644 %name.service %buildroot%_unitdir/%name.service
install -m755 %name.outformat %buildroot%_datadir/%name
install -
D -
m755 %name.outformat %buildroot%_datadir/%name
%define etercifs_src %_datadir/%name/sources
...
...
@@ -340,6 +339,7 @@ ln -s ../../../../%etercifs_src/%src_package_name-3.3-%src_3_3_version.tar.bz2 \
%config %_sysconfdir/modprobe.d/etersoft.conf
%_datadir/%name/
%_usrsrc/kernel/sources/%src_package_name-*-%version.tar.bz2
%_sbindir/%name-build
%changelog
* Fri Mar 01 2013 Pavel Shilovsky <piastry@altlinux.org> 5.4.6-alt1
...
...
etercifs/etercifs
View file @
0c25afa2
...
...
@@ -206,7 +206,7 @@ load_module()
if
[
"
$MODULEVERSION
"
!=
"
$MODVER
"
]
&&
[
"
$CHECK_VERSION
"
-eq
1
]
;
then
failure
show_module_version
echo
" Please, run '
service etercifs
build' to build the etercifs module (recommended)"
echo
" Please, run '
etercifs-
build' to build the etercifs module (recommended)"
#echo " or run 'CHECK_VERSION=0 service etercifs restart' to disable check."
return
fi
...
...
etercifs/etercifs-build
0 → 100644
View file @
0c25afa2
#!/bin/sh
# Authors: Vitaly Lipatov <lav@etersoft.ru>
# Konstantin Baev <kipruss@altlinux.org>
# Pavel Shilovsky <piastry@etersoft.ru>
# 2006, 2007, 2008, 2009, 2010, 2013 Public domain
PACKAGEINFO
=
@DATADIR@/package.conf
if
[
-f
"
$PACKAGEINFO
"
]
;
then
.
$PACKAGEINFO
else
"Not found package information file
$PACKAGEINFO
"
fi
if
[
-r
$SRC_DIR
/dkms.conf
]
&&
[
`
which dkms 2>/dev/null
`
]
;
then
cd
$DATADIR
DKMSBUILD
=
1 sh buildmodule.sh
else
cd
$DATADIR
sh buildmodule.sh
fi
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