parent
266375275c
commit
bf04d0fe29
@ -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="amd64 x86"
|
||||
IUSE="pxe minimal"
|
||||
|
||||
DEPEND="~sys-apps/calculate-core-3.1.1_beta2
|
||||
!<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_beta2-r6.patch"
|
||||
}
|
@ -0,0 +1,93 @@
|
||||
diff --git data/calculate data/calculate
|
||||
index 1ec60b3..dc36f4c 100644
|
||||
--- data/calculate
|
||||
+++ data/calculate
|
||||
@@ -142,6 +142,10 @@ start() {
|
||||
touch /* /bin/* /sbin/*
|
||||
udevadm trigger --action="add" --subsystem-match=net
|
||||
fi
|
||||
+ if [[ $roottype != "livecd" ]]
|
||||
+ then
|
||||
+ /usr/bin/eix-checkout &>/dev/null &
|
||||
+ fi
|
||||
|
||||
/sbin/rc-update --update
|
||||
return 0
|
||||
diff --git install/cl_distr.py install/cl_distr.py
|
||||
index 9dcdcb3..2dd8c6c 100644
|
||||
--- install/cl_distr.py
|
||||
+++ install/cl_distr.py
|
||||
@@ -132,7 +132,7 @@ class Distributive(object):
|
||||
elif "Squashfs filesystem" in ftype:
|
||||
return SquashDistributive(filename)
|
||||
elif path.isdir(filename):
|
||||
- if path.exists(path.join(filename,"livecd")):
|
||||
+ if path.isfile(path.join(filename,"livecd")):
|
||||
return IsoDistributive(filename)
|
||||
else:
|
||||
return DirectoryDistributive(filename)
|
||||
diff --git install/cl_install.py install/cl_install.py
|
||||
index c42e0a7..e65b50b 100644
|
||||
--- install/cl_install.py
|
||||
+++ install/cl_install.py
|
||||
@@ -601,6 +601,7 @@ class Install(color_print):
|
||||
self.cleanInitrd()
|
||||
self.endTask("")
|
||||
|
||||
+ self.remountNTFS()
|
||||
# join templates
|
||||
self.startTask(_("Updating the configuration"),progress=True)
|
||||
self.applyTemplates(targetDistr.getDirectory(),
|
||||
@@ -661,6 +662,7 @@ class Install(color_print):
|
||||
setupType).capitalize(),progress=True)
|
||||
else:
|
||||
self.startTask(_("System configuration"),progress=True)
|
||||
+ refreshLVM()
|
||||
res = self.applyTemplatesStartup()
|
||||
self.endTask()
|
||||
if setupType and self.clVars.Get('cl_setup') == 'network':
|
||||
@@ -784,3 +786,31 @@ class Install(color_print):
|
||||
self.prepareBoot(self.targetDistr)
|
||||
self.endTask()
|
||||
return True
|
||||
+
|
||||
+ def _getFreeDirectory(self,directory):
|
||||
+ """
|
||||
+ Get free directory name
|
||||
+ """
|
||||
+ newDirectoryName = directory
|
||||
+ while path.exists(newDirectoryName):
|
||||
+ newDirectoryName = "%s.%s"%(directory,self.rndString())
|
||||
+ return newDirectoryName
|
||||
+
|
||||
+ def remountNTFS(self):
|
||||
+ """
|
||||
+ Remount NTFS partitions
|
||||
+ """
|
||||
+ for disk in self.clVars.Select('os_disk_dev',
|
||||
+ where='os_disk_format',like='ntfs'):
|
||||
+ mountDir = self._getFreeDirectory('/var/lib/calculate/mount.test')
|
||||
+ try:
|
||||
+ os.mkdir(mountDir)
|
||||
+ except:
|
||||
+ continue
|
||||
+ if process('/bin/mount',disk,mountDir).success():
|
||||
+ if process('/bin/umount',mountDir).failed():
|
||||
+ self.printWARNING(_("Unable umount %s")%mountDir)
|
||||
+ try:
|
||||
+ os.rmdir(mountDir)
|
||||
+ except:
|
||||
+ self.printWARNING(_("Unable remove directory %s")%mountDir)
|
||||
diff --git install/variables/action.py install/variables/action.py
|
||||
index d704e74..16f57da 100644
|
||||
--- install/variables/action.py
|
||||
+++ install/variables/action.py
|
||||
@@ -97,6 +97,7 @@ class VariableAcInstallUnmerge(ActionVariable):
|
||||
Action variable which has value "up" on prerm ebuild phase
|
||||
"""
|
||||
def action(self,cl_action):
|
||||
- if cl_action == "merge" and self.Get('cl_ebuild_phase') == 'prerm':
|
||||
+ if cl_action == "merge" and \
|
||||
+ self.Get('cl_ebuild_phase') in ('prerm','postrm'):
|
||||
return "on"
|
||||
return "off"
|
@ -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="amd64 x86"
|
||||
IUSE="cl_consolegui cl_client cl_desktop cl_console"
|
||||
|
||||
RDEPEND="${RDEPEND}
|
||||
=sys-apps/calculate-install-3.1.1_beta2-r6
|
||||
=sys-apps/calculate-i18n-3.1.1_beta2-r1
|
||||
=sys-apps/calculate-lib-3.1.1_beta2-r3
|
||||
=sys-apps/calculate-core-3.1.1_beta2-r4
|
||||
=sys-apps/calculate-update-3.1.1_beta2
|
||||
cl_client? ( =sys-apps/calculate-client-3.1.1_beta2 )
|
||||
cl_desktop? ( =sys-apps/calculate-desktop-3.1.1_beta2 )
|
||||
cl_consolegui? ( =sys-apps/calculate-console-gui-3.1.1_beta2 )
|
||||
cl_console? ( =sys-apps/calculate-console-3.1.1_beta2 )
|
||||
"
|
Loading…
Reference in new issue