Update utilities.

atratsevskiy
Mike Hiretsky 13 years ago
parent 7a7f29aafb
commit 7759c4568b

@ -3,12 +3,14 @@ AUX calculate-install-2.2.24-r2.patch 6792 RMD160 33e7dd43fbf2078ad3310ee1e4734f
AUX calculate-install-2.2.24-r3.patch 6766 RMD160 20514ef40cd0108815d339ae84d00078788255b8 SHA1 d84ccdd9d09cc22f9f6f0d720ddca921425499c0 SHA256 c2ea11ee12c9d9ff6902472a9da473f5e86af45da1c268f6eb25bbb28937e50f
AUX calculate-install-2.2.24-r4.patch 22276 RMD160 e236f13fe07500aa77c29e677c90d8ca6ab86788 SHA1 b7db9fe50fb08aa167835323c89b8b5767fc0fb1 SHA256 40cca842397d9349ced585ab9e0a50f63525df31e1a6239c1cc7820313af85d6
AUX calculate-install-2.2.24-r5.patch 22100 RMD160 e35af7d4259e3fb5b3c7cd6bc3df60ebf1ec0d8c SHA1 0bb7cd930ed5879083116f1023ca8d6974879090 SHA256 00629e097dbe546932074a7ed4be1814290b979d90f6ad3a3da33f4481f1ec94
AUX calculate-install-2.2.24-r6.patch 22335 RMD160 18c948e532f21e7958d83d3f3d12adef201b94b7 SHA1 2e879363d33873e96ab0dfe2f68982f63d54584e SHA256 773a15661df4ccf6d4d7df52eff93b3c0b3979b9d64cbf753eb9f8a4e1f2d951
DIST calculate-install-2.2.24.tar.bz2 74207 RMD160 0e76e106863c8f7ae8f715ff600cbf34af53d44f SHA1 156b8438d4be79f897dcb83218152b4efcb3bfe1 SHA256 3fd7a542d484e2bd2da7b7f03685a90e5711a14190e5e53818001c54356c61b5
EBUILD calculate-install-2.2.24-r1.ebuild 932 RMD160 3816f9b8ccac79597a2ad67ac08f323aed855af0 SHA1 5119b9b5e09704e3f20ec8e465e3d2bb6cd426af SHA256 8a07bbb2443b7e22f1a67a4b37baaff69803b02422cd047639a4fc8afa2c733d
EBUILD calculate-install-2.2.24-r2.ebuild 955 RMD160 3efe77eec499e2bacc9aab2dd99719d2f119daee SHA1 0ee20eeb4143d1c1ec4eb5a3b5f11aea18821204 SHA256 8c80c00c0daa52cafdd176bbea51a87d7b01c9d23c9b85c750674a8ff916a1fa
EBUILD calculate-install-2.2.24-r3.ebuild 958 RMD160 ffd065d3a68f3a3ba22cec51b1c5eb5fdcede1cf SHA1 7a8efeca41cc00e88ba03facab582d70cab8c05b SHA256 67363517582ea6d4db7740686172bd799dc1ba488ce5889caceb353a12965b0d
EBUILD calculate-install-2.2.24-r4.ebuild 996 RMD160 3f9b55ebe414b7354b771b9d860b2de9805370d9 SHA1 44e9e8f75029c6d6b218582728f6f539b131a18f SHA256 d42e8305e18dc654d893855f50366a0f81ee303a435e85db75f2ccfac0790b29
EBUILD calculate-install-2.2.24-r5.ebuild 972 RMD160 82247641e636cf2fee3a1ff0cb46d1ae4d475efb SHA1 06edb3e59095d0d5e204570bfa5b0916c83719c0 SHA256 904010943b8890618e6a098adaf11f8921604f97492e99dadce4766fa6dadfdd
EBUILD calculate-install-2.2.24-r6.ebuild 997 RMD160 e3f8718d3a1c86c96ca35f42788e46fab041447b SHA1 931ddd9e81c5b433517461413b8c63b57d8e6c5c SHA256 f0172bcc4e9fc400f611f6d04237d07bf42746e42c2a209bf2a85fdbace39761
EBUILD calculate-install-2.2.24.ebuild 805 RMD160 03a686ea79b138f2c91e9b7e0ec2282ad28f5f78 SHA1 7cb0dc07aa7eaec1ba6d8d722c08b0936a4b12a9 SHA256 f425da4dbc0ccac4b126517d4770a273add08f26f147d599b6261662561eb2ab
EBUILD calculate-install-2.2.9999.ebuild 597 RMD160 6ce3f529d563f3a9b3fc04fc698e5039b7388d9f SHA1 168ec5e36c8082191397df4650f09ccca8304944 SHA256 e23a9ee3c69b28e3207a44caccbd740c3d46cd3542aab3342bd6b81e0b750f65
MISC ChangeLog 31751 RMD160 673d973a447c47cca3a4fdb003d1ff1c08486915 SHA1 ca8e27e63c69f8f0361d4b1a32c5c12bf3029067 SHA256 c9e7752e86973a3ac582ba8ede5940801f8d57058fd396d625242d93f694afbc

@ -0,0 +1,43 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="3"
inherit distutils eutils
SRC_URI="ftp://ftp.calculate.ru/pub/calculate/calculate2/${PN}/${P}.tar.bz2"
DESCRIPTION="The program of installation Calculate Linux"
HOMEPAGE="http://www.calculate-linux.org/main/en/calculate2"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE="minimal"
DEPEND="~sys-apps/calculate-templates-2.2.24
~sys-apps/calculate-lib-2.2.24
app-portage/layman
!app-misc/livecd-tools
!minimal? ( sys-boot/grub
sys-apps/gptfdisk
>=sys-apps/util-linux-2.19.1
sys-fs/dosfstools
sys-fs/squashfs-tools
sys-block/parted )"
RDEPEND="${DEPEND}"
src_unpack() {
unpack "${A}"
cd "${S}"
# support auto march, re-fix detect current version
# some fixes, fix sleep in xautologin
epatch "${FILESDIR}/calculate-install-2.2.24-r6.patch"
}
pkg_postinst() {
einfo "For configure calculate-install perform:"
einfo " cl-install --install"
}

@ -0,0 +1,367 @@
diff --git data/bashlogin data/bashlogin
index ea9493a..4152a1c 100644
--- data/bashlogin
+++ data/bashlogin
@@ -1,7 +1,26 @@
#!/bin/bash
+# Copyright 2011 Calculate Ltd. http://www.calculate-linux.org
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
export HOME=/root
cat /etc/motd 2>/dev/null
-cd /root
-[[ -e .bash_profile ]] && source .bash_profile
-exec -l /bin/bash -i
+cd $HOME
+if [[ -f .bashrc ]]
+then
+ source .bashrc
+elif [[ -f .bash_profile ]]
+then
+ source .bash_profile
+fi
+exec -l -a bash /bin/bash
diff --git data/calculate data/calculate
index f213a07..7339b32 100644
--- data/calculate
+++ data/calculate
@@ -1,4 +1,17 @@
#!/sbin/runscript
+# Copyright 2011 Calculate Ltd. http://www.calculate-linux.org
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
depend() {
need localmount root fsck modules
@@ -88,7 +101,11 @@ configure_users() {
then
for user in $(variable_value cl_migrate_user | sed -r "s/[][,']//g")
do
- cl-desktop $user
+ HOME_DIR=`getent passwd $user | awk -F: '{ print( $6 ); }'`
+ if [[ $user == "root" ]] || [[ -f $HOME_DIR/.calculate/ini.env ]]
+ then
+ cl-desktop $user
+ fi
done
fi
}
diff --git data/handbook-en.html data/handbook-en.html
index 971fb57..baf868f 100644
--- data/handbook-en.html
+++ data/handbook-en.html
@@ -23,10 +23,10 @@ pre {font-size:133% }
<h2 id="Thank-you-for-using-Calculate-Linux">Thank you for using Calculate Linux!<a href="#Thank-you-for-using-Calculate-Linux" class="wiki-anchor">&para;</a></h2>
- <p>We have tried to do for you the most convenient system for work, using the original installer, redesigned user interface, templates, Calculate utilities and Gentoo Portages. The system distributed as installation image, which contains best software. Most of software have an free license, which allows you to install, distribute and modify the source code.</p>
+ <p>We do our best to offer you a most convenient system for work, using the original installer, redesigned user interface, templates, Calculate utilities and Gentoo Portages. The system is distributed as an installation image, which contains chosen software. Most of the software we have included come under the free license, thus allowing you to install, distribute and modify the source code.</p>
- <p>In the description you may see the following abbreviations for distributions:</p>
+ <p>Below is the complete list of our distributions with their abbreviations:</p>
<ul>
@@ -40,16 +40,16 @@ pre {font-size:133% }
</ul>
- <p>To obtain administrator rights in system running from livecd use login root with password <strong>root</strong>. Access to the desktop CLD, CLDG and CLDX obtains by the user guest with password <strong>guest</strong>.</p>
+ <p>To obtain administrator rights in the system running from livecd use login root with password <strong>root</strong>. Access to the desktop CLD, CLDG and CLDX can be obtained by the user guest with password <strong>guest</strong>.</p>
<h2 id="Network-configuration">Network configuration<a href="#Network-configuration" class="wiki-anchor">&para;</a></h2>
- <p>In CLD, CLDG and CLDX Network Setup performs Networkmanager. The program has a graphical interface with which you can customize both wired and wireless networks. When you load the program, it tries to bring up a network interface and obtain an IP address from a DHCP server. Start the program using the icon in the upper right corner of the screen.</p>
+ <p>Network Setup in CLD, CLDG and CLDX is performed with the Networkmanager. The program has a graphical interface with which you can configure both wired and wireless networks. When you load the program, it tries to bring up a network interface and obtain an IP address from a DHCP server. Start the program using the icon in the upper right corner of the screen.</p>
- <p>Network Configuration of CLS, CDS and CSS is performed through a configuration file <em>/etc/conf.d/net</em>, help on setting up a network can be found in the file <em>/usr/share/doc/openrc/net.example</em>. After changing the settings, restart the network interface:</p>
+ <p>Network Configuration of CLS, CDS and CSS is performed through a configuration file <em>/etc/conf.d/net</em>, help on setting up a network can be found in <em>/usr/share/doc/openrc/net.example</em>. After changing the settings, restart the network interface:</p>
<pre>
@@ -59,10 +59,10 @@ pre {font-size:133% }
<h2 id="Partition-management">Partition management<a href="#Partition-management" class="wiki-anchor">&para;</a></h2>
- <p>Before installing, you may need to change the partitions on your hard disk. To set the CLD, CLDG and CLDX we recommend that you use the partition at least 10 GB. More detailed hardware requirements can be found <a href="http://www.calculate-linux.org/main/en/hardware_requirements" class="external">here</a>. The swap partition (swap) usually released in two large size of RAM. If the swap partition already exists, the system will use it. It is useful to have a separate partition for personal files (/home). Our recommendations on partitioning described <a href="http://www.calculate-linux.org/main/en/disk_partitioning" class="external">here</a>.</p>
+ <p>Before installing, you may need to change the partitions on your hard disk. To set the CLD, CLDG and CLDX, we recommend that you use the partition of at least 10 GB. More detailed hardware requirements can be found <a href="http://www.calculate-linux.org/main/en/hardware_requirements" class="external">here</a>. The swap partition (swap) will normally be twice the size of RAM. If the swap partition already exists, the system will use it. It is wise to have a separate partition for personal files (/home). See more detailed recommendations on partitioning <a href="http://www.calculate-linux.org/main/en/disk_partitioning" class="external">here</a>.</p>
- <p>In the CLD to change the disk partition included the program <em>Partitionmanager</em>, for CLDG and CLDX - <em>Gparted</em>. You can also perform disk partitioning in the graphical installer, that uses utilities <em>cfdisk</em>. CLS and CDS contains only the command line utilities: <em>fdisk</em> or <em>cfdisk</em>.</p>
+ <p>The CLD distro uses <em>Partitionmanager</em> to change the disk partitioning, while CLDG and CLDX use <em>Gparted</em>. You can also partition the disk in the graphical installer, using <em>cfdisk</em> utilities. Note that CLS and CDS contain only the command line utilities: <em>fdisk</em> or <em>cfdisk</em>.</p>
<p>To view a list of existing partitions, open a console as user <em>root</em> and type:<br /><pre>
@@ -70,16 +70,16 @@ fdisk -l
</pre></p>
- <p>Note: To obtain <em>root</em> permissions in the console, use su or sudo.</p>
+ <p>Note: To obtain <em>root</em> permissions in console, use su or sudo.</p>
- <p>If you never used Linux, you will need a bit of time trying to get used to the other headings.<br />In Linux, partitions are referred to as <em>sda1, sda2, ...</em> instead of the usual C:\, D:\, ...</p>
+ <p>If you are new to Linux, you will need a bit of time getting used to the headings differences.<br />In Linux, partitions are referred to as <em>sda1, sda2, ...</em> instead of the usual C:\, D:\, ...</p>
- <p>You can also use already prepared partition or create it from <em>Windows</em>. To determine the selected partition in Linux, remember the sequence of its location and size. Usualy, drive, C:\ corresponds sda1, disk D:\ - sda2.</p>
+ <p>You can also use the existing partition or create it from <em>Windows</em>. To determine the selected partition in Linux, remember the sequence of its location and size. Usually, drive C:\ corresponds to sda1, disk D:\, to sda2.</p>
- <h2 id="Installation">Installation<a href="#Installation" class="wiki-anchor">&para;</a></h2>
+ <p><h2 id="Installation">Installation<a href="#Installation" class="wiki-anchor">&para;</a></h2>
<p>Installing Calculate Linux 10.9 or higher performs by program <code>cl-install</code>. CLD, CLDG, CLDX and CLS distros have a graphical front-end <code>cl-install-gui</code>. The program can be run by clicking on the icon "Calculate Linux Install" on the desktop.</p>
@@ -98,21 +98,21 @@ List of most commonly used parameters:
</ul>
- <p>During installation, the program will extract <em>stage4</em> - the image of the system - and performs the initial configuration using templates.</p>
+ <p>During installation, the program will extract <em>stage4</em> - the image of the system - and performs the initial configuration using templates.</p></p>
<h2 id="Installing-on-USB-Flash">Installing on USB-Flash<a href="#Installing-on-USB-Flash" class="wiki-anchor">&para;</a></h2>
- <p><em>Before you begin, make a backup of your data on a flash drive.</em></p>
+ <p><em>Before you begin, we highly recommend that you make a backup of your data on a flash drive.</em></p>
- <p>To install the system on the USB-Flash uses a command line utility <code>cl-install</code>. Plug the flash drive to your computer. To determine the device name of your stick, run following command in console with the rights <em>root</em>:<br /><pre>
+ <p>To install the system on the USB-Flash uses a command line utility <code>cl-install</code>. Plug the flash drive to your computer. If you don't know the device name of your stick, run the following in console with the rights <em>root</em>:<br /><pre>
fdisk -l
</pre></p>
- <p>If your flash drive was defined as device /dev/sdb, to make installation of the system to it, type in console:<br /><pre>
+ <p>If your flash drive was defined as device /dev/sdb, type in console to install the system on it:<br /><pre>
cl-install -d /dev/sdb1
</pre></p>
@@ -120,24 +120,24 @@ cl-install -d /dev/sdb1
<h2 id="The-first-launch">The first launch<a href="#The-first-launch" class="wiki-anchor">&para;</a></h2>
- <p>After installing the CLD, CLDX and CLSG in the system are two users: <em>root</em> and <em>guest</em> (if you do not specify other users). Access to the graphical session can get the user <em>guest</em>. Use the username <em>guest</em> with password <strong>guest</strong> to login.</p>
+ <p>After installing the CLD, CLDX and CLSG you get two users: <em>root</em> and <em>guest</em> (if you have not specified other user accounts). The user <em>guest</em> can get access to the graphical environment: use the username <em>guest</em> with password <strong>guest</strong> to login.</p>
- <p>In CLS by default have no graphical invitation to enter the password. After installation you can login as root and launch window manager with command:<br /><pre>
+ <p>CLS has by default no graphical invitation to enter the password. After installation you can login as root and launch window manager typing:<br /><pre>
startx
</pre></p>
- <p>For <em>root</em> user, use the command "su". Create users described in detail <a href="http://www.calculate-linux.org/main/en/create_system_users" class="external">here</a>.</p>
+ <p>To become the <em>root</em> user, use the command "su". More details on creating user accounts can be found <a href="http://www.calculate-linux.org/main/en/create_system_users" class="external">here</a>.</p>
- <p>By default, you can log into the system remotely using ssh only by root. You can add a space to other users or to replace the root user edit the options AllowUsers file <em>/etc/ssh/sshd_config</em>. We recommend to remove the right to remotely access the system for the user <em>root</em>.</p>
+ <p>By default, you can log into the system remotely using ssh only by root. To add a space for other users or to replace the root user edit the options AllowUsers in <em>/etc/ssh/sshd_config</em>. We recommend to deny the remote access for the <em>root</em> user.</p>
<h2 id="Update">Update<a href="#Update" class="wiki-anchor">&para;</a></h2>
- <p>Calculate Linux uses a rolling-release model updates. You can update the system virtually unlimited number of times, using manager software installation "emerge". To update the packages in the distribution, execute:<br /><pre>
+ <p>Calculate Linux is a rolling-release distribution. You can update the system virtually unlimited number of times, using the "emerge" software manager. To update all of the installed packages, execute:<br /><pre>
layman -s calculate
eix-update
emerge -uD world
@@ -149,13 +149,13 @@ eix-sync
</pre></p>
- <p>After that, you can upgrade existing or install new versions of programs, using the program "emerge". Quick reference shows the <a href="http://www.calculate-linux.org/main/en/add_and_remove_programs" class="external">here</a>. Read also the <a href="http://www.calculate-linux.org/main/en/system_update_guide" class="external">System Update Guide</a>.</p>
+ <p>After that, you can upgrade existing or install new versions of programs with "emerge". A quick reference can be found <a href="http://www.calculate-linux.org/main/en/add_and_remove_programs" class="external">here</a>. Read also the <a href="http://www.calculate-linux.org/main/en/system_update_guide" class="external">System Update Guide</a>.</p>
<h2 id="Help">Help<a href="#Help" class="wiki-anchor">&para;</a></h2>
- <p>If your installation has any difficulties, or you want to share your impressions, visit the IRC channel <em>#calculate</em> (server FreeNode) user community Calculate Linux. It's enough to use Xchat icon on your desktop.</p>
+ <p>If you have any difficulties installing Calculate Linux, or if you want to share your impressions, visit the IRC channel <em>#calculate</em> (server FreeNode) of our user community. You just have to click on the Xchat icon on your desktop.</p>
<p>Website: <a class="external" href="http://www.calculate-linux.org">http://www.calculate-linux.org</a><br />Newsletter: <a class="external" href="http://www.calculate-linux.org/main/en/maillist">http://www.calculate-linux.org/main/en/maillist</a><br />IRC chat: <a class="external" href="http://www.calculate-linux.org/irc">http://www.calculate-linux.org/irc</a></p>
diff --git data/xautologin data/xautologin
index c33a1bf..d854e2f 100644
--- data/xautologin
+++ data/xautologin
@@ -1,5 +1,5 @@
#!/bin/bash
-# Copyright 2010 Calculate Ltd. http://www.calculate-linux.org
+# Copyright 2011 Calculate Ltd. http://www.calculate-linux.org
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -100,6 +100,7 @@ EOF
sessreg -d -l ${DISPLAYNUM} ${XUSER}
# perform logout scripts for user
env USER=${XUSER} /usr/share/calculate/xdm/xdm --logout
+ sleep 7
[[ -n $XPID ]] && kill $XPID
wait $XPID
done
diff --git man/cl-install.1 man/cl-install.1
index 8e64242..f2ddcee 100644
--- man/cl-install.1
+++ man/cl-install.1
@@ -52,7 +52,7 @@ Lets you choose your distribution. Valid values are "CDS", "CLD", "CLDG", "CLD
.PP
\fB\-\-march\fR \fIarchitecture\fR
.RS 4
-Lets you choose your CPU's architecture. Valid values are "i686" and "x86_64". If specified, the required distro will be searched for in '/var/calculate/linux' and '/var/calculate/remote/linux'.
+Lets you choose your CPU's architecture. Valid values are "i686", "x86_64" and "auto". If specified, the required distro will be searched for in '/var/calculate/linux' and '/var/calculate/remote/linux'.
.RE
.PP
\fB\-\-build\fR
diff --git man/ru/cl-install.1 man/ru/cl-install.1
index 94c5cdd..6aeb790 100644
--- man/ru/cl-install.1
+++ man/ru/cl-install.1
@@ -52,7 +52,7 @@ DISK - раздел для установки или директория, в с
.PP
\fB\-\-march\fR \fIархитектура\fR
.RS 4
-Выбор архитектуры процессора, допустимые значения "i686", "x86_64". В случае использования параметра будет выполнен поиск необходимого дистрибутива из исходных директорий.
+Выбор архитектуры процессора, допустимые значения "i686", "x86_64", "auto". В случае использования параметра будет выполнен поиск необходимого дистрибутива из исходных директорий.
.RE
.PP
\fB\-\-build\fR
diff --git pym/cl_fill_install.py pym/cl_fill_install.py
index f7e861c..27b0881 100644
--- pym/cl_fill_install.py
+++ pym/cl_fill_install.py
@@ -29,7 +29,7 @@ from cl_utils import isMount,typeFile,getTupleVersion,pathJoin,isFstabMount,\
FStab, lspci, getInstalledVideo,getDeviceType, \
getPartitionType, getOsProberHash, getProgPath, \
getRaidPartitions, getLvmPartitions, getLvmGroups, \
- refreshLVM, refreshUdev, getPasswdUsers
+ getPasswdUsers
from cl_distr import DistributiveRepository,PartitionDistributive
from cl_fill import clLocale
from operator import itemgetter
@@ -325,11 +325,6 @@ class fillVars(object, glob_attr):
else:
return devpath
- # refresh information about LVM
- refreshLVM()
- # refresh information about device in udevadm info
- refreshUdev()
-
devicesHash = self.Get('os_device_hash')
sysBlockPath = '/sys/block'
# get disks from sys block which not contains partitions
@@ -838,6 +833,8 @@ class fillVars(object, glob_attr):
def get_os_install_linux_ver(self):
"""Linux version of installation os"""
+ if self.Get('cl_action') != "system":
+ return self.Get('os_linux_ver')
imagename = self.getImage(self.Get('os_install_scratch'),
self.Get('os_install_root_type'),
self.Get('cl_image_path'),
diff --git pym/cl_install.py pym/cl_install.py
index 1d68c9b..c723dc5 100644
--- pym/cl_install.py
+++ pym/cl_install.py
@@ -27,7 +27,8 @@ from cl_utils import runOsCommand,appendProgramToEnvFile, \
scanDirectory,process,getTupleVersion, \
detectDeviceForPartition,listDirectory, \
cmpVersion,STDOUT,getUdevDeviceInfo, \
- getLvmPartitions,getInstalledVideo
+ getLvmPartitions,getInstalledVideo, \
+ getSupportArch, refreshLVM, refreshUdev
from cl_vars_share import varsShare
from cl_kernel_utils import KernelConfig,InitRamFs
@@ -800,6 +801,11 @@ class cl_install(color_print, SignalInterrupt):
Spinner().setWriteFunc(self.defaultPrint)
cl_overriding.exit = installExit
cl_overriding.printERROR = overprintERROR
+ # refresh information about LVM
+ refreshLVM()
+ # refresh information about device in udevadm info
+ refreshUdev()
+
def setNoColor(self):
self.color = False
@@ -2403,10 +2409,12 @@ class cl_install(color_print, SignalInterrupt):
def checkCorrectBootRecordDisk(self):
"""Check boot record disk"""
mbr = self.clVars.Get('os_install_mbr')
+ if mbr == "off" or mbr == "":
+ return True
tableOnBootDisk = self.varSelect('os_device_table',
where="os_device_dev",eq=mbr)
if not tableOnBootDisk:
- self.printERROR(_("Disk '%s' without partition table cann't "
+ self.printERROR(_("Disk '%s' without partition table can't "
"contains boot record")%mbr)
return False
return True
@@ -2693,3 +2701,9 @@ the system") + " (yes/no)"
else:
self.clVars.Set('os_install_clock_timezone',timezone,force=True)
return True
+
+ def setArchitecture(self,march):
+ """Set architecture by march (support auto keyword)"""
+ if march == "auto":
+ march = getSupportArch()[-1]
+ self.clVars.Set('os_install_arch_machine', march, True)
diff --git pym/cl_install_cmd.py pym/cl_install_cmd.py
index 570ecbe..6f5e7ec 100644
--- pym/cl_install_cmd.py
+++ pym/cl_install_cmd.py
@@ -70,8 +70,9 @@ CMD_OPTIONS = [{'shortOption':"d",
{'longOption':"march",
'optVal':"ARCH",
'type':'choice',
- 'choices':['i686','x86_64'],
- 'help':_("select processor architecture")
+ 'choices':['i686','x86_64','auto'],
+ 'help':_("select processor architecture")+ \
+ " (i686,x86_64 or auto)"
},
{'longOption':"build",
'help':_("installation for assembling")
@@ -446,8 +447,7 @@ class install_cmd(share_cmd):
if self.optobj.values.s:
self.logicObj.setLinuxName(self.optobj.values.s.upper())
if self.optobj.values.march:
- self.logicObj.clVars.Set('os_install_arch_machine',
- self.optobj.values.march,True)
+ self.logicObj.setArchitecture(self.optobj.values.march)
if self.optobj.values.nouuid:
self.logicObj.clVars.Set('cl_uuid_set','off',True)
if self.optobj.values.build:

@ -3,6 +3,7 @@ AUX calculate-templates-2.2.24-r2.patch 29270 RMD160 3a19fd9766d9509208ae1d52b69
AUX calculate-templates-2.2.24-r3.patch 31113 RMD160 7510e5ce024506f7ee86ca3f38d48f7a2d5388ab SHA1 bee1057dd2766f2b4c6233c37cf835c1bda66ee6 SHA256 2963cff2bbb2e0f16c8149dab18f765713dd46d389e3e47ff281be5f57f6c0ab
AUX calculate-templates-2.2.24-r4.patch 37017 RMD160 83231a453ec1e996a89138957dcae88dbf5e54f0 SHA1 93f55fbd3e3f608422c0382435efefee41f7c53f SHA256 2246d7a5f5831dc04c1a8faa098178a1f278c4e6e833e9fdfad82e62c0f376a1
AUX calculate-templates-2.2.24-r5.patch 43300 RMD160 56c136c99d3050c7b32b821d119be7955bd38efa SHA1 2a4b9fc985b612ba2be1976fe4701bc51625b2b6 SHA256 780649b09dfd409d94ea3a50ceb64dbba8e0d4af2cdd85d77c24b310eeb7a296
AUX calculate-templates-2.2.24-r7.patch 2641 RMD160 9c8ed19017fb1903f688d60379ca1f08953f432d SHA1 84b5278ee5c2d88938c43caa68a88a00d1431a5d SHA256 2c5de5f7446dc9c22f09b93f091e59dbfea99a5b623390b928aa50d828c82697
DIST calculate-templates-2.2.24-r6.tar.bz2 247568 RMD160 df6d8b2cb09c292668528b08382afd563c2e81f7 SHA1 df12ef7a680e76dc13ab2666df8ef84ff4504944 SHA256 b339b318e7dcb5ab045278f0b736fdddd1d5cd53e60c017e73324b7cb23d4d51
DIST calculate-templates-2.2.24.tar.bz2 247373 RMD160 eccaa0fb8a02ce6114b9fa24367e5d3ba38b80a4 SHA1 556aa83ce71e2202d9ca66fb6c8b1bc0dfbff44b SHA256 26a3c18c2e18167d4099412e69001cd1f8fd5c2f7165dcd3f24b80701f5d2751
EBUILD calculate-templates-2.2.24-r1.ebuild 718 RMD160 99d37d439cc2018902fd036acc35d5676a413074 SHA1 d575a81a56ffb19d3f7337d3f20f43da3e3e2c87 SHA256 f765421192ffb1ff987917e4578dd6fa532101841125b43447d69c12eeffb59f
@ -11,6 +12,7 @@ EBUILD calculate-templates-2.2.24-r3.ebuild 780 RMD160 17d989eeb58626ec9cd4ab153
EBUILD calculate-templates-2.2.24-r4.ebuild 800 RMD160 da6643dd8795bede79d57fb5b3c577fcb5a784ac SHA1 7d1a022a3bb3133ca79e72c9e940be177fc9e43f SHA256 f00a3e9bac3ec8bf025e44a8f39f79cbe62877bea642fa645de95b7105e829cc
EBUILD calculate-templates-2.2.24-r5.ebuild 800 RMD160 76ea8a54bbfabe63e76844eb430c904944d20596 SHA1 750467abc158882c83a16801dc24cbf06f6defc3 SHA256 2987075004edb08ad846fba682fc1b750dd653c11ba604211ccf5b9c98c357d2
EBUILD calculate-templates-2.2.24-r6.ebuild 585 RMD160 c6b7644ff26907fa64ade9337fdc96b9beee809c SHA1 6f46f29b7443da2a3818daf19e6a889116a0fd6b SHA256 a35a2cbd039aa0676303c5df2ba2b2015ba79b4e8af40ac3abc26f6560345bce
EBUILD calculate-templates-2.2.24-r7.ebuild 809 RMD160 06ec1787f2f4495f1ff8703abf1a6dbc0f766aed SHA1 76c935dab6cc2abb6661995057efef34d1adf661 SHA256 05d16d7e43bb5cb73c717f8eb5da8ad2b7fc1550139b354259b04b466b55c138
EBUILD calculate-templates-2.2.24.ebuild 582 RMD160 77c74362587b218b15ad9651903420e3ec01962f SHA1 ea9150e2e0476a8d5236f0388e3cdfd1a268bdf7 SHA256 4d0808a6993e403745b7820596d99cb8d2a206b4938f8ea916c1f305c61d2687
EBUILD calculate-templates-2.2.9999.ebuild 574 RMD160 0898335742573bd029339ae8682b1676cdc6c91c SHA1 d05a1b5986858e35e7f0618a7660ad8e43bbca43 SHA256 c201dbf1dc238f309993c20148918661f057fe406fdb87ed4ef6c3bca0261427
MISC ChangeLog 34330 RMD160 1e3066cb9accc7425ca4c8c22d0066586125d1b3 SHA1 6a87d41fbe3fd73e9aa575ada35c924497dab1ff SHA256 7c8fa474a3df8a0b1f4d4ed43914be5a1d78c3db5ad1abb2d821db0dad8f6ff0

@ -0,0 +1,38 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="3"
inherit eutils
SRC_URI="ftp://ftp.calculate.ru/pub/calculate/calculate2/${PN}/${P}-r6.tar.bz2"
DESCRIPTION="Templates for calculate utilities 2.2"
HOMEPAGE="http://www.calculate-linux.org/main/en/calculate2"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="amd64 x86"
DEPEND="~sys-apps/calculate-lib-2.2.24"
RDEPEND="${DEPEND}"
src_unpack() {
unpack "${A}"
cd "${S}"
# Fix install panel application, fix conf.d/net by flash installation
# create auxilary dirs, mc colors, sudo su, xmbc
epatch "${FILESDIR}/calculate-templates-2.2.24-r7.patch"
}
src_compile() {
:
}
src_install() {
dodir /usr/share/calculate/templates
insinto /usr/share/calculate/templates
doins -r *
}

@ -0,0 +1,75 @@
diff --git desktop/desktop/60-xbmc-10.0/guisettings.xml desktop/desktop/60-xbmc-10.0/guisettings.xml
index 094edba..1e009ec 100644
--- desktop/desktop/60-xbmc-10.0/guisettings.xml
+++ desktop/desktop/60-xbmc-10.0/guisettings.xml
@@ -1,10 +1,69 @@
# Calculate path=~/.xbmc/userdata
<settings>
<locale>
+#?os_locale_lang==en_US#
+ <language>English (US)</language>
+ <timezone>America/New_York</timezone>
+ <timezonecountry>United States</timezonecountry>
+#os_locale_lang#
+#?os_locale_lang==ru_RU#
<charset>CP1251</charset>
- <country>USA</country>
+ <language>Russian</language>
+ <timezone>Europe/Moscow</timezone>
+ <timezonecountry>Russia</timezonecountry>
+#os_locale_lang#
+#?os_locale_lang==de_DE#
+ <language>German</language>
+ <timezone>Europe/Berlin</timezone>
+ <timezonecountry>Germany</timezonecountry>
+#os_locale_lang#
+#?os_locale_lang==es_ES#
<language>Russian</language>
<timezone>Europe/Moscow</timezone>
<timezonecountry>Russia</timezonecountry>
+#os_locale_lang#
+#?os_locale_lang==it_IT#
+ <language>Italian</language>
+ <timezone>Europe/Rome</timezone>
+ <timezonecountry>Italy</timezonecountry>
+#os_locale_lang#
+#?os_locale_lang==fr_FR#
+ <language>French</language>
+ <timezone>Europe/Paris</timezone>
+ <timezonecountry>France</timezonecountry>
+#os_locale_lang#
+#?os_locale_lang==pl_PL#
+ <language>Polish</language>
+ <timezone>Europe/Warsaw</timezone>
+ <timezonecountry>Poland</timezonecountry>
+#os_locale_lang#
+#?os_locale_lang==pt_PT#
+ <language>Portuguese</language>
+ <timezone>Europe/Lisbon</timezone>
+ <timezonecountry>Portugal</timezonecountry>
+#os_locale_lang#
+#?os_locale_lang==pt_BR#
+ <language>Portuguese (Brazil)</language>
+ <timezone>America/Puerto_Rico</timezone>
+ <timezonecountry>Puerto Rico</timezonecountry>
+#os_locale_lang#
+#?os_locale_lang==bg_BG#
+ <language>Bulgarian</language>
+ <timezone>Europe/Sofia</timezone>
+ <timezonecountry>Bulgaria</timezonecountry>
+#os_locale_lang#
+#?os_locale_lang==ro_RO#
+ <language>Romanian</language>
+ <timezone>Europe/Bucharest</timezone>
+ <timezonecountry>Romania</timezonecountry>
+#os_locale_lang#
+#?os_locale_lang==uk_UA#
+ <language>Ukrainian</language>
+ <timezone>Europe/Kiev</timezone>
+ <timezonecountry>Ukraine</timezonecountry>
+#os_locale_lang#
</locale>
+ <powermanagement>
+ <shutdownstate>1</shutdownstate>
+ </powermanagement>
</settings>

@ -2,6 +2,12 @@
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
*calculate-utilities-2.2.24-r9 (30 Sep 2011)
30 Sep 2011; Mike Hiretsky (mhiretskiy) <mh@calculate.ru>
+calculate-utilities-2.2.24-r9.ebuild:
Update for install and templates
*calculate-utilities-2.2.24-r8 (29 Sep 2011)
29 Sep 2011; Mike Hiretsky (mhiretskiy) <mh@calculate.ru>

@ -6,6 +6,7 @@ EBUILD calculate-utilities-2.2.24-r5.ebuild 885 RMD160 086c3f072e81e739dbe46d234
EBUILD calculate-utilities-2.2.24-r6.ebuild 885 RMD160 1b2a1004d9dfe34d53dbee65895390549be74c73 SHA1 9f2efc1e5edcd063cd6f469eaf827fa779c6bcc0 SHA256 2143bf1b761323d31b6e62ee5dadf162d1fd3506405cfbfd85e8c10b870747dc
EBUILD calculate-utilities-2.2.24-r7.ebuild 885 RMD160 ed397e97011f5250d5ceba8a2cff68ac1c698868 SHA1 d1d5f02cf46df4960c65c4541581201854dc6bfc SHA256 5083fc75f3080dc29dd4e3fcc5428ff6dc5768085b301d2145423133195bbd50
EBUILD calculate-utilities-2.2.24-r8.ebuild 885 RMD160 fc01b867dd5b79294cdf0581954be124f53a05f5 SHA1 0a16405f40a5122326ec4de2f83dafd1c12a8cf9 SHA256 218d678cf21b5ee200dcfa67b68ca9f7dafc650e8dd13ffc63c20cb8aa07b10e
EBUILD calculate-utilities-2.2.24-r9.ebuild 885 RMD160 64810ea35986869adff8dd3298607985978e6e59 SHA1 5951c55c53517cb66a87276101aac01c9afcf99f SHA256 7a9c5a4e8710dd651474ec505853102858c44bc7bffb9716d3752924297c610c
EBUILD calculate-utilities-2.2.24.ebuild 861 RMD160 71a8eac35eade9be90df9cacbb5b4d9ba07d3664 SHA1 258da46af67a0e0995074a9c7f01b33234711ca9 SHA256 f1a33869f243365632a9af11ab9ed2538a6b2c183dd9ddbf28d48ad564df3d54
EBUILD calculate-utilities-2.2.9999.ebuild 840 RMD160 0c7324a9ed480118ac19f62b162c9ee62c25f964 SHA1 7dadab1430ed147334ed7e9b4fcc86dc99e25d56 SHA256 f3ee28f9f765e7302c83eb4a15a09bdf066f09e6b40e34f6d52157a946df5e66
MISC ChangeLog 27613 RMD160 b8208daba4b19424a864adfb907ddc7819e0ba7e SHA1 d81b9ea22934dabe7ce4aabc7335c76eea9afcd4 SHA256 e88762fb5f31bf4c8cfbe8f7e89a5b73ddf6c79db073d3afc5ebb0e48b0318fa
MISC ChangeLog 27796 RMD160 2b32c768255d16bd6bf1396ea9cf98a3748dc6f8 SHA1 60603f44e01cc3415918c4a62e77527b74e32fd5 SHA256 8ac45014e68c05156ee2c9efdd8afd41ad2fc254225103faa75ea45a82c4aace

@ -0,0 +1,36 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=3
DESCRIPTION="Calculate Utilities meta package"
HOMEPAGE="http://www.calculate-linux.org/main/en/calculate2"
SRC_URI=""
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE="
cl_assemble
cl_builder
cl_client
cl_desktop
cl_installgui
cl_server
"
RDEPEND="${RDEPEND}
=sys-apps/calculate-install-2.2.24-r6
=sys-apps/calculate-templates-2.2.24-r7
=sys-apps/calculate-lib-2.2.24-r2
=sys-apps/calculate-i18n-2.2.24-r1
cl_assemble? ( =sys-apps/calculate-assemble-2.2.24 )
cl_builder? ( =sys-apps/calculate-builder-2.2.24-r2 )
cl_client? ( =sys-apps/calculate-client-2.2.24-r1 )
cl_desktop? ( =sys-apps/calculate-desktop-2.2.24-r2 )
cl_installgui? ( =app-misc/calculate-install-gui-2.2.24-r1 )
cl_server? ( =sys-apps/calculate-server-2.1.14-r6 )
"
Loading…
Cancel
Save