Browse Source

v0.2

master
Maxim Likhachev 5 years ago
parent
commit
08b589ba86
  1. 2
      metadata/layout.conf
  2. 3
      profiles/CLC/amd64/20/calculate.env
  3. 2
      profiles/CLC/amd64/20/parent
  4. 2
      profiles/CLC/amd64/parent
  5. 3
      profiles/CLC/calculate.env
  6. 2
      profiles/CLC/make.defaults
  7. 4
      profiles/CLC/package.use
  8. 0
      profiles/CLC/parent
  9. 6
      profiles/CLC/x86/20/calculate.env
  10. 2
      profiles/CLC/x86/20/parent
  11. 2
      profiles/CLC/x86/calculate.env
  12. 2
      profiles/CLC/x86/parent
  13. 1
      profiles/arch.list
  14. 8
      profiles/calculate.env
  15. 2
      profiles/minimal-gentoo/amd64/parent
  16. 4
      profiles/minimal-gentoo/calculate.env
  17. 2
      profiles/profiles.desc
  18. 0
      profiles/templates/0.2/6_ac_update_sync/README-eng.txt
  19. 0
      profiles/templates/0.2/6_ac_update_sync/README-rus.txt
  20. 0
      profiles/templates/0.2/6_ac_update_sync/world/create/.calculate_directory
  21. 2
      profiles/templates/0.2/6_ac_update_sync/world/create/base
  22. 5
      profiles/templates/0.2/6_ac_update_sync/world/create/multimedia
  23. 54
      profiles/templates/0.2/6_ac_update_sync/world/create/netapps
  24. 32
      profiles/templates/0.2/6_ac_update_sync/world/create/network
  25. 25
      profiles/templates/0.2/6_ac_update_sync/world/create/printer
  26. 12
      profiles/templates/0.2/6_ac_update_sync/world/create/server
  27. 115
      profiles/templates/0.2/6_ac_update_sync/world/create/tools
  28. 7
      profiles/templates/0.2/6_ac_update_sync/world/create/wireless
  29. 6
      profiles/templates/0.2/6_ac_update_sync/world/create/xorg
  30. 1
      profiles/templates/3.5/.calculate_directory
  31. 1
      profiles/templates/3.5/6_ac_update_sync/.calculate_directory
  32. 1
      profiles/templates/3.5/6_ac_update_sync/revision/.calculate_directory
  33. 7
      profiles/templates/3.5/6_ac_update_sync/revision/01-migrate-ini.env
  34. 1
      profiles/templates/3.5/6_ac_update_sync/world/.calculate_directory
  35. 4
      profiles/templates/3.5/6_ac_update_sync/world/0-ini
  36. 21
      profiles/templates/3.5/6_ac_update_sync/world/create/tools
  37. 5
      profiles/templates/3.5/6_ac_update_sync/world/create/xorg
  38. 1
      profiles/templates/3.5/6_ac_update_sync/world/update/.calculate_directory
  39. 3
      profiles/templates/3.5/6_ac_update_sync/world/update/2020
  40. 60
      profiles/templates/3.5/README-eng.txt
  41. 63
      profiles/templates/3.5/README-rus.txt

2
metadata/layout.conf

@ -1,4 +1,4 @@ @@ -1,4 +1,4 @@
masters = distros calculate gentoo
masters = calculate gentoo
# Use thin manifests
thin-manifests = true

3
profiles/CLC/amd64/20/calculate.env

@ -0,0 +1,3 @@ @@ -0,0 +1,3 @@
[main]
cl_template_location = calculate,distros,local,remote
cl_template_path = /var/db/repos/calculate/profiles/templates,/var/db/repos/distros/profiles/templates,/var/calculate/templates,/var/calculate/remote/templates

2
profiles/CLC/amd64/20/parent

@ -0,0 +1,2 @@ @@ -0,0 +1,2 @@
calculate:default/amd64/20/desktop
../..

2
profiles/CLC/amd64/parent

@ -0,0 +1,2 @@ @@ -0,0 +1,2 @@
../../../../calculate/profiles/default/amd64/18/desktop
..

3
profiles/CLC/calculate.env

@ -0,0 +1,3 @@ @@ -0,0 +1,3 @@
[main]
os_linux_name = 'Calculate Linux Custom'
os_linux_shortname = CLC

2
profiles/CLC/make.defaults

@ -0,0 +1,2 @@ @@ -0,0 +1,2 @@
USE=""
THEMES="CLS"

4
profiles/CLC/package.use

@ -0,0 +1,4 @@ @@ -0,0 +1,4 @@
# -----------------------------------------
# Removed unnecessary dependence
# -----------------------------------------
sys-apps/calculate-utils -client -qt5

0
profiles/minimal-gentoo/parent → profiles/CLC/parent

6
profiles/CLC/x86/20/calculate.env

@ -0,0 +1,6 @@ @@ -0,0 +1,6 @@
[main]
cl_template_location = calculate,distros,local,remote
cl_template_path = /var/db/repos/calculate/profiles/templates,/var/db/repos/distros/profiles/templates,/var/calculate/templates,/var/calculate/remote/templates
[update]
cl_update_rep_url = git://github.com/calculatelinux/gentoo-archive.git,git://github.com/calculatelinux/calculate-archive.git,git://github.com/calculatelinux/distros-archive.git

2
profiles/CLC/x86/20/parent

@ -0,0 +1,2 @@ @@ -0,0 +1,2 @@
calculate:default/x86/20/desktop
../..

2
profiles/CLC/x86/calculate.env

@ -0,0 +1,2 @@ @@ -0,0 +1,2 @@
[update]
cl_update_rep_url = git://github.com/calculatelinux/gentoo-archive.git,git://github.com/calculatelinux/calculate-archive.git,git://github.com/calculatelinux/distros-archive.git

2
profiles/CLC/x86/parent

@ -0,0 +1,2 @@ @@ -0,0 +1,2 @@
../../../../calculate/profiles/default/x86/18/desktop
..

1
profiles/arch.list

@ -0,0 +1 @@ @@ -0,0 +1 @@
amd64

8
profiles/calculate.env

@ -3,8 +3,6 @@ cl_template_location = calculate,distros,minimal-gentoo,local,remote @@ -3,8 +3,6 @@ cl_template_location = calculate,distros,minimal-gentoo,local,remote
cl_template_path = /var/lib/layman/calculate/profiles/templates,/var/lib/layman/distros/profiles/templates,/var/lib/layman/minimal-gentoo/profiles/templates,/var/calculate/templates,/var/calculate/remote/templates
[update]
cl_update_rep_name = portage,calculate,distros,minimal-gentoo
cl_update_rep_url = git://git.calculate.ru/calculate/portage.git,git://git.calculate.ru/calculate/overlay.git,git://git.calculate.ru/calculate/distros.git,https://code.envrm.info/src/gentoo-profiles.git
[client]
cl_profile_all_set = on
cl_update_rep_name = gentoo,calculate,distros,minimal-gentoo
cl_update_rep_url = git://github.com/calculatelinux/gentoo.git,git://github.com/calculatelinux/calculate.git,git://github.com/calculatelinux/distros.git,https://code.envrm.info/src/gentoo-profiles.git
cl_update_rep_sync = mirror,mirror,mirror

2
profiles/minimal-gentoo/amd64/parent

@ -1,2 +0,0 @@ @@ -1,2 +0,0 @@
distros:CLS/amd64
..

4
profiles/minimal-gentoo/calculate.env

@ -1,4 +0,0 @@ @@ -1,4 +0,0 @@
[main]
os_linux_name = 'envrm minimal Gentoo Linux'
os_linux_subname = ''
os_linux_shortname = minimal-gentoo

2
profiles/profiles.desc

@ -8,6 +8,6 @@ @@ -8,6 +8,6 @@
# AMD64 Profiles
amd64 minimal-gentoo/amd64 stable
amd64 CLC/amd64/20 stable
# vim: set ts=8

0
profiles/templates/3.5/6_ac_update_sync/README-eng.txt → profiles/templates/0.2/6_ac_update_sync/README-eng.txt

0
profiles/templates/3.5/6_ac_update_sync/README-rus.txt → profiles/templates/0.2/6_ac_update_sync/README-rus.txt

0
profiles/templates/3.5/6_ac_update_sync/world/create/.calculate_directory → profiles/templates/0.2/6_ac_update_sync/world/create/.calculate_directory

2
profiles/templates/3.5/6_ac_update_sync/world/create/base → profiles/templates/0.2/6_ac_update_sync/world/create/base

@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
# Calculate name=world format=world
#?in(os_linux_pkglist, minimal-gentoo, calculate)!=#
#?in(os_linux_pkglist, minimal-gentoo)!=#
sys-apps/calculate-toolkit
sys-apps/ifplugd
sys-apps/less

5
profiles/templates/0.2/6_ac_update_sync/world/create/multimedia

@ -0,0 +1,5 @@ @@ -0,0 +1,5 @@
# Calculate name=world format=world
#?in(os_linux_pkglist, CLS)!=#
media-sound/alsa-utils
#in#

54
profiles/templates/0.2/6_ac_update_sync/world/create/netapps

@ -0,0 +1,54 @@ @@ -0,0 +1,54 @@
# Calculate name=world format=world
#?in(os_linux_pkglist, CLD, CLDC, CLDL, CLDM, CLDX, CLDXS, CDS)!=#
app-text/wgetpaste
net-misc/whois
#in#
#?in(os_linux_pkglist, CLD, CLDC, CLDL, CLDM, CLDX, CLDXS, CDS)!=#
net-analyzer/nmap
net-analyzer/traceroute
#in#
#?in(os_linux_pkglist, CLD, CLDC, CLDL, CLDM, CLDX, CLDXS)!=#
www-client/chromium
www-plugins/adobe-flash
www-plugins/chrome-freedommarks
www-plugins/chrome-passman
www-plugins/chrome-ublock
#in#
#?in(os_linux_pkglist, CLDC, CLDL, CLDM, CLDX, CLDXS)!=#
net-im/gajim
net-misc/remmina
net-p2p/qbittorrent
x11-misc/x11vnc
#in#
#?in(os_linux_pkglist, CLDL, CLDM, CLDX, CLDXS)!=#
mail-client/claws-mail
#in#
#?in(os_linux_pkglist, CLDM, CLDX, CLDXS)!=#
net-irc/hexchat
#in#
#?in(os_linux_pkglist, CLD)!=#
kde-apps/krdc
kde-apps/krfb
net-irc/konversation
net-p2p/ktorrent
#in#
#?in(os_linux_pkglist, CDS)!=#
net-analyzer/fail2ban
net-analyzer/iptraf-ng
net-analyzer/macchanger
net-analyzer/sarg
net-analyzer/tcpdump
net-analyzer/vnstat
net-dialup/minicom
net-ftp/tftp-hpa
net-irc/weechat
www-client/links
#in#

32
profiles/templates/0.2/6_ac_update_sync/world/create/network

@ -0,0 +1,32 @@ @@ -0,0 +1,32 @@
# Calculate name=world format=world
#?in(os_linux_pkglist, CLD, CLDC, CLDL, CLDM, CLDX, CLDXS, CDS)!=#
net-dialup/pptpclient
net-dialup/rp-pppoe
net-dialup/xl2tpd
net-dns/bind-tools
net-firewall/shorewall
net-misc/ntp
net-misc/vconfig
#in#
#?in(os_linux_pkglist, CLD, CLDC, CLDL, CLDM, CLDX, CLDXS)!=#
net-vpn/networkmanager-l2tp
net-vpn/networkmanager-openvpn
net-vpn/networkmanager-pptp
net-vpn/networkmanager-vpnc
net-vpn/networkmanager-wireguard
net-vpn/wireguard-modules
#in#
#?in(os_linux_pkglist, CDS)!=#
net-dialup/ppp
net-dns/ddclient
net-firewall/iptables
net-fs/samba
net-misc/bridge-utils
net-misc/ifenslave
net-misc/wol
net-vpn/ipsec-tools
net-vpn/pptpd
#in#

25
profiles/templates/0.2/6_ac_update_sync/world/create/printer

@ -0,0 +1,25 @@ @@ -0,0 +1,25 @@
# Calculate name=world format=world
#?in(os_linux_pkglist, CLD, CLDC, CLDL, CLDM, CLDX, CLDXS)!=#
net-print/cndrvcups-common-lb
net-print/cnijfilter2
net-print/cups
net-print/epson-inkjet-printer-escpr
net-print/foomatic-db-engine
net-print/gutenprint
net-print/hplip
net-print/hplip-plugin
#net-print/xerox-drivers
#in#
#?in(os_linux_pkglist, CLD, CLDL, CLDM, CLDX, CLDXS)!=#
media-gfx/xsane
#in#
#?in(os_linux_pkglist, CLD, CLDL, CLDM, CLDX, CLDXS)!=#
app-admin/system-config-printer
#in#
#?in(os_linux_pkglist, CLDC)!=#
media-gfx/simple-scan
#in#

12
profiles/templates/0.2/6_ac_update_sync/world/create/server

@ -0,0 +1,12 @@ @@ -0,0 +1,12 @@
# Calculate name=world format=world
#?in(os_linux_pkglist, CDS)!=#
dev-db/pg_top
dev-db/postgresql
mail-filter/opendkim
mail-filter/postgrey
net-ftp/ftp
net-mail/fetchmail
sys-apps/calculate-server
sys-apps/most
#in#

115
profiles/templates/0.2/6_ac_update_sync/world/create/tools

@ -0,0 +1,115 @@ @@ -0,0 +1,115 @@
# Calculate name=world format=world
#?in(os_linux_pkglist, CLD, CLDC, CLDL, CLDM, CLDX, CLDXS, CDS, CLS, CSS)!=#
app-arch/lbzip2
app-arch/pigz
app-misc/tmux
net-misc/dhcp
sys-auth/pam_update
sys-fs/btrfs-progs
sys-fs/cryptsetup
sys-fs/reiserfsprogs
sys-fs/xfsprogs
#in#
#?in(os_linux_pkglist, CLD, CLDC, CLDL, CLDM, CLDX, CLDXS, CDS, CLS)!=#
app-admin/logrotate
sys-apps/ethtool
sys-apps/usbutils
virtual/cron
virtual/logger
#in#
#?in(os_linux_pkglist, CLD, CLDC, CLDL, CLDM, CLDX, CLDXS, CDS)!=#
app-editors/vim
app-portage/portage-utils
app-text/tree
app-vim/colorschemes
sys-apps/inxi
sys-apps/memtest86+
sys-apps/pciutils
sys-fs/dmraid
sys-fs/dosfstools
sys-fs/mdadm
sys-process/htop
sys-process/lsof
#in#
#?in(os_linux_pkglist, CLD, CLDC, CLDL, CLDM, CLDX, CLDXS, CDS)!=#
app-admin/hddtemp
app-admin/sudo
app-admin/testdisk
app-cdr/cdrtools
app-cdr/dvd+rw-tools
app-misc/mc
sys-apps/acl
sys-apps/dmidecode
sys-apps/lm-sensors
sys-apps/pv
sys-apps/smartmontools
sys-fs/mtools
#in#
#?in(os_linux_pkglist, CLD, CLDC, CLDL, CLDM, CLDX, CLDXS)!=#
app-arch/p7zip
app-arch/rar
app-arch/unzip
sys-apps/hdparm
sys-apps/keyexec
sys-apps/pcmciautils
sys-apps/usb_modeswitch
sys-fs/exfat-utils
sys-fs/fuse-exfat
sys-fs/ntfs3g
sys-power/acpi
sys-power/acpid
sys-power/cpupower
sys-power/powernowd
sys-power/powertop
#in#
#?in(os_linux_pkglist, CLD, CLDL, CLDM, CLDX, CLDXS)!=#
sys-power/upower
#in#
#?in(os_linux_pkglist, CLDC, CLDL, CLDM, CLDX, CLDXS)!=#
app-pda/usbmuxd
dev-python/gst-python
sys-apps/mlocate
sys-block/gparted
sys-process/cpu-x
#для корректной поддержки мультимедиа клавиатур
x11-misc/wmctrl
#in#
#?in(os_linux_pkglist, CLDL, CLDX, CLDXS)!=#
sys-apps/qdirstat
#in#
#?in(os_linux_pkglist, CLDC, CLDM)!=#
x11-misc/parcellite
#in#
#?in(os_linux_pkglist, CLD)!=#
sys-block/partitionmanager
#in#
#?in(os_linux_pkglist, CLDC)!=#
gnome-base/dconf-editor
#in#
#?in(os_linux_pkglist, CDS)!=#
app-antivirus/clamav
app-i18n/enca
app-portage/ufed
dev-libs/klibc
dev-python/psycopg
dev-python/pyserial
sci-libs/fftw
sys-apps/ipmitool
sys-apps/iproute2
sys-apps/kexec-tools
sys-block/parted
sys-block/tw_cli
sys-process/iotop
#in#

7
profiles/templates/3.5/6_ac_update_sync/world/create/wireless → profiles/templates/0.2/6_ac_update_sync/world/create/wireless

@ -1,8 +1,9 @@ @@ -1,8 +1,9 @@
# Calculate name=world format=world
#?in(os_linux_pkglist, minimal-gentoo, CLD, CLDC, CLDL, CLDM, CLDX, CLDXS, CLS)!=#
#?in(os_linux_pkglist, CLD, CLDC, CLDL, CLDM, CLDX, CLDXS, CLS)!=#
net-wireless/broadcom-sta
net-wireless/rtl8723de
net-wireless/rtl8814au
net-wireless/rtl8821ce
net-wireless/rtl8821cu
net-wireless/wireless-tools
@ -11,3 +12,7 @@ sys-firmware/b43-firmware @@ -11,3 +12,7 @@ sys-firmware/b43-firmware
sys-firmware/ipw2100-firmware
sys-firmware/ipw2200-firmware
#in#
#?in(os_linux_pkglist, CLDC, CLDL, CLDM, CLDX, CLDXS)!=#
net-wireless/blueman
#in#

6
profiles/templates/0.2/6_ac_update_sync/world/create/xorg

@ -0,0 +1,6 @@ @@ -0,0 +1,6 @@
# Calculate name=world format=world
#?in(os_linux_pkglist, CLD, CLDC, CLDL, CLDM, CLDX, CLDXS, CLS)!=#
app-misc/xorg-meta
#in#

1
profiles/templates/3.5/.calculate_directory

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

1
profiles/templates/3.5/6_ac_update_sync/.calculate_directory

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

1
profiles/templates/3.5/6_ac_update_sync/revision/.calculate_directory

@ -1 +0,0 @@ @@ -1 +0,0 @@
# Calculate append=skip

7
profiles/templates/3.5/6_ac_update_sync/revision/01-migrate-ini.env

@ -1,7 +0,0 @@ @@ -1,7 +0,0 @@
# Calculate path=/etc/calculate name=ini.env format=samba ini(overlay-lautre76.revision)<1
[overlay-lautre76]
revision = 1
[update-lautre76]
!world =

1
profiles/templates/3.5/6_ac_update_sync/world/.calculate_directory

@ -1 +0,0 @@ @@ -1 +0,0 @@
# Calculate path=/var/lib name=portage

4
profiles/templates/3.5/6_ac_update_sync/world/0-ini

@ -1,4 +0,0 @@ @@ -1,4 +0,0 @@
# Calculate path=/etc/calculate name=ini.env format=samba cl_update_world==rebuild||cl_update_world==merge||ini(overlay-minimal-gentoo.world)==
[overlay-minimal-gentoo]
world = 2020

21
profiles/templates/3.5/6_ac_update_sync/world/create/tools

@ -1,21 +0,0 @@ @@ -1,21 +0,0 @@
# Calculate name=world format=world
#?in(os_linux_pkglist, CLD, CLDC, CLDL, CLDM, CLDX, CLDXS, CDS, CLS, CSS)!=#
app-arch/lbzip2
app-arch/pigz
app-misc/tmux
net-misc/dhcp
sys-auth/pam_update
sys-fs/btrfs-progs
sys-fs/cryptsetup
sys-fs/reiserfsprogs
sys-fs/xfsprogs
#in#
#?in(os_linux_pkglist, CLD, CLDC, CLDL, CLDM, CLDX, CLDXS, CDS, CLS)!=#
app-admin/logrotate
sys-apps/ethtool
sys-apps/usbutils
virtual/cron
virtual/logger
#in#

5
profiles/templates/3.5/6_ac_update_sync/world/create/xorg

@ -1,5 +0,0 @@ @@ -1,5 +0,0 @@
# Calculate name=world format=world
#?in(os_linux_pkglist, minimal-gentoo, CLD, CLDC, CLDL, CLDM, CLDX, CLDXS, CLS)!=#
app-misc/xorg-meta
#in#

1
profiles/templates/3.5/6_ac_update_sync/world/update/.calculate_directory

@ -1 +0,0 @@ @@ -1 +0,0 @@
# Calculate append=skip cl_update_world!=merge&&cl_update_world!=rebuild

3
profiles/templates/3.5/6_ac_update_sync/world/update/2020

@ -1,3 +0,0 @@ @@ -1,3 +0,0 @@
# Calculate format=world name=world ini(overlay-lautre76.world)<2020
#-ini(overlay-minimal-gentoo.world,1)-#

60
profiles/templates/3.5/README-eng.txt

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

63
profiles/templates/3.5/README-rus.txt

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