Добавлена перенастрока eix,layman

mhiretskiy
Mike khiretskiy 10 years ago
parent 5fd3a15b53
commit 4c50feb224

@ -0,0 +1 @@
# Calculate append=skip cl_name==calculate-core&&cl_ver>=3.1.1

@ -0,0 +1 @@
# Calculate append=skip env=update ac_update_sync==on

@ -0,0 +1,7 @@
# Calculate append=skip
The ac_update_sync event:
- Portage syncing
Action: world update, fix system
env: install

@ -0,0 +1,7 @@
# Calculate append=skip
Событие ac_update_sync:
- обновление портежей
Действие: обновление world файла, исправление системы
env: install

@ -0,0 +1,5 @@
# Calculate ini(update.revtest)<1 format=samba path=/etc/calculate name=ini.env merge=app-portage/eix,app-portage/layman
# reconfigure eix, layman
[update]
revtest = 1

@ -0,0 +1,60 @@
# Calculate append=skip
Templates for new Calculate Utilities are stored in this directory.
Calculate templates were specifically designed for setting up your system at
any moment, should you be building your own system or simply tuning your
desktop.
Technically templates are files and directories. The properties of these files
are defined in the first header line, while the properties of the directories
are defined in the '.calculate_directory' file header, located inside the
directory. The file you are reading now is a template too, but this one is not
for configuration purposes and therefore will not be processed by utilities:
the ' append=skip' header says the system to skip it. This line is placed at
the beginning of the template file and must start with '# Calculate'.
Here are some more useful header options:
* env=<module> - pick the variables set from the specified module
* merge=package[,package2, ...] - call the configuration event for the package
The templates header may also contain conditionals with variables and
functions. Variables consist of two words or more, underline-separated: the
first part is the name, the second specifies the utility package it belongs
to, the third specifies the action, the fourth, if applicable, is the type of
value.
For instance:
os_install_lvm_set if LVM partitioning is to be used. 'set' in the variable's
name means that the variable returns either 'on' or 'off'.
To list all variables, run 'cl-core-variables-show'.
Functions, unlike variables, have arguments. Here are some examples of
frequently used functions:
* pkg(category/package[:slot]) returns the version of an installed package.
* merge([package]) returns '1' or '' depending on whether the package must be
configured. If the argument is missing, the package name will be fetched from
the name of the template. If the entire system is being set up, this function
will always return 1 anyway. Keep in mind that the merge() function is not a
header option (see above).
As for now, several versions of templates - the same as the Calculate
Utilities' ones, in fact - are supported: 2.0, 2.2, 3.0 and 3.1. Templates
v2.0 are for server configuration and stored within packages. Templates v2.2
are deprecated and only used for building a system. Templates v3.0 have been
used by the new Calculate installer since CL12. Templates v3.1 are now the
current version and will be supported in all utilities packages someday soon.
Whenever you create your own templates based on those, yours will have the
priority over the default ones. Standard paths for storing user-defined
templates are /var/calculate/templates and
/var/calculate/remote/templates. Note that there are also clt template files,
stored directly in /etc.
Please visit this page for more details:
http://www.calculate-linux.org/main/en/calculate_utilities_templates
We hope you enjoy using Calculate Linux!

@ -0,0 +1,63 @@
# Calculate append=skip
В этой директории находятся шаблоны для новых утилит Calculate, разработанных
для дистрибутивов Calculate Linux.
Шаблоны - универсальное средство настройки системы и используются на всех
этапах, начиная от сборки дистрибутива и заканчивая настройкой рабочего стола
пользователя.
Шаблоны представляют собой файлы и директории. Свойства файлов описываются
параметрами в первой строке заголовка, свойства директорий описываются в
заголовке служебного файла '.calculate_directory', размещённого внутри
директории. Файл, который вы читаете - тоже шаблон, но он не используется для
настройки системы, т.к. в заголовке своём содержит параметр 'append' со
значением 'skip', указывающий утилитам пропускать его. Служебная строка
заголовка размещается в начале файла и начинается со слова '# Calculate'.
Другие часто встречаемые параметры заголовка:
* env=<модуль> - использование набора переменных указанного модуля
* merge=пакет[,пакет2, ...] - вызов события настройки пакета
Помимо параметров, заголовок шаблона может включать условные выражения. В
выражениях могут участвовать переменные и функции утилит. Переменные состоят
из двух и более слов, разделённых символом подчеркивания. Первое слово
обозначает назначение переменной, второе, как правило указывает на пакет
утилит, третье на действие, последнее слово может указывать на тип значения.
Пример:
os_install_lvm_set - система использует LVM разделы. Здесь 'set' в имени
переменной указывает на то, что переменная возвращает значение 'on' или
'off'.
Список переменных можно посмотреть при помощи утилиты
'cl-core-variables-show'.
В отличие от переменных, функции имеют аргументы. Пример часто встречаемых
функций:
* pkg(категория/пакет[:слот]) - функция возвращает версию установленного
пакета.
* merge([пакет]) - функция возвращает '1' или '' в зависимости от
необходимости настройки пакета. Если аргумент у функции пропущен, имя пакета
берётся из имени шаблона. В случае выполнения настройки всей системы, функция
всегда будет будет возвращать положительный результат. Не путайте функцию
merge() с параметром заголовка, см. выше.
В настоящее время используются несколько версий шаблонов, совпадающих по
нумерации с версиями утилит Calculate: 2.0, 2.2, 3.0 и 3.1. Шаблоны 2.0
используются для настройки сервера и хранятся в пакетах утилит. Шаблоны 2.2
в настоящее время используются только при сборке системы. Шаблоны 3.0
использует установщик Calculate Linux 12. Шаблоны 3.1 на данный момент
являются текущей актуальной версией, поддержка которых со временем должна
появиться во пакетах утилит.
Вы можете использовать свои шаблоны по образу и подобию этих. Ваши шаблоны
будут иметь преоритетное значение. Стандартные пути для хранения
пользовательских шаблонов: /var/calculate/templates и
/var/calculate/remote/templates. Существуют также clt-файлы шаблонов,
располагаемые непосредственно в директории /etc.
Подробнее можно почитать здесь:
http://www.calculate-linux.ru/main/ru/calculate_utilities_templates
Успешной работы!
Loading…
Cancel
Save