Commit 7bb08f13 authored by Vitaly Lipatov's avatar Vitaly Lipatov

add requires for samba-client and direct using mount.cifs

parent 85c10a45
......@@ -24,7 +24,7 @@
Name: etercifs
Version: 4.5.0
Release: alt3
Release: alt4
Summary: Advanced Common Internet File System for Linux with Etersoft extension
......@@ -74,6 +74,9 @@ Obsoletes: %src_package_name-2.6.29
Requires: gcc make
# We definitely needs mount.cifs command
Requires: samba-client
%description
This package contains Etersoft modified CIFS kernel module,
supports WINE@Etersoft sharing access support.
......@@ -202,6 +205,9 @@ ln -s ../../../../%etercifs_src/%src_package_name-2.6.32-%src_2_6_32_version.tar
%_usrsrc/kernel/sources/%src_package_name-*-%version.tar.bz2
%changelog
* Mon Mar 22 2010 Vitaly Lipatov <lav@altlinux.ru> 4.5.0-alt4
- add requires for samba-client and direct using /sbin/mount.cifs
* Thu Mar 18 2010 Pavel Shilovsky <piastry@altlinux.org> 4.5.0-alt3
- Fix gprintf problem on Mandriva
......
......@@ -80,8 +80,12 @@ fi
create_share_dir "$SHARE_PATH"
if [ ! -x /sbin/mount.cifs ] ; then
fatal "Please install package with /sbin/mount.cifs command (samba-client or smbfs)"
fi
echo "Mouting share $1 to $SHARE_PATH with $MOUNT_OPTIONS options..."
if $SUDO mount -t cifs "$1" "$SHARE_PATH" -o $MOUNT_OPTIONS ; then
if $SUDO /sbin/mount.cifs "$1" "$SHARE_PATH" -o $MOUNT_OPTIONS ; then
echo "Info: mount of share $1 in mountpoint $SHARE_PATH has been successfully"
else
fatal "Warning: error while mount of share $1 in mountpoint $SHARE_PATH!"
......
#!/bin/sh
# 2007 (c) Etersoft http://etersoft.ru
# Author: Vitaly Lipatov <lav@etersoft.ru>
# 2007-2010 (c) Etersoft http://etersoft.ru
# Vitaly Lipatov <lav@etersoft.ru>
# Konstantin Baev <kipruss@etersoft.ru>
# Pavel Shilovsky <piastry@etersoft.ru>
# GNU Public License
# modified: Konstantin Baev <kipruss@etersoft.ru>
# Build kernel modules for all kernel and all platforms
PACKAGEINFO=@DATADIR@/package.conf
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment