Commit b514b8d8 authored by Konstantin Baev's avatar Konstantin Baev

4.3.4-alt2

- Bugfix in spec - Add RHEL support with CentOS - Add parameter CHECK_VERSION in /etc/etercifs.conf for disabeling checking package version while loading the module
parent 194ce50c
tar.bz2: sources/legacy name=kernel-source-etercifs-legacy-1.50c tar.bz2: sources/legacy name=kernel-source-etercifs-legacy-1.50c
tar.bz2: sources/centos53 name=kernel-source-etercifs-centos53-1.54
tar.bz2: sources/2.6.16 name=kernel-source-etercifs-2.6.16-1.50 tar.bz2: sources/2.6.16 name=kernel-source-etercifs-2.6.16-1.50
tar.bz2: sources/2.6.23 name=kernel-source-etercifs-2.6.23-1.50 tar.bz2: sources/2.6.23 name=kernel-source-etercifs-2.6.23-1.50
tar.bz2: sources/2.6.24 name=kernel-source-etercifs-2.6.24-1.52 tar.bz2: sources/2.6.24 name=kernel-source-etercifs-2.6.24-1.52
......
...@@ -13,6 +13,7 @@ ...@@ -13,6 +13,7 @@
%define src_package_name kernel-source-etercifs %define src_package_name kernel-source-etercifs
%define src_legacy_version 1.50c %define src_legacy_version 1.50c
%define src_centos53_version 1.54
%define src_2_6_16_version 1.50 %define src_2_6_16_version 1.50
%define src_2_6_23_version 1.50 %define src_2_6_23_version 1.50
%define src_2_6_24_version 1.52 %define src_2_6_24_version 1.52
...@@ -24,7 +25,7 @@ ...@@ -24,7 +25,7 @@
Name: etercifs Name: etercifs
Version: 4.3.4 Version: 4.3.4
Release: alt1 Release: alt2
Summary: Advanced Common Internet File System for Linux with Etersoft extension Summary: Advanced Common Internet File System for Linux with Etersoft extension
...@@ -38,6 +39,7 @@ BuildArch: noarch ...@@ -38,6 +39,7 @@ BuildArch: noarch
Source: %name-%version.tar.bz2 Source: %name-%version.tar.bz2
Source1: %src_package_name-legacy-%src_legacy_version.tar.bz2 Source1: %src_package_name-legacy-%src_legacy_version.tar.bz2
Source2: %src_package_name-centos53-%src_centos53_version.tar.bz2
Source16: %src_package_name-2.6.16-%src_2_6_16_version.tar.bz2 Source16: %src_package_name-2.6.16-%src_2_6_16_version.tar.bz2
Source23: %src_package_name-2.6.23-%src_2_6_23_version.tar.bz2 Source23: %src_package_name-2.6.23-%src_2_6_23_version.tar.bz2
Source24: %src_package_name-2.6.24-%src_2_6_24_version.tar.bz2 Source24: %src_package_name-2.6.24-%src_2_6_24_version.tar.bz2
...@@ -83,6 +85,7 @@ echo MODULENAME=%name >> %buildroot%_sysconfdir/%name.conf ...@@ -83,6 +85,7 @@ echo MODULENAME=%name >> %buildroot%_sysconfdir/%name.conf
echo MODULEVERSION=%version >> %buildroot%_sysconfdir/%name.conf echo MODULEVERSION=%version >> %buildroot%_sysconfdir/%name.conf
echo MOUNT_OPTIONS=user=guest,pass=,rw,iocharset=utf8,noperm,forcemand >> %buildroot%_sysconfdir/%name.conf echo MOUNT_OPTIONS=user=guest,pass=,rw,iocharset=utf8,noperm,forcemand >> %buildroot%_sysconfdir/%name.conf
echo DEFAULT_MOUNTPOINT=/net/sharebase >> %buildroot%_sysconfdir/%name.conf echo DEFAULT_MOUNTPOINT=/net/sharebase >> %buildroot%_sysconfdir/%name.conf
echo CHECK_VERSION=1 >> %buildroot%_sysconfdir/%name.conf
mkdir -p %buildroot%_datadir/%name mkdir -p %buildroot%_datadir/%name
install -m644 buildmodule.sh %buildroot%_datadir/%name install -m644 buildmodule.sh %buildroot%_datadir/%name
...@@ -96,6 +99,7 @@ install -m755 %name.outformat %buildroot%_initdir ...@@ -96,6 +99,7 @@ install -m755 %name.outformat %buildroot%_initdir
mkdir -p %buildroot/%etercifs_src mkdir -p %buildroot/%etercifs_src
cp %SOURCE1 %buildroot/%etercifs_src/%src_package_name-legacy-%src_legacy_version.tar.bz2 cp %SOURCE1 %buildroot/%etercifs_src/%src_package_name-legacy-%src_legacy_version.tar.bz2
cp %SOURCE2 %buildroot/%etercifs_src/%src_package_name-centos53-%src_centos53_version.tar.bz2
for N in `seq 17 22` for N in `seq 17 22`
do do
ln -s %src_package_name-legacy-%src_legacy_version.tar.bz2 %buildroot/%etercifs_src/%src_package_name-2.6.$N-%src_legacy_version.tar.bz2 ln -s %src_package_name-legacy-%src_legacy_version.tar.bz2 %buildroot/%etercifs_src/%src_package_name-2.6.$N-%src_legacy_version.tar.bz2
...@@ -127,6 +131,12 @@ install -m755 etermount %buildroot%_sbindir/ ...@@ -127,6 +131,12 @@ install -m755 etermount %buildroot%_sbindir/
%_sbindir/etermount %_sbindir/etermount
%changelog %changelog
* Fri Apr 10 2009 Konstantin Baev <kipruss@altlinux.org> 4.3.4-alt2
- Bugfix in spec
- Add RHEL support with CentOS
- Add parameter CHECK_VERSION in /etc/etercifs.conf for disabeling
checking package version while loading the module
* Fri Apr 10 2009 Konstantin Baev <kipruss@altlinux.org> 4.3.4-alt1 * Fri Apr 10 2009 Konstantin Baev <kipruss@altlinux.org> 4.3.4-alt1
- Add etercifs sources for CentOS kernel 2.6.18-128 (fix bug Eter#3770) - Add etercifs sources for CentOS kernel 2.6.18-128 (fix bug Eter#3770)
- Add CentOS specific part in building scripts - Add CentOS specific part in building scripts
......
...@@ -12,10 +12,6 @@ ...@@ -12,10 +12,6 @@
Отслеживание ошибок осуществляется в Bugzilla - http://bugs.etersoft.ru/ Отслеживание ошибок осуществляется в Bugzilla - http://bugs.etersoft.ru/
Специальная бага "Выпуск etercifs", в которой анонсируется выпуск каждой
новой версии etercifs и описаны изменения в нем -
http://bugs.etersoft.ru/show_bug.cgi?id=2220
Часть документации к WINE@Etersoft "Настройка совместной работы по протоколу Часть документации к WINE@Etersoft "Настройка совместной работы по протоколу
CIFS" - http://www.etersoft.ru/content/view/56/156/#cifs CIFS" - http://www.etersoft.ru/content/view/56/156/#cifs
...@@ -27,5 +23,5 @@ http://git.etersoft.ru/people/kipruss/packages/etercifs.git/ ...@@ -27,5 +23,5 @@ http://git.etersoft.ru/people/kipruss/packages/etercifs.git/
ftp://updates.etersoft.ru/pub/Etersoft/CIFS@Etersoft/ ftp://updates.etersoft.ru/pub/Etersoft/CIFS@Etersoft/
Файлы AUTHORS, CHANGES, README, TODO взяты из исходников модуля Файлы AUTHORS, CHANGES, README, TODO взяты из исходников модуля
для ядра 2.6.28. Для остальных ядер подобные файлы нужно искать для ядра 2.6.29. Для остальных ядер подобные файлы нужно искать
в соответствующих архивах в папке /usr/share/etercifs/sources. в соответствующих архивах в папке /usr/share/etercifs/sources.
...@@ -25,6 +25,7 @@ fi ...@@ -25,6 +25,7 @@ fi
[ -n "$MODULENAME" ] || MODULENAME=etercifs [ -n "$MODULENAME" ] || MODULENAME=etercifs
[ -n "$BUILT" ] || BUILT=0 [ -n "$BUILT" ] || BUILT=0
[ -n "$DKMS" ] || DKMS=1 [ -n "$DKMS" ] || DKMS=1
[ -n "$CHECK_VERSION" ] || CHECK_VERSION=1
ORIGMODULENAME=cifs ORIGMODULENAME=cifs
...@@ -152,11 +153,12 @@ load_module() ...@@ -152,11 +153,12 @@ load_module()
get_module_version get_module_version
if [ "$MODULEVERSION" != "$MODVER" ] ; then if [ "$MODULEVERSION" != "$MODVER" ] && [ "$CHECK_VERSION" -eq 1 ] ; then
[ $MODVER ] && { [ $MODVER ] && {
failure failure
show_module_version show_module_version
echo " Pleace, run 'service etercifs build' to build the etercifs module!" echo " Please, run 'service etercifs build' to build the etercifs module (recommended)"
echo " or run 'CHECK_VERSION=0 service etercifs restart' to disableing check."
return return
} }
fi fi
......
...@@ -37,11 +37,13 @@ detect_etercifs_sources() ...@@ -37,11 +37,13 @@ detect_etercifs_sources()
[ -n "`ls $ETERCIFS_SOURCES_LIST`" ] || fatal "Etercifs kernel module sources does not installed!" [ -n "`ls $ETERCIFS_SOURCES_LIST`" ] || fatal "Etercifs kernel module sources does not installed!"
KERNEL_SOURCE_ETERCIFS_LINK=`ls -1 $ETERCIFS_SOURCES_LIST | grep $KERNEL | sort -r | head -n 1` KERNEL_SOURCE_ETERCIFS_LINK=`ls -1 $ETERCIFS_SOURCES_LIST | grep $KERNEL | sort -r | head -n 1`
# CentOS specific part # CentOS-RHEL specific part
grep 'CentOS' /etc/redhat-release &>/dev/null SPECIFIC_CENTOS=0
if [ "$?" == 0 ] ; then grep 'CentOS' /etc/redhat-release &>/dev/null && SPECIFIC_CENTOS=1
grep 'Red Hat' /etc/redhat-release &>/dev/null && SPECIFIC_CENTOS=1
if [ "$SPECIFIC_CENTOS" -eq 1 ] ; then
echo echo
echo "Found CentOS." echo "Found CentOS or RHEL."
kernel_release4 kernel_release4
N1=`echo $KERNEL4 | cut -d"." -f 1` N1=`echo $KERNEL4 | cut -d"." -f 1`
...@@ -82,7 +84,7 @@ detect_etercifs_sources() ...@@ -82,7 +84,7 @@ detect_etercifs_sources()
fi fi
echo echo
fi fi
# end of CentOS specific part # end of CentOS-RHEL specific part
[ -f "$KERNEL_SOURCE_ETERCIFS_LINK" ] || fatal "Etercifs kernel module sources for current kernel does not installed!" [ -f "$KERNEL_SOURCE_ETERCIFS_LINK" ] || fatal "Etercifs kernel module sources for current kernel does not installed!"
KERNEL_SOURCE_ETERCIFS=`readlink -f $KERNEL_SOURCE_ETERCIFS_LINK` KERNEL_SOURCE_ETERCIFS=`readlink -f $KERNEL_SOURCE_ETERCIFS_LINK`
......
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