Units
Translation components API.
See the Weblate's Web API documentation for detailed description of the API.
GET /api/translations/documentation/booksporters-handbookslow-porting_index/ru/units/?format=api
{ "count": 89, "next": "https://translate-dev.freebsd.org/api/translations/documentation/booksporters-handbookslow-porting_index/ru/units/?format=api&page=2", "previous": null, "results": [ { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksporters-handbookslow-porting_index/ru/?format=api", "source": [ "Description about creating a FreeBSD Port when the program need some modifications" ], "previous_source": "", "target": [ "Описание создания порта FreeBSD, когда программа требует некоторых изменений" ], "id_hash": 4039099800651840071, "content_hash": 4039099800651840071, "location": "documentation/content/en/books/porters-handbook/slow-porting/_index.adoc:1", "context": "", "note": "type: YAML Front Matter: description", "flags": "no-wrap", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 1, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 12, "source_unit": "https://translate-dev.freebsd.org/api/units/1176828/?format=api", "priority": 100, "id": 1811956, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksporters-handbookslow-porting_index/ru/?checksum=b80dc3de5e343a47", "url": "https://translate-dev.freebsd.org/api/units/1811956/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-05-25T08:25:47.636149Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksporters-handbookslow-porting_index/ru/?format=api", "source": [ "Chapter 4. Slow Porting" ], "previous_source": "", "target": [ "Глава 4. Медленное портирование" ], "id_hash": 1626946814820366473, "content_hash": 1626946814820366473, "location": "documentation/content/en/books/porters-handbook/slow-porting/_index.adoc:1", "context": "", "note": "type: YAML Front Matter: title", "flags": "no-wrap", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 2, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 4, "source_unit": "https://translate-dev.freebsd.org/api/units/1115094/?format=api", "priority": 100, "id": 1811957, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksporters-handbookslow-porting_index/ru/?checksum=9694138215d23889", "url": "https://translate-dev.freebsd.org/api/units/1811957/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-05-25T08:25:47.636908Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksporters-handbookslow-porting_index/ru/?format=api", "source": [ "Slow Porting" ], "previous_source": "", "target": [ "Медленное портирование" ], "id_hash": -4626008679341344094, "content_hash": -4626008679341344094, "location": "documentation/content/en/books/porters-handbook/slow-porting/_index.adoc:14", "context": "", "note": "type: Title =", "flags": "no-wrap", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 3, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 2, "source_unit": "https://translate-dev.freebsd.org/api/units/1115096/?format=api", "priority": 100, "id": 1811958, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksporters-handbookslow-porting_index/ru/?checksum=3fcd1d9da3fc3aa2", "url": "https://translate-dev.freebsd.org/api/units/1811958/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-05-25T08:25:47.637511Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksporters-handbookslow-porting_index/ru/?format=api", "source": [ "Okay, so it was not that simple, and the port required some modifications to get it to work. In this section, we will explain, step by step, how to modify it to get it to work with the ports paradigm." ], "previous_source": "", "target": [ "Итак, всё оказалось не так уж и просто, и порт потребовал некоторых модификаций для того, чтобы заставить его работать. В этом разделе мы расскажем, шаг за шагом, как его модифицировать, чтобы он работал с нашей системой портов." ], "id_hash": 4438425859931525742, "content_hash": 4438425859931525742, "location": "documentation/content/en/books/porters-handbook/slow-porting/_index.adoc:53", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 4, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 40, "source_unit": "https://translate-dev.freebsd.org/api/units/1238304/?format=api", "priority": 100, "id": 1811959, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksporters-handbookslow-porting_index/ru/?checksum=bd9874cdc720526e", "url": "https://translate-dev.freebsd.org/api/units/1811959/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-05-25T08:25:47.638060Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksporters-handbookslow-porting_index/ru/?format=api", "source": [ "How Things Work" ], "previous_source": "", "target": [ "Как всё это работает" ], "id_hash": 3696984688444144537, "content_hash": 3696984688444144537, "location": "documentation/content/en/books/porters-handbook/slow-porting/_index.adoc:55", "context": "", "note": "type: Title ==", "flags": "no-wrap", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 5, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 3, "source_unit": "https://translate-dev.freebsd.org/api/units/1115100/?format=api", "priority": 100, "id": 1811960, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksporters-handbookslow-porting_index/ru/?checksum=b34e53fc96c57b99", "url": "https://translate-dev.freebsd.org/api/units/1811960/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-05-25T08:25:47.638657Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksporters-handbookslow-porting_index/ru/?format=api", "source": [ "First, this is the sequence of events which occurs when the user first types `make` in the port's directory. Having [.filename]#bsd.port.mk# in another window while reading this really helps to understand it." ], "previous_source": "", "target": [ "Во-первых, когда пользователь дает в своём каталоге с портом команду `make`, происходит целая череда событий. Во время чтения этого текста может оказаться полезным иметь файл [.filename]#bsd.port.mk# открытым в другом окне, что сильно поможет его понять." ], "id_hash": -4707117045463041477, "content_hash": -4707117045463041477, "location": "documentation/content/en/books/porters-handbook/slow-porting/_index.adoc:59", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 6, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 32, "source_unit": "https://translate-dev.freebsd.org/api/units/1238306/?format=api", "priority": 100, "id": 1811961, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksporters-handbookslow-porting_index/ru/?checksum=3eacf5fc8cfd3a3b", "url": "https://translate-dev.freebsd.org/api/units/1811961/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-05-25T08:25:47.639237Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksporters-handbookslow-porting_index/ru/?format=api", "source": [ "But do not worry, not many people understand exactly how [.filename]#bsd.port.mk# is working... _:-)_" ], "previous_source": "", "target": [ "Но не волнуйтесь сильно, если вы не до конца понимаете, что делается в [.filename]#bsd.port.mk#, не так уж много людей его понимает... _:-)_" ], "id_hash": -2793612861658455129, "content_hash": -2793612861658455129, "location": "documentation/content/en/books/porters-handbook/slow-porting/_index.adoc:61", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 7, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 14, "source_unit": "https://translate-dev.freebsd.org/api/units/1115104/?format=api", "priority": 100, "id": 1811962, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksporters-handbookslow-porting_index/ru/?checksum=593b17e74ce2a3a7", "url": "https://translate-dev.freebsd.org/api/units/1811962/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-05-25T08:25:47.639833Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksporters-handbookslow-porting_index/ru/?format=api", "source": [ "The `fetch` target is run. The `fetch` target is responsible for making sure that the tarball exists locally in `DISTDIR`. If `fetch` cannot find the required files in `DISTDIR` it will look up the URL `MASTER_SITES`, which is set in the Makefile, as well as our FTP mirrors where we put distfiles as backup. It will then attempt to fetch the named distribution file with `FETCH`, assuming that the requesting site has direct access to the Internet. If that succeeds, it will save the file in `DISTDIR` for future use and proceed." ], "previous_source": "", "target": [ "Запускается цель `fetch`. Цель `fetch` отвечает за то, что архив исходных текстов имеется в наличии локально в каталоге `DISTDIR`. Если цель `fetch` не может найти требуемые файлы в каталоге `DISTDIR`, то они будут искаться по указателю URL `MASTER_SITES`, который устанавливается в Makefile, а также на наших FTP зеркалах, куда мы по возможности помещаем дистрибутивные файлы для архива. Затем она попытается сгрузить указанный файл с помощью `FETCH`, полагая, что запрашивающая машина имеет прямое подключение к Интернет. Если файл скачается удачно, то он будет помещен в каталог `DISTDIR` для последующего использования и обработки." ], "id_hash": -4576610277112723647, "content_hash": -4576610277112723647, "location": "documentation/content/en/books/porters-handbook/slow-porting/_index.adoc:64", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 8, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 92, "source_unit": "https://translate-dev.freebsd.org/api/units/1115106/?format=api", "priority": 100, "id": 1811963, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksporters-handbookslow-porting_index/ru/?checksum=407c9d336d4b4741", "url": "https://translate-dev.freebsd.org/api/units/1811963/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-05-25T08:25:47.640388Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksporters-handbookslow-porting_index/ru/?format=api", "source": [ "The `extract` target is run. It looks for the port's distribution file (typically a compressed tarball) in `DISTDIR` and unpacks it into a temporary subdirectory specified by `WRKDIR` (defaults to [.filename]#work#)." ], "previous_source": "", "target": [ "Выполняется цель `extract`. Она ищет дистрибутивный файл порта (как правило, tar-архив `gzip`) в каталоге `DISTDIR` и распаковывает его во временный каталог, задаваемый переменной `WRKDIR` (по умолчанию [.filename]#work#)." ], "id_hash": 7906095891460613698, "content_hash": 7906095891460613698, "location": "documentation/content/en/books/porters-handbook/slow-porting/_index.adoc:65", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 9, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 31, "source_unit": "https://translate-dev.freebsd.org/api/units/1115108/?format=api", "priority": 100, "id": 1811964, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksporters-handbookslow-porting_index/ru/?checksum=edb8185332af6642", "url": "https://translate-dev.freebsd.org/api/units/1811964/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-05-25T08:25:47.641002Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksporters-handbookslow-porting_index/ru/?format=api", "source": [ "The `patch` target is run. First, any patches defined in `PATCHFILES` are applied. Second, if any patch files named [.filename]#patch-*# are found in `PATCHDIR` (defaults to the [.filename]#files# subdirectory), they are applied at this time in alphabetical order." ], "previous_source": "", "target": [ "Выполняется цель `patch`. Во-первых, применяются все патчи, заданные переменной `PATCHFILES`. Во-вторых, если какие-либо файлы с патчами, носящие имена [.filename]#patch-*#, имеются в подкаталоге `PATCHDIR` (по умолчанию это каталог [.filename]#files#), то они применяются в этот момент в алфавитном порядке." ], "id_hash": -5830637978231175636, "content_hash": -5830637978231175636, "location": "documentation/content/en/books/porters-handbook/slow-porting/_index.adoc:66", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 10, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 38, "source_unit": "https://translate-dev.freebsd.org/api/units/1115110/?format=api", "priority": 100, "id": 1811965, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksporters-handbookslow-porting_index/ru/?checksum=2f1569a69da1062c", "url": "https://translate-dev.freebsd.org/api/units/1811965/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-05-25T08:25:47.641564Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksporters-handbookslow-porting_index/ru/?format=api", "source": [ "The `configure` target is run. This can do any one of many different things." ], "previous_source": "", "target": [ "Запускается цель `configure`. Здесь может выполняться любая из многих различных вещей." ], "id_hash": 2816084857649345543, "content_hash": 2816084857649345543, "location": "documentation/content/en/books/porters-handbook/slow-porting/_index.adoc:67", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 11, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 14, "source_unit": "https://translate-dev.freebsd.org/api/units/1115112/?format=api", "priority": 100, "id": 1811966, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksporters-handbookslow-porting_index/ru/?checksum=a714be41fd8bb407", "url": "https://translate-dev.freebsd.org/api/units/1811966/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-05-25T08:25:47.642113Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksporters-handbookslow-porting_index/ru/?format=api", "source": [ "If it exists, [.filename]#scripts/configure# is run." ], "previous_source": "", "target": [ "Если он существует, запускается [.filename]#scripts/configure#." ], "id_hash": -2103938146355449102, "content_hash": -2103938146355449102, "location": "documentation/content/en/books/porters-handbook/slow-porting/_index.adoc:68", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 12, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 6, "source_unit": "https://translate-dev.freebsd.org/api/units/1115114/?format=api", "priority": 100, "id": 1811967, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksporters-handbookslow-porting_index/ru/?checksum=62cd4f672d16f2f2", "url": "https://translate-dev.freebsd.org/api/units/1811967/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-05-25T08:25:47.642653Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksporters-handbookslow-porting_index/ru/?format=api", "source": [ "If `HAS_CONFIGURE` or `GNU_CONFIGURE` is set, [.filename]#WRKSRC/configure# is run." ], "previous_source": "", "target": [ "Если установлены `HAS_CONFIGURE` или `GNU_CONFIGURE`, запускается [.filename]#WRKSRC/configure#." ], "id_hash": 4402145711247003029, "content_hash": 4402145711247003029, "location": "documentation/content/en/books/porters-handbook/slow-porting/_index.adoc:69", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 13, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 9, "source_unit": "https://translate-dev.freebsd.org/api/units/1115116/?format=api", "priority": 100, "id": 1811968, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksporters-handbookslow-porting_index/ru/?checksum=bd17903368630d95", "url": "https://translate-dev.freebsd.org/api/units/1811968/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-05-25T08:25:47.643179Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksporters-handbookslow-porting_index/ru/?format=api", "source": [ "The `build` target is run. This is responsible for descending into the port's private working directory (`WRKSRC`) and building it." ], "previous_source": "", "target": [ "Выполняется цель `build`. Она отвечает за переход в собственный рабочий каталог порта (`WRKSRC`) и его построение." ], "id_hash": 8453106637902985122, "content_hash": 8453106637902985122, "location": "documentation/content/en/books/porters-handbook/slow-porting/_index.adoc:71", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 14, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 20, "source_unit": "https://translate-dev.freebsd.org/api/units/1115118/?format=api", "priority": 100, "id": 1811969, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksporters-handbookslow-porting_index/ru/?checksum=f54f77b360b437a2", "url": "https://translate-dev.freebsd.org/api/units/1811969/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-05-25T08:25:47.643724Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksporters-handbookslow-porting_index/ru/?format=api", "source": [ "The `stage` target is run. This puts the final set of built files into a temporary directory (`STAGEDIR`, see crossref:special[staging,Staging]). The hierarchy of this directory mirrors that of the system on which the package will be installed." ], "previous_source": "", "target": [ "Выполняется цель `stage`. Конечный набор построенных файлов помещается во временный каталог (`STAGEDIR`, смотрите crossref:special[staging,Staging]). Иерархия этого каталога отражает иерархию каталогов системы, в которую данный пакет будет устанавливаться." ], "id_hash": -3658060717113975519, "content_hash": -3658060717113975519, "location": "documentation/content/en/books/porters-handbook/slow-porting/_index.adoc:72", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 15, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 37, "source_unit": "https://translate-dev.freebsd.org/api/units/1115120/?format=api", "priority": 100, "id": 1811970, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksporters-handbookslow-porting_index/ru/?checksum=4d3bf528b59c5d21", "url": "https://translate-dev.freebsd.org/api/units/1811970/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-05-25T08:25:47.644272Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksporters-handbookslow-porting_index/ru/?format=api", "source": [ "The `package` target is run. This creates a package using the files from the temporary directory created during the `stage` target and the port's [.filename]#pkg-plist#." ], "previous_source": "", "target": [ "Выполняется цель `package`. При этом создается пакет с использованием файлов из временного каталога, созданного во время выполнения цели `stage`, и файла [.filename]#pkg-plist# порта." ], "id_hash": 4963010334637178198, "content_hash": 4963010334637178198, "location": "documentation/content/en/books/porters-handbook/slow-porting/_index.adoc:73", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 16, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 25, "source_unit": "https://translate-dev.freebsd.org/api/units/1115122/?format=api", "priority": 100, "id": 1811971, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksporters-handbookslow-porting_index/ru/?checksum=c4e0279aaca43d56", "url": "https://translate-dev.freebsd.org/api/units/1811971/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-05-25T08:25:47.644836Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksporters-handbookslow-porting_index/ru/?format=api", "source": [ "The `install` target is run. This installs the package created during the `package` target into the host system." ], "previous_source": "", "target": [ "Выполняется цель `install`. Это устанавливает пакет, созданный во время цели `package`, в хост-систему." ], "id_hash": 5153408691735971892, "content_hash": 5153408691735971892, "location": "documentation/content/en/books/porters-handbook/slow-porting/_index.adoc:74", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 17, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 18, "source_unit": "https://translate-dev.freebsd.org/api/units/1115124/?format=api", "priority": 100, "id": 1811972, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksporters-handbookslow-porting_index/ru/?checksum=c78495e6b5554834", "url": "https://translate-dev.freebsd.org/api/units/1811972/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-05-25T08:25:47.645373Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksporters-handbookslow-porting_index/ru/?format=api", "source": [ "The above are the default actions. In addition, define targets `pre-_something_` or `post-_something_`, or put scripts with those names, in the [.filename]#scripts# subdirectory, and they will be run before or after the default actions are done." ], "previous_source": "", "target": [ "Выше перечислены стандартные действия. Кроме того, вы сами можете определить цели `pre-_что-то_` или `post-_что-то_`, или создать скрипты с такими именами в подкаталоге [.filename]#scripts#, и они будут запущены до или после выполнения действий по умолчанию." ], "id_hash": 8968888593181469257, "content_hash": 8968888593181469257, "location": "documentation/content/en/books/porters-handbook/slow-porting/_index.adoc:76", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 18, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 36, "source_unit": "https://translate-dev.freebsd.org/api/units/1115126/?format=api", "priority": 100, "id": 1811973, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksporters-handbookslow-porting_index/ru/?checksum=fc77e4a802a26a49", "url": "https://translate-dev.freebsd.org/api/units/1811973/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-05-25T08:25:47.645934Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksporters-handbookslow-porting_index/ru/?format=api", "source": [ "For example, if there is a `post-extract` target defined in the [.filename]#Makefile#, and a file [.filename]#pre-build# in the [.filename]#scripts# subdirectory, the `post-extract` target will be called after the regular extraction actions, and [.filename]#pre-build# will be executed before the default build rules are done. It is recommended to use [.filename]#Makefile# targets if the actions are simple enough, because it will be easier for someone to figure out what kind of non-default action the port requires." ], "previous_source": "", "target": [ "Например, если у вас есть цель `post-extract`, определённая в вашем файле [.filename]#Makefile# и файл [.filename]#pre-build# в подкаталоге [.filename]#scripts#, то после выполнения обычных действий по распаковке, будет вызвана цель `post-extract` а скрипт [.filename]#pre-build# будет выполнен перед запуском стандартных правил построения. Рекомендуется использовать цели из [.filename]#Makefile#, если действия достаточно просты, потому что в дальнейшем будет проще определить, какие нестандартные действия требует порт." ], "id_hash": -6838723937677253962, "content_hash": -6838723937677253962, "location": "documentation/content/en/books/porters-handbook/slow-porting/_index.adoc:82", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 19, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 74, "source_unit": "https://translate-dev.freebsd.org/api/units/1238308/?format=api", "priority": 100, "id": 1811974, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksporters-handbookslow-porting_index/ru/?checksum=2117f8cfd1c962b6", "url": "https://translate-dev.freebsd.org/api/units/1811974/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-05-25T08:25:47.646500Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksporters-handbookslow-porting_index/ru/?format=api", "source": [ "The default actions are done by the `do-_something_` targets from [.filename]#bsd.port.mk#. For example, the commands to extract a port are in the target `do-extract`. If the default target does not do the job right, redefine the `do-_something_` target in the [.filename]#Makefile#." ], "previous_source": "", "target": [ "Действия по умолчанию выполняются целями `do-_что-то_` из [.filename]#bsd.port.mk#. Например, команды для распаковки порта находятся в цели `do-extract`. Если вам не хватает цели по умолчанию, вы можете её исправить, переопределив цель `do-_something_` в вашем файле [.filename]#Makefile#." ], "id_hash": 6614595312050739992, "content_hash": 6614595312050739992, "location": "documentation/content/en/books/porters-handbook/slow-porting/_index.adoc:86", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 20, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 41, "source_unit": "https://translate-dev.freebsd.org/api/units/1238310/?format=api", "priority": 100, "id": 1811975, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksporters-handbookslow-porting_index/ru/?checksum=dbcbc36403bf9b18", "url": "https://translate-dev.freebsd.org/api/units/1811975/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-05-25T08:25:47.647091Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksporters-handbookslow-porting_index/ru/?format=api", "source": [ "The \"main\" targets (for example, `extract`, `configure`, etc.) do nothing more than make sure all the stages up to that one are completed and call the real targets or scripts, and they are not intended to be changed. To fix the extraction, fix `do-extract`, but never ever change the way `extract` operates! Additionally, the target `post-deinstall` is invalid and is not run by the ports infrastructure." ], "previous_source": "", "target": [ "\"Основные\" цели (к примеру, `extract`, `configure` и так далее) не делают ничего больше, чем проверяют успешность завершения всех предыдущих шагов и вызывают настоящие цели или скрипты, и их не нужно менять. Если вам нужно изменить распаковку, исправляйте `do-extract`, но никогда не меняйте способ работы `extract`! Кроме того, цель `post-deinstall` является недействительной и не выполняется инфраструктурой портов." ], "id_hash": -5603235733487023163, "content_hash": -5603235733487023163, "location": "documentation/content/en/books/porters-handbook/slow-porting/_index.adoc:92", "context": "", "note": "type: delimited block = 4", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 21, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 66, "source_unit": "https://translate-dev.freebsd.org/api/units/1238312/?format=api", "priority": 100, "id": 1811976, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksporters-handbookslow-porting_index/ru/?checksum=323d4ec9a0bb0bc5", "url": "https://translate-dev.freebsd.org/api/units/1811976/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-05-25T08:25:47.647681Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksporters-handbookslow-porting_index/ru/?format=api", "source": [ "Now that what goes on when the user types `make install` is better understood, let us go through the recommended steps to create the perfect port." ], "previous_source": "", "target": [ "Теперь, когда вы представляете, что происходит, когда пользователь набирает команду `make install`, давайте пройдемся через шаги, рекомендуемые для создания настоящего порта." ], "id_hash": 3687393012846234980, "content_hash": 3687393012846234980, "location": "documentation/content/en/books/porters-handbook/slow-porting/_index.adoc:95", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 22, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 26, "source_unit": "https://translate-dev.freebsd.org/api/units/1115134/?format=api", "priority": 100, "id": 1811977, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksporters-handbookslow-porting_index/ru/?checksum=b32c406895f50d64", "url": "https://translate-dev.freebsd.org/api/units/1811977/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-05-25T08:25:47.648268Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksporters-handbookslow-porting_index/ru/?format=api", "source": [ "Getting the Original Sources" ], "previous_source": "", "target": [ "Получение исходного кода" ], "id_hash": 8532221785389554232, "content_hash": 8532221785389554232, "location": "documentation/content/en/books/porters-handbook/slow-porting/_index.adoc:97", "context": "", "note": "type: Title ==", "flags": "no-wrap", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 23, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 4, "source_unit": "https://translate-dev.freebsd.org/api/units/1115136/?format=api", "priority": 100, "id": 1811978, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksporters-handbookslow-porting_index/ru/?checksum=f6688a8216fe5a38", "url": "https://translate-dev.freebsd.org/api/units/1811978/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-05-25T08:25:47.648826Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksporters-handbookslow-porting_index/ru/?format=api", "source": [ "Get the original sources (normally) as a compressed tarball ([.filename]#foo.tar.gz# or [.filename]#foo.tar.bz2#) and copy it into `DISTDIR`. Always use _mainstream_ sources when and where possible." ], "previous_source": "", "target": [ "Получите оригинальные исходные тексты (обычно) в виде упакованного tar-архива ([.filename]#foo.tar.gz# или [.filename]#foo.tar.bz2#) и скопируйте его в каталог `DISTDIR`. Всегда используйте исходные тексты _основной ветки разработки_ везде, где это возможно." ], "id_hash": 3711472489467878374, "content_hash": 3711472489467878374, "location": "documentation/content/en/books/porters-handbook/slow-porting/_index.adoc:101", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 24, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 25, "source_unit": "https://translate-dev.freebsd.org/api/units/1238314/?format=api", "priority": 100, "id": 1811979, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksporters-handbookslow-porting_index/ru/?checksum=b381cc90a05e1be6", "url": "https://translate-dev.freebsd.org/api/units/1811979/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-05-25T08:25:47.649411Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksporters-handbookslow-porting_index/ru/?format=api", "source": [ "Set the variable `MASTER_SITES` to reflect where the original tarball resides. Shorthand definitions exist for most mainstream sites in [.filename]#bsd.sites.mk#. Please use these sites-and the associated definitions-if at all possible, to help avoid the problem of having the same information repeated over again many times in the source base. As these sites tend to change over time, this becomes a maintenance nightmare for everyone involved. See crossref:makefiles[makefile-master_sites,`MASTER_SITES`] for details." ], "previous_source": "", "target": [ "Вам потребуется задать значение переменной `MASTER_SITES` так, чтобы оно указывало на местоположение оригинального tar-архива. В файле [.filename]#bsd.sites.mk# вы найдёте краткие обозначения для большинства популярных сайтов. Пожалуйста, используйте эти сайты-и соответствующие определения-везде, где это возможно, чтобы избежать проблем повторения одной и той же информации в базе источников. Так как эти сайты со временем меняются, для всех причастных поддержка становится настоящим кошмаром. Для подробностей смотрите crossref:makefiles[makefile-master_sites,`MASTER_SITES`]." ], "id_hash": -8232185165661132232, "content_hash": -8232185165661132232, "location": "documentation/content/en/books/porters-handbook/slow-porting/_index.adoc:108", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 25, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 69, "source_unit": "https://translate-dev.freebsd.org/api/units/1238316/?format=api", "priority": 100, "id": 1811980, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksporters-handbookslow-porting_index/ru/?checksum=0dc1673533872a38", "url": "https://translate-dev.freebsd.org/api/units/1811980/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-05-25T08:25:47.649979Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksporters-handbookslow-porting_index/ru/?format=api", "source": [ "If there is no FTP/HTTP site that is well-connected to the net, or can only find sites that have irritatingly non-standard formats, put a copy on a reliable FTP or HTTP server (for example, a home page)." ], "previous_source": "", "target": [ "Если вы не можете найти FTP/HTTP сайт с хорошим подключением к сети, или находите только сайты, которые имеют раздражающе нестандартные форматы, то можете захотеть поместить копию на надёжный сервер FTP или HTTP, который вам доступен (например, ваша домашняя страница)." ], "id_hash": -9106169408301321712, "content_hash": -9106169408301321712, "location": "documentation/content/en/books/porters-handbook/slow-porting/_index.adoc:110", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 26, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 37, "source_unit": "https://translate-dev.freebsd.org/api/units/1115142/?format=api", "priority": 100, "id": 1811981, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksporters-handbookslow-porting_index/ru/?checksum=01a0632b71abb210", "url": "https://translate-dev.freebsd.org/api/units/1811981/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-05-25T08:25:47.650574Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksporters-handbookslow-porting_index/ru/?format=api", "source": [ "If a convenient and reliable place to put the distfile cannot be found, we can \"house\" it ourselves on `ftp.FreeBSD.org`; however, this is the least-preferred solution. The distfile must be placed into [.filename]#~/public_distfiles/# of someone's `freefall` account. Ask the person who commits the port to do this. This person will also set `MASTER_SITES` to `LOCAL/_username_` where `_username_` is their FreeBSD cluster login." ], "previous_source": "", "target": [ "Если вы не можете найти доступного и надёжного места для помещения дистрибутивного файла, то мы сами сможем разместить его на сервере `ftp.FreeBSD.org`; однако это наименее рекомендуемое решение. Дистрибутивный файл должен быть помещён в каталог [.filename]#~/public_distfiles/# одного из пользователей машины `freefall`. Попросите того, кто коммитил ваш порт, сделать это. Этот человек также задаст переменной `MASTER_SITES` значение `MASTER_SITE_LOCAL`, а в переменной `MASTER_SITE_SUBDIR` укажет логин кластера FreeBSD." ], "id_hash": -5445996421029549789, "content_hash": -5445996421029549789, "location": "documentation/content/en/books/porters-handbook/slow-porting/_index.adoc:114", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 27, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 62, "source_unit": "https://translate-dev.freebsd.org/api/units/1238318/?format=api", "priority": 100, "id": 1811982, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksporters-handbookslow-porting_index/ru/?checksum=346bef1bf47c2923", "url": "https://translate-dev.freebsd.org/api/units/1811982/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-05-25T08:25:47.651159Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksporters-handbookslow-porting_index/ru/?format=api", "source": [ "If the port's distfile changes all the time without any kind of version update by the author, consider putting the distfile on a home page and listing it as the first `MASTER_SITES`. Try to talk the port author out of doing this; it really does help to establish some kind of source code control. Hosting a specific version will prevent users from getting `checksum mismatch` errors, and also reduce the workload of maintainers of our FTP site. Also, if there is only one master site for the port, it is recommended to house a backup on a home page and list it as the second `MASTER_SITES`." ], "previous_source": "", "target": [ "Если дистрибутивные файлы вашего порта постоянно меняются по неизвестным причинам без изменения версий со стороны автора, остаётся только поместить дистрибутив на вашу домашнюю Web-страницу и указать её первой в списке `MASTER_SITES`. Если можете, попытайтесь договориться с автором порта об этом; это действительно помогает в достижении некоторого управления исходным кодом. Размещение собственной версии поможет избежать появления ошибок у пользователей типа `checksum mismatch`, а также уменьшит нагрузку на людей, сопровождающих наш FTP-сервер. Также, если у порта имеется только один основной сервер, то рекомендуется поместить архивную копию на свой сайт и указать его в списке `MASTER_SITES` вторым." ], "id_hash": -6105289606736303576, "content_hash": -6105289606736303576, "location": "documentation/content/en/books/porters-handbook/slow-porting/_index.adoc:119", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 28, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 106, "source_unit": "https://translate-dev.freebsd.org/api/units/1238320/?format=api", "priority": 100, "id": 1811983, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksporters-handbookslow-porting_index/ru/?checksum=2b45a7732b992a28", "url": "https://translate-dev.freebsd.org/api/units/1811983/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-05-25T08:25:47.651763Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksporters-handbookslow-porting_index/ru/?format=api", "source": [ "If the port requires additional patches that are available on the Internet, fetch them too and put them in `DISTDIR`. Do not worry if they come from a site other than where the main source tarball comes, we have a way to handle these situations (see the description of crossref:makefiles[porting-patchfiles,PATCHFILES] below)." ], "previous_source": "", "target": [ "Если вашему порту требуются дополнительные `патчи`, доступные в Интернет, скачайте также и их, поместив в каталог `DISTDIR`. Не волнуйтесь, если они находятся не на том же сайте, откуда взят дистрибутивный архив, мы умеем обрабатывать такие ситуации (смотрите описание crossref:makefiles[porting-patchfiles,PATCHFILES] ниже)." ], "id_hash": -3162367828694476223, "content_hash": -3162367828694476223, "location": "documentation/content/en/books/porters-handbook/slow-porting/_index.adoc:123", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 29, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 51, "source_unit": "https://translate-dev.freebsd.org/api/units/1238322/?format=api", "priority": 100, "id": 1811984, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksporters-handbookslow-porting_index/ru/?checksum=541d0336f98ada41", "url": "https://translate-dev.freebsd.org/api/units/1811984/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-05-25T08:25:47.652372Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksporters-handbookslow-porting_index/ru/?format=api", "source": [ "Modifying the Port" ], "previous_source": "", "target": [ "Модификация порта" ], "id_hash": -1832753436076992715, "content_hash": -1832753436076992715, "location": "documentation/content/en/books/porters-handbook/slow-porting/_index.adoc:125", "context": "", "note": "type: Title ==", "flags": "no-wrap", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 30, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 3, "source_unit": "https://translate-dev.freebsd.org/api/units/1115150/?format=api", "priority": 100, "id": 1811985, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksporters-handbookslow-porting_index/ru/?checksum=6690c075d1c11735", "url": "https://translate-dev.freebsd.org/api/units/1811985/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-05-25T08:25:47.652961Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksporters-handbookslow-porting_index/ru/?format=api", "source": [ "Unpack a copy of the tarball in a private directory and make whatever changes are necessary to get the port to compile properly under the current version of FreeBSD. Keep _careful track_ of steps, as they will be needed to automate the process shortly. Everything, including the deletion, addition, or modification of files has to be doable using an automated script or patch file when the port is finished." ], "previous_source": "", "target": [ "Распакуйте копию дистрибутивного файла в отдельный каталог и внесите изменения, которые необходимы для того, чтобы порт компилировался нормально в текущей версии FreeBSD. _Тщательно отслеживайте_ все, что вы делаете, этот процесс вам предстоит автоматизировать. Все, включая удаление, добавление или модификацию в файлах должны будут выполняться автоматически с помощью скриптов или файлов патчей, когда вы завершите работу над портом." ], "id_hash": -3680946025836144763, "content_hash": -3680946025836144763, "location": "documentation/content/en/books/porters-handbook/slow-porting/_index.adoc:130", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 31, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 69, "source_unit": "https://translate-dev.freebsd.org/api/units/1238324/?format=api", "priority": 100, "id": 1811986, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksporters-handbookslow-porting_index/ru/?checksum=4ceaa7178ca69785", "url": "https://translate-dev.freebsd.org/api/units/1811986/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-05-25T08:25:47.653499Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksporters-handbookslow-porting_index/ru/?format=api", "source": [ "If the port requires significant user interaction/customization to compile or install, take a look at one of Larry Wall's classic Configure scripts and perhaps do something similar. The goal of the new ports collection is to make each port as \"plug-and-play\" as possible for the end-user while using a minimum of disk space." ], "previous_source": "", "target": [ "Если вашему порту во время компиляции, установки и настройки требуется довольно много взаимодействовать с пользователем, то посмотрите на один из классических скриптов Configure Лэрри Уолла (Larry Wall) и сделайте сами что-либо подобное. Предназначение новой коллекции портов - это сделать каждое приложение в стиле \"plug-and-play\" настолько, насколько это вообще возможно для конечного пользователя при минимальном использовании дискового пространства." ], "id_hash": -1913074961425065847, "content_hash": -1913074961425065847, "location": "documentation/content/en/books/porters-handbook/slow-porting/_index.adoc:133", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 32, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 53, "source_unit": "https://translate-dev.freebsd.org/api/units/1238326/?format=api", "priority": 100, "id": 1811987, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksporters-handbookslow-porting_index/ru/?checksum=657364755f909889", "url": "https://translate-dev.freebsd.org/api/units/1811987/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-05-25T08:25:47.654149Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksporters-handbookslow-porting_index/ru/?format=api", "source": [ "Unless explicitly stated, patch files, scripts, and other files created and contributed to the FreeBSD ports collection are assumed to be covered by the standard BSD copyright conditions." ], "previous_source": "", "target": [ "Если явно не указано обратное, то патчи, скрипты и другие файлы, которые вы создали и предоставили для Коллекции Портов FreeBSD, неявно подпадают под стандартные условия лицензии BSD." ], "id_hash": 9148844994794226818, "content_hash": 9148844994794226818, "location": "documentation/content/en/books/porters-handbook/slow-porting/_index.adoc:137", "context": "", "note": "type: delimited block = 4", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 33, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 28, "source_unit": "https://translate-dev.freebsd.org/api/units/1115156/?format=api", "priority": 100, "id": 1811988, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksporters-handbookslow-porting_index/ru/?checksum=fef73a0cd3d20482", "url": "https://translate-dev.freebsd.org/api/units/1811988/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-05-25T08:25:47.654741Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksporters-handbookslow-porting_index/ru/?format=api", "source": [ "Patching" ], "previous_source": "", "target": [ "Работа с патчами" ], "id_hash": 9082436729499825098, "content_hash": 9082436729499825098, "location": "documentation/content/en/books/porters-handbook/slow-porting/_index.adoc:140", "context": "", "note": "type: Title ==", "flags": "no-wrap", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 34, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 1, "source_unit": "https://translate-dev.freebsd.org/api/units/1115158/?format=api", "priority": 100, "id": 1811989, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksporters-handbookslow-porting_index/ru/?checksum=fe0b4c15accc33ca", "url": "https://translate-dev.freebsd.org/api/units/1811989/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-05-25T08:25:47.655295Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksporters-handbookslow-porting_index/ru/?format=api", "source": [ "In the preparation of the port, files that have been added or changed can be recorded with man:diff[1] for later feeding to man:patch[1]. Doing this with a typical file involves saving a copy of the original file before making any changes using a [.filename]#.orig# suffix." ], "previous_source": "", "target": [ "Файлы, которые добавлялись или изменялись в процессе создания порта, могут быть выявлены программой man:diff[1], а результат работы этой программы может быть в дальнейшем передан программе man:patch[1]. Такое действие с обычным файлом подразумевает сохранение копии файла с первоначальным содержимым перед внесением каких-либо изменений." ], "id_hash": -3295904964593037810, "content_hash": -3295904964593037810, "location": "documentation/content/en/books/porters-handbook/slow-porting/_index.adoc:144", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 35, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 45, "source_unit": "https://translate-dev.freebsd.org/api/units/1238328/?format=api", "priority": 100, "id": 1811990, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksporters-handbookslow-porting_index/ru/?checksum=524297e5abfc4e0e", "url": "https://translate-dev.freebsd.org/api/units/1811990/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-05-25T08:25:47.655814Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksporters-handbookslow-porting_index/ru/?format=api", "source": [ "% cp file file.orig\n" ], "previous_source": "", "target": [ "% cp file file.orig\n" ], "id_hash": -7793786368631729315, "content_hash": -7793786368631729315, "location": "documentation/content/en/books/porters-handbook/slow-porting/_index.adoc:148", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 36, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 4, "source_unit": "https://translate-dev.freebsd.org/api/units/1115162/?format=api", "priority": 100, "id": 1811991, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksporters-handbookslow-porting_index/ru/?checksum=13d6e8974a6c935d", "url": "https://translate-dev.freebsd.org/api/units/1811991/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-05-25T08:25:47.656395Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksporters-handbookslow-porting_index/ru/?format=api", "source": [ "After all changes have been made, `cd` back to the port directory. Use `make makepatch` to generate updated patch files in the [.filename]#files# directory." ], "previous_source": "", "target": [ "Патчи сохраняются в виде файлов с именем [.filename]#patch-*#, где _*_ обозначает путь к файлу, к которому применяется патч, такой как [.filename]#patch-Imakefile# или [.filename]#patch-src-config.h#." ], "id_hash": 2561389060875174341, "content_hash": 2561389060875174341, "location": "documentation/content/en/books/porters-handbook/slow-porting/_index.adoc:152", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 37, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 24, "source_unit": "https://translate-dev.freebsd.org/api/units/1238330/?format=api", "priority": 100, "id": 1811992, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksporters-handbookslow-porting_index/ru/?checksum=a38be1c7b10941c5", "url": "https://translate-dev.freebsd.org/api/units/1811992/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-05-25T08:25:47.656913Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksporters-handbookslow-porting_index/ru/?format=api", "source": [ "Use `BINARY_ALIAS` to substitute hardcoded commands during the build and avoid patching build files. See crossref:makefiles[binary-alias,Use `BINARY_ALIAS` to Rename Commands Instead of Patching the Build] for more information." ], "previous_source": "", "target": [ "Используйте `BINARY_ALIAS` для замены жёстко заданных команд во время сборки и избежания исправлений в файлах сборки. Подробнее см. в crossref:makefiles[binary-alias,Использование `BINARY_ALIAS` для переименования команд вместо исправления сборки]." ], "id_hash": -9035878553439875848, "content_hash": -9035878553439875848, "location": "documentation/content/en/books/porters-handbook/slow-porting/_index.adoc:157", "context": "", "note": "type: delimited block = 4", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 38, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 28, "source_unit": "https://translate-dev.freebsd.org/api/units/1238332/?format=api", "priority": 100, "id": 1811993, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksporters-handbookslow-porting_index/ru/?checksum=029a1c546ca54cf8", "url": "https://translate-dev.freebsd.org/api/units/1811993/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-05-25T08:25:47.657469Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksporters-handbookslow-porting_index/ru/?format=api", "source": [ "General Rules for Patching" ], "previous_source": "", "target": [ "Общие правила для установки патчей" ], "id_hash": 8821994633002853548, "content_hash": 8821994633002853548, "location": "documentation/content/en/books/porters-handbook/slow-porting/_index.adoc:160", "context": "", "note": "type: Title ===", "flags": "no-wrap", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 39, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 4, "source_unit": "https://translate-dev.freebsd.org/api/units/1115168/?format=api", "priority": 100, "id": 1811994, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksporters-handbookslow-porting_index/ru/?checksum=fa6e0560b689a4ac", "url": "https://translate-dev.freebsd.org/api/units/1811994/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-05-25T08:25:47.658018Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksporters-handbookslow-porting_index/ru/?format=api", "source": [ "Patch files are stored in `PATCHDIR`, usually [.filename]#files/#, from where they will be automatically applied. All patches must be relative to `WRKSRC`. Typically `WRKSRC` is a subdirectory of `WRKDIR`, the directory where the distfile is extracted. Use `make -V WRKSRC` to see the actual path. The patch names are to follow these rules:" ], "previous_source": "", "target": [ "Файлы патчей хранятся в `PATCHDIR`, обычно это [.filename]#files/#, откуда они будут автоматически применены. Все исправления должны быть относительны к `WRKSRC`. Обычно `WRKSRC` является подкаталогом `WRKDIR`, каталога, в котором распаковывается distfile. Используйте `make -V WRKSRC` для просмотра фактического пути. Имена файлов патчей должны соответствовать следующим правилам:" ], "id_hash": -3328544717953730844, "content_hash": -3328544717953730844, "location": "documentation/content/en/books/porters-handbook/slow-porting/_index.adoc:167", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 40, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 53, "source_unit": "https://translate-dev.freebsd.org/api/units/1238334/?format=api", "priority": 100, "id": 1811995, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksporters-handbookslow-porting_index/ru/?checksum=51cea236e35d76e4", "url": "https://translate-dev.freebsd.org/api/units/1811995/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-05-25T08:25:47.658532Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksporters-handbookslow-porting_index/ru/?format=api", "source": [ "Avoid having more than one patch modify the same file. For example, having both [.filename]#patch-foobar.c# and [.filename]#patch-foobar.c2# making changes to [.filename]#${WRKSRC}/foobar.c# makes them fragile and difficult to debug." ], "previous_source": "", "target": [ "Избегайте ситуации, когда несколько патчей изменяют один и тот же файл. Например, если и [.filename]#patch-foobar.c#, и [.filename]#patch-foobar.c2# вносят изменения в [.filename]#${WRKSRC}/foobar.c#, это делает их хрупкими и затрудняет отладку." ], "id_hash": 2273063584130289967, "content_hash": 2273063584130289967, "location": "documentation/content/en/books/porters-handbook/slow-porting/_index.adoc:169", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 41, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 28, "source_unit": "https://translate-dev.freebsd.org/api/units/1115172/?format=api", "priority": 100, "id": 1811996, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksporters-handbookslow-porting_index/ru/?checksum=9f8b8b495bf6512f", "url": "https://translate-dev.freebsd.org/api/units/1811996/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-05-25T08:25:47.659138Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksporters-handbookslow-porting_index/ru/?format=api", "source": [ "When creating names for patch files, replace each underscore (`\\_`) with two underscores (`\\__`) and each slash (`/`) with one underscore (`_`). For example, to patch a file named [.filename]#src/freeglut_joystick.c#, name the corresponding patch [.filename]#patch-src_freeglut__joystick.c#. Do not name patches like [.filename]#patch-aa# or [.filename]#patch-ab#. Always use the path and file name in patch names. Using `make makepatch` automatically generates the correct names." ], "previous_source": "", "target": [ "При создании имен для файлов исправлений заменяйте каждое подчеркивание (`\\_`) на два подчеркивания (`\\__`) и каждый слэш (`/`) на одно подчеркивание (`_`). Например, чтобы исправить файл с именем [.filename]#src/freeglut_joystick.c#, назовите соответствующий исправление [.filename]#patch-src_freeglut__joystick.c#. Не называйте исправления как [.filename]#patch-aa# или [.filename]#patch-ab#. Всегда используйте путь и имя файла в названиях исправлений. Использование `make makepatch` автоматически генерирует правильные имена." ], "id_hash": -7557627067561798067, "content_hash": -7557627067561798067, "location": "documentation/content/en/books/porters-handbook/slow-porting/_index.adoc:170", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 42, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 61, "source_unit": "https://translate-dev.freebsd.org/api/units/1115174/?format=api", "priority": 100, "id": 1811997, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksporters-handbookslow-porting_index/ru/?checksum=171dea395d1a164d", "url": "https://translate-dev.freebsd.org/api/units/1811997/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-05-25T08:25:47.659728Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksporters-handbookslow-porting_index/ru/?format=api", "source": [ "A patch may modify multiple files if the changes are related and the patch is named appropriately. For example, [.filename]#patch-add-missing-stdlib.h#." ], "previous_source": "", "target": [ "Патч может изменять несколько файлов, если изменения связаны между собой и патч назван соответствующим образом. Например, [.filename]#patch-add-missing-stdlib.h#." ], "id_hash": -9167237692681427619, "content_hash": -9167237692681427619, "location": "documentation/content/en/books/porters-handbook/slow-porting/_index.adoc:171", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 43, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 20, "source_unit": "https://translate-dev.freebsd.org/api/units/1115176/?format=api", "priority": 100, "id": 1811998, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksporters-handbookslow-porting_index/ru/?checksum=00c76de37c26e55d", "url": "https://translate-dev.freebsd.org/api/units/1811998/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-05-25T08:25:47.660304Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksporters-handbookslow-porting_index/ru/?format=api", "source": [ "Only use characters `[-+.\\_a-zA-Z0-9]` for naming patches. In particular, __do not use `::` as a path separator,__ use `_` instead." ], "previous_source": "", "target": [ "Используйте только символы `[-+.\\_a-zA-Z0-9]` для именования патчей. В частности, __не используйте `::` как разделитель путей,__ вместо этого используйте `_`." ], "id_hash": 8091877739597054409, "content_hash": 8091877739597054409, "location": "documentation/content/en/books/porters-handbook/slow-porting/_index.adoc:172", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 44, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 20, "source_unit": "https://translate-dev.freebsd.org/api/units/1115178/?format=api", "priority": 100, "id": 1811999, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksporters-handbookslow-porting_index/ru/?checksum=f04c1fee7a92c1c9", "url": "https://translate-dev.freebsd.org/api/units/1811999/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-05-25T08:25:47.660861Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksporters-handbookslow-porting_index/ru/?format=api", "source": [ "Minimize the amount of non-functional whitespace changes in patches. It is common in the Open Source world for projects to share large amounts of a code base, but obey different style and indenting rules. When taking a working piece of functionality from one project to fix similar areas in another, please be careful: the resulting patch may be full of non-functional changes. It not only increases the size of the ports repository but makes it hard to find out what exactly caused the problem and what was changed at all." ], "previous_source": "", "target": [ "Минимизируйте количество нефункциональных изменений пробелов в патчах. В мире открытого исходного кода распространена практика, когда проекты используют обширные части кодовой базы, но следуют разным правилам стиля и отступов. При переносе работоспособного функционала из одного проекта для исправления аналогичных участков в другом будьте внимательны: итоговый патч может быть переполнен нефункциональными изменениями. Это не только увеличивает размер репозитория портов, но и затрудняет понимание того, что именно вызвало проблему и какие изменения были внесены." ], "id_hash": 8805333580560032928, "content_hash": 8805333580560032928, "location": "documentation/content/en/books/porters-handbook/slow-porting/_index.adoc:177", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 45, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 90, "source_unit": "https://translate-dev.freebsd.org/api/units/1238336/?format=api", "priority": 100, "id": 1812000, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksporters-handbookslow-porting_index/ru/?checksum=fa32d43d261964a0", "url": "https://translate-dev.freebsd.org/api/units/1812000/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-05-25T08:25:47.661396Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksporters-handbookslow-porting_index/ru/?format=api", "source": [ "If a file must be deleted, do it in the `post-extract` target rather than as part of the patch." ], "previous_source": "", "target": [ "Если файл необходимо удалить, сделайте это в цели `post-extract`, а не как часть исправления." ], "id_hash": 5742757689211051450, "content_hash": 5742757689211051450, "location": "documentation/content/en/books/porters-handbook/slow-porting/_index.adoc:179", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 46, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 19, "source_unit": "https://translate-dev.freebsd.org/api/units/1115182/?format=api", "priority": 100, "id": 1812001, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksporters-handbookslow-porting_index/ru/?checksum=cfb25fb120915dba", "url": "https://translate-dev.freebsd.org/api/units/1812001/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-05-25T08:25:47.662000Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksporters-handbookslow-porting_index/ru/?format=api", "source": [ "Manual Patch Generation" ], "previous_source": "", "target": [ "Ручное создание патчей" ], "id_hash": 8846445522596361380, "content_hash": 8846445522596361380, "location": "documentation/content/en/books/porters-handbook/slow-porting/_index.adoc:181", "context": "", "note": "type: Title ===", "flags": "no-wrap", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 47, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 3, "source_unit": "https://translate-dev.freebsd.org/api/units/1115184/?format=api", "priority": 100, "id": 1812002, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksporters-handbookslow-porting_index/ru/?checksum=fac4e355133374a4", "url": "https://translate-dev.freebsd.org/api/units/1812002/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-05-25T08:25:47.662531Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksporters-handbookslow-porting_index/ru/?format=api", "source": [ "Manual patch creation is usually not necessary. Automatic patch generation as described earlier in this section is the preferred method. However, manual patching may be required occasionally." ], "previous_source": "", "target": [ "Ручное создание патчей обычно не требуется. Предпочтительным методом является автоматическая генерация патчей, как описано ранее в этом разделе. Однако иногда может потребоваться ручное исправление." ], "id_hash": 3218989861568116704, "content_hash": 3218989861568116704, "location": "documentation/content/en/books/porters-handbook/slow-porting/_index.adoc:188", "context": "", "note": "type: delimited block = 4", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 48, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 27, "source_unit": "https://translate-dev.freebsd.org/api/units/1238338/?format=api", "priority": 100, "id": 1812003, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksporters-handbookslow-porting_index/ru/?checksum=acac26396259f7e0", "url": "https://translate-dev.freebsd.org/api/units/1812003/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-05-25T08:25:47.663041Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksporters-handbookslow-porting_index/ru/?format=api", "source": [ "Patches are saved into files named [.filename]#patch-*# where * indicates the pathname of the file that is patched, such as [.filename]#patch-Imakefile# or [.filename]#patch-src-config.h#. Patches with file names which do not start with [.filename]#patch-# will not be applied automatically." ], "previous_source": "", "target": [ "Патчи сохраняются в файлы с именами [.filename]#patch-*#, где * указывает на путь к файлу, который патчится, например [.filename]#patch-Imakefile# или [.filename]#patch-src-config.h#. Патчи с именами файлов, не начинающимися с [.filename]#patch-#, не будут применены автоматически." ], "id_hash": -7054813176998305706, "content_hash": -7054813176998305706, "location": "documentation/content/en/books/porters-handbook/slow-porting/_index.adoc:193", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 49, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 38, "source_unit": "https://translate-dev.freebsd.org/api/units/1115188/?format=api", "priority": 100, "id": 1812004, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksporters-handbookslow-porting_index/ru/?checksum=1e1844cb24456056", "url": "https://translate-dev.freebsd.org/api/units/1812004/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-05-25T08:25:47.663599Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksporters-handbookslow-porting_index/ru/?format=api", "source": [ "After the file has been modified, man:diff[1] is used to record the differences between the original and the modified version. `-u` causes man:diff[1] to produce \"unified\" diffs, the preferred form." ], "previous_source": "", "target": [ "После изменения файла используется man:diff[1] для записи различий между оригинальной и изменённой версиями. `-u` заставляет man:diff[1] выводить различия файлов в \"унифицированном\" формате (unified diffs), которые являются предпочтительным форматом." ], "id_hash": -2855853339292006225, "content_hash": -2855853339292006225, "location": "documentation/content/en/books/porters-handbook/slow-porting/_index.adoc:196", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 50, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 30, "source_unit": "https://translate-dev.freebsd.org/api/units/1238340/?format=api", "priority": 100, "id": 1812005, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksporters-handbookslow-porting_index/ru/?checksum=585df884d4e308af", "url": "https://translate-dev.freebsd.org/api/units/1812005/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-05-25T08:25:47.664156Z" } ] }