Date: Sun, 17 May 2026 18:12:18 +0000 From: Vladlen Popolitov <vladlen@FreeBSD.org> To: doc-committers@FreeBSD.org, dev-commits-doc-all@FreeBSD.org Subject: git: 1b8dc75671 - main - update translation of books/porters-handbook to Russian Message-ID: <6a0a0502.24e01.493d1493@gitrepo.freebsd.org>
index | next in thread | raw e-mail
The branch main has been updated by vladlen: URL: https://cgit.FreeBSD.org/doc/commit/?id=1b8dc75671d4d5c0c6baaea6e0b3852aab987d35 commit 1b8dc75671d4d5c0c6baaea6e0b3852aab987d35 Author: Vladlen Popolitov <vladlen@FreeBSD.org> AuthorDate: 2026-05-17 18:12:03 +0000 Commit: Vladlen Popolitov <vladlen@FreeBSD.org> CommitDate: 2026-05-17 18:12:03 +0000 update translation of books/porters-handbook to Russian Reviewed by: andy Differential Revision: https://reviews.freebsd.org/В56931 --- .../content/ru/books/porters-handbook/_index.po | 4 +- .../content/ru/books/porters-handbook/book.po | 4 +- .../books/porters-handbook/makefiles/_index.adoc | 4 +- .../ru/books/porters-handbook/makefiles/_index.po | 8 +- .../ru/books/porters-handbook/plist/_index.adoc | 4 +- .../ru/books/porters-handbook/plist/_index.po | 8 +- .../books/porters-handbook/porting-dads/_index.po | 2 +- .../porters-handbook/porting-samplem/_index.adoc | 2 +- .../porters-handbook/porting-samplem/_index.po | 6 +- .../books/porters-handbook/porting-why/_index.po | 4 +- .../porters-handbook/quick-porting/_index.adoc | 4 +- .../books/porters-handbook/quick-porting/_index.po | 8 +- .../ru/books/porters-handbook/security/_index.adoc | 4 +- .../ru/books/porters-handbook/security/_index.po | 6 +- .../porters-handbook/slow-porting/_index.adoc | 4 +- .../books/porters-handbook/slow-porting/_index.po | 11 +- .../ru/books/porters-handbook/special/_index.adoc | 45 +- .../ru/books/porters-handbook/special/_index.po | 3871 +++--- .../ru/books/porters-handbook/uses/_index.adoc | 20 +- .../ru/books/porters-handbook/uses/_index.po | 1823 +-- .../ru/books/porters-handbook/versions/_index.adoc | 60 + .../ru/books/porters-handbook/versions/_index.po | 12791 ++++++++++--------- 22 files changed, 9530 insertions(+), 9163 deletions(-) diff --git a/documentation/content/ru/books/porters-handbook/_index.po b/documentation/content/ru/books/porters-handbook/_index.po index fd08e4925e..f0c5d307bb 100644 --- a/documentation/content/ru/books/porters-handbook/_index.po +++ b/documentation/content/ru/books/porters-handbook/_index.po @@ -1,12 +1,12 @@ # SOME DESCRIPTIVE TITLE # Copyright (C) YEAR The FreeBSD Project # This file is distributed under the same license as the FreeBSD Documentation package. -# Vladlen Popolitov <vladlenpopolitov@list.ru>, 2025. +# Vladlen Popolitov <vladlenpopolitov@list.ru>, 2025, 2026. msgid "" msgstr "" "Project-Id-Version: FreeBSD Documentation VERSION\n" "POT-Creation-Date: 2025-05-01 19:56-0300\n" -"PO-Revision-Date: 2025-07-12 04:45+0000\n" +"PO-Revision-Date: 2026-03-23 04:45+0000\n" "Last-Translator: Vladlen Popolitov <vladlenpopolitov@list.ru>\n" "Language-Team: Russian <https://translate-dev.freebsd.org/projects/" "documentation/booksporters-handbook_index/ru/>\n" diff --git a/documentation/content/ru/books/porters-handbook/book.po b/documentation/content/ru/books/porters-handbook/book.po index 5036254264..6cc468c4cc 100644 --- a/documentation/content/ru/books/porters-handbook/book.po +++ b/documentation/content/ru/books/porters-handbook/book.po @@ -1,12 +1,12 @@ # SOME DESCRIPTIVE TITLE # Copyright (C) YEAR The FreeBSD Project # This file is distributed under the same license as the FreeBSD Documentation package. -# Vladlen Popolitov <vladlenpopolitov@list.ru>, 2025. +# Vladlen Popolitov <vladlenpopolitov@list.ru>, 2025, 2026. msgid "" msgstr "" "Project-Id-Version: FreeBSD Documentation VERSION\n" "POT-Creation-Date: 2022-02-01 09:20-0300\n" -"PO-Revision-Date: 2025-07-12 04:45+0000\n" +"PO-Revision-Date: 2026-03-23 04:45+0000\n" "Last-Translator: Vladlen Popolitov <vladlenpopolitov@list.ru>\n" "Language-Team: Russian <https://translate-dev.freebsd.org/projects/" "documentation/booksporters-handbookbook/ru/>\n" diff --git a/documentation/content/ru/books/porters-handbook/makefiles/_index.adoc b/documentation/content/ru/books/porters-handbook/makefiles/_index.adoc index 92fcac3f4a..b0271fb97d 100644 --- a/documentation/content/ru/books/porters-handbook/makefiles/_index.adoc +++ b/documentation/content/ru/books/porters-handbook/makefiles/_index.adoc @@ -990,7 +990,7 @@ FreeBSD стремится поддерживать родной язык сво Наша текущая практика заключается в том, чтобы избегать создания новой физической категории, если только либо большое количество портов логически принадлежит к ней, либо порты, которые к ней относятся, представляют собой логически обособленную группу, представляющую ограниченный общий интерес (например, категории, связанные с разговорными человеческими языками), или, желательно, оба условия одновременно. -Обоснование этого заключается в том, что такое изменение создает extref:{committers-guide}[значительный объём работы, ports] как для коммиттеров, так и для всех пользователей, которые отслеживают изменения в Коллекции портов. Кроме того, предлагаемые изменения категорий, как правило, вызывают споры. (Возможно, это связано с отсутствием четкого консенсуса относительно того, когда категория становится «слишком большой», а также относительно того, должны ли категории способствовать удобству просмотра (и, следовательно, какое количество категорий бы ло бы идеальным), и так далее.) +Обоснование этого заключается в том, что такое изменение создаёт extref:{committers-guide}[значительный объём работы, ports] как для коммиттеров, так и для всех пользователей, которые отслеживают изменения в Коллекции портов. Кроме того, предлагаемые изменения категорий, как правило, вызывают споры. (Возможно, это связано с отсутствием четкого консенсуса относительно того, когда категория становится «слишком большой», а также относительно того, должны ли категории способствовать удобству просмотра (и, следовательно, какое количество категорий бы ло бы идеальным), и так далее.) Вот процедура: @@ -4579,7 +4579,7 @@ DISTVERSION= 1.0 [[makefile-wrksrc]] === `WRKSRC` -Переменная указывает имя каталога, который создается при распаковке distfiles приложения. Чтобы в нашем предыдущем примере распаковка происходила в каталог с именем [.filename]#foo# (а не [.filename]#foo-1.0#), напишите: +Переменная указывает имя каталога, который создаётся при распаковке distfiles приложения. Чтобы в нашем предыдущем примере распаковка происходила в каталог с именем [.filename]#foo# (а не [.filename]#foo-1.0#), напишите: [.programlisting] .... diff --git a/documentation/content/ru/books/porters-handbook/makefiles/_index.po b/documentation/content/ru/books/porters-handbook/makefiles/_index.po index fb7edfa53d..594940d46c 100644 --- a/documentation/content/ru/books/porters-handbook/makefiles/_index.po +++ b/documentation/content/ru/books/porters-handbook/makefiles/_index.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: FreeBSD Documentation VERSION\n" "POT-Creation-Date: 2026-02-22 15:58+0000\n" -"PO-Revision-Date: 2026-03-05 13:41+0000\n" +"PO-Revision-Date: 2026-04-05 04:45+0000\n" "Last-Translator: Vladlen Popolitov <vladlenpopolitov@list.ru>\n" "Language-Team: Russian <https://translate-dev.freebsd.org/projects/" "documentation/booksporters-handbookmakefiles_index/ru/>\n" @@ -3222,8 +3222,8 @@ msgid "" "nor whether categories should lend themselves to browsing (and thus what " "number of categories would be an ideal number), and so forth.)" msgstr "" -"Обоснование этого заключается в том, что такое изменение создает extref:" -"{committers-guide}[значительный объём работы, ports] как для коммиттеров, " +"Обоснование этого заключается в том, что такое изменение создаёт extref" +":{committers-guide}[значительный объём работы, ports] как для коммиттеров, " "так и для всех пользователей, которые отслеживают изменения в Коллекции " "портов. Кроме того, предлагаемые изменения категорий, как правило, вызывают " "споры. (Возможно, это связано с отсутствием четкого консенсуса относительно " @@ -13021,7 +13021,7 @@ msgid "" "into a directory called [.filename]#foo# (and not [.filename]#foo-1.0#) " "write:" msgstr "" -"Переменная указывает имя каталога, который создается при распаковке " +"Переменная указывает имя каталога, который создаётся при распаковке " "distfiles приложения. Чтобы в нашем предыдущем примере распаковка " "происходила в каталог с именем [.filename]#foo# (а не [.filename]#foo-1.0#), " "напишите:" diff --git a/documentation/content/ru/books/porters-handbook/plist/_index.adoc b/documentation/content/ru/books/porters-handbook/plist/_index.adoc index 2489d09e31..f43da2bcf5 100644 --- a/documentation/content/ru/books/porters-handbook/plist/_index.adoc +++ b/documentation/content/ru/books/porters-handbook/plist/_index.adoc @@ -229,7 +229,7 @@ PLIST_SUB= PERL_ARCH=mach /usr/local/lib/perl5/site_perl/mach/5.20/Machine/Build/Build.so .... -Запуск `make makeplist` ошибочно создает: +Запуск `make makeplist` ошибочно создаёт: [.programlisting] .... @@ -319,7 +319,7 @@ bin/machine-build [[plist-keywords-rmtry]] === `@rmtry` _файл_ -Удаляет файл при удалении и не выдает ошибку, если файл отсутствует. +Удаляет файл при удалении и не выдаёт ошибку, если файл отсутствует. [[plist-keywords-sample]] === `@sample` _файл_ [_файл_] diff --git a/documentation/content/ru/books/porters-handbook/plist/_index.po b/documentation/content/ru/books/porters-handbook/plist/_index.po index 4462f6c904..b55939ac1f 100644 --- a/documentation/content/ru/books/porters-handbook/plist/_index.po +++ b/documentation/content/ru/books/porters-handbook/plist/_index.po @@ -1,12 +1,12 @@ # SOME DESCRIPTIVE TITLE # Copyright (C) YEAR The FreeBSD Project # This file is distributed under the same license as the FreeBSD Documentation package. -# Vladlen Popolitov <vladlenpopolitov@list.ru>, 2025. +# Vladlen Popolitov <vladlenpopolitov@list.ru>, 2025, 2026. msgid "" msgstr "" "Project-Id-Version: FreeBSD Documentation VERSION\n" "POT-Creation-Date: 2025-05-01 19:56-0300\n" -"PO-Revision-Date: 2025-11-25 04:45+0000\n" +"PO-Revision-Date: 2026-04-05 04:45+0000\n" "Last-Translator: Vladlen Popolitov <vladlenpopolitov@list.ru>\n" "Language-Team: Russian <https://translate-dev.freebsd.org/projects/" "documentation/booksporters-handbookplist_index/ru/>\n" @@ -651,7 +651,7 @@ msgstr "" #. type: Plain text #: documentation/content/en/books/porters-handbook/plist/_index.adoc:273 msgid "Running `make makeplist` wrongly generates:" -msgstr "Запуск `make makeplist` ошибочно создает:" +msgstr "Запуск `make makeplist` ошибочно создаёт:" #. type: delimited block . 4 #: documentation/content/en/books/porters-handbook/plist/_index.adoc:281 @@ -870,7 +870,7 @@ msgstr "`@rmtry` _файл_" msgid "" "Will remove the file on deinstallation, and not give an error if the file is " "not there." -msgstr "Удаляет файл при удалении и не выдает ошибку, если файл отсутствует." +msgstr "Удаляет файл при удалении и не выдаёт ошибку, если файл отсутствует." #. type: Title === #: documentation/content/en/books/porters-handbook/plist/_index.adoc:376 diff --git a/documentation/content/ru/books/porters-handbook/porting-dads/_index.po b/documentation/content/ru/books/porters-handbook/porting-dads/_index.po index 33741f1a40..679d2255bd 100644 --- a/documentation/content/ru/books/porters-handbook/porting-dads/_index.po +++ b/documentation/content/ru/books/porters-handbook/porting-dads/_index.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: FreeBSD Documentation VERSION\n" "POT-Creation-Date: 2026-02-22 15:58+0000\n" -"PO-Revision-Date: 2026-03-04 20:01+0000\n" +"PO-Revision-Date: 2026-03-08 09:11+0000\n" "Last-Translator: Vladlen Popolitov <vladlenpopolitov@list.ru>\n" "Language-Team: Russian <https://translate-dev.freebsd.org/projects/" "documentation/booksporters-handbookporting-dads_index/ru/>\n" diff --git a/documentation/content/ru/books/porters-handbook/porting-samplem/_index.adoc b/documentation/content/ru/books/porters-handbook/porting-samplem/_index.adoc index 9ffbf72121..f1093c6000 100644 --- a/documentation/content/ru/books/porters-handbook/porting-samplem/_index.adoc +++ b/documentation/content/ru/books/porters-handbook/porting-samplem/_index.adoc @@ -107,7 +107,7 @@ pre-install: .include <bsd.port.mk> <18> .... -<1> Секция для описания самого порта и его главного сайта: первыми идут переменные PORTNAME и PORTVERSION или DISTVERSION*, на ними CATEGORIES, затем MASTER_SITES, после которой идёт MASTER_SITE_SUBDIR. Если нужно, то после нее идут PKGNAMEPREFIX и PKGNAMESUFFIX. Затем следуют DISTNAME, EXTRACT_SUFX и/или DISTFILES, и уже потом, если нужно, EXTRACT_ONLY. +<1> Секция для описания самого порта и его главного сайта: первыми идут переменные PORTNAME и PORTVERSION или DISTVERSION*, на ними CATEGORIES, затем MASTER_SITES, после которой идёт MASTER_SITE_SUBDIR. Если нужно, то после неё идут PKGNAMEPREFIX и PKGNAMESUFFIX. Затем следуют DISTNAME, EXTRACT_SUFX и/или DISTFILES, и уже потом, если нужно, EXTRACT_ONLY. <2> Не забывайте про завершающую косую черту (`/`), если вы не используете макросы MASTER_SITE_*. <3> Задайте это, если исходный код поставляется не в виде стандартного файла ".tar.gz". <4> Секция патчей — может быть пустой. diff --git a/documentation/content/ru/books/porters-handbook/porting-samplem/_index.po b/documentation/content/ru/books/porters-handbook/porting-samplem/_index.po index 8de6126a85..55ea7c88c9 100644 --- a/documentation/content/ru/books/porters-handbook/porting-samplem/_index.po +++ b/documentation/content/ru/books/porters-handbook/porting-samplem/_index.po @@ -1,12 +1,12 @@ # SOME DESCRIPTIVE TITLE # Copyright (C) YEAR The FreeBSD Project # This file is distributed under the same license as the FreeBSD Documentation package. -# Vladlen Popolitov <vladlenpopolitov@list.ru>, 2025. +# Vladlen Popolitov <vladlenpopolitov@list.ru>, 2025, 2026. msgid "" msgstr "" "Project-Id-Version: FreeBSD Documentation VERSION\n" "POT-Creation-Date: 2025-08-17 20:54+0100\n" -"PO-Revision-Date: 2025-11-25 04:45+0000\n" +"PO-Revision-Date: 2026-04-05 04:45+0000\n" "Last-Translator: Vladlen Popolitov <vladlenpopolitov@list.ru>\n" "Language-Team: Russian <https://translate-dev.freebsd.org/projects/" "documentation/booksporters-handbookporting-samplem_index/ru/>\n" @@ -224,7 +224,7 @@ msgstr "" "Секция для описания самого порта и его главного сайта: первыми идут " "переменные PORTNAME и PORTVERSION или DISTVERSION*, на ними CATEGORIES, " "затем MASTER_SITES, после которой идёт MASTER_SITE_SUBDIR. Если нужно, то " -"после нее идут PKGNAMEPREFIX и PKGNAMESUFFIX. Затем следуют DISTNAME, " +"после неё идут PKGNAMEPREFIX и PKGNAMESUFFIX. Затем следуют DISTNAME, " "EXTRACT_SUFX и/или DISTFILES, и уже потом, если нужно, EXTRACT_ONLY." #. type: Plain text diff --git a/documentation/content/ru/books/porters-handbook/porting-why/_index.po b/documentation/content/ru/books/porters-handbook/porting-why/_index.po index 1b9eb3ad35..9caf152dfd 100644 --- a/documentation/content/ru/books/porters-handbook/porting-why/_index.po +++ b/documentation/content/ru/books/porters-handbook/porting-why/_index.po @@ -1,12 +1,12 @@ # SOME DESCRIPTIVE TITLE # Copyright (C) YEAR The FreeBSD Project # This file is distributed under the same license as the FreeBSD Documentation package. -# Vladlen Popolitov <vladlenpopolitov@list.ru>, 2025. +# Vladlen Popolitov <vladlenpopolitov@list.ru>, 2025, 2026. msgid "" msgstr "" "Project-Id-Version: FreeBSD Documentation VERSION\n" "POT-Creation-Date: 2025-05-01 19:56-0300\n" -"PO-Revision-Date: 2025-12-02 04:45+0000\n" +"PO-Revision-Date: 2026-03-08 09:11+0000\n" "Last-Translator: Vladlen Popolitov <vladlenpopolitov@list.ru>\n" "Language-Team: Russian <https://translate-dev.freebsd.org/projects/" "documentation/booksporters-handbookporting-why_index/ru/>\n" diff --git a/documentation/content/ru/books/porters-handbook/quick-porting/_index.adoc b/documentation/content/ru/books/porters-handbook/quick-porting/_index.adoc index 01e76032f0..14780862d7 100644 --- a/documentation/content/ru/books/porters-handbook/quick-porting/_index.adoc +++ b/documentation/content/ru/books/porters-handbook/quick-porting/_index.adoc @@ -162,7 +162,7 @@ PLIST_FILES= bin/oneko \ [TIP] ==== -Если порту требуется создать пустой каталог или он создает каталоги вне [.filename]#${PREFIX}# во время установки, обратитесь к разделу crossref:plist[plist-dir-cleaning,Очистка пустых каталогов] для получения дополнительной информации. +Если порту требуется создать пустой каталог или он создаёт каталоги вне [.filename]#${PREFIX}# во время установки, обратитесь к разделу crossref:plist[plist-dir-cleaning,Очистка пустых каталогов] для получения дополнительной информации. ==== [TIP] @@ -203,7 +203,7 @@ PLIST_FILES= "@sample ${ETCDIR}/oneko.conf.sample" . `make deinstall` . `make package` (как пользователь) -Убедитесь, что на любом из этапов не выдается никаких предупреждений. +Убедитесь, что на любом из этапов не выдаётся никаких предупреждений. Тщательное автоматизированное тестирование можно выполнить с помощью package:ports-mgmt/poudriere[] из коллекции портов, дополнительную информацию см. в crossref:testing[testing-poudriere,poudriere]. Он поддерживает `клетки`, в которых можно протестировать все указанные выше шаги без воздействия на состояние основной системы. diff --git a/documentation/content/ru/books/porters-handbook/quick-porting/_index.po b/documentation/content/ru/books/porters-handbook/quick-porting/_index.po index 89db3e3e17..a844fe61b1 100644 --- a/documentation/content/ru/books/porters-handbook/quick-porting/_index.po +++ b/documentation/content/ru/books/porters-handbook/quick-porting/_index.po @@ -1,12 +1,12 @@ # SOME DESCRIPTIVE TITLE # Copyright (C) YEAR The FreeBSD Project # This file is distributed under the same license as the FreeBSD Documentation package. -# Vladlen Popolitov <vladlenpopolitov@list.ru>, 2025. +# Vladlen Popolitov <vladlenpopolitov@list.ru>, 2025, 2026. msgid "" msgstr "" "Project-Id-Version: FreeBSD Documentation VERSION\n" "POT-Creation-Date: 2025-05-01 19:56-0300\n" -"PO-Revision-Date: 2025-09-05 04:45+0000\n" +"PO-Revision-Date: 2026-04-05 04:45+0000\n" "Last-Translator: Vladlen Popolitov <vladlenpopolitov@list.ru>\n" "Language-Team: Russian <https://translate-dev.freebsd.org/projects/" "documentation/booksporters-handbookquick-porting_index/ru/>\n" @@ -369,7 +369,7 @@ msgid "" "of [.filename]#${PREFIX}# during installation, refer to crossref:plist[plist-" "dir-cleaning,Cleaning Up Empty Directories] for more information." msgstr "" -"Если порту требуется создать пустой каталог или он создает каталоги вне [." +"Если порту требуется создать пустой каталог или он создаёт каталоги вне [." "filename]#${PREFIX}# во время установки, обратитесь к разделу crossref:plist" "[plist-dir-cleaning,Очистка пустых каталогов] для получения дополнительной " "информации." @@ -530,7 +530,7 @@ msgstr "`make package` (как пользователь)" #. type: delimited block = 4 #: documentation/content/en/books/porters-handbook/quick-porting/_index.adoc:232 msgid "Make certain no warnings are shown in any of the stages." -msgstr "Убедитесь, что на любом из этапов не выдается никаких предупреждений." +msgstr "Убедитесь, что на любом из этапов не выдаётся никаких предупреждений." #. type: delimited block = 4 #: documentation/content/en/books/porters-handbook/quick-porting/_index.adoc:235 diff --git a/documentation/content/ru/books/porters-handbook/security/_index.adoc b/documentation/content/ru/books/porters-handbook/security/_index.adoc index c52f0f3bb6..60a958f40b 100644 --- a/documentation/content/ru/books/porters-handbook/security/_index.adoc +++ b/documentation/content/ru/books/porters-handbook/security/_index.adoc @@ -227,7 +227,7 @@ endif::[] % make validate .... -Предыдущая команда создает файл [.filename]#vuln-flat.xml#. Его также можно создать с помощью: +Предыдущая команда создаёт файл [.filename]#vuln-flat.xml#. Его также можно создать с помощью: [source, shell] .... @@ -246,7 +246,7 @@ endif::[] % pkg audit -f ${PORTSDIR}/security/vuxml/vuln-flat.xml dropbear-2013.58 .... -Убедитесь, что запись не создает ложных совпадений в выводе. +Убедитесь, что запись не создаёт ложных совпадений в выводе. Теперь проверьте, соответствуют ли записи правильные версии пакетов: diff --git a/documentation/content/ru/books/porters-handbook/security/_index.po b/documentation/content/ru/books/porters-handbook/security/_index.po index 6cfa40c576..61873ec5e6 100644 --- a/documentation/content/ru/books/porters-handbook/security/_index.po +++ b/documentation/content/ru/books/porters-handbook/security/_index.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: FreeBSD Documentation VERSION\n" "POT-Creation-Date: 2025-08-17 20:54+0100\n" -"PO-Revision-Date: 2026-03-04 20:01+0000\n" +"PO-Revision-Date: 2026-04-05 04:45+0000\n" "Last-Translator: Vladlen Popolitov <vladlenpopolitov@list.ru>\n" "Language-Team: Russian <https://translate-dev.freebsd.org/projects/" "documentation/booksporters-handbooksecurity_index/ru/>\n" @@ -697,7 +697,7 @@ msgid "" "The previous command generates the [.filename]#vuln-flat.xml# file. It can " "also be generated with:" msgstr "" -"Предыдущая команда создает файл [.filename]#vuln-flat.xml#. Его также можно " +"Предыдущая команда создаёт файл [.filename]#vuln-flat.xml#. Его также можно " "создать с помощью:" #. type: delimited block . 4 @@ -732,7 +732,7 @@ msgstr "% pkg audit -f ${PORTSDIR}/security/vuxml/vuln-flat.xml dropbear-2013.58 #. type: Plain text #: documentation/content/en/books/porters-handbook/security/_index.adoc:301 msgid "Make sure that the entry produces no spurious matches in the output." -msgstr "Убедитесь, что запись не создает ложных совпадений в выводе." +msgstr "Убедитесь, что запись не создаёт ложных совпадений в выводе." #. type: Plain text #: documentation/content/en/books/porters-handbook/security/_index.adoc:303 diff --git a/documentation/content/ru/books/porters-handbook/slow-porting/_index.adoc b/documentation/content/ru/books/porters-handbook/slow-porting/_index.adoc index 4f854ace60..1383ac5abc 100644 --- a/documentation/content/ru/books/porters-handbook/slow-porting/_index.adoc +++ b/documentation/content/ru/books/porters-handbook/slow-porting/_index.adoc @@ -67,7 +67,7 @@ endif::[] . Выполняется цель `build`. Она отвечает за переход в собственный рабочий каталог порта (`WRKSRC`) и его построение. . Выполняется цель `stage`. Конечный набор построенных файлов помещается во временный каталог (`STAGEDIR`, смотрите crossref:special[staging,Staging]). Иерархия этого каталога отражает иерархию каталогов системы, в которую данный пакет будет устанавливаться. -. Выполняется цель `package`. При этом создается пакет с использованием файлов из временного каталога, созданного во время выполнения цели `stage`, и файла [.filename]#pkg-plist# порта. +. Выполняется цель `package`. При этом создаётся пакет с использованием файлов из временного каталога, созданного во время выполнения цели `stage`, и файла [.filename]#pkg-plist# порта. . Выполняется цель `install`. Это устанавливает пакет, созданный во время цели `package`, в хост-систему. Выше перечислены стандартные действия. Кроме того, вы сами можете определить цели `pre-_что-то_` или `post-_что-то_`, или создать скрипты с такими именами в подкаталоге [.filename]#scripts#, и они будут запущены до или после выполнения действий по умолчанию. @@ -158,7 +158,7 @@ endif::[] % diff -u file.orig file > patch-pathname-file .... -Для порождении патчей для новых добавляемых файлов используется параметр `-N`, который заставляет man:diff[1] трактовать несуществующие прежде файлы как если бы они существовали, но имели пустое содержимое: +При создании патчей с новыми файлами, добавляемыми в репозиторий, используется параметр `-N`, который заставляет man:diff[1] трактовать несуществующие прежде файлы как если бы они существовали, но имели пустое содержимое: [source, shell] .... diff --git a/documentation/content/ru/books/porters-handbook/slow-porting/_index.po b/documentation/content/ru/books/porters-handbook/slow-porting/_index.po index bf9a4209a8..1f0cae961d 100644 --- a/documentation/content/ru/books/porters-handbook/slow-porting/_index.po +++ b/documentation/content/ru/books/porters-handbook/slow-porting/_index.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: FreeBSD Documentation VERSION\n" "POT-Creation-Date: 2025-05-01 19:56-0300\n" -"PO-Revision-Date: 2026-03-04 20:01+0000\n" +"PO-Revision-Date: 2026-04-05 04:45+0000\n" "Last-Translator: Vladlen Popolitov <vladlenpopolitov@list.ru>\n" "Language-Team: Russian <https://translate-dev.freebsd.org/projects/" "documentation/booksporters-handbookslow-porting_index/ru/>\n" @@ -174,7 +174,7 @@ msgid "" "temporary directory created during the `stage` target and the port's " "[.filename]#pkg-plist#." msgstr "" -"Выполняется цель `package`. При этом создается пакет с использованием файлов " +"Выполняется цель `package`. При этом создаётся пакет с использованием файлов " "из временного каталога, созданного во время выполнения цели `stage`, и файла " "[.filename]#pkg-plist# порта." @@ -633,9 +633,10 @@ msgid "" "man:diff[1] to treat the non-existent original file as if it existed but was " "empty:" msgstr "" -"Для порождении патчей для новых добавляемых файлов используется параметр `-N`" -", который заставляет man:diff[1] трактовать несуществующие прежде файлы как " -"если бы они существовали, но имели пустое содержимое:" +"При создании патчей с новыми файлами, добавляемыми в репозиторий, " +"используется параметр `-N`, который заставляет man:diff[1] трактовать " +"несуществующие прежде файлы как если бы они существовали, но имели пустое " +"содержимое:" #. type: delimited block . 4 #: documentation/content/en/books/porters-handbook/slow-porting/_index.adoc:207 diff --git a/documentation/content/ru/books/porters-handbook/special/_index.adoc b/documentation/content/ru/books/porters-handbook/special/_index.adoc index d813ca03e2..5f33812901 100644 --- a/documentation/content/ru/books/porters-handbook/special/_index.adoc +++ b/documentation/content/ru/books/porters-handbook/special/_index.adoc @@ -303,7 +303,7 @@ IGNORE= may not be redistributed because of licensing reasons. Please visit some `MAKE_CMD` может использоваться для ссылки на конкретную команду, настроенную параметром `USES` в [.filename]#Makefile# порта. Используйте `MAKE_CMD` только внутри [.filename]##Makefile## приложения в `WRKSRC` для вызова реализации `make`, ожидаемой портируемым программным обеспечением. -Если ваш порт является приложением X, которое создает файлы [.filename]#Makefile# из [.filename]#Imakefile#, используя imake, то установите `USES= imake`. Это заставит стадию конфигурирования автоматически выполнить `xmkmf -a`. Если флаг `-a` представляет для вашего порта проблему, то установите `XMKMF=xmkmf`. Если порт использует imake, но не понимает цель `install.man`, то следует установить `NO_INSTALL_MANPAGES=yes`. +Если ваш порт является приложением X, которое создаёт файлы [.filename]#Makefile# из [.filename]#Imakefile#, используя imake, то установите `USES= imake`. Это заставит стадию конфигурирования автоматически выполнить `xmkmf -a`. Если флаг `-a` представляет для вашего порта проблему, то установите `XMKMF=xmkmf`. Если порт использует imake, но не понимает цель `install.man`, то следует установить `NO_INSTALL_MANPAGES=yes`. Если исходный [.filename]#Makefile# вашего порта имеет что-нибудь помимо `all` в качестве основной цели построения, то задайте соответствующее значение `ALL_TARGET`. То же касается `install` и `INSTALL_TARGET`. @@ -900,6 +900,33 @@ GO_TARGET= ./dnscrypt-proxy:${PREFIX}/sbin/dnscrypt-proxy установит `dnscrypt-proxy` в `${PREFIX}/sbin`. ==== +[[overriding-go-mod]] +.Переопределение go.mod в режиме модулей (Modules Mode) +[example] +==== +Во время фазы fetch режим, поддерживающий модули (то есть `USES=go:modules`), получает исходные коды зависимых пакетов, загружая [.filename]#go.mod# порта и затем немедленно выполняя против него `go mod download`. Поскольку фаза fetch происходит задолго до этапа наложения патчей, обычные патчи из каталога [.filename]#files/# применяются слишком поздно, чтобы повлиять на эти шаги разрешения зависимостей и их получения. + +Хотя изменение зависимостей путём наложения патчей на исходный [.filename]#go.mod# на данный момент невозможно, вы всё же можете *переопределить* его, указав другой [.filename]#go.mod# в качестве второго distfile. + +[.programlisting] +.... +PORTNAME= miller +DISTVERSIONPREFIX= v +DISTVERSION= 6.17.0 +CATEGORIES= textproc +MASTER_SITES= https://raw.githubusercontent.com/johnkerl/${PORTNAME}/${DISTVERSIONFULL}/:gomod + +DISTFILES= go.mod:gomod +.... + +Чтобы переопределить также и [.filename]#go.sum#, просто добавьте его в `DISTFILES`: + +[.programlisting] +.... +DISTFILES= go.mod:gomod go.sum:gomod +.... +==== + [[using-cabal]] === Построение приложений на Haskell с помощью `cabal` @@ -1519,16 +1546,6 @@ GCONF_SCHEMAS=my_app.schemas my_app2.schemas my_app3.schemas Схемы Gconf перечислены в макросе `GCONF_SCHEMAS`, а не в файле [.filename]#pkg-plist#. Если они указаны в [.filename]#pkg-plist#, они не будут зарегистрированы, и приложения могут работать некорректно. ==== -`INSTALLS_OMF`:: -Файлы Open Source Metadata Framework (OMF) часто используются приложениями GNOME 2. Эти файлы содержат информацию о файлах справки приложений и требуют специальной обработки с помощью ScrollKeeper/rarian. Для правильной регистрации файлов OMF при установке приложений GNOME из пакетов убедитесь, что файлы `omf` указаны в `pkg-plist` и что в [.filename]#Makefile# порта определено `INSTALLS_OMF`: -+ -[.programlisting] -.... -INSTALLS_OMF=yes -.... -+ -При установке [.filename]#bsd.gnome.mk# автоматически сканирует [.filename]#pkg-plist# и добавляет соответствующие директивы `@exec` и `@unexec` для каждого файла [.filename]#.omf#, который необходимо отслеживать в базе данных регистрации OMF. - [[gnome-components]] == Компоненты GNOME @@ -2948,7 +2965,7 @@ USE_LXQT= buildtools libfmqt Если порту требуется Java(TM) Development Kit (JDK(TM)) для сборки, запуска или даже извлечения distfile, определите `USE_JAVA`. -В коллекции портов доступно несколько JDK от различных поставщиков и в нескольких версиях. Если порт должен использовать определённую версию, укажите её с помощью переменной `JAVA_VERSION`. Самая актуальная версия — package:java/openjdk25[], также доступны package:java/openjdk24[], package:java/openjdk23[], package:java/openjdk22[], package:java/openjdk21[], package:java/openjdk20[], package:java/openjdk17[], package:java/openjdk11[] и package:java/openjdk8[]. +В коллекции портов доступно несколько JDK от различных поставщиков и в нескольких версиях. Если порт должен использовать определённую версию, укажите её с помощью переменной `JAVA_VERSION`. Самая актуальная версия — package:java/openjdk25[], также доступны package:java/openjdk24[], package:java/openjdk23[], package:java/openjdk22[], package:java/openjdk21[], package:java/openjdk17[], package:java/openjdk11[] и package:java/openjdk8[]. [[using-java-variables]] .Переменные, которые могут быть установлены портами, использующими Java @@ -3113,7 +3130,7 @@ do-install: cd ${WRKDIR}/${PORTDIRNAME} && ${COPYTREE_SHARE} \* ${WEBAPPDIR}/${PORTDIRNAME} .... -Независимо от типа порта (библиотека или приложение), дополнительная документация устанавливается crossref:makefiles[install-documentation,в том же месте], что и для любого другого порта. Известно, что инструмент Javadoc создает разный набор файлов в зависимости от версии используемого JDK. Для портов, которые не требуют использования конкретной версии JDK, указание списка упаковки ([.filename]#pkg-plist#) становится сложной задачей. Это одна из причин, по которой разработчикам портов настоятельно рекомендуется использовать `PORTDOCS`. Более того, даже если набор файлов, г нерируемых `javadoc`, можно предсказать, размер результирующего [.filename]#pkg-plist# говорит в пользу использования `PORTDOCS`. +Независимо от типа порта (библиотека или приложение), дополнительная документация устанавливается crossref:makefiles[install-documentation,в том же месте], что и для любого другого порта. Известно, что инструмент Javadoc создаёт разный набор файлов в зависимости от версии используемого JDK. Для портов, которые не требуют использования конкретной версии JDK, указание списка упаковки ([.filename]#pkg-plist#) становится сложной задачей. Это одна из причин, по которой разработчикам портов настоятельно рекомендуется использовать `PORTDOCS`. Более того, даже если набор файлов, г нерируемых `javadoc`, можно предсказать, размер результирующего [.filename]#pkg-plist# говорит в пользу использования `PORTDOCS`. Значение по умолчанию для `DATADIR` — [.filename]#${PREFIX}/share/${PORTNAME}#. Рекомендуется переопределить `DATADIR` на [.filename]#${JAVASHAREDIR}/${PORTNAME}# для портов Java. Действительно, `DATADIR` автоматически добавляется в `PLIST_SUB` (документировано в crossref:plist[plist-sub,Изменение pkg-plist на основе переменных Make]), поэтому используйте `%%DATADIR%%` напрямую в [.filename]#pkg-plist#. @@ -4640,7 +4657,7 @@ doormand_flags="" . Выполняет ли скрипт любой код безусловно? Это не приветствуется. Обычно такие вещи должны обрабатываться через `start_precmd`. . Все логические проверки должны использовать функцию `checkyesno`. Не допускаются самодельные проверки на `[Yy][Ee][Ss]` и т.п. . Если есть цикл (например, ожидание запуска чего-либо), есть ли в нём счётчик для завершения цикла? Мы не хотим, чтобы загрузка зависала навсегда в случае ошибки. -. Создает ли скрипт файлы или каталоги, требующие определённых разрешений, например, [.filename]#pid#, который должен принадлежать пользователю, запускающему процесс? Вместо традиционной последовательности man:touch[1]/man:chown[8]/man:chmod[1] рассмотрите использование man:install[1] с соответствующими аргументами командной строки, чтобы выполнить всю процедуру за один шаг. +. Создаёт ли скрипт файлы или каталоги, требующие определённых разрешений, например, [.filename]#pid#, который должен принадлежать пользователю, запускающему процесс? Вместо традиционной последовательности man:touch[1]/man:chown[8]/man:chmod[1] рассмотрите использование man:install[1] с соответствующими аргументами командной строки, чтобы выполнить всю процедуру за один шаг. [[users-and-groups]] == Добавление пользователей и групп diff --git a/documentation/content/ru/books/porters-handbook/special/_index.po b/documentation/content/ru/books/porters-handbook/special/_index.po index d47a11b9ca..ccc87720d3 100644 --- a/documentation/content/ru/books/porters-handbook/special/_index.po +++ b/documentation/content/ru/books/porters-handbook/special/_index.po @@ -5,8 +5,8 @@ msgid "" msgstr "" "Project-Id-Version: FreeBSD Documentation VERSION\n" -"POT-Creation-Date: 2026-02-22 15:58+0000\n" -"PO-Revision-Date: 2026-02-25 04:45+0000\n" +"POT-Creation-Date: 2026-05-09 23:29+0100\n" +"PO-Revision-Date: 2026-05-11 04:45+0000\n" "Last-Translator: Vladlen Popolitov <vladlenpopolitov@list.ru>\n" "Language-Team: Russian <https://translate-dev.freebsd.org/projects/" "documentation/booksporters-handbookspecial_index/ru/>\n" @@ -924,8 +924,8 @@ msgstr "" #. type: Title === #: documentation/content/en/books/porters-handbook/special/_index.adoc:327 -#: documentation/content/en/books/porters-handbook/special/_index.adoc:4231 -#: documentation/content/en/books/porters-handbook/special/_index.adoc:4491 +#: documentation/content/en/books/porters-handbook/special/_index.adoc:4247 +#: documentation/content/en/books/porters-handbook/special/_index.adoc:4507 #, no-wrap msgid "Examples" msgstr "Примеры" @@ -1069,7 +1069,7 @@ msgid "" "See the crossref:uses[uses-imake,`USES=imake`] section of crossref:uses[uses," "Using `USES` Macros] for more details." msgstr "" -"Если ваш порт является приложением X, которое создает файлы [." +"Если ваш порт является приложением X, которое создаёт файлы [." "filename]#Makefile# из [.filename]#Imakefile#, используя imake, то " "установите `USES= imake`. Это заставит стадию конфигурирования автоматически " "выполнить `xmkmf -a`. Если флаг `-a` представляет для вашего порта проблему, " @@ -1123,11 +1123,11 @@ msgstr "Переменные для портов, использующих `conf #: documentation/content/en/books/porters-handbook/special/_index.adoc:446 #: documentation/content/en/books/porters-handbook/special/_index.adoc:529 #: documentation/content/en/books/porters-handbook/special/_index.adoc:812 -#: documentation/content/en/books/porters-handbook/special/_index.adoc:2449 -#: documentation/content/en/books/porters-handbook/special/_index.adoc:2469 -#: documentation/content/en/books/porters-handbook/special/_index.adoc:3173 -#: documentation/content/en/books/porters-handbook/special/_index.adoc:3205 -#: documentation/content/en/books/porters-handbook/special/_index.adoc:3793 +#: documentation/content/en/books/porters-handbook/special/_index.adoc:2465 +#: documentation/content/en/books/porters-handbook/special/_index.adoc:2485 +#: documentation/content/en/books/porters-handbook/special/_index.adoc:3189 +#: documentation/content/en/books/porters-handbook/special/_index.adoc:3221 +#: documentation/content/en/books/porters-handbook/special/_index.adoc:3809 #, no-wrap msgid "Variable" msgstr "Переменная" @@ -1136,8 +1136,8 @@ msgstr "Переменная" #: documentation/content/en/books/porters-handbook/special/_index.adoc:392 #: documentation/content/en/books/porters-handbook/special/_index.adoc:420 #: documentation/content/en/books/porters-handbook/special/_index.adoc:448 -#: documentation/content/en/books/porters-handbook/special/_index.adoc:1325 -#: documentation/content/en/books/porters-handbook/special/_index.adoc:3175 +#: documentation/content/en/books/porters-handbook/special/_index.adoc:1353 +#: documentation/content/en/books/porters-handbook/special/_index.adoc:3191 #, no-wrap msgid "Means" msgstr "Значение" @@ -1496,28 +1496,28 @@ msgstr "По умолчанию" #. type: Table #: documentation/content/en/books/porters-handbook/special/_index.adoc:532 #: documentation/content/en/books/porters-handbook/special/_index.adoc:814 -#: documentation/content/en/books/porters-handbook/special/_index.adoc:1733 -#: documentation/content/en/books/porters-handbook/special/_index.adoc:1901 -#: documentation/content/en/books/porters-handbook/special/_index.adoc:1919 -#: documentation/content/en/books/porters-handbook/special/_index.adoc:2087 -#: documentation/content/en/books/porters-handbook/special/_index.adoc:2153 -#: documentation/content/en/books/porters-handbook/special/_index.adoc:2397 -#: documentation/content/en/books/porters-handbook/special/_index.adoc:2414 -#: documentation/content/en/books/porters-handbook/special/_index.adoc:2451 -#: documentation/content/en/books/porters-handbook/special/_index.adoc:2471 -#: documentation/content/en/books/porters-handbook/special/_index.adoc:2547 -#: documentation/content/en/books/porters-handbook/special/_index.adoc:3127 -#: documentation/content/en/books/porters-handbook/special/_index.adoc:3794 -#: documentation/content/en/books/porters-handbook/special/_index.adoc:3828 -#: documentation/content/en/books/porters-handbook/special/_index.adoc:3871 -#: documentation/content/en/books/porters-handbook/special/_index.adoc:3897 -#: documentation/content/en/books/porters-handbook/special/_index.adoc:4001 -#: documentation/content/en/books/porters-handbook/special/_index.adoc:4171 -#: documentation/content/en/books/porters-handbook/special/_index.adoc:4223 -#: documentation/content/en/books/porters-handbook/special/_index.adoc:4315 -#: documentation/content/en/books/porters-handbook/special/_index.adoc:4407 -#: documentation/content/en/books/porters-handbook/special/_index.adoc:4469 -#: documentation/content/en/books/porters-handbook/special/_index.adoc:4729 +#: documentation/content/en/books/porters-handbook/special/_index.adoc:1749 +#: documentation/content/en/books/porters-handbook/special/_index.adoc:1917 +#: documentation/content/en/books/porters-handbook/special/_index.adoc:1935 +#: documentation/content/en/books/porters-handbook/special/_index.adoc:2103 +#: documentation/content/en/books/porters-handbook/special/_index.adoc:2169 +#: documentation/content/en/books/porters-handbook/special/_index.adoc:2413 +#: documentation/content/en/books/porters-handbook/special/_index.adoc:2430 +#: documentation/content/en/books/porters-handbook/special/_index.adoc:2467 +#: documentation/content/en/books/porters-handbook/special/_index.adoc:2487 +#: documentation/content/en/books/porters-handbook/special/_index.adoc:2563 +#: documentation/content/en/books/porters-handbook/special/_index.adoc:3143 +#: documentation/content/en/books/porters-handbook/special/_index.adoc:3810 +#: documentation/content/en/books/porters-handbook/special/_index.adoc:3844 +#: documentation/content/en/books/porters-handbook/special/_index.adoc:3887 +#: documentation/content/en/books/porters-handbook/special/_index.adoc:3913 +#: documentation/content/en/books/porters-handbook/special/_index.adoc:4017 +#: documentation/content/en/books/porters-handbook/special/_index.adoc:4187 +#: documentation/content/en/books/porters-handbook/special/_index.adoc:4239 +#: documentation/content/en/books/porters-handbook/special/_index.adoc:4331 +#: documentation/content/en/books/porters-handbook/special/_index.adoc:4423 +#: documentation/content/en/books/porters-handbook/special/_index.adoc:4485 +#: documentation/content/en/books/porters-handbook/special/_index.adoc:4745 #, no-wrap msgid "Description" msgstr "Описание" @@ -1916,19 +1916,19 @@ msgstr "" #: documentation/content/en/books/porters-handbook/special/_index.adoc:867 #: documentation/content/en/books/porters-handbook/special/_index.adoc:890 #: documentation/content/en/books/porters-handbook/special/_index.adoc:948 -#: documentation/content/en/books/porters-handbook/special/_index.adoc:1019 -#: documentation/content/en/books/porters-handbook/special/_index.adoc:1106 -#: documentation/content/en/books/porters-handbook/special/_index.adoc:1122 -#: documentation/content/en/books/porters-handbook/special/_index.adoc:1136 -#: documentation/content/en/books/porters-handbook/special/_index.adoc:1253 -#: documentation/content/en/books/porters-handbook/special/_index.adoc:1274 -#: documentation/content/en/books/porters-handbook/special/_index.adoc:1647 -#: documentation/content/en/books/porters-handbook/special/_index.adoc:3475 -#: documentation/content/en/books/porters-handbook/special/_index.adoc:3535 -#: documentation/content/en/books/porters-handbook/special/_index.adoc:3654 -#: documentation/content/en/books/porters-handbook/special/_index.adoc:4255 -#: documentation/content/en/books/porters-handbook/special/_index.adoc:4279 -#: documentation/content/en/books/porters-handbook/special/_index.adoc:4517 +#: documentation/content/en/books/porters-handbook/special/_index.adoc:1047 +#: documentation/content/en/books/porters-handbook/special/_index.adoc:1134 +#: documentation/content/en/books/porters-handbook/special/_index.adoc:1150 +#: documentation/content/en/books/porters-handbook/special/_index.adoc:1164 +#: documentation/content/en/books/porters-handbook/special/_index.adoc:1281 +#: documentation/content/en/books/porters-handbook/special/_index.adoc:1302 +#: documentation/content/en/books/porters-handbook/special/_index.adoc:1675 +#: documentation/content/en/books/porters-handbook/special/_index.adoc:3491 +#: documentation/content/en/books/porters-handbook/special/_index.adoc:3551 +#: documentation/content/en/books/porters-handbook/special/_index.adoc:3670 +#: documentation/content/en/books/porters-handbook/special/_index.adoc:4271 +#: documentation/content/en/books/porters-handbook/special/_index.adoc:4295 +#: documentation/content/en/books/porters-handbook/special/_index.adoc:4533 #, no-wrap msgid ".include <bsd.port.mk>\n" msgstr ".include <bsd.port.mk>\n" @@ -2061,7 +2061,7 @@ msgstr "" #. type: Plain text #: documentation/content/en/books/porters-handbook/special/_index.adoc:724 #: documentation/content/en/books/porters-handbook/special/_index.adoc:967 -#: documentation/content/en/books/porters-handbook/special/_index.adoc:1079 +#: documentation/content/en/books/porters-handbook/special/_index.adoc:1107 msgid "" "The port is now ready for a test build and further adjustments like creating " "a plist, writing a description, adding license information, options, etc. as " @@ -2074,7 +2074,7 @@ msgstr "" #. type: Plain text #: documentation/content/en/books/porters-handbook/special/_index.adoc:726 #: documentation/content/en/books/porters-handbook/special/_index.adoc:969 -#: documentation/content/en/books/porters-handbook/special/_index.adoc:1081 +#: documentation/content/en/books/porters-handbook/special/_index.adoc:1109 msgid "" "If you are not testing your port in a clean environment like with poudriere, " "remember to run `make clean` before any testing." @@ -2589,14 +2589,84 @@ msgstr "GO_TARGET= ./dnscrypt-proxy:${PREFIX}/sbin/dnscrypt-proxy\n" msgid "will install `dnscrypt-proxy` to `${PREFIX}/sbin`." msgstr "установит `dnscrypt-proxy` в `${PREFIX}/sbin`." -#. type: Title === +#. type: Block title #: documentation/content/en/books/porters-handbook/special/_index.adoc:994 #, no-wrap +msgid "Overriding go.mod in Modules Mode" +msgstr "Переопределение go.mod в режиме модулей (Modules Mode)" + +#. type: Plain text +#: documentation/content/en/books/porters-handbook/special/_index.adoc:999 +msgid "" +"During the fetch phase, modules-aware mode (that is, `USES=go:modules`) " +"obtains sources for dependent packages by fetching the port's [.filename]#go." +"mod# and then immediately running `go mod download` against it. Because the " +"fetch phase occurs long before patching, regular patches in [." +"filename]#files/# are applied far too late to affect those dependency " +"resolution and fetch steps." +msgstr "" +"Во время фазы fetch режим, поддерживающий модули (то есть `USES=go:modules`)" +", получает исходные коды зависимых пакетов, загружая [.filename]#go.mod# " +"порта и затем немедленно выполняя против него `go mod download`. Поскольку " +"фаза fetch происходит задолго до этапа наложения патчей, обычные патчи из " +"каталога [.filename]#files/# применяются слишком поздно, чтобы повлиять на " +"эти шаги разрешения зависимостей и их получения." + +#. type: Plain text +#: documentation/content/en/books/porters-handbook/special/_index.adoc:1001 +msgid "" +"While patching the upstream [.filename]#go.mod# to alter dependencies isn't " +"possible at this time, you can still *override* it by listing another [." +"filename]#go.mod# as a second distfile." +msgstr "" +"Хотя изменение зависимостей путём наложения патчей на исходный [.filename]#go" +".mod# на данный момент невозможно, вы всё же можете *переопределить* его, " +"указав другой [.filename]#go.mod# в качестве второго distfile." + +#. type: delimited block . 4 +#: documentation/content/en/books/porters-handbook/special/_index.adoc:1009 +#, no-wrap +msgid "" +"PORTNAME=\tmiller\n" +"DISTVERSIONPREFIX=\tv\n" +"DISTVERSION=\t6.17.0\n" +"CATEGORIES=\ttextproc\n" +"MASTER_SITES=\thttps://raw.githubusercontent.com/johnkerl/${PORTNAME}/${DISTVERSIONFULL}/:gomod\n" +msgstr "" +"PORTNAME=\tmiller\n" +"DISTVERSIONPREFIX=\tv\n" +"DISTVERSION=\t6.17.0\n" +"CATEGORIES=\ttextproc\n" +"MASTER_SITES=\thttps://raw.githubusercontent.com/johnkerl/" +"${PORTNAME}/${DISTVERSIONFULL}/:gomod\n" + +#. type: delimited block . 4 +#: documentation/content/en/books/porters-handbook/special/_index.adoc:1011 +#, no-wrap +msgid "DISTFILES=\tgo.mod:gomod\n" +msgstr "DISTFILES=\tgo.mod:gomod\n" + +#. type: Plain text +#: documentation/content/en/books/porters-handbook/special/_index.adoc:1014 +msgid "To override [.filename]#go.sum# as well, just add it to `DISTFILES`:" +msgstr "" +"Чтобы переопределить также и [.filename]#go.sum#, просто добавьте его в " +"`DISTFILES`:" + +#. type: delimited block . 4 +#: documentation/content/en/books/porters-handbook/special/_index.adoc:1018 +#, no-wrap +msgid "DISTFILES=\tgo.mod:gomod go.sum:gomod\n" +msgstr "DISTFILES=\tgo.mod:gomod go.sum:gomod\n" + +#. type: Title === +#: documentation/content/en/books/porters-handbook/special/_index.adoc:1022 +#, no-wrap msgid "Building Haskell Applications with `cabal`" msgstr "Построение приложений на Haskell с помощью `cabal`" #. type: delimited block = 4 -#: documentation/content/en/books/porters-handbook/special/_index.adoc:998 +#: documentation/content/en/books/porters-handbook/special/_index.adoc:1026 msgid "" "For ports that use Cabal, build system defines `USES=cabal`. Refer to " "crossref:uses[uses-cabal,`cabal`] for a list of variables that can be set to " @@ -2607,13 +2677,13 @@ msgstr "" "переменных, которые можно задать для управления процессом сборки." #. type: Block title -#: documentation/content/en/books/porters-handbook/special/_index.adoc:1000 +#: documentation/content/en/books/porters-handbook/special/_index.adoc:1028 #, no-wrap msgid "Creating a Port for a Hackage-hosted Haskell Application" msgstr "Создание порта для приложения Haskell с Hackage" #. type: Plain text -#: documentation/content/en/books/porters-handbook/special/_index.adoc:1005 +#: documentation/content/en/books/porters-handbook/special/_index.adoc:1033 msgid "" "When preparing a Haskell Cabal port, package:devel/hs-cabal-install[] and " "package:ports-mgmt/hs-cabal2tuple[] programs are required, so make sure they " @@ -2626,7 +2696,7 @@ msgstr "" "портов, которые позволяют cabal-install загрузить файл дистрибутива пакета:" #. type: delimited block . 4 -#: documentation/content/en/books/porters-handbook/special/_index.adoc:1011 +#: documentation/content/en/books/porters-handbook/special/_index.adoc:1039 #, no-wrap msgid "" "PORTNAME=\tShellCheck\n" @@ -2638,7 +2708,7 @@ msgstr "" "CATEGORIES=\tdevel\n" #. type: delimited block . 4 -#: documentation/content/en/books/porters-handbook/special/_index.adoc:1015 +#: documentation/content/en/books/porters-handbook/special/_index.adoc:1043 #, no-wrap msgid "" "MAINTAINER=\thaskell@FreeBSD.org\n" @@ -2650,14 +2720,14 @@ msgstr "" "WWW=\t\thttps://www.shellcheck.net/\n" #. type: delimited block . 4 -#: documentation/content/en/books/porters-handbook/special/_index.adoc:1017 -#: documentation/content/en/books/porters-handbook/special/_index.adoc:1100 +#: documentation/content/en/books/porters-handbook/special/_index.adoc:1045 +#: documentation/content/en/books/porters-handbook/special/_index.adoc:1128 #, no-wrap msgid "USES=\t\tcabal\n" msgstr "USES=\t\tcabal\n" #. type: Plain text -#: documentation/content/en/books/porters-handbook/special/_index.adoc:1022 +#: documentation/content/en/books/porters-handbook/special/_index.adoc:1050 msgid "" "This minimal Makefile fetches the distribution file with the `cabal-extract` " "helper target:" @@ -2666,7 +2736,7 @@ msgstr "" "вспомогательной цели `cabal-extract`:" #. type: delimited block . 4 -#: documentation/content/en/books/porters-handbook/special/_index.adoc:1032 +#: documentation/content/en/books/porters-handbook/special/_index.adoc:1060 #, no-wrap msgid "" "% make cabal-extract\n" @@ -2686,7 +2756,7 @@ msgstr "" "Unpacking to ShellCheck-0.6.0/\n" #. type: Plain text -#: documentation/content/en/books/porters-handbook/special/_index.adoc:1035 +#: documentation/content/en/books/porters-handbook/special/_index.adoc:1063 msgid "" "Now that we have ShellCheck.cabal package description file under `${WRKSRC}" "`, we can use `cabal-configure` to generate the build plan:" @@ -2695,7 +2765,7 @@ msgstr "" "`, мы можем использовать `cabal-configure` для создания плана сборки:" #. type: delimited block . 4 -#: documentation/content/en/books/porters-handbook/special/_index.adoc:1046 +#: documentation/content/en/books/porters-handbook/special/_index.adoc:1074 #, no-wrap msgid "" "% make cabal-configure\n" @@ -2717,12 +2787,12 @@ msgstr "" "[...]\n" #. type: Plain text -#: documentation/content/en/books/porters-handbook/special/_index.adoc:1049 +#: documentation/content/en/books/porters-handbook/special/_index.adoc:1077 msgid "Once done, a list of required dependencies can generated:" msgstr "После завершения можно сгенерировать список необходимых зависимостей:" #. type: delimited block . 4 -#: documentation/content/en/books/porters-handbook/special/_index.adoc:1057 +#: documentation/content/en/books/porters-handbook/special/_index.adoc:1085 #, no-wrap msgid "" "% make make-use-cabal\n" @@ -2738,7 +2808,7 @@ msgstr "" "[...]\n" #. type: Plain text -#: documentation/content/en/books/porters-handbook/special/_index.adoc:1063 +#: documentation/content/en/books/porters-handbook/special/_index.adoc:1091 msgid "" "Haskell packages may contain revisions, just like FreeBSD ports. Revisions " "can affect [.filename]#.cabal# files only. Note additional version numbers " @@ -2751,7 +2821,7 @@ msgstr "" "`USE_CABAL` на вновь сгенерированный." #. type: Plain text -#: documentation/content/en/books/porters-handbook/special/_index.adoc:1065 +#: documentation/content/en/books/porters-handbook/special/_index.adoc:1093 msgid "" "Finally, [.filename]#distinfo# needs to be regenerated to contain all the " "distribution files:" @@ -2760,7 +2830,7 @@ msgstr "" "содержал все файлы дистрибутива:" #. type: delimited block . 4 -#: documentation/content/en/books/porters-handbook/special/_index.adoc:1076 +#: documentation/content/en/books/porters-handbook/special/_index.adoc:1104 #, no-wrap msgid "" "% make makesum\n" @@ -2782,7 +2852,7 @@ msgstr "" "[...]\n" #. type: delimited block = 4 -#: documentation/content/en/books/porters-handbook/special/_index.adoc:1086 +#: documentation/content/en/books/porters-handbook/special/_index.adoc:1114 msgid "" "Some Haskell ports install various data files under `share/${PORTNAME}`. For " "such cases special handling is required on the port side. The port should " @@ -2799,13 +2869,13 @@ msgstr "" "Haskell, и тогда на помощь приходит `FOO_DATADIR_VARS`." #. type: Block title -#: documentation/content/en/books/porters-handbook/special/_index.adoc:1088 +#: documentation/content/en/books/porters-handbook/special/_index.adoc:1116 #, no-wrap msgid "Handling Data Files in a Haskell Port" msgstr "Обработка файлов данных в порте Haskell" #. type: Plain text -#: documentation/content/en/books/porters-handbook/special/_index.adoc:1092 +#: documentation/content/en/books/porters-handbook/special/_index.adoc:1120 msgid "" "`devel/hs-profiteur` is a Haskell application that generates a single-page " "HTML with some content." @@ -2814,22 +2884,22 @@ msgstr "" "одностраничный HTML с некоторым содержимым." #. type: delimited block . 4 -#: documentation/content/en/books/porters-handbook/special/_index.adoc:1096 +#: documentation/content/en/books/porters-handbook/special/_index.adoc:1124 #, no-wrap msgid "PORTNAME=\tprofiteur\n" msgstr "PORTNAME=\tprofiteur\n" #. type: delimited block . 4 -#: documentation/content/en/books/porters-handbook/special/_index.adoc:1098 -#: documentation/content/en/books/porters-handbook/special/_index.adoc:1113 -#: documentation/content/en/books/porters-handbook/special/_index.adoc:1131 +#: documentation/content/en/books/porters-handbook/special/_index.adoc:1126 +#: documentation/content/en/books/porters-handbook/special/_index.adoc:1141 +#: documentation/content/en/books/porters-handbook/special/_index.adoc:1159 #, no-wrap msgid "[...]\n" msgstr "[...]\n" #. type: delimited block . 4 -#: documentation/content/en/books/porters-handbook/special/_index.adoc:1104 -#: documentation/content/en/books/porters-handbook/special/_index.adoc:1117 +#: documentation/content/en/books/porters-handbook/special/_index.adoc:1132 +#: documentation/content/en/books/porters-handbook/special/_index.adoc:1145 #, no-wrap msgid "" "USE_CABAL=\tOneTuple-0.3.1_2 \\\n" @@ -2841,7 +2911,7 @@ msgstr "" "\t\t[...]\n" #. type: Plain text -#: documentation/content/en/books/porters-handbook/special/_index.adoc:1109 +#: documentation/content/en/books/porters-handbook/special/_index.adoc:1137 msgid "" "It installs HTML templates under `share/profiteur`, so we need to add " "`CABAL_WRAPPER_SCRIPTS` knob:" @@ -2850,13 +2920,13 @@ msgstr "" "добавить параметр `CABAL_WRAPPER_SCRIPTS`:" #. type: delimited block . 4 -#: documentation/content/en/books/porters-handbook/special/_index.adoc:1120 +#: documentation/content/en/books/porters-handbook/special/_index.adoc:1148 #, no-wrap msgid "CABAL_WRAPPER_SCRIPTS=\t\t${CABAL_EXECUTABLES}\n" msgstr "CABAL_WRAPPER_SCRIPTS=\t\t${CABAL_EXECUTABLES}\n" #. type: Plain text -#: documentation/content/en/books/porters-handbook/special/_index.adoc:1127 +#: documentation/content/en/books/porters-handbook/special/_index.adoc:1155 msgid "" "The program also tries to access the `jquery.js` file, which is a part of " "`js-jquery-3.3.1` Haskell package. For that file to be found, we need to " @@ -2869,7 +2939,7 @@ msgstr "" "также в `share/profiteur`. Для этого используется `profiteur_DATADIR_VARS`:" #. type: delimited block . 4 -#: documentation/content/en/books/porters-handbook/special/_index.adoc:1134 +#: documentation/content/en/books/porters-handbook/special/_index.adoc:1162 #, no-wrap msgid "" "CABAL_WRAPPER_SCRIPTS=\t\t${CABAL_EXECUTABLES}\n" @@ -2879,7 +2949,7 @@ msgstr "" *** 60655 LINES SKIPPED ***home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6a0a0502.24e01.493d1493>
