commit 8fbf6af45df5c9b7bf6ca8489dc260cd9f2db82c Author: Maxim Likhachev Date: Thu Feb 27 19:39:42 2020 +0300 minimal-gentoo v0.1 diff --git a/metadata/.gitignore b/metadata/.gitignore new file mode 100644 index 0000000..ff03039 --- /dev/null +++ b/metadata/.gitignore @@ -0,0 +1,2 @@ +/cache +/md5-cache diff --git a/metadata/layout.conf b/metadata/layout.conf new file mode 100644 index 0000000..946cb17 --- /dev/null +++ b/metadata/layout.conf @@ -0,0 +1,14 @@ +masters = distros calculate gentoo + +# Use thin manifests +thin-manifests = true + +# Dont sign thin manifests. There is no current policy for git commit signing +sign-manifests = false + +# Make egencache generate newer (more reliable) +# md5-dict cache format +cache-formats = md5-dict + +# Support package.* directories as well as files +profile-formats = portage-2 diff --git a/profiles/calculate.env b/profiles/calculate.env new file mode 100644 index 0000000..d539019 --- /dev/null +++ b/profiles/calculate.env @@ -0,0 +1,10 @@ +[main] +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,git://code.envrm.info/src/gentoo-profiles.git + +[client] +cl_profile_all_set = on diff --git a/profiles/minimal-gentoo/amd64/parent b/profiles/minimal-gentoo/amd64/parent new file mode 100644 index 0000000..857db00 --- /dev/null +++ b/profiles/minimal-gentoo/amd64/parent @@ -0,0 +1,2 @@ +distros:CLS/amd64 +.. diff --git a/profiles/minimal-gentoo/calculate.env b/profiles/minimal-gentoo/calculate.env new file mode 100644 index 0000000..7966f7c --- /dev/null +++ b/profiles/minimal-gentoo/calculate.env @@ -0,0 +1,4 @@ +[main] +os_linux_name = 'envrm minimal Gentoo Linux' +os_linux_subname = '' +os_linux_shortname = minimal-gentoo diff --git a/profiles/minimal-gentoo/parent b/profiles/minimal-gentoo/parent new file mode 100644 index 0000000..f3229c5 --- /dev/null +++ b/profiles/minimal-gentoo/parent @@ -0,0 +1 @@ +.. diff --git a/profiles/profiles.desc b/profiles/profiles.desc new file mode 100644 index 0000000..d91b35c --- /dev/null +++ b/profiles/profiles.desc @@ -0,0 +1,13 @@ +############################################# +# This is a list of valid profiles for each architecture. This file is used by +# repoman when doing a repoman scan or repoman full. +# DO NOT ADD PROFILES WITH A "die" or "exit" IN THEM OR IT KILLS REPOMAN +# +#layout: +#arch profile_directory status + + +# AMD64 Profiles +amd64 minimal-gentoo/amd64 stable + +# vim: set ts=8 diff --git a/profiles/repo_name b/profiles/repo_name new file mode 100644 index 0000000..e84127e --- /dev/null +++ b/profiles/repo_name @@ -0,0 +1 @@ +minimal-gentoo diff --git a/profiles/templates/3.5/.calculate_directory b/profiles/templates/3.5/.calculate_directory new file mode 100644 index 0000000..bbf3f1f --- /dev/null +++ b/profiles/templates/3.5/.calculate_directory @@ -0,0 +1 @@ +# Calculate append=skip cl_name==calculate-core&&cl_ver>=3.3 diff --git a/profiles/templates/3.5/6_ac_update_sync/.calculate_directory b/profiles/templates/3.5/6_ac_update_sync/.calculate_directory new file mode 100644 index 0000000..6cc8a04 --- /dev/null +++ b/profiles/templates/3.5/6_ac_update_sync/.calculate_directory @@ -0,0 +1 @@ +# Calculate append=skip env=update ac_update_sync==on diff --git a/profiles/templates/3.5/6_ac_update_sync/README-eng.txt b/profiles/templates/3.5/6_ac_update_sync/README-eng.txt new file mode 100644 index 0000000..2996b91 --- /dev/null +++ b/profiles/templates/3.5/6_ac_update_sync/README-eng.txt @@ -0,0 +1,7 @@ +# Calculate append=skip + +The ac_update_sync event: +- Portage syncing + +Action: world update, fix system +env: install diff --git a/profiles/templates/3.5/6_ac_update_sync/README-rus.txt b/profiles/templates/3.5/6_ac_update_sync/README-rus.txt new file mode 100644 index 0000000..fe3ae65 --- /dev/null +++ b/profiles/templates/3.5/6_ac_update_sync/README-rus.txt @@ -0,0 +1,7 @@ +# Calculate append=skip + +Событие ac_update_sync: +- обновление портежей + +Действие: обновление world файла, исправление системы +env: install diff --git a/profiles/templates/3.5/6_ac_update_sync/revision/.calculate_directory b/profiles/templates/3.5/6_ac_update_sync/revision/.calculate_directory new file mode 100644 index 0000000..720d52e --- /dev/null +++ b/profiles/templates/3.5/6_ac_update_sync/revision/.calculate_directory @@ -0,0 +1 @@ +# Calculate append=skip diff --git a/profiles/templates/3.5/6_ac_update_sync/revision/01-migrate-ini.env b/profiles/templates/3.5/6_ac_update_sync/revision/01-migrate-ini.env new file mode 100644 index 0000000..7f28bf5 --- /dev/null +++ b/profiles/templates/3.5/6_ac_update_sync/revision/01-migrate-ini.env @@ -0,0 +1,7 @@ +# Calculate path=/etc/calculate name=ini.env format=samba ini(overlay-lautre76.revision)<1 + +[overlay-lautre76] +revision = 1 + +[update-lautre76] +!world = diff --git a/profiles/templates/3.5/6_ac_update_sync/world/.calculate_directory b/profiles/templates/3.5/6_ac_update_sync/world/.calculate_directory new file mode 100644 index 0000000..38e1dde --- /dev/null +++ b/profiles/templates/3.5/6_ac_update_sync/world/.calculate_directory @@ -0,0 +1 @@ +# Calculate path=/var/lib name=portage diff --git a/profiles/templates/3.5/6_ac_update_sync/world/0-ini b/profiles/templates/3.5/6_ac_update_sync/world/0-ini new file mode 100644 index 0000000..c50672d --- /dev/null +++ b/profiles/templates/3.5/6_ac_update_sync/world/0-ini @@ -0,0 +1,4 @@ +# 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 diff --git a/profiles/templates/3.5/6_ac_update_sync/world/create/.calculate_directory b/profiles/templates/3.5/6_ac_update_sync/world/create/.calculate_directory new file mode 100644 index 0000000..efc7485 --- /dev/null +++ b/profiles/templates/3.5/6_ac_update_sync/world/create/.calculate_directory @@ -0,0 +1 @@ +# Calculate append=skip cl_update_world==merge||cl_update_world==rebuild diff --git a/profiles/templates/3.5/6_ac_update_sync/world/create/base b/profiles/templates/3.5/6_ac_update_sync/world/create/base new file mode 100644 index 0000000..5b42d9d --- /dev/null +++ b/profiles/templates/3.5/6_ac_update_sync/world/create/base @@ -0,0 +1,8 @@ +# Calculate name=world format=world + +#?in(os_linux_pkglist, minimal-gentoo, calculate)!=# +sys-apps/calculate-toolkit +sys-apps/ifplugd +sys-apps/less +sys-kernel/dracut +#in# diff --git a/profiles/templates/3.5/6_ac_update_sync/world/create/tools b/profiles/templates/3.5/6_ac_update_sync/world/create/tools new file mode 100644 index 0000000..0c7b430 --- /dev/null +++ b/profiles/templates/3.5/6_ac_update_sync/world/create/tools @@ -0,0 +1,21 @@ +# 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# diff --git a/profiles/templates/3.5/6_ac_update_sync/world/create/wireless b/profiles/templates/3.5/6_ac_update_sync/world/create/wireless new file mode 100644 index 0000000..722f67b --- /dev/null +++ b/profiles/templates/3.5/6_ac_update_sync/world/create/wireless @@ -0,0 +1,13 @@ +# Calculate name=world format=world + +#?in(os_linux_pkglist, minimal-gentoo, CLD, CLDC, CLDL, CLDM, CLDX, CLDXS, CLS)!=# +net-wireless/broadcom-sta +net-wireless/rtl8723de +net-wireless/rtl8821ce +net-wireless/rtl8821cu +net-wireless/wireless-tools +net-wireless/wpa_supplicant +sys-firmware/b43-firmware +sys-firmware/ipw2100-firmware +sys-firmware/ipw2200-firmware +#in# diff --git a/profiles/templates/3.5/6_ac_update_sync/world/create/xorg b/profiles/templates/3.5/6_ac_update_sync/world/create/xorg new file mode 100644 index 0000000..4f7ec15 --- /dev/null +++ b/profiles/templates/3.5/6_ac_update_sync/world/create/xorg @@ -0,0 +1,5 @@ +# Calculate name=world format=world + +#?in(os_linux_pkglist, minimal-gentoo, CLD, CLDC, CLDL, CLDM, CLDX, CLDXS, CLS)!=# +app-misc/xorg-meta +#in# diff --git a/profiles/templates/3.5/6_ac_update_sync/world/update/.calculate_directory b/profiles/templates/3.5/6_ac_update_sync/world/update/.calculate_directory new file mode 100644 index 0000000..06d9075 --- /dev/null +++ b/profiles/templates/3.5/6_ac_update_sync/world/update/.calculate_directory @@ -0,0 +1 @@ +# Calculate append=skip cl_update_world!=merge&&cl_update_world!=rebuild diff --git a/profiles/templates/3.5/6_ac_update_sync/world/update/2020 b/profiles/templates/3.5/6_ac_update_sync/world/update/2020 new file mode 100644 index 0000000..f850872 --- /dev/null +++ b/profiles/templates/3.5/6_ac_update_sync/world/update/2020 @@ -0,0 +1,3 @@ +# Calculate format=world name=world ini(overlay-lautre76.world)<2020 + +#-ini(overlay-minimal-gentoo.world,1)-# diff --git a/profiles/templates/3.5/README-eng.txt b/profiles/templates/3.5/README-eng.txt new file mode 100644 index 0000000..ba206af --- /dev/null +++ b/profiles/templates/3.5/README-eng.txt @@ -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= - 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! + diff --git a/profiles/templates/3.5/README-rus.txt b/profiles/templates/3.5/README-rus.txt new file mode 100644 index 0000000..48341b7 --- /dev/null +++ b/profiles/templates/3.5/README-rus.txt @@ -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 + +Успешной работы!