Update install for english man.

atratsevskiy
Mike Hiretsky 13 years ago
parent 504781fcf1
commit a7202c2455

@ -2,6 +2,13 @@
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
*calculate-install-2.2.21-r3 (23 Aug 2011)
23 Aug 2011; Mike Hiretsky (mhiretskiy) <mh@calculate.ru>
+calculate-install-2.2.21-r3.ebuild,
+files/calculate-install-2.2.21-r3.patch:
Update for adding man
*calculate-install-2.2.21-r2 (22 Aug 2011)
22 Aug 2011; Mike Hiretsky (mhiretskiy) <mh@calculate.ru>

@ -15,6 +15,7 @@ AUX calculate-install-2.2.20-net_network.patch 1496 RMD160 142d7420565283eee8949
AUX calculate-install-2.2.20_2.2.21_rc1.patch 36707 RMD160 279605cc9ce454e93f5620d0151eaa5b5a83dc09 SHA1 f5e3104b869d74ae207604d6685924d79a2a1223 SHA256 b68a756710d7abf60fc61b0154e870e152b2d2d533e1ccf229189555f933e796
AUX calculate-install-2.2.21-r1.patch 1059 RMD160 b78b780b87f73504c45c4b9e6feb89a4489e101a SHA1 5eb9ff84ed9bf9c7a6b8706bda463451ccc804ea SHA256 412598c1c2ebe23f245f1e0597b0938b9be76050e8b21906c053202b9ec54025
AUX calculate-install-2.2.21-r2.patch 5802 RMD160 3b73c9b524785f6c1c1f82537bfff46b78d49dde SHA1 eb0954ca648bd0f0e2eabcb7b9da740c869bd518 SHA256 7c10369cd59f4a9fff6b2ebf0c7897f622edfbd8d9fc62aec296b9f6bb2a0cf8
AUX calculate-install-2.2.21-r3.patch 18457 RMD160 2aceaf84cc1df2da2ad55846e499ade724a2eaad SHA1 e76ea035b2fffbe08e28cb065a6a2f62dc7bd738 SHA256 b976a06eb1f644654952241429113549f854c4b99ebefa28249a24afac16116c
DIST calculate-install-2.2.18.tar.bz2 75850 RMD160 56b1058d1977957cc6ceb8322a049af4dbb8f0cc SHA1 4e990cf5bd6310942b54995293f1f7ea82726aa9 SHA256 2a1b9c3fa93a958f19f05af51f80adf25f5ee0867452fac0304ec721de19cd97
DIST calculate-install-2.2.19.tar.bz2 63943 RMD160 8c76315aea89d20239b11c7e6017766b5e5e93db SHA1 1127468d3b221333e820e142fc1b9afaef507ee3 SHA256 5dedcb4c3d42ca4d87b2a2fa0d72704be3748865907b991dddbeba493e0da80a
DIST calculate-install-2.2.20.tar.bz2 65317 RMD160 f91f5b8e6a1f3a41cda246a983274b7665a98259 SHA1 a530fcc91cbb952e36e4e42175c45182d828a987 SHA256 06e3360e3d9e3e599d6696f121908390a241baa16fe9400657ea0a29c0f85fc1
@ -42,7 +43,8 @@ EBUILD calculate-install-2.2.20-r9.ebuild 938 RMD160 d2beaf2db6e430ca8e0357f3805
EBUILD calculate-install-2.2.20.ebuild 774 RMD160 975cdfee5054db3a097a2edbd5bbd4db002b921d SHA1 efdeb24c9021ccbe384190f2e742d41620dd3e20 SHA256 549b961eeb2d3bcbfa526f3b5ed0368439a599e8a797d229a60bc8d0d7ae33c5
EBUILD calculate-install-2.2.21-r1.ebuild 960 RMD160 616508e423d7926c59c3c52a53b085fa28a174ac SHA1 57c81447cabf469331299f74ff4771a4f41a6487 SHA256 80e0fecf61a6ee9d13fe5dba1eefc276aeb07c49c745092581657b599e3883f8
EBUILD calculate-install-2.2.21-r2.ebuild 920 RMD160 458c506b292ce35083eee533ed507c46ffa1ee0a SHA1 04ed11daac73bd33e862e76318ad7a38305f10a8 SHA256 b05d919b5611cfe0aa019ce4deeeef5a218142b47ea0c90f7dff060cb88c497f
EBUILD calculate-install-2.2.21-r3.ebuild 937 RMD160 e17e318ad8f41758ee3b63505ed8cda5c2e220b4 SHA1 401c3f9bdcfe961f9106f5b93d06f58cb46c5c7b SHA256 d927d383bf6650e0600c0e1619ebe6c655ffe8cd0239bef8ceb2e46e0b573c22
EBUILD calculate-install-2.2.21.ebuild 804 RMD160 97f3e98ea3fd7bdf8e54ee23b5c2661c8962e19f SHA1 e7759746ffe19f70c159961a3e261bd09f2e89a1 SHA256 c6d80514eb5cd12eb9e9f687fdd54e2cbc1727a1e2b5b5cc3541e67536d51841
EBUILD calculate-install-2.2.9999.ebuild 595 RMD160 8f9b9a14fed39ded9c2a9d9343aa4e892d620172 SHA1 09aff28bdaa486868e2caddc7911732a905336ee SHA256 534e6c6e465177e269ce7beed96dab08a124878591088c1bf38095e855ca1180
MISC ChangeLog 27105 RMD160 3e9b1d8cd05816f6949082b07e04dc7aa2682e55 SHA1 e154c532a1c7445a9a0710a778576343ba06b95c SHA256 d9c6860ac7d3c7d301a98987ce62157508831d2eb9f5570d3124641594cdd9a0
MISC ChangeLog 27317 RMD160 f6c7801a969ccf6144fefa15995ce071f6a5759a SHA1 bee3459ddb0f555c48d2e77e5733ec0f51e98628 SHA256 f094078c5643966890f77c84960087edb63d11a209d2d997843ca7ded3697869
MISC metadata.xml 310 RMD160 769e4f17a9354da6b168b72a5d65d978f65bf6dd SHA1 83aaae376052d69c7327e880cf028ebc0dea608b SHA256 c29d3efc676d8308872920db5223c78469db86ac236b5d45c3ee98ceb8fca846

@ -0,0 +1,42 @@
# 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.21
~sys-apps/calculate-lib-2.2.21
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}"
# some bugfix, add english man
epatch "${FILESDIR}/calculate-install-2.2.21-r3.patch"
}
pkg_postinst() {
einfo "For configure calculate-install perform:"
einfo " cl-install --install"
}

@ -0,0 +1,446 @@
diff --git data/calculate data/calculate
index 1ad6e8d..b6ad94a 100755
--- data/calculate
+++ data/calculate
@@ -66,7 +66,8 @@ install_video_driver()
# create user guest if system has not non-root user
create_nonroot_user() {
- if [[ -z $(variable_value cl_migrate_user | sed -r "s/[][,']|root//g") ]] &&
+ if which cl-desktop &>/dev/null &&
+ [[ -z $(variable_value cl_migrate_user | sed -r "s/[][,']|root//g") ]] &&
[[ `variable_value os_install_linux_system` != "server" ]]
then
# passwd of non root user
@@ -83,16 +84,19 @@ create_nonroot_user() {
# create/update all user profile
configure_users() {
- for user in $(variable_value cl_migrate_user | sed -r "s/[][,']//g")
- do
- cl-desktop $user
- done
+ if which cl-desktop &>/dev/null
+ then
+ for user in $(variable_value cl_migrate_user | sed -r "s/[][,']//g")
+ do
+ cl-desktop $user
+ done
+ fi
}
start() {
install_video_driver
- LANG=C /usr/bin/cl-install --startup
LANG=C create_nonroot_user
+ LANG=C /usr/bin/cl-install --startup
LANG=C configure_users
/usr/sbin/env-update
diff --git man/cl-install.1 man/cl-install.1
new file mode 100644
index 0000000..a843c0b
--- /dev/null
+++ man/cl-install.1
@@ -0,0 +1,226 @@
+.TH CL-INSTALL 1 "August 23, 2011" "Calculate Utilities" "Calculate Linux Installation"
+.SH NAME
+.PP
+cl-install - Installs Calculate Linux on HDD, USB-Flash or USB-HDD
+.SH SYNOPSIS
+[-d] [-w] [--mbr] [--type] [--iso] [-s] [--march] [--build] [-l] [-u] [--hostname]
+[--netconf] [--dhcp] [--ip] [--route] [--dns] [--proxy] [--ntp] [--nouuid] [--set] [-U] [-f]
+[--startup] [--install] [--uninstall] [--nospinner]
+[-P] [-p] [-v] [--filter] [--xml] [--color] [--version] [-h]
+.SH DESCRIPTION
+.PP
+cl-install - Calculate Linux installation tool. It supports installing on Hard Disk Drive, external hard disk and USB-stick. Image, stored in '/var/calculate/linux' or '/var/calculate/remote/linux' is used for installing. In case of installing from LiveCD/LiveUSB booted image is used.
+.PP
+Installation on hard disk can be done in usual mode or in interactive build mode for creating changed distribution. For installing in interactive build mode use '--build'.
+.PP
+Installation on external hard drive differs by the lack of hardware dependence.
+.PP
+By default, installing on USB-flash is done by copying of liveusb image with fat32 as a filesystem and syslinux bootloader. If needed, system can be installed with full file unpacking like installing on HDD. Use '--type' option for it.
+.SH OPTIONS
+.PP
+Options for
+\fBcl-install\fR:
+.PP
+\fB\-d\fR, \fB\-\-disk\fR \fIDISK[:[DIR:FILESYSTEM:OPTIONS]]\fR
+.RS 4
+DISK - volume for installing or directory in case of remounting the part of filesystem hierarchy. DIR - mounting point, value 'none' cancels mounting point transferring. FILESYSTEM - file system, available values: ext2, ext3, ext4, reiserfs, xfs, jfs, btrfs, nilfs2. OPTIONS - mounting options, see 'man fstab'. For multiple volumes specifying use the option required number of times.
+.RE
+.PP
+\fB\-w\fR, \fB\-\-swap\fR \fIswap volume\fR
+.RS 4
+.RE
+.PP
+\fB\-\-mbr\fR \fIboot disk\fR
+.RS 4
+Disk for Master Boot Record (MBR). Value 'off' cancels boot record changing.
+.RE
+.PP
+\fB\-\-type\fR \fIdevice type\fR
+.RS 4
+Device type. Valid values: hdd, usb-hdd, flash.
+.RE
+.PP
+\fB\-\-iso\fR \fIpath to file\fR
+.RS 4
+Path to file, containing ISO image with distribution. If not specified, image of the same architecture is sought in '/var/calculate/linux' and '/var/calculate/remote/linux', or livecd is used in case of booting from LiveCD/LiveUSB. At finding multiple images, priority is given to more recent version.
+.RE
+.PP
+\fB\-s\fR, \fB\-\-os\fR \fIdistribution\fR
+.RS 4
+The choice of the distribution, valid values "CDS", "CLD", "CLDG", "CLDX", "CLS", "CMC" и "CSS". If specified, required distro is sought in '/var/calculate/linux' and '/var/calculate/remote/linux'.
+.RE
+.PP
+\fB\-\-march\fR \fIarchitecture\fR
+.RS 4
+CPU's architecture choising. Valid values: "i686", "x86_64". If specified, required distro is sought in '/var/calculate/linux' and '/var/calculate/remote/linux'.
+.RE
+.PP
+\fB\-\-build\fR
+.RS 4
+Installing in interactive build mode. Is valid while installing on HDD. If specified, live image during boot will be mounted in a separate layer of aufs2 filesystem. Additional layers allow to separate changes from the results.
+.RE
+.PP
+\fB\-l\fR, \fB\-\-lang\fR \fIlanguage\fR
+.RS 4
+Language choice. Valid values: 'bg_BG' - Bulgarian, 'de_DE' -German, 'en_US' - English, 'es_ES' - Spanish, 'fr_FR' - French, 'it_IT' - Italian, 'pl_PL' - Polish, 'pt_BR' - Portugal Brazilian, 'pt_PT' - Portugal , 'ro_RO' - Romanian, 'ru_RU' - Russian, 'uk_UA' - Ukrainian.
+.RE
+.PP
+\fB\-u\fR, \fB\-\-user\fR \fIuser\fR
+.RS 4
+Users added to the installed system. For adding several users use the option required number of times.
+.RE
+.PP
+\fB\-\-hostname\fR \fIhostname\fR
+.RS 4
+Short or full form of hostname.
+.RE
+.PP
+\fB\-\-netconf\fR \fInetwork manager\fR
+.RS 4
+Network manager choice. Valid values: 'openrc' and 'networkmanager'. The latter can be chosen if NetworkManager is a part of the distro.
+.RE
+.PP
+\fB\-\-dhcp\fR \fIinterface\fR
+.RS 4
+Get IP-address throw DHCP for specified interface. For specifying of two or more interfaces use the option required number of times.
+.RE
+.PP
+\fB\-\-ip\fR \fB[IFACE:]\fR\fIIP\fR
+.RS 4
+IPv4 network address with CIDR specifying. IFACE can indicate a network interface. The default IFACE value is eth0. E.g. 192.168.0.1/24. Specifying of several network interfaces is allowed.
+.RE
+.PP
+\fB\-\-route\fR NETWORK:[GATEWAY][:IFACE[:SOURCE]]
+.RS 4
+Routing rule: network, gateway, interface, source IP. For specifying default gateway, NETWORK can be set as 'default'.
+.RE
+.PP
+\fB\-\-dns\fR \fIDNS\fR
+.RS 4
+Network address of DNS server.
+.RE
+.PP
+\fB\-\-proxy\fR \fIPROXY\fR
+.RS 4
+Network address of proxy server.
+.RE
+.PP
+\fB\-\-ntp\fR \fINTP\fR
+.RS 4
+Network address of NTP timeserver.
+.RE
+.PP
+\fB\-\-nouuid\fR
+.RS 4
+Don't use UUID device names. If specified, usual device names (/dev/sda1, etc.) will be used. Use if you sure in what you do.
+.RE
+.PP
+\fB\-\-set\fR \fIVAR=VALUE\fR
+.RS 4
+Changes internal variable value of Calculate utilities. For multiple values changing use the option required number of times.
+.RE
+.PP
+\fB\-U\fR, \fB\-\-update\fR
+.RS 4
+Run install for new versions only. Handy to use with the second volume for system updating and '--force' option.
+.RE
+.PP
+\fB\-f\fR, \fB\-\-force\fR
+.RS 4
+Don't ask questions while installing.
+.RE
+.PP
+\fB\-\-startup\fR
+.RS 4
+Run configure of the current system. While running system configuration with templates is done, Calculate-utilities join to autoconfiguring of programs installed by package manager. Command is running while livecd booting or first system boot. It's possible to restore the initial configuration of the system. With language, network, video, etc. configuring options it is possible to change system configuration.
+.RE
+.PP
+\fB\-\-install\fR
+.RS 4
+Configuring calculate-install for package configuration. Running this in Calculate Linux leads to joining package for autoconfiguring of programs installed by package manager. Utility is run by profile.bashrc script from calculate overlay.
+.RE
+.PP
+\fB\-\-uninstall\fR
+.RS 4
+Disable package configuring by calculate-install.
+.RE
+.PP
+\fB\-\-nospinner\fR
+.RS 4
+Disable progress bar of system installing.
+.RE
+.PP
+\fB\-P\fR
+.RS 4
+Read passwords from standard input. If specified one or more users passwords are read from standard input.
+.RE
+.PP
+\fB\-p\fR, \fB\-\-show-partitions\fR
+.RS 4
+Show info about present partitions. The info, shown in table view: size, device, label, mounting point, filesystem format, type, installed system.
+.RE
+.PP
+\fB\-v\fR, \fB\-\-show-variables\fR
+.RS 4
+List environmental variables of Calculate utilities with their values and changing access flag. For full view use '-vv'
+.RE
+.PP
+\fB\-\-filter\fR \fIfilter\fR
+.RS 4
+Variable filtering. Is used with '--show-variables'. E.g.: 'cl-install -v --filter=*video*'.
+.RE
+.PP
+\fB\-\-xml\fR
+.RS 4
+Output variables in XML format. Is used with '--show-variables'.
+.RE
+.PP
+\fB\-\-color\fR \fIWHEN\fR
+.RS 4
+Color using control. WHEN can take values 'never', 'always' or 'auto' for messages output with or without color.
+.RE
+.PP
+\fB\-\-version\fR
+.RS 4
+Print version number of cl-install program and exit.
+.RE
+.PP
+\fB\-h\fR, \fB\-\-help\fR
+.RS 4
+Print help and then exit.
+.RE
+.SH SEE ALSO
+.PP
+cl-builder(1), cl-image(1)
+.SH EXAMPLES
+.PP
+System installing to /dev/sda2
+.nf
+cl-install -d /dev/sda2
+.fi
+.PP
+Changing video driver on 'fglrx'. Before running be sure 'x11-drivers/ati-drivers' is installed.
+.nf
+cl-install --startup --set os_install_x11_video_drv=fglrx
+.fi
+.PP
+System installing on several partitions. In the example system is installed on sda2, all users settings and data are stored on sda5, sda1 is used as swap.
+.nf
+cl-install -d /dev/sda2 -d /dev/sda5:/var/calculate -d /var/calculate/home:/home -w /dev/sda1 --hostname calculatelinux
+.fi
+.PP
+System installing with network options specifying: ip address 192.168.1.20, mask 255.255.255.0, defailt gateway 192.168.1.1, DNS 192.168.1.2. As a network manager is used OpenRC.
+.nf
+cl-install -d /dev/sda2 --ip 192.168.1.20/24 --route default:192.168.1.1 --dns 192.168.1.2 --netconf openrc
+.fi
+.PP
+Router installing. In the example two network interfaces are configured, Input eth0: ip address 1.2.3.6, mask 255.255.255.252, gateway 1.2.3.5 and output eth1: ip address 192.168.1.1, mask 255.255.255.0. DNS address 8.8.8.8. Routing to network 192.168.3.0/24 is made throw gateway 192.168.1.2.
+.nf
+cl-install -d /dev/sda2 --ip eth0:1.2.3.6/30 --route default:1.2.3.5:eth0 --ip eth1:192.168.1.1 --route 192.168.3.0/24:192.168.1.2:eth1 --dns 8.8.8.8
+.fi
+.SH AUTHORS
+.PP
+Calculate Utilities are developed by Calculate Ltd. http://www.calculate.ru
+.SH AUTOR
+.PP
+Man page originally written by Calculate Ltd.
diff --git man/ru/cl-install.1 man/ru/cl-install.1
index f6888eb..57993a7 100644
--- man/ru/cl-install.1
+++ man/ru/cl-install.1
@@ -1,4 +1,4 @@
-.TH CL-INSTALL 1 "27 июля 2011" "Calculate Utilities" "Установка Calculate Linux"
+.TH CL-INSTALL 1 "23 августа 2011" "Calculate Utilities" "Установка Calculate Linux"
.SH НАЗВАНИЕ
.PP
cl-install - Установка Calculate Linux на жесткий диск, USB-Flash или USB-HDD
@@ -23,7 +23,7 @@ cl-install - программа установки дистрибутива Calc
.PP
\fB\-d\fR, \fB\-\-disk\fR \fIDISK[:[DIR:FILESYSTEM:OPTIONS]]\fR
.RS 4
-DISK - раздел для установки или директория, в случае перемонтирования части файловой иерархии. DIR - точка монтирования, значение 'none' отменяет перенос точки монтирования. FILESYSTEM - файловая система, доступные значения ext2, ext3, ext4, reiserfs, xfs, jfs, btrfs. OPTIONS - опции монтирования, см. 'man fstab'. Для указания нескольких разделов для установки используйте параметр несколько раз.
+DISK - раздел для установки или директория, в случае перемонтирования части файловой иерархии. DIR - точка монтирования, значение 'none' отменяет перенос точки монтирования. FILESYSTEM - файловая система, доступные значения ext2, ext3, ext4, reiserfs, xfs, jfs, btrfs, nilfs2. OPTIONS - опции монтирования, см. 'man fstab'. Для указания нескольких разделов для установки используйте параметр несколько раз.
.RE
.PP
\fB\-w\fR, \fB\-\-swap\fR \fIраздел подкачки\fR
diff --git pym/cl_distr.py pym/cl_distr.py
index 057e50d..b8775ad 100644
--- pym/cl_distr.py
+++ pym/cl_distr.py
@@ -136,7 +136,7 @@ class DistributiveRepository:
"""Get info from content"""
origfilename = filename
if filename in DistributiveRepository.contentCache:
- return DistributiveRepository.contentCache[filename]
+ return DistributiveRepository.contentCache[filename].copy()
varsShare = self.varsShare
distr = None
# may be directory is isodir (directory which contains iso image)
@@ -184,7 +184,7 @@ class DistributiveRepository:
if distr:
distr.close()
DistributiveRepository.contentCache[origfilename] = d
- return d
+ return d.copy()
def _getdistrinfo(self,filename):
"""Get information by distributive"""
@@ -729,6 +729,7 @@ class PartitionDistributive(Distributive):
'jfs':'/sbin/mkfs.jfs %s -f %s',
'reiserfs':'/sbin/mkfs.reiserfs %s -f %s',
'btrfs':'/sbin/mkfs.btrfs %s %s',
+ 'nilfs2':'/sbin/mkfs.nilfs2 %s %s',
'xfs':'/sbin/mkfs.xfs %s -f %s',
'vfat':'/usr/sbin/mkfs.vfat %s -F 32 %s',
'ntfs-3g':'/usr/sbin/mkfs.ntfs %s -FQ %s',
@@ -739,6 +740,7 @@ class PartitionDistributive(Distributive):
'ext3':'-L %s',
'ext4':'-L %s',
'btrfs':'-L %s',
+ 'nilfs2':'-L %s',
'jfs':'-L %s',
'reiserfs':'-l %s',
'xfs':'-L %s',
@@ -752,6 +754,7 @@ class PartitionDistributive(Distributive):
'ext4' : '83',
'reiserfs' : '83',
'btrfs' : '83',
+ 'nilfs2' : '83',
'jfs' : '83',
'xfs' : '83',
'vfat' : '0b',
@@ -763,6 +766,7 @@ class PartitionDistributive(Distributive):
'ext4' : '0700',
'reiserfs' : '0700',
'btrfs' : '0700',
+ 'nilfs2' : '0700',
'jfs' : '0700',
'xfs' : '0700',
'vfat' : '0700',
diff --git pym/cl_install.py pym/cl_install.py
index 4f83b51..2358f7f 100644
--- pym/cl_install.py
+++ pym/cl_install.py
@@ -305,6 +305,10 @@ class convertDictOpt:
"pair":{},
"incompatible":[],
"makefs":"/sbin/mkfs.btrfs"},
+ "nilfs2":{"options":[],
+ "pair":{},
+ "incompatible":[],
+ "makefs":"/sbin/mkfs.nilfs2"},
"jfs":{"options":[],
"pair":{},
"incompatible":[],
@@ -1634,10 +1638,10 @@ class cl_install(color_print, SignalInterrupt):
_("Legacy grub not support boot from raid or lvm without"
" separate /boot partition"))
return False
- if bootDiskFormat == "btrfs":
+ if bootDiskFormat in ("btrfs","nilfs2"):
self.printERROR(
- _("Legacy grub not support boot from btrfs without"
- " separate /boot partition"))
+ _("Legacy grub not support boot from %s without"
+ " separate /boot partition")%bootDiskFormat)
return False
return True
diff --git pym/cl_install_cmd.py pym/cl_install_cmd.py
index 3cfa6dd..8ef2078 100644
--- pym/cl_install_cmd.py
+++ pym/cl_install_cmd.py
@@ -508,3 +508,15 @@ class install_cmd(share_cmd):
return True
else:
return False
+
+ def parse_args(self, args=None, values=None):
+ """
+ Preparse for catch non option --live
+ """
+ rargs = self.optobj._get_args(args)
+ if rargs:
+ for arg in rargs:
+ if arg == "--live":
+ self.optobj.error(_("option %s:") %"--live" +\
+ " " + _("option is depricated, use '--startup' option"))
+ return self.optobj.parse_args(args,values)
diff --git scripts/cl-install scripts/cl-install
index 441f504..e8e572d 100644
--- scripts/cl-install
+++ scripts/cl-install
@@ -32,7 +32,7 @@ if __name__ == "__main__":
install = install_cmd()
install.logicObj.initVars()
# set lang
- ret = install.optobj.parse_args()
+ ret = install.parse_args()
if ret is False:
sys.exit(1)
options, args = ret
diff --git setup.py setup.py
index adbe1f0..b843b61 100755
--- setup.py
+++ setup.py
@@ -83,20 +83,26 @@ class build_man( distutils.core.Command ) :
def finalize_options( self ) :
pass
+ def _install_man(self,man,baseLocale):
+ baseMan = path.basename(man)
+ man_num = man[-1]
+ manPath = path.join(BUILD_MAN_PATH,baseLocale,"man%s"%man_num)
+ self.mkpath(manPath)
+ manPath = path.join(manPath,baseMan)
+ self.copy_file(man,manPath)
+ cout("compress %s\n"% manPath)
+ system("bzip2 -f %s"%manPath)
+
def run( self ) :
buildManPath = BUILD_MAN_PATH
self.mkpath(buildManPath)
for locale in glob.glob("man/*"):
baseLocale = path.basename(locale)
- for man in glob.glob("%s/*.[12345678]"%locale) :
- baseMan = path.basename(man)
- man_num = man[-1]
- manPath = path.join(buildManPath,baseLocale,"man%s"%man_num)
- self.mkpath(manPath)
- manPath = path.join(manPath,baseMan)
- self.copy_file(man,manPath)
- cout("compress %s\n"% manPath)
- system("bzip2 -f %s"%manPath)
+ if os.path.isfile(locale) and locale[-1].isdigit():
+ self._install_man(locale,"")
+ else:
+ for man in glob.glob("%s/*.[12345678]"%locale) :
+ self._install_man(man,baseLocale)
class install_man( install_data ) :
description = "install man files"

@ -2,6 +2,13 @@
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
*calculate-templates-2.2.21-r3 (23 Aug 2011)
23 Aug 2011; Mike Hiretsky (mhiretskiy) <mh@calculate.ru>
+calculate-templates-2.2.21-r3.ebuild,
+files/calculate-templates-2.2.21-r3.patch:
Update for bugfix
*calculate-templates-2.2.21-r2 (23 Aug 2011)
23 Aug 2011; Mike Hiretsky (mhiretskiy) <mh@calculate.ru>

@ -7,6 +7,7 @@ AUX calculate-templates-2.2.20-fix_cpufreq.patch 2333 RMD160 9b30c305e53000435b6
AUX calculate-templates-2.2.20-fix_mplayer.patch 2537 RMD160 97d2a54996d96065eea9078d95bad24a11c5ddbe SHA1 89dd1da77ee7e40f5b468aba8db97bdf5eff7f9d SHA256 777c3797ebc8b29f30fa2572fb0047037dbc8c50422764d5e1ad6d4d2f665bc9
AUX calculate-templates-2.2.21-r1.patch 4162 RMD160 4c8e5e8e2162ff9a58f09ed3646350587dec5f80 SHA1 c94b55a767251723799fa81c25373f9cca4c2279 SHA256 7cfcabcd241625f05f9a477ce8024732f47e2c7b44448d2466f18bf34ddd39ff
AUX calculate-templates-2.2.21-r2.patch 61748 RMD160 18e68d3bb226eed91e5a61ddd11415db2cba9f89 SHA1 3764195fcab6a2bcb2b64027c9665036f2334488 SHA256 cfc7addf84d05ecabd7a3fffede935574a143ffdb0472b864084c94fd92edb01
AUX calculate-templates-2.2.21-r3.patch 61785 RMD160 64241098bbf79f77fae1431a6b7c337976a21ff0 SHA1 c33b118bb1175d387bd1b96155520332b4c3cbb7 SHA256 ecd27e4406cd54c4a319f5ceb40d767abfaabe438cb037899c159be7456640c1
DIST calculate-templates-2.2.18.tar.bz2 233661 RMD160 c8e42c3ed8860193286ff8eaeddcd1c75bb1ef0b SHA1 f197621e5777c16aca9b892d30ede172eee50522 SHA256 d3d236c7e0760db3ad9ea79f0fed9d9e5f97d69acabbae3bbc9c9d2e62a50984
DIST calculate-templates-2.2.19.tar.bz2 233495 RMD160 bd6ec2efa456b838c15664e7779d01cd760cb124 SHA1 c0f79506fb676a8c37efbdff4a0514a3a8ddb29e SHA256 f5124a64393a3c6d4a03bd3c0065cc7f5a3586f6d5de5362d1b373048b2303ab
DIST calculate-templates-2.2.20.tar.bz2 234266 RMD160 7368253076289f8e255ae325e629ffe73da060ec SHA1 b39b75801f8361a36eb6e8ce92da63dfef5230ca SHA256 b907b4630aca4942af66ffe24144959723879d25f4ce72e344639f86223b828a
@ -24,7 +25,8 @@ EBUILD calculate-templates-2.2.20-r2.ebuild 843 RMD160 12e3ca9a026072e3272746252
EBUILD calculate-templates-2.2.20.ebuild 581 RMD160 58415efe9da270f3cbac7be53099e3b3f2d0e9a1 SHA1 4cbf60bac722618b31285280de2279e809c2499f SHA256 e2045f5b13588448a0ab90b751fa4ba76ef85725af4401f34da4499f55053d9c
EBUILD calculate-templates-2.2.21-r1.ebuild 695 RMD160 2a38bb7a5c1dc424ce9c9d95fbef8e70a6e485c0 SHA1 ff937d7663857debdacb52fbc8e9c0dc0f0e3f58 SHA256 b4092bab5c9ce7ec500cac4b32b6ea8a9ed706a3688e7ea68257b9664d4bd96e
EBUILD calculate-templates-2.2.21-r2.ebuild 715 RMD160 85c7db6494ec112d4b2a381cd231255a8fe772b1 SHA1 b7ddcbbd9ddf8b86c5da68b44dc4ab78810a9469 SHA256 d1f60914a90a0600fddd48f577d5193436ad37f2ea0d4b367ceca9695f4b30ec
EBUILD calculate-templates-2.2.21-r3.ebuild 715 RMD160 7ecbb252bd2991456bdc64d40ea1f97241f355fe SHA1 ce297b57c2afc2cd6eabe7e55c8177c1e8576376 SHA256 f6bf1d62f016c555893c64e6712497ff371634ed8c08d5562561ae00606a96b4
EBUILD calculate-templates-2.2.21.ebuild 581 RMD160 3e8c0e9fd308c52caa861955c86a390a96127202 SHA1 9541b46b0bcf618c33285fd6e5f7167a72e92b31 SHA256 002834f9b50c2641a462562c68ad6715ab32c1c86723af664a833bc3be85eaec
EBUILD calculate-templates-2.2.9999.ebuild 572 RMD160 14e53f7c05efbb563b793b1025669cbe79d0838c SHA1 226d287ce0a00609ed6c871321abf5000565227e SHA256 5df16332077472571e2d4aae47e958d1e6efe3a8d694b61053778f75a537142f
MISC ChangeLog 28383 RMD160 97676e237cc5858bc530642194f2a8535b69de1e SHA1 b7feab81883ce88942103e56f837d69ce75d7340 SHA256 2bdded5e62d3255aa50b909dbcb26875f852c8f8687b5d08aa4b4a9c6f7ed777
MISC ChangeLog 28597 RMD160 51db38fef53fef93af982384c4f6c1b9a31fd2db SHA1 0c0137ff56d2017944af67f91a5be37ba6e982ec SHA256 f20633de1f285097d116776cbb56dacaae0ff5478846494f19c135b8af64beb1
MISC metadata.xml 338 RMD160 4a1a51881bdf09b961217d2056114ca4ccb8b4d2 SHA1 5fcb2724427f9ac5dda07abb5c829c24e6db9ae6 SHA256 175d9ae86b71b291a519414e816b05290d0e4be74726cc8d5449a500c51a3b2d

@ -0,0 +1,37 @@
# 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}.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.21"
RDEPEND="${DEPEND}"
src_unpack() {
unpack "${A}"
cd "${S}"
# bugfixes, update xautologin
epatch "${FILESDIR}/calculate-templates-2.2.21-r3.patch"
}
src_compile() {
:
}
src_install() {
dodir /usr/share/calculate/templates
insinto /usr/share/calculate/templates
doins -r *
}

@ -2,6 +2,12 @@
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
*calculate-utilities-2.2.21-r4 (23 Aug 2011)
23 Aug 2011; Mike Hiretsky (mhiretskiy) <mh@calculate.ru>
+calculate-utilities-2.2.21-r4.ebuild:
Update for templates and install
*calculate-utilities-2.2.21-r3 (23 Aug 2011)
23 Aug 2011; Mike Hiretsky (mhiretskiy) <mh@calculate.ru>

@ -33,6 +33,7 @@ EBUILD calculate-utilities-2.2.20.ebuild 862 RMD160 192cb774b0a4c7dc0ce9f12a7736
EBUILD calculate-utilities-2.2.21-r1.ebuild 865 RMD160 d09702a54724755cca89e16bccb953ebad700625 SHA1 95f6bf58c10b76813b785edb86a434aaebd6d0a1 SHA256 7c2179eb3b399f465ce81ad5e705b35f605f2620d08fc179fe57159773be8e35
EBUILD calculate-utilities-2.2.21-r2.ebuild 877 RMD160 a1adfa7c7080b83fe20c407d7d7417b8ce6f03ae SHA1 68a1b428712369e87ad313bd2d2603ea83f26705 SHA256 483d5803fa79eca8ff47ee41c14098802e0b9b4f554044aa12052be1a04dd6a6
EBUILD calculate-utilities-2.2.21-r3.ebuild 877 RMD160 83114cae73ed03d3cd14b04c3702b9df4df28645 SHA1 ea7ac39881ec4693d2f28dcdaa5ecaa87fddd299 SHA256 211a7ca1c30914e1640fa4cc0bba8d5e7132cdd5c4bc6b22f64e82ab17ba477f
EBUILD calculate-utilities-2.2.21-r4.ebuild 877 RMD160 7e08a06ddbd0e1ca869a239eac9eec5432e007f0 SHA1 eb82a3b4da06cfa9f6ac16754709e3fcc3d6037a SHA256 20074ca0dbfb507f4bc1da8241ab6cebb2142aa2bfaf6b2a2453b4c584c67d11
EBUILD calculate-utilities-2.2.21.ebuild 862 RMD160 3786826c24e6bfc0fb9e5b413c85e429ae412723 SHA1 8beb4139d5f2828421d57c4ab7ba6e8a2e59d9ef SHA256 530ea787bfee6bd4308bb782b82a42f0e60d02fa692877135f3fe8402c4ba677
EBUILD calculate-utilities-2.2.9999.ebuild 840 RMD160 0c7324a9ed480118ac19f62b162c9ee62c25f964 SHA1 7dadab1430ed147334ed7e9b4fcc86dc99e25d56 SHA256 f3ee28f9f765e7302c83eb4a15a09bdf066f09e6b40e34f6d52157a946df5e66
MISC ChangeLog 20609 RMD160 a67212622fd0f661781a880982d6f397441c82c1 SHA1 566f2c85e8fdfe379ecd81398ba87e5e5f66da67 SHA256 9ab0815e49ec8cb38bdb5b9a9e2f130e7739fa05bc5401045ebe1b36f1eaae69
MISC ChangeLog 20792 RMD160 f9e67883bd7806a62c3014c453f969c8013fbfd2 SHA1 34ec7be4585c397047b15f34d1ec8a6079cff66a SHA256 18718dcffe76c167df7d7ee77aaedc671cd865db23bf747d0e8aa799aea9cdf5

@ -0,0 +1,37 @@
# 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.21-r3
=sys-apps/calculate-templates-2.2.21-r3
=sys-apps/calculate-lib-2.2.21-r1
=sys-apps/calculate-i18n-2.2.21-r1
cl_assemble? ( =sys-apps/calculate-assemble-2.2.21-r1 )
cl_builder? ( =sys-apps/calculate-builder-2.2.21 )
cl_client? ( =sys-apps/calculate-client-2.2.21 )
cl_desktop? ( =sys-apps/calculate-desktop-2.2.21 )
cl_installgui? ( =app-misc/calculate-install-gui-2.2.21 )
cl_server? ( =sys-apps/calculate-server-2.1.14-r6 )
"
Loading…
Cancel
Save