atratsevskiy
parent 085cb73e49
commit 6bbe0d6425

@ -13,6 +13,7 @@ AUX calculate-install-3.1.1_alpha1-r2.patch 10335 SHA256 0dd9bd90a2d775f7af48225
AUX calculate-install-3.1.1_alpha2-r1.patch 908 SHA256 1c0b4b3688916fd8a385ad441850b7858debb7ac3cec13f105fe13ca7cfcb20b SHA512 2f76893791f6f26f051b927e3daaa6c7d1e8122d16b9b2930b4a21eaf888d50543be3b9de4e3058ed64041ffcd31aef7d0b8bbde686e1b8d8034a8871c7c6018 WHIRLPOOL a59505ae31950ae35fa02731626d9501f444263a0722f6d07c9381e6b2ebfbd28c990fbcb19c9c21146c8a4ed98ecd63aa996775026502d352835d7e05a052f6
AUX calculate-install-3.1.1_alpha2-r2.patch 3151 SHA256 86bb3f0e44b6f30b5561852fcded547b9665d188adad5d3652c2baedfc20c20d SHA512 fdee18699dc158a9a8e3f332647e85ed92f1339f66757e726dc1fa4e51fce41adc4bf822f1a71124309a83c70e720135833d0d079fef6ffc577c22465f21554a WHIRLPOOL 113abf8f0587c854db39d5085e95d6bb51a6a43dbc3b2e23ae4d7672ace799bb38c29655e4557daf9feaaa80500f02243e5db839b89ad7102c3235e7f1d36b6b
AUX calculate-install-3.1.1_alpha2-r3.patch 5434 SHA256 91056b03c55ef33ad73c5b247f91535e82218a34424df0ab5577263316252dea SHA512 0523c2dd3cb63fc762e5aa7e0cdcc65f361f0ee855837a10298f794b41855259b9cc37fa1b70401d6e90c47cc4bbc028f7a14bce0c1dcb375bc294b4ce4e3515 WHIRLPOOL ff684eb14144c29f5417f5f0fce41414fc5ed0788840e2fb70d1718a851d505df18e0ee298954cd29bc087bc9166cf00934e8bd4b487113d3553c0c64c663613
AUX calculate-install-3.1.1_alpha2-r4.patch 5891 SHA256 53eb023ce99ab21da848823ee28dba8cb6eff73bd7d4fb3e3368e7914bd3eb29 SHA512 80da80b91b986b2f4d5d33c32c6b5deb11001622d4424a454f814f94ac2b5aa3de7ac36a4ffbe1334bcf49c5055b30eb52054ba48d1d1f2117e9c8230b0f8282 WHIRLPOOL f57ba399c8f8f3792ecd2a44698cc1e0bfecebd5bb1d17999f2a718402f0a04cba472eb34b75e4236981c8a1ae02c907aaa19f735dc74c495bffbe2894e22d38
DIST calculate-install-2.2.29.tar.bz2 82398 SHA256 0d1b5fcca2711f31fbd5680dea652fa7765ad781529ba80c5fa92cf736d73d10 SHA512 f9623ec564cce283a3813a2a308347b64d5368c06b0665de5223c9c2d75dcfb00348def034e958718ba9e9fa8a7ea2fa76b90fd0b4dc4e41bebf6222ee4a5da9 WHIRLPOOL 57361d7f5270cc2782d32635b02b1150a506f8e517ee916d66bc6df0c8c037193ad6fa33cef1c7b5fec6867204ea06c2778983a4bfd722b41af3c9d1c172270a
DIST calculate-install-3.0.0.tar.bz2 75771 SHA256 8423554b46a87781d223b8b6378fb71f2474eb049897b20f328363f66f566f88 SHA512 934fac15a2b34357d20161a9804e05de68491a8069b1b6008f016e9fbbccb403e8805ef395598934faafe8db2deca0c040d3d690d8f49cfe2adca453e10e4752 WHIRLPOOL 2448066fb70de8db95ff8edfa94f894047a18e402a84dc3e27e2efcc8a1cc7b05996209acaef44bc59366507865bb76b457ae75e5dfb0c4f478c397ef9497ac9
DIST calculate-install-3.0.1.tar.bz2 75704 SHA256 e332e8a7b90f82d7f70055c2570c82480c687c648720e71f4af84dce10d8b46a SHA512 f0e543fa75cb209bc7a35ac53e2c315c483e8b0b48891883e3dfb43d1796d00b9ec53e473b2223d658d2b8772a911cf77b5851c8168e6d1c376c3ae706a8f5a3 WHIRLPOOL 34ea096bb37f6c71a38f2c9566b8587dd91efc09cae2a6b8bdd6347a54dce3afb6659397adfd1d5ee08adf69921d84d9e8bd355a5f18326ff6b19338e1253e82
@ -58,6 +59,7 @@ EBUILD calculate-install-3.1.1_alpha1.ebuild 904 SHA256 45d39126404729c9b5568105
EBUILD calculate-install-3.1.1_alpha2-r1.ebuild 1048 SHA256 bbc19c5b5085c4693e3c8441b5e55d499b68fce236270232d74930b779c2e756 SHA512 dba867dff074be5e576fc7b2619e88e80c07602fd49a67b67147cd658bac4ea9403fb3de4ab93b3be68ff64c14350aea1d6227eb6024b0a477d52cad57ece0de WHIRLPOOL fa8d32bbc14046c7aa79fd1084231e102943ffdb8db8a40fcf471405d867727b9ec72c07005a0a151fb349ad387496c5e05310987ca7f9344db211b43f8308e9
EBUILD calculate-install-3.1.1_alpha2-r2.ebuild 1048 SHA256 cadf762b9f8cf1099219020640fb6a9eb175315e6098979740e238c088120348 SHA512 2776f78fa63b9248a882ab68eaddda50a10b239d48b488f2b2ade3dcfc2cc4519fe5176d98bfad3c82ee4abb0b29465b962dfce2e968780ff0ecf5eb782ea946 WHIRLPOOL 77c3763fe9658c08c05adedceb46b6ea1d04bff5dd8e453b31918200446deca40f21d60c70a974ca17a37121a6faff765b6654591a67a5c1f19160d9a322d691
EBUILD calculate-install-3.1.1_alpha2-r3.ebuild 1048 SHA256 45bcf99340dbf8147a99aa1743e7ffd4b1ed5dc11c599b716bd63e3728aed3a6 SHA512 545471df1486d2e6dc7176a31e2e68517400f6daef709d2c6444d0746e8f0b814ffe259971eafe6142fa9ee6324bc095acf40c2fd895db53b16bbf4f554418be WHIRLPOOL 599802a96e34f79bf104e19365e952244e0ec7541e56d94f34c2afbda27b7311959e4a63038c1b88d5ac34bb5b0cf4188de778513cc45e1b00437f84cdd750f6
EBUILD calculate-install-3.1.1_alpha2-r4.ebuild 1048 SHA256 91a3c12cfc43b6f74ac5027f854807dbffe59036845af8ff23275c4f64fc04cf SHA512 65bf26563ee5d55f1418be701e1cd440f2a865152e3381c93d9a8decc40a2c85374ce4b2356b28b959371812cec2ddf5e593beeca78ac293aa370522c5b90709 WHIRLPOOL 2217fedb155e5fda10db9b0211923d341b6a42466d333d3cdf7b1c28f82bc7af43001a59be37d6cee0acf6cece22256596df811d0f6474b285ec1ba104a040d6
EBUILD calculate-install-3.1.1_alpha2.ebuild 904 SHA256 c0bf9f967dd0bd2e678bb78279dfa574919e9797858be606681e7099d1166db5 SHA512 b34467529708b7300ad1ddf15e89942e5df61792d84afb20478abf5697032593e2bf4843bf8ac1c9ca4b5265501126eab1c7e28d32f475b584df8a5396bd5802 WHIRLPOOL 4993b452efe5c87d9f8182c965577c6309f0fb5aea05da9d11f0920d6be41c6eba5cf886eb586f4d19a1f495707b979e88864299fa048a1818e47c2ded46e3c4
EBUILD calculate-install-3.1.9999.ebuild 683 SHA256 e97dd6f046d54a16eee281fa35790c92507b150bc940f3c2b36117e6f44f0a8d SHA512 c1179c500dcaa48506f6334e9e2ccc3cc70d712b2899d7e1d9265bc202f088ab71baa1aaea462deee56fdd5244bee4ab9b9a9da72f25ec511d4f2fa0c3c35f43 WHIRLPOOL 010d35b929fce496b5f16228688e23a95c9c87ebed0d290eeb454e5c1432b55b3b276dfb5786a27222543446a1090ce2f133d80373649fe72341b508d1e16a78
MISC ChangeLog 33978 SHA256 a1cc544f9763b08b3647d90fac1ec53748016bb23260181315896c8c02431443 SHA512 11a09ba60fbc727bd47b57653b4bb0937d98774eb9ca95680a5b55997c7e22db3976cbd0878d908fa0200e04b6cc9eb0ae9ac6f1623235490e2e46e54cc1f7f4 WHIRLPOOL 50352c2950f301cbb5116b8c9972e592767dcb03bd71d081c75de5e69b2a920331abec4756658faf64e291bf6f4f41df67b8d62946683629a2c99b48274eb2f3

@ -0,0 +1,44 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="3"
SUPPORT_PYTHON_ABIS="1"
PYTHON_DEPEND="2:2.7"
RESTRICT_PYTHON_ABIS="2.4 2.5 2.6 3.*"
inherit distutils eutils
SRC_URI="ftp://ftp.calculate.ru/pub/calculate/calculate3/${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="3"
KEYWORDS=""
IUSE="pxe minimal"
DEPEND="~sys-apps/calculate-core-3.1.1_alpha2
!<sys-apps/calculate-install-2.2.29
app-portage/layman
!app-misc/livecd-tools
sys-apps/iproute2[-minimal]
!minimal? ( sys-boot/grub
sys-apps/gptfdisk
>=sys-apps/util-linux-2.19.1
sys-fs/dosfstools
sys-fs/squashfs-tools
sys-block/parted )
pxe? ( sys-apps/calculate-server
net-ftp/tftp-hpa
net-misc/dhcp
net-fs/nfs-utils )"
RDEPEND="${DEPEND}"
src_unpack() {
unpack "${A}"
cd "${S}"
# apply revision changes
epatch "${FILESDIR}/calculate-install-3.1.1_alpha2-r4.patch"
}

@ -0,0 +1,135 @@
diff --git data/calculate data/calculate
index c2d6505..1ec60b3 100644
--- data/calculate
+++ data/calculate
@@ -136,7 +136,8 @@ start() {
# reinit net.* services
local roottype=`variable_value main.os_root_type`
- if [[ $roottype == "livecd" ]]
+ local rootdev=`variable_value main.os_root_dev`
+ if [[ $roottype == "livecd" ]] && [[ $rootdev == "/dev/nfs" ]]
then
touch /* /bin/* /sbin/*
udevadm trigger --action="add" --subsystem-match=net
diff --git install/cl_wsdl_install.py install/cl_wsdl_install.py
index a007be4..d4c117d 100644
--- install/cl_wsdl_install.py
+++ install/cl_wsdl_install.py
@@ -192,7 +192,8 @@ class Wsdl:
@rpc(Integer, InstallInfo, _returns = Array(ReturnedMessage))
@core_method(category=__('Installation'),title=__('Flash install'),
- image='drive-removable-media-usb-pendrive,media-flash',
+ image='drive-removable-media-usb-pendrive,'
+ 'drive-removable-media-usb,media-flash',
gui=True, rights=['install'])
def install_flash ( self, sid, info):
"""
@@ -220,7 +221,8 @@ class Wsdl:
@rpc(Integer, InstallInfo, _returns = Array(ReturnedMessage))
@core_method(category=__('Installation'),title=__('PXE install'),
- image='network-server',command='cl-install-pxe',
+ image='network-server,preferences-desktop-remote-desktop',
+ command='cl-install-pxe',
gui=True, rights=['installpxe'])
def install_pxe ( self, sid, info):
"""
@@ -251,7 +253,8 @@ class Wsdl:
@rpc(Integer, InstallInfo, _returns = Array(ReturnedMessage))
@core_method(category=__('Configuration'),title=__('Network'),
- image='network-idle,preferences-system-network',
+ image='gnome-network-properties,'
+ 'network-idle,preferences-system-network',
command="cl-setup-network",
gui=True, rights=['setup'])
def setup_network ( self, sid, info):
@@ -281,7 +284,7 @@ class Wsdl:
@rpc(Integer, InstallInfo, _returns = Array(ReturnedMessage))
@core_method(category=__('Configuration'),title=__('Video'),
- image='gnome-multimedia,video-display',
+ image='video-display,gnome-multimedia',
command="cl-setup-video",
gui=True, rights=['setup'])
def setup_video ( self, sid, info):
@@ -369,7 +372,7 @@ class Wsdl:
@rpc(Integer, InstallInfo, _returns = Array(ReturnedMessage))
@core_method(category=__('Configuration'),title=__('System'),
- image='system,computer',command="cl-setup-system",
+ image='system-run,system,computer',command="cl-setup-system",
gui=True, rights=['setup'])
def setup_system ( self, sid, info):
"""
diff --git install/variables/distr.py install/variables/distr.py
index 71423b2..0e0693c 100644
--- install/variables/distr.py
+++ install/variables/distr.py
@@ -121,18 +121,21 @@ class DistroRepository(Linux):
if not d:
return False
# check filter conditions
- if system and systemByName(d['name']) != system:
+ if system and systemByName(d['os_linux_shortname']) != system:
return False
- if not "name" in d or not "ver" in d:
+ if not "os_linux_shortname" in d or not "os_linux_ver" in d:
return False
- if shortname and d['name'].lower() != shortname.lower():
+ if shortname and \
+ d['os_linux_shortname'].lower() != shortname.lower():
return False
- if march and d['march'] != march:
+ if march and d['os_arch_machine'] != march:
return False
- if version and not verCmp(getTupleVersion(d['ver']), version):
+ if version and \
+ not verCmp(getTupleVersion(d['os_linux_ver']), version):
return False
- if build and "build" in d and (not d['build'].isdigit() or
- not buildCmp(int(d['build']),build)):
+ if build and "os_linux_build" in d and \
+ (not d['os_linux_build'].isdigit() or
+ not buildCmp(int(d['os_linux_build']),build)):
return False
return True
@@ -167,11 +170,11 @@ class DistroRepository(Linux):
def sortdistrfunc(self,x,y):
"""Func of comparing two distributive"""
- ver1, ver2 = x[1].get('ver',""), y[1].get('ver',"")
+ ver1, ver2 = x[1].get('os_linux_ver',""), y[1].get('os_linux_ver',"")
if ver1 and ver2 and ver1 != "0" and ver2 != "0" and ver1 != ver2:
return cmpVersion(ver1,ver2)
- build1 = getTupleVersion(x[1].get('build',""))
- build2 = getTupleVersion(y[1].get('build',""))
+ build1 = getTupleVersion(x[1].get('os_linux_build',""))
+ build2 = getTupleVersion(y[1].get('os_linux_build',""))
if build1 != build2:
return cmp(build1,build2)
else:
diff --git install/variables/system.py install/variables/system.py
index 130439a..5e0dd96 100644
--- install/variables/system.py
+++ install/variables/system.py
@@ -25,6 +25,7 @@ from calculate.lib.utils.files import (readFile,getProgPath,process,
readLinesFile)
from calculate.lib.utils.common import getPasswdUsers,getUserGroups,getGroups
from calculate.lib.utils.portage import isPkgInstalled
+from calculate.lib.utils.device import getUdevDeviceInfo
from crypt import crypt
from calculate.lib.encrypt import encrypt
import calculate.lib.cl_template as cl_template
@@ -371,6 +372,8 @@ class VariableOsInstallDevFrom(Variable):
"""
If device in calculate3.env dev_from not exists set ''
"""
+ if value:
+ value = getUdevDeviceInfo(name=value).get('DEVNAME',value)
if value in self.Get('os_disk_dev'):
return value
else:

@ -26,6 +26,7 @@ AUX calculate-lib-3.1.1_alpha2-r5.patch 7229 SHA256 ca651e451bbb8353b7a8f35eed6b
AUX calculate-lib-3.1.1_alpha2-r6.patch 7268 SHA256 d6e8e255f151c3d48ddd717b0fed2075b20335d85aa1a7ddc636e769e8777bf4 SHA512 e204468ad1aab9a4545c852165088bec9f820a23dbba1da7cfeb3e344f5c822f0f2798965016afab6e9fd3269f0ef82d60c47ad0dbd0235fe9c896f1cab0beb8 WHIRLPOOL a32cdf646a82840dc1dcebc596b8446a6ccfc19645a5d60e49f2a7a5038fec01a52bc153b722314853b70bf27143925708531d2f6bfc94825f288768b5a2e64e
AUX calculate-lib-3.1.1_alpha2-r7.patch 8984 SHA256 efab5c0e253090dc41c0cf70ef8749e1d7e3d51e3987f304c819becb808a2035 SHA512 062252fec6e03883de52948eb01d4afc43efcb3b2c7010c11c0a66d04534968a4270de97c7e79ac9ee601e6c1304147a315a47a375cc9da89f3907a5ef73ae32 WHIRLPOOL 62300787c42c99663e4b7ef40cadc35d105517ef6dc8fd8e2726cc79ab15ec653dce5750314ccdba64fba6aa4a1b5df03afaa1f3c854bdca3f18ed3b76dcec79
AUX calculate-lib-3.1.1_alpha2-r8.patch 9558 SHA256 b340b4edde47b37244189fe3756d5cd3af4bf0bccfdd06157db5065bc88ba67c SHA512 d59f11361593c1e987c3bf0e2c547c68986eecf90bb4b0fce51e5e3e6b4aff7f39e483479cd27e9248809532caf4ab15e2dea990751f4a15d5fce0129d4901db WHIRLPOOL 15725b67bacd4709b0d5db74c0ae197ee66e5e4f35863c33ba5578ba9d5c04f49bef8996081fc4a23057648f5d0236d0ba3216fef9f71316565fd4be42824fa5
AUX calculate-lib-3.1.1_alpha2-r9.patch 9679 SHA256 ca297279b42851e6cee41051f3d182fa0a40d2e1ff991fcf265b119444aee4fb SHA512 9b9fa94e36df018801cbadaff3eea5bf22ca426b0e8fe3a0c8005f39e192917c90471da1b17581eaa74c69ae490d2caa24d0adda572016ba74934d2451e64a51 WHIRLPOOL 709b6c6d592798c3bb2f4d6418577080f5e8ed3c8bf4f980a748a4e0c04fa2a014523d917f66a298cb30ad3432ff1d14bf5b4ae657011eab6dc42bc56bbd314c
DIST calculate-lib-2.1.11.tar.bz2 61687 SHA256 62976c08d4fb4810389ace6f5a99abb5a962f6c8d9053ff943d0669480fb5599 SHA512 e3bc2168a55367cf19ad3a27921b53e5e845643238bf171209ab29752c91b5d4d338a2120774764ac1c79abd93f2deff8680f8faa1407940984ea9fd6a199e67 WHIRLPOOL 0ced92ea493dd8db02b0ae1514ebbb51ee76dc6f441b4a38c984c39da2121fb81dd1f2e840c4c5b71a117a12817a2a269d85676288202aa9801f69727e3338dc
DIST calculate-lib-2.2.29.tar.bz2 120378 SHA256 fc79bf29059ffb1519b6356cba34ebecb2e8c3222a29735f479254c371d363a3 SHA512 dc3c2c20cf0c5389b412b0cd2cba316b3d2367e981e147b3a94b6502ba329b598c7ccad5cd3462b3d7e884d05574c99b0e2e39df63e51d22221b86b783cb0925 WHIRLPOOL b3cdf6010c48d7a86a9f5a0c72effa8f0cc8ec0186fa28977132211dcaa5a3fe4a20ad3ec0b556478a9def1dc0e7c15404e3ab38080f986a4620634ee6570462
DIST calculate-lib-2.2.30.tar.bz2 120055 SHA256 a5aa07e5c5e02d27a8b9fad8c0e4bd0562d40d7a2753c2b57a18d99bd0dd6cb2 SHA512 7e8920f5fd855f05aba6576d5e4751ecf71a3e4107b46671d9a4be8557e1dd616adefad728b6a9ca87656dca6fd17d52bce41462b7fc906d20118e97607f1b1b WHIRLPOOL 0e8441484ee7d91c9926ab2deed8357272fecb2156e5dad45f865f6b13aff6c43868323dececc859ce7824bedd8794cec25b857be30afa83c44a81bcbcf510d2
@ -86,6 +87,7 @@ EBUILD calculate-lib-3.1.1_alpha2-r5.ebuild 821 SHA256 86863fe32ddcb0408d1376f74
EBUILD calculate-lib-3.1.1_alpha2-r6.ebuild 821 SHA256 497be72fd280422be9b8e9a2c4d16d7ede7df5a862dc5f0f2fdfb82c7615c257 SHA512 b21c85f684239b192bb66d3be165d49d838a9ab0fe5d252cc1cfeec0199f64d6e98d319935c861ea886ca0885e0d3c2352451a4696c3824b061b02ec4a92dca3 WHIRLPOOL b6063a52054ed72fba8eb982df6e40889a18d791604fd1de1117f7581644362c492b8a7167166dbf93e952de579527adad4549463b889fd80417d6bbf052a2dd
EBUILD calculate-lib-3.1.1_alpha2-r7.ebuild 821 SHA256 8f93c6453088a61773c6f561ce4df8c7d88f1f9fb9afa79ac0809a12b3f2a11d SHA512 2abc50f71bbc17197bdcaf1f7d980efe8ff29fd70457265b0c9cd2640eda445b2d107f531479742829daa85d099778a4e59dfd4f629129f10d7f0f98cbc0086e WHIRLPOOL 825a8b0ed254ed5c072e8f37b464941222e8ca2c5b703b21fe74773b4c79b0e921c8ac8df5c2eea4d90c4cebfb74bb90520400b0ebc1bf78c0db6e2c32623675
EBUILD calculate-lib-3.1.1_alpha2-r8.ebuild 821 SHA256 18d1b1738af9ddc9661fc6af3e87f4cfcc79982c0282a45b972424f768ae6431 SHA512 6918686f185f313deefaec3c104b8ed1c3a7fad3d19cee6d559535116de5f895674e8c936a6f45f1ec89000ca012493a809642f271b8487a3fb1e5c5914b4cca WHIRLPOOL c68127c75718c5cecd8eb512c5e4765558b6bf90e0dde7400a532b02e18de21926472337dfc1f53789a14843b0e657c9db824e22942761a9e24a5381edea317f
EBUILD calculate-lib-3.1.1_alpha2-r9.ebuild 821 SHA256 c25b2091b6f8a2901ad6a01d8dbe14c03b293f73a408d2cfd17a7210815fa80a SHA512 0c253cebb44af88f33175cb1fdf824d78411c867b41a5b64553cec0c1ffc417dff43aecd0d99d6ccae2c6d04741cfb3ed363fd41a2ab7a9b5a12357ddf40db69 WHIRLPOOL d4a31d3aba6b9b74f843edad0ae07b6151aa7ab4183e4fd349e62b139519f3bda84872eafd3f204754b4a8c646f3b575f66c473621e571a6d57deb2a0b9fe4bd
EBUILD calculate-lib-3.1.1_alpha2.ebuild 681 SHA256 6a6332013e5a56db775c6490b63b60f959528660b0982e6a414f1614c0b0ffa5 SHA512 19a71823543fe843a05a548207509ee4dcffa784c61e23c56cf17d2c651effbfc63914beb03f0977b804c5cc647407eecdcbdaed4d7478783bec46eee72a50fb WHIRLPOOL 5ffd414c804671057fe2a7a2176999eee0a75574a5043332d3c01f08b93635773800e6b5d9901993e4fbf7f95d175659d621be9231d08f8bdada2654e45f8e1d
EBUILD calculate-lib-3.1.9999.ebuild 708 SHA256 a1d64b7f014831bf6b0a38928d53cb55758b7a12e5f3e98fffd28025ffacbce1 SHA512 3873859a791941d421e2338b437521955da383ce986408f1a951305e2dd75a1a4f771c9ec2caa096c5c8ea6a1776d6d0ed99e025ffa786ba029cafdbadfa439b WHIRLPOOL 5ac1a10b53f810ab527a0ebe52bc87e8397e61375cf6e0acbed89d8f6b8385e72bf234e0fdce479c3a3f1652bb6e520710ce9356750a97d644c0db0a33f6facb
MISC ChangeLog 29851 SHA256 16ca15c794bce78eefc487ed372c3d4960078fbd4c5fe4524211688d0146ef97 SHA512 be6bdf290f391529dce0deb67bf9d367e42e407601dd581f7c08d082399b5860cff2a76d4d64dd876154d51e84f34499db06c715145ac64f78d168aae7e78dbf WHIRLPOOL 2561ccd1eefe3423d97c67aff5c0fe6c8ca624e527fb885b042c8e812194bb1635d7e7d7d86c534562eb780c6b9144d92e24893f2d0696cf8a34a6a912a45788

@ -0,0 +1,35 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="3"
SUPPORT_PYTHON_ABIS="1"
PYTHON_DEPEND="2:2.7"
RESTRICT_PYTHON_ABIS="2.4 2.5 2.6 3.*"
inherit distutils eutils
SRC_URI="ftp://ftp.calculate.ru/pub/calculate/calculate3/${PN}/${P}.tar.bz2"
DESCRIPTION="The library for Calculate 3"
HOMEPAGE="http://www.calculate-linux.org/main/en/calculate2"
LICENSE="Apache-2.0"
SLOT="3"
KEYWORDS=""
IUSE="minimal"
DEPEND="!minimal? ( dev-python/py-smbpasswd )
>=dev-python/pyxml-0.8
sys-apps/iproute2
sys-apps/pciutils
sys-fs/lvm2
sys-fs/mdadm
dev-python/pyinotify
sys-apps/file[python]"
RDEPEND="${DEPEND}"
src_unpack() {
unpack "${A}"
cd "${S}"
# apply revision changes
epatch "${FILESDIR}/calculate-lib-3.1.1_alpha2-r9.patch"
}

@ -0,0 +1,225 @@
diff --git calculate/lib/cl_template.py calculate/lib/cl_template.py
index 24ad307..223266a 100644
--- calculate/lib/cl_template.py
+++ calculate/lib/cl_template.py
@@ -40,7 +40,7 @@ from utils.text import _toUNICODE, convertStrListDict
from utils.portage import isPkgInstalled
from utils.content import PkgContents
from utils.files import (getModeFile, removeDir, typeFile, scanDirectory,
- pathJoin,process,STDOUT)
+ pathJoin,readFile,process,STDOUT)
from datavars import DataVarsError
from calculate.lib.cl_lang import setLocalTranslate
@@ -2181,6 +2181,10 @@ class _file(_error):
F_CONF = open (nameFileConfig, "r+")
except:
try:
+ if os.path.isdir(nameFileConfig):
+ self.setWarning(_("unable to open the directory as file:")
+ + nameFileConfig)
+ return False
F_CONF = open(nameFileConfig, "w+")
except:
self.setError(_("unable to open the file:")
@@ -2756,7 +2760,8 @@ class templateFunction(_error, _warning, _shareTemplate, _shareTermsFunction):
"""
for pkgname,category,ver,slot in pkgs:
fullname = "%s/%s"%(category,pkgname)
- if not fullname in self.installProg:
+ if not fullname in self.installProg or \
+ type(self.installProg[fullname]) != dict:
self.installProg[fullname] = self.installProg[pkgname] = {}
if force or not slot in self.installProg[fullname]:
self.installProg[fullname][slot] = ver
@@ -2799,6 +2804,31 @@ class templateFunction(_error, _warning, _shareTemplate, _shareTermsFunction):
else:
return ""
+ def funcWorld(self, funArgv, resS, localVars, textTemplateTmp, nameTemp):
+ """
+ Function for world generation
+ """
+ # source file
+ fileName = funArgv.replace(" ","")
+ source = readFile(fileName)
+ replace = []
+
+ for line in filter(None,
+ filter(lambda x:not x.startswith('#'),
+ map(lambda x:x.strip(),
+ source.split('\n')))):
+ category, spl, nameProg = line.partition("/")
+ nameProg, spl, slot = nameProg.partition(":")
+ if not category in self.installCategory:
+ self.getInstallPkgGentoo(category=category)
+ self.installCategory.append(category)
+ if self.pkg(nameProg, slot=slot or None):
+ replace.append(line)
+
+ textTemplateTmp = textTemplateTmp[:resS.start()] + "\n".join(replace) +\
+ textTemplateTmp[resS.end():]
+ return textTemplateTmp
+
def funcPkg(self, funArgv, resS, localVars, textTemplateTmp, nameTemp):
"""Функция шаблона pkg(), выдает номер версии программы"""
# Название программы
@@ -2810,6 +2840,7 @@ class templateFunction(_error, _warning, _shareTemplate, _shareTermsFunction):
nameProg, spl, slot = nameProg.partition(":")
if not category in self.installCategory:
self.getInstallPkgGentoo(category=category)
+ self.installCategory.append(category)
replace = self.pkg(nameProg, slot=slot or None)
else:
if not self.flagAllPkgScan:
@@ -2894,6 +2925,31 @@ class templateFunction(_error, _warning, _shareTemplate, _shareTermsFunction):
textTemplateTmp[resS.end():]
return textTemplateTmp
+ def funcIn(self, funArgv, resS, localVars, textTemplateTmp, nameTemp):
+ """
+ Function in for check value in variable
+ """
+ terms = funArgv.replace(" ","").split(",")
+ # Название локальной переменной
+ nameLocVar = terms[0]
+ flagFoundVar = False
+ try:
+ value = self.objVar.Get(nameLocVar)
+ flagFoundVar = True
+ except:
+ pass
+ if flagFoundVar:
+ if value in terms[1:]:
+ replace = "1"
+ else:
+ replace = ""
+ else:
+ self.raiseErrTemplate(_("error: variable %s does not exist")\
+ %str(nameLocVar))
+ textTemplateTmp = textTemplateTmp[:resS.start()] + replace +\
+ textTemplateTmp[resS.end():]
+ return textTemplateTmp
+
def funcPush(self, funArgv, resS, localVars, textTemplateTmp, nameTemp):
"""локальная функция записывает значение переменной
@@ -3658,7 +3714,8 @@ re.M|re.S)
def executeTemplate(self, code, execPath):
"""Execute template"""
- p = process(execPath,lang=self.objVar.Get('os_locale_locale'))
+ p = process(execPath,lang=self.objVar.Get('os_locale_locale'),
+ envdict=os.environ)
if "/bin/bash" in code.partition('\n')[0]:
p.write("""function translate() {
gettext -d cl_template "$*"
@@ -4281,6 +4338,11 @@ gettext -d cl_template "$*"
self.getApplyHeadDir(newDir, dirInfoFile, opt)
if createdDirs:
self.createdDirs += createdDirs
+ if os.path.isfile(pathDir):
+ self.setWarning(_("{dirpath} is file").format(dirpath=pathDir))
+ self.setWarning(_("templates in {tempath} is skipped"
+ ).format(tempath=path))
+ return None
if objHeadDir:
return pathDir, objHeadDir
else:
@@ -5052,7 +5114,7 @@ gettext -d cl_template "$*"
def fileIsUtf(self, fileName):
"""Проверяет файл на кодировку UTF-8"""
- if os.path.exists(fileName):
+ if os.path.isfile(fileName):
FD = open(os.path.abspath(fileName))
newTemplate = FD.read()
FD.close()
@@ -5060,7 +5122,8 @@ gettext -d cl_template "$*"
newTemplate.decode("UTF-8")
except:
return False
- return True
+ return True
+ return False
def joinTemplate(self, nameFileTemplate, nameFileConfig, optFile={}):
"""Объединения шаблона и конф. файла
diff --git calculate/lib/datavars.py calculate/lib/datavars.py
index 02b1d4a..1791281 100644
--- calculate/lib/datavars.py
+++ calculate/lib/datavars.py
@@ -33,9 +33,9 @@ from types import StringTypes
def addStdConfig(fileLst,prefix='/'):
stdPath = path.join(prefix,
- "/var/lib/layman/calculate/profiles/calculate.env")
+ "var/lib/layman/calculate/profiles/calculate.env")
if not stdPath in map(os.path.abspath,fileLst):
- return fileLst + [stdPath]
+ return [stdPath] + fileLst
return fileLst
def itemgetter(*args,**kwargs):
@@ -757,9 +757,10 @@ class SimpleDataVars:
searchProfile(iniFile,'calculate.env'),prefix=self.systemRoot),""))
else:
config = cl_template.iniParser(iniFile)
+ importVars = config.getAreaVars("main")
for varname in self.allVars.keys():
if not varname in self.cache:
- val = self.unserialize("string",config.getVar('main',varname))
+ val = self.unserialize("string",importVars.get(varname,''))
if val:
self.cache[varname] = val.encode('utf-8')
diff --git calculate/lib/format/world.py calculate/lib/format/world.py
index 69bfc4f..7d93488 100644
--- calculate/lib/format/world.py
+++ calculate/lib/format/world.py
@@ -22,7 +22,7 @@ class world(objShare):
"""Класс для обработки конфигурационного файла типа procmail
"""
- _comment = ""
+ _comment = "#"
configName = "world"
configVersion = "0.1"
sepFields = "\n"
@@ -66,15 +66,15 @@ class world(objShare):
for k in txtLines:
textLine = k + endtxtLines[z]
z += 1
- #findComment = self.reComment.search(textLine)
+ findComment = self.reComment.search(textLine)
if not textLine.strip():
field.br = textLine
fields.append(field)
field = fieldData()
- #elif findComment:
- # field.comment = textLine
- # fields.append(field)
- # field = fieldData()
+ elif findComment:
+ field.comment = textLine
+ fields.append(field)
+ field = fieldData()
else:
pars = textLine.strip()
field.name = pars
diff --git calculate/lib/variables/linux.py calculate/lib/variables/linux.py
index be3bbb2..e3e6bdd 100644
--- calculate/lib/variables/linux.py
+++ calculate/lib/variables/linux.py
@@ -240,8 +240,9 @@ class LinuxDataVars(SimpleDataVars):
VariableOsLinuxBuild(systemRoot=systemRoot))
makeprofile = path.join(systemRoot,'etc/make.profile')
if os.path.exists(makeprofile):
- inifile = path.join('/etc',os.readlink('/etc/make.profile'))
- self.flIniFileFrom(makeprofile)
+ inifile = path.join(systemRoot,'etc',
+ os.readlink(path.join(systemRoot,'etc/make.profile')))
+ self.flIniFileFrom(inifile)
inifile = "etc/calculate/calculate.env"
self.flIniFileFrom(path.join(systemRoot,inifile))
iniFile = "etc/calculate/calculate3.env"

@ -79,6 +79,7 @@ EBUILD calculate-utilities-3.1.1_alpha1.ebuild 762 SHA256 d9ae3566270961ca983708
EBUILD calculate-utilities-3.1.1_alpha2-r1.ebuild 806 SHA256 97f192e6d4915d4e78b1dc6667475f0bdce69ab2c362cbf1f3b936ab5054eb9a SHA512 f775cc82974e3dda8563df54f5ef1a0fe0970cff85cb5c9bb2f0829637f6893794b79fb9133bdcd438405b2925b1d9aa2e653396e87fd24d8f1bf70ab364a882 WHIRLPOOL 32da5850db46b0f6e88239e2ae3d86f54b0a6be428b83003a8464349c025a2c050f299bcb9d4d4805cb2d4183f7a1e7c28cbb8393ae72a041bccf5f15b438c3a
EBUILD calculate-utilities-3.1.1_alpha2-r10.ebuild 818 SHA256 7c0c4a9334b4412cf84303ef6a2f62ae51dc485a589e78cfcbe280e3c018f0af SHA512 fe27fcf641f85a15ae3bfcd335fea2b39b6f2a160773598eace6c1485b47fc85543921a40c5e0342b5dc6fd7650000296ecce95eee483ba0716e17be472f267b WHIRLPOOL e00d0ab3db3424da11e75b65987d8f5886b472588072a4756d450c27b659686c9432844ab41f7f5f469a73a307b265bd8c52927c210b661f640d3739bfd34f4d
EBUILD calculate-utilities-3.1.1_alpha2-r11.ebuild 821 SHA256 8a6f34be87d378197c55112dc06c1f58a10f069730288b7d97cc348addd91389 SHA512 efcc2a72fe35866650edfdf7b4774ac3f25d8f38a46f7e2dbfe8dc53cb5f3505f675dbaa4cea95b61f6f6b09650531c1181bd60f5ff8d96defa52e1b6739f6d6 WHIRLPOOL fd51b9d56bff8f3a7825d08013fd06fd74ddc80b37820e4677a31f88018921c811208b670ffe21b180d1372e46a31a67520d1d1ee108a2ba73178626e5424cdf
EBUILD calculate-utilities-3.1.1_alpha2-r12.ebuild 821 SHA256 b1b65bade04ce6e16dd4ad08181bfbc08b91038bf31f34a229982d772d4a3118 SHA512 5d56e188b9038f76fa9f8e9917994dba0cfc3f029a3af89c406873193270782f4a212482e681183afe83ff8f202370a6e98a7418ae8a0024e7f3aa81dc13cfdf WHIRLPOOL 01fb617f43b5ffeed4c4e1b7c141f2d0ebd301de871a5a3b7ef10d07b6149cf58b32ee2f7fabecd16919e802951dc3772f83eea1da0c76109f542e38946d6b84
EBUILD calculate-utilities-3.1.1_alpha2-r2.ebuild 812 SHA256 a3f7e50a7d5e7ee612a797b144bb99deb8c4a6a5d52e53fe9db026f834e46bae SHA512 14aa168f9a77d5a1fe099e5fbe04c48287b5524bf099180f7d62739f9ce113358ed092ae50d2cd019dbd9cf6ccc643491accf6fcbf3963355ec8e3976ec230d7 WHIRLPOOL a7c7a8c12436ac1fc0847872c8ed2bfe4be49aec8d896ca7b52cfc08d8f0ca1625d0ad7485932b219f01cb3332d949991c713c090fba14dd42e95354620d996c
EBUILD calculate-utilities-3.1.1_alpha2-r3.ebuild 812 SHA256 0487e98bdecdd898deb5226b0d65aef9b34f5c0338865484718fece5afb2e59f SHA512 22d698366844041accad94a7464f9f9bdfaf137328ae628e7e37ecf080293f2b472fabceca1098ad5a09254430e01b44fb01ae2e20dd5c6f53abfe1cb97f4722 WHIRLPOOL faddda116dca5eaa52c6b9d505923cae96382f7f39d1921d1c84816af484f08b7e9da856b9514e8133cd8f8daa74782930223a14a3f90222a76cbf691bd159ba
EBUILD calculate-utilities-3.1.1_alpha2-r4.ebuild 815 SHA256 12c8d2ca9c3813aaa2ac0f831ea5b362c99adc09b3018070c143f681ede69c70 SHA512 42d207ebffddf00d5863bde87ca4ddf247df4032ade14cdb488ea78aa47a45fd2f4933fe8dd1d8bf1e8ce590feaeba032643c65cd5fbb309b6f33ba3e503a5cb WHIRLPOOL 1d41a910d291f246fec99376c3be44abf51829cab9ff2067ff2f5e1a15bfe16691f9013ba5aeee5a0d549ef880249de0b472538df8acc6798f276358e0da911f

@ -0,0 +1,26 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=4
DESCRIPTION="Calculate Utilities meta package"
HOMEPAGE="http://www.calculate-linux.org/main/en/calculate2"
SRC_URI=""
LICENSE="Apache-2.0"
SLOT="3"
KEYWORDS=""
IUSE="cl_consolegui cl_client cl_desktop cl_console"
RDEPEND="${RDEPEND}
=sys-apps/calculate-install-3.1.1_alpha2-r4
=sys-apps/calculate-i18n-3.1.1_alpha2-r1
=sys-apps/calculate-lib-3.1.1_alpha2-r9
=sys-apps/calculate-core-3.1.1_alpha2-r1
=sys-apps/calculate-update-3.1.1_alpha2-r2
cl_client? ( =sys-apps/calculate-client-3.1.1_alpha2 )
cl_desktop? ( =sys-apps/calculate-desktop-3.1.1_alpha2-r1 )
cl_consolegui? ( =sys-apps/calculate-console-gui-3.1.1_alpha2 )
cl_console? ( =sys-apps/calculate-console-3.1.1_alpha2 )
"
Loading…
Cancel
Save