Удаление ветки шаблонов 3.3

atratsevskiy
parent 6d43e99b35
commit a748640ceb

@ -1 +0,0 @@
# Calculate append=skip cl_name==calculate-core&&cl_ver>=3.3&&pkg(sys-apps/calculate-utils)>=3.3.0_alpha1

@ -1 +0,0 @@
# Calculate append=skip env=install cl_ver<3.4.0_beta3&&ac_install_disk==on

@ -1,4 +0,0 @@
# Calculate exec=/bin/bash
cp /var/lib/kdm/faces/* #-cl_chroot_path-#/var/lib/kdm/faces/ &>/dev/null
:

@ -1 +0,0 @@
# Calculate append=replace link=../../etc/ssl/postfix/server.crt mirror force

@ -1 +0,0 @@
# Calculate chown=postfix:mail append=replace link=../../etc/ssl/postfix/server.key mirror force

@ -1 +0,0 @@
# Calculate chown=postfix:mail append=replace link=../../etc/ssl/postfix/server.pem mirror force

@ -1 +0,0 @@
# Calculate append=replace link=../../etc/ssl/ejabberd/server.crt mirror force

@ -1 +0,0 @@
# Calculate append=replace link=../../etc/ssl/ejabberd/server.key mirror force

@ -1 +0,0 @@
# Calculate chown=root:jabber append=replace link=../../etc/ssl/ejabberd/server.pem mirror force

@ -1 +0,0 @@
# Calculate append=replace link=../../etc/ssl/dovecot/server.crt mirror force

@ -1 +0,0 @@
# Calculate chown=dovecot:mail append=replace link=../../etc/ssl/dovecot/server.key mirror force

@ -1 +0,0 @@
# Calculate chown=dovecot:mail append=replace link=../../etc/ssl/dovecot/server.pem mirror force

@ -1,8 +0,0 @@
# Calculate exec=/bin/bash
for fn in $(grep -l type=wifi /etc/NetworkManager/system-connections/* 2>/dev/null)
do
cp $fn #-cl_chroot_path-#/etc/NetworkManager/system-connections/
done
true

@ -1 +0,0 @@
# Calculate append=replace link=../../etc/wicd/ip-down.sh mirror force

@ -1 +0,0 @@
# Calculate append=replace link=../../etc/wicd/ip-up.sh mirror force

@ -1 +0,0 @@
# Calculate append=replace link=../../etc/wicd/manager-settings.conf mirror force

@ -1 +0,0 @@
# Calculate append=replace link=../../etc/wicd/wired-settings.conf mirror force

@ -1 +0,0 @@
# Calculate append=replace link=../../etc/wicd/wireless-settings.conf mirror force

@ -1 +0,0 @@
# Calculate append=replace link=../../etc/wpa_supplicant/wpa_supplicant.conf mirror force

@ -1 +0,0 @@
# Calculate append=replace link=../../etc/conf.d/net mirror force

@ -1 +0,0 @@
# Calculate append=replace link=../../etc/resolv.conf mirror force

@ -1,2 +0,0 @@
# Calculate merge(sys-fs/udev)!=&&pkg(sys-fs/udev)<197||merge(sys-fs/eudev)!=&&pkg(sys-fs/eudev)!= path=/etc/udev name=rules.d

@ -1 +0,0 @@
# Calculate append=replace link=../../etc/udev/rules.d/70-persistent-net.rules mirror force

@ -1,42 +0,0 @@
# Calculate format=raw name=calculate.env comment=#
[install]
#?os_root_type==hdd&&cl_autopartition_set==off#
os_install_dev_from = #-os_root_dev-#
#os_root_type#
#?cl_autopartition_set==on&&os_install_dev_from!=#
os_install_dev_from = #-os_install_dev_from-#
#cl_autopartition_set#
#?os_root_type==hdd#
os_install_ntp = #-os_install_ntp-#
#os_root_type#
os_install_net_settings = #-os_install_net_conf-#
#?cl_autologin!=&&os_install_linux_shortname!=CMC&&os_install_root_type!=livecd#
cl_autologin = #-cl_autologin-#
#cl_autologin#
#?cl_autologin==&&os_install_linux_shortname==CMC&&os_install_root_type!=livecd#
cl_autologin =
#cl_autologin#
[main]
# Set auto-update configuration files.
cl_autoupdate_set = off
#?os_install_root_type!=livecd#
# keep value of root dev uuid (8 char) for kernel symlink
cl_kernel_uid = #-cl_install_kernel_uid-#
#os_install_root_type#
#?os_install_linux_build!=#
# current linux build
os_linux_build = #-os_install_linux_build-#
#os_install_linux_build#
cl_home_crypt_set = #-cl_install_home_crypt_set-#
[update]
# auto-check updates
cl_update_autocheck_set = #-cl_install_autocheck_set-#
# interval for update auto-check
cl_update_autocheck_interval = #-cl_install_autocheck_interval-#
# clean packages and distfiles
cl_update_cleanpkg_set = #-cl_install_cleanpkg_set-#
# update other overlays
cl_update_other_set = #-cl_install_other_set-#

@ -1,2 +0,0 @@
# Calculate merge()!=&&pkg(sys-apps/baselayout)!= name=etc

@ -1,7 +0,0 @@
# Calculate protected
#-os_install_fstab_mount_conf-#
#-os_install_fstab_swap_conf-#
proc /proc proc defaults 0 0
shm /dev/shm tmpfs nodev,nosuid,noexec 0 0

@ -1 +0,0 @@
# Calculate pkg(sys-apps/calculate-utils[client])!=&&env(client.os_remote_auth)!= path=/var name=calculate

@ -1,5 +0,0 @@
# Calculate format=samba
[client]
cl_remote_host = #-client.cl_remote_host-#
cl_remote_pw = #-client.cl_remote_pw-#

@ -1,2 +0,0 @@
# Calculate merge()!=&&pkg(sys-apps/openrc)!= name=etc

@ -1,3 +0,0 @@
# Calculate comment=# os_install_linux_system==server&&load(empty,/etc/conf.d/net)==
modules="!plug"
ifplugd="--no-beep"

@ -1,43 +0,0 @@
# Calculate os_install_scratch==on chmod=0755
#!/sbin/runscript
description="Mount the root fs read/write"
depend()
{
need fsck
keyword nojail noopenvz noprefix novserver
}
start()
{
if echo 2>/dev/null >/.test.$$; then
rm -f /.test.$$ /fastboot /forcefsck
return 0
fi
ebegin "Remounting root filesystem read/write"
case "${RC_UNAME}" in
Linux) SCRATCH_ROOT=`sed -nr 's/(\S+)\s+\/newroot\s+.*/\1/p' /proc/mounts`
if [ "$SCRATCH_ROOT" -a "${SCRATCH_ROOT}" != "tmpfs" ];
then
mount -n $SCRATCH_ROOT /mnt/scratch
if [[ -n `cat /proc/mounts | grep "none / aufs"` ]];
then
mount -n -t aufs -o remount,rw none /
mount -n -t aufs -o remount,rw none /mnt/builder
else
mount -n -t unionfs -o remount,dirs=/mnt/scratch/workspace=rw:/mnt/scratch/delta=ro:/mnt/scratch/calculate=ro unionfs /
mount -n -t unionfs -o remount,dirs=/mnt/scratch/delta=rw:/mnt/scratch/calculate=ro unionfs /mnt/builder
fi
mount -o loop -t squashfs /mnt/scratch/livecd.squashfs /mnt/scratch/calculate
else
mount -n -o remount,rw /
fi
;;
*) mount -u -o rw /;;
esac
if eend $? "Root filesystem could not be mounted read/write"; then
rm -f /fastboot /forcefsck
fi
}

@ -1,5 +0,0 @@
# Calculate format=patch
<reg>^#(s[01])</reg>
<text>\1</text>
<reg>(c[0-9]:.*agetty).*(tty\d linux)</reg>
<text>\1 38400 \2</text>

@ -1 +0,0 @@
# Calculate path=/usr/share name=os-prober merge()!=&&pkg()!=

@ -1,6 +0,0 @@
# Calculate format=patch
<reg>(set \+f)
(\s*)(printf '%s %s)</reg>
<text>\1
\2[[ $(mapdevfs "$1") != #-os_mapper_root_dev-# ]] || [[ $2 != / ]] &amp;&amp;
\2\t\3</text>

@ -1,7 +0,0 @@
# Calculate append=skip
The ac_install_disk event:
- system installation on HDD
Action: system setup for booting from a hard disk
env: install

@ -1,7 +0,0 @@
# Calculate append=skip
Событие ac_install_disk:
- установка системы на жесткий диск
Действие: настройка системы для загрузки с жесткого диска
env: install

@ -1,2 +0,0 @@
# Calculate merge()!=&&pkg(sys-apps/sysvinit)!= name=etc

@ -1 +0,0 @@
# Calculate append=skip env=install cl_ver<3.4.0_beta3&&ac_install_flash==on

@ -1,7 +0,0 @@
# Calculate append=skip
The ac_install_flash event:
- system installation on USB-Flash
Action: system setup for booting from an USB-Flash
env: install

@ -1,7 +0,0 @@
# Calculate append=skip
Событие ac_install_flash:
- установка системы на USB-Flash
Действие: настройка системы для загрузки с USB-Flash
env: install

@ -1 +0,0 @@
# Calculate pkg(sys-boot/calcboot)!=&&pkg(media-gfx/gfxboot-themes-calculate)== append=skip

@ -1 +0,0 @@
# Calculate link=../../usr/share/syslinux/calcmenu.c32 mirror

@ -1 +0,0 @@
# Calculate link=../../usr/share/syslinux/calcmenu.c32 mirror

@ -1,3 +0,0 @@
# Calculate format=patch
<reg>LABEL=\S+</reg>
<text>UUID=#-os_install_root_uuid-#</text>

@ -1 +0,0 @@
# Calculate pkg(media-gfx/gfxboot-themes-calculate)!= append=skip

@ -1,3 +0,0 @@
# Calculate format=patch
<reg>LABEL=\S+</reg>
<text>UUID=#-os_install_root_uuid-#</text>

@ -1,2 +0,0 @@
# Calculate os_install_arch_machine==x86_64&&pkg(sys-boot/grub)>=2 path=/boot

@ -1,5 +0,0 @@
# Calculate format=patch
<reg> doload=squashfs</reg>
<text> cdroot_type=vfat doload=vfat,nls_cp866,nls_utf8,squashfs</text>
<reg>LABEL=\S+</reg>
<text>UUID=#-os_install_root_uuid-#</text>

@ -1 +0,0 @@
# Calculate pkg(sys-boot/syslinux)!= append=skip

@ -1 +0,0 @@
# Calculate link=../../usr/share/syslinux/isolinux.bin mirror

@ -1 +0,0 @@
# Calculate link=../../usr/share/syslinux/isolinux.bin mirror

@ -1,60 +0,0 @@
# 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!

@ -1,63 +0,0 @@
# 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
Успешной работы!

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save