parent
8e5f1c0bd6
commit
fdda9ccba5
@ -0,0 +1,31 @@
|
||||
# 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 utilities for builder tasks of Calculate Linux"
|
||||
HOMEPAGE="http://www.calculate-linux.org/main/en/calculate2"
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 x86"
|
||||
|
||||
DEPEND=">=sys-kernel/calckernel-3.4.18
|
||||
~sys-apps/calculate-install-2.2.28
|
||||
!<sys-apps/calculate-1.4.0_p20100921
|
||||
app-cdr/cdrkit
|
||||
sys-fs/squashfs-tools"
|
||||
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
src_unpack() {
|
||||
unpack "${A}"
|
||||
cd "${S}"
|
||||
|
||||
# add file counter, and change order of dispatch-conf
|
||||
epatch "${FILESDIR}/calculate-builder-2.2.28-filesnum_dispatch.patch"
|
||||
}
|
@ -0,0 +1,58 @@
|
||||
commit ad97bc7e47e9d160446b4cb5dd4675a4dd2bb6a0
|
||||
Author: Mike Hiretsky <mh@calculate.ru>
|
||||
Date: Fri May 11 16:31:46 2012 +0400
|
||||
|
||||
Add filesnum variable for image
|
||||
|
||||
diff --git a/pym/cl_builder.py b/pym/cl_builder.py
|
||||
index d84e542..d6477c7 100644
|
||||
--- a/pym/cl_builder.py
|
||||
+++ b/pym/cl_builder.py
|
||||
@@ -14,7 +14,7 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
-__version__ = "2.2.28"
|
||||
+__version__ = "2.2.28.1"
|
||||
__app__ = "calculate-builder"
|
||||
|
||||
import os
|
||||
diff --git a/pym/cl_fill_builder.py b/pym/cl_fill_builder.py
|
||||
index 00ce478..fbaf6df 100644
|
||||
--- a/pym/cl_fill_builder.py
|
||||
+++ b/pym/cl_fill_builder.py
|
||||
@@ -23,7 +23,7 @@ from os import access, R_OK,W_OK
|
||||
from os import path
|
||||
from cl_distr import Distributive
|
||||
from cl_utils import getTupleVersion,genpassword,pathJoin,_toUNICODE, \
|
||||
- getFilesCount,getCmdLineParam
|
||||
+ getFilesCount,getCmdLineParam,countFiles
|
||||
from operator import itemgetter
|
||||
from types import ListType
|
||||
from cl_datavars import iniParser
|
||||
@@ -276,6 +276,11 @@ class fillVars(object, varsShare):
|
||||
self.detectOtherShortname(systemRoot) or \
|
||||
"Linux"
|
||||
|
||||
+ def get_os_builder_linux_filesnum(self):
|
||||
+ """Files number in image system"""
|
||||
+ systemRoot = self.Get('cl_builder_path')
|
||||
+ return str(countFiles(systemRoot))
|
||||
+
|
||||
def get_os_builder_linux_ver(self):
|
||||
"""Build system ver"""
|
||||
linuxShortName = self.Get("os_builder_linux_shortname")
|
||||
diff --git a/pym/cl_vars_builder.py b/pym/cl_vars_builder.py
|
||||
index 8be43e7..44e4965 100644
|
||||
--- a/pym/cl_vars_builder.py
|
||||
+++ b/pym/cl_vars_builder.py
|
||||
@@ -117,6 +117,9 @@ class Data:
|
||||
# build system build
|
||||
os_builder_linux_build = {'mode':'r','value':''}
|
||||
|
||||
+ # filesnum in build system
|
||||
+ os_builder_linux_filesnum = {'mode':'r'}
|
||||
+
|
||||
# build system arch
|
||||
os_builder_arch_machine = {}
|
||||
|
@ -0,0 +1,36 @@
|
||||
# Copyright 1999-2012 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-templates
|
||||
=sys-apps/calculate-install-2.2.28-r1
|
||||
=sys-apps/calculate-lib-2.2.28-r7
|
||||
=sys-apps/calculate-i18n-2.2.28
|
||||
|
||||
cl_assemble? ( =sys-apps/calculate-assemble-2.2.28-r5 )
|
||||
cl_builder? ( =sys-apps/calculate-builder-2.2.28-r2 )
|
||||
cl_client? ( =sys-apps/calculate-client-2.2.28-r1 )
|
||||
cl_desktop? ( =sys-apps/calculate-desktop-2.2.28 )
|
||||
cl_installgui? ( =app-misc/calculate-install-gui-2.2.28 )
|
||||
|
||||
cl_server? ( =sys-apps/calculate-server-2.1.15-r5 )
|
||||
"
|
Loading…
Reference in new issue