git: 9368c9279b - main - Split Russian porter's handbook
Sergio Carlavilla Delgado <[email protected]>
| Newsgroups | gmane.os.freebsd.devel.cvs.doc |
|---|---|
| Message-ID | <[email protected]> |
The branch main has been updated by carlavilla: URL: https://cgit.FreeBSD.org/doc/commit/?id=9368c9279be9891602c4630228a8a4ced8f1c302 commit 9368c9279be9891602c4630228a8a4ced8f1c302 Author: Sergio Carlavilla Delgado <[email protected]> AuthorDate: 2021-11-27 12:38:04 +0000 Commit: Sergio Carlavilla Delgado <[email protected]> CommitDate: 2021-11-27 12:38:04 +0000 Split Russian porter's handbook --- .../content/ru/books/porters-handbook/_index.adoc | 26 +- .../content/ru/books/porters-handbook/book.adoc | 68 +++ .../ru/books/porters-handbook/chapters-order.adoc | 32 +- .../keeping-up/{chapter.adoc => _index.adoc} | 0 .../makefiles/{chapter.adoc => _index.adoc} | 10 +- .../new-port/{chapter.adoc => _index.adoc} | 2 +- .../pkg-files/{chapter.adoc => _index.adoc} | 2 +- .../plist/{chapter.adoc => _index.adoc} | 4 +- .../porting-dads/{chapter.adoc => _index.adoc} | 2 +- .../porting-samplem/{chapter.adoc => _index.adoc} | 0 .../porting-why/{chapter.adoc => _index.adoc} | 0 .../quick-porting/{chapter.adoc => _index.adoc} | 6 +- .../security/{chapter.adoc => _index.adoc} | 0 .../slow-porting/{chapter.adoc => _index.adoc} | 2 +- .../special/{chapter.adoc => _index.adoc} | 10 +- .../testing/{chapter.adoc => _index.adoc} | 6 +- .../upgrading/{chapter.adoc => _index.adoc} | 4 +- .../uses/{chapter.adoc => _index.adoc} | 579 +++++++++++++++------ .../versions/{chapter.adoc => _index.adoc} | 0 19 files changed, 521 insertions(+), 232 deletions(-) diff --git a/documentation/content/ru/books/porters-handbook/_index.adoc b/documentation/content/ru/books/porters-handbook/_index.adoc index 1b6f7d092c..0395f5d5e7 100644 --- a/documentation/content/ru/books/porters-handbook/_index.adoc +++ b/documentation/content/ru/books/porters-handbook/_index.adoc @@ -4,21 +4,22 @@ authors: - author: The FreeBSD Documentation Project copyright: 2000-2020 The FreeBSD Documentation Project trademarks: ["freebsd", "sun", "unix", "general"] +next: books/porters-handbook/porting-why +add_single_page_link: true isIndex: true --- = Ð ÑководÑÑво FreeBSD по ÑÐ¾Ð·Ð´Ð°Ð½Ð¸Ñ Ð¿Ð¾ÑÑов :doctype: book :toc: macro -:toclevels: 2 +:toclevels: 1 :icons: font :sectnums: :sectnumlevels: 6 :partnums: :source-highlighter: rouge :experimental: -:book: true -:pdf: false +:images-path: books/porters-handbook/ ifdef::env-beastie[] ifdef::backend-html5[] @@ -44,25 +45,8 @@ endif::[] ''' -toc::[] +include::{chapters-path}toc.adoc[] include::{chapters-path}toc-tables.adoc[] include::{chapters-path}toc-examples.adoc[] - -include::{chapters-path}porting-why/chapter.adoc[leveloffset=+1] -include::{chapters-path}new-port/chapter.adoc[leveloffset=+1] -include::{chapters-path}quick-porting/chapter.adoc[leveloffset=+1] -include::{chapters-path}slow-porting/chapter.adoc[leveloffset=+1] -include::{chapters-path}makefiles/chapter.adoc[leveloffset=+1] -include::{chapters-path}special/chapter.adoc[leveloffset=+1] -include::{chapters-path}plist/chapter.adoc[leveloffset=+1] -include::{chapters-path}pkg-files/chapter.adoc[leveloffset=+1] -include::{chapters-path}testing/chapter.adoc[leveloffset=+1] -include::{chapters-path}upgrading/chapter.adoc[leveloffset=+1] -include::{chapters-path}security/chapter.adoc[leveloffset=+1] -include::{chapters-path}porting-dads/chapter.adoc[leveloffset=+1] -include::{chapters-path}porting-samplem/chapter.adoc[leveloffset=+1] -include::{chapters-path}keeping-up/chapter.adoc[leveloffset=+1] -include::{chapters-path}uses/chapter.adoc[leveloffset=+1] -include::{chapters-path}versions/chapter.adoc[leveloffset=+1] diff --git a/documentation/content/ru/books/porters-handbook/book.adoc b/documentation/content/ru/books/porters-handbook/book.adoc new file mode 100644 index 0000000000..c10afd18bc --- /dev/null +++ b/documentation/content/ru/books/porters-handbook/book.adoc @@ -0,0 +1,68 @@ +--- +title: Ð ÑководÑÑво FreeBSD по ÑÐ¾Ð·Ð´Ð°Ð½Ð¸Ñ Ð¿Ð¾ÑÑов +authors: + - author: The FreeBSD Documentation Project +copyright: 2000-2020 The FreeBSD Documentation Project +trademarks: ["freebsd", "sun", "unix", "general"] +add_split_page_link: true +--- + += FreeBSD Porter's Handbook +:doctype: book +:toc: macro +:toclevels: 2 +:icons: font +:sectnums: +:sectnumlevels: 6 +:partnums: +:source-highlighter: rouge +:experimental: +:book: true +:pdf: false + +ifdef::env-beastie[] +ifdef::backend-html5[] +include::shared/authors.adoc[] +include::shared/mirrors.adoc[] +include::shared/releases.adoc[] +include::shared/attributes/attributes-{{% lang %}}.adoc[] +include::shared/{{% lang %}}/teams.adoc[] +include::shared/{{% lang %}}/mailing-lists.adoc[] +include::shared/{{% lang %}}/urls.adoc[] +:chapters-path: content/{{% lang %}}/books/porters-handbook/ +endif::[] +ifdef::backend-pdf,backend-epub3[] +:chapters-path: +include::../../../../../shared/asciidoctor.adoc[] +endif::[] +endif::[] + +ifndef::env-beastie[] +:chapters-path: +include::../../../../../shared/asciidoctor.adoc[] +endif::[] + +''' + +toc::[] + +include::{chapters-path}toc-tables.adoc[] + +include::{chapters-path}toc-examples.adoc[] + +include::{chapters-path}porting-why/_index.adoc[leveloffset=+1] +include::{chapters-path}new-port/_index.adoc[leveloffset=+1] +include::{chapters-path}quick-porting/_index.adoc[leveloffset=+1] +include::{chapters-path}slow-porting/_index.adoc[leveloffset=+1] +include::{chapters-path}makefiles/_index.adoc[leveloffset=+1] +include::{chapters-path}special/_index.adoc[leveloffset=+1] +include::{chapters-path}plist/_index.adoc[leveloffset=+1] +include::{chapters-path}pkg-files/_index.adoc[leveloffset=+1] +include::{chapters-path}testing/_index.adoc[leveloffset=+1] +include::{chapters-path}upgrading/_index.adoc[leveloffset=+1] +include::{chapters-path}security/_index.adoc[leveloffset=+1] +include::{chapters-path}porting-dads/_index.adoc[leveloffset=+1] +include::{chapters-path}porting-samplem/_index.adoc[leveloffset=+1] +include::{chapters-path}keeping-up/_index.adoc[leveloffset=+1] +include::{chapters-path}uses/_index.adoc[leveloffset=+1] +include::{chapters-path}versions/_index.adoc[leveloffset=+1] diff --git a/documentation/content/ru/books/porters-handbook/chapters-order.adoc b/documentation/content/ru/books/porters-handbook/chapters-order.adoc index f7a766c744..80ccba6333 100644 --- a/documentation/content/ru/books/porters-handbook/chapters-order.adoc +++ b/documentation/content/ru/books/porters-handbook/chapters-order.adoc @@ -1,16 +1,16 @@ -porting-why/chapter.adoc -new-port/chapter.adoc -quick-porting/chapter.adoc -slow-porting/chapter.adoc -makefiles/chapter.adoc -special/chapter.adoc -plist/chapter.adoc -pkg-files/chapter.adoc -testing/chapter.adoc -upgrading/chapter.adoc -security/chapter.adoc -porting-dads/chapter.adoc -porting-samplem/chapter.adoc -keeping-up/chapter.adoc -uses/chapter.adoc -versions/chapter.adoc +porting-why/_index.adoc +new-port/_index.adoc +quick-porting/_index.adoc +slow-porting/_index.adoc +makefiles/_index.adoc +special/_index.adoc +plist/_index.adoc +pkg-files/_index.adoc +testing/_index.adoc +upgrading/_index.adoc +security/_index.adoc +porting-dads/_index.adoc +porting-samplem/_index.adoc +keeping-up/_index.adoc +uses/_index.adoc +versions/_index.adoc diff --git a/documentation/content/ru/books/porters-handbook/keeping-up/chapter.adoc b/documentation/content/ru/books/porters-handbook/keeping-up/_index.adoc similarity index 100% rename from documentation/content/ru/books/porters-handbook/keeping-up/chapter.adoc rename to documentation/content/ru/books/porters-handbook/keeping-up/_index.adoc diff --git a/documentation/content/ru/books/porters-handbook/makefiles/chapter.adoc b/documentation/content/ru/books/porters-handbook/makefiles/_index.adoc similarity index 98% rename from documentation/content/ru/books/porters-handbook/makefiles/chapter.adoc rename to documentation/content/ru/books/porters-handbook/makefiles/_index.adoc index 721539ccb6..a8cc2643e9 100644 --- a/documentation/content/ru/books/porters-handbook/makefiles/chapter.adoc +++ b/documentation/content/ru/books/porters-handbook/makefiles/_index.adoc @@ -1176,7 +1176,7 @@ PATCHFILES= patch1:test ** `fetch-list`: ÑабоÑÐ°ÐµÑ Ñак же, как ÑÑаÑÐ°Ñ ÑÐµÐ»Ñ `fetch-list` Ñ Ñем иÑклÑÑением, ÑÑо она гÑÑппиÑÑеÑ, как и `do-fetch`. ** `master-sites` и `patch-sites`: (неÑовмеÑÑÐ¸Ð¼Ñ Ñо ÑÑаÑÑми веÑÑиÑми) ÑолÑко возвÑаÑаÑÑ ÑлеменÑÑ Ð³ÑÑÐ¿Ð¿Ñ `DEFAULT`; на Ñамом деле они вÑполнÑÑÑ Ñели `master-sites-default` и `patch-sites-default` ÑооÑвеÑÑÑвенно. + -Ðолее Ñого, иÑполÑзование Ñелей `master-sites-all` или `patch-sites-all` пÑедпоÑÑиÑелÑно Ð´Ð»Ñ Ð½ÐµÐ¿Ð¾ÑÑедÑÑвенной пÑовеÑки `MASTER_SITES` или `PATCH_SITES`. Также ÑабоÑа пÑÑмой пÑовеÑки в поÑледÑÑÑÐ¸Ñ Ð²ÐµÑÑиÑÑ Ð½Ðµ гаÑанÑиÑÑеÑÑÑ. ÐоÑмоÑÑиÑе <<porting-master-sites-n-new-port-targets-master-sites-all>> Ð´Ð»Ñ Ð¿Ð¾Ð»ÑÑÐµÐ½Ð¸Ñ Ð±Ð¾Ð»ÐµÐµ дополниÑелÑной инÑоÑмаÑии об ÑÑÐ¸Ñ Ð½Ð¾Ð²ÑÑ ÑелÑÑ . +Ðолее Ñого, иÑполÑзование Ñелей `master-sites-all` или `patch-sites-all` пÑедпоÑÑиÑелÑно Ð´Ð»Ñ Ð½ÐµÐ¿Ð¾ÑÑедÑÑвенной пÑовеÑки `MASTER_SITES` или `PATCH_SITES`. Также ÑабоÑа пÑÑмой пÑовеÑки в поÑледÑÑÑÐ¸Ñ Ð²ÐµÑÑиÑÑ Ð½Ðµ гаÑанÑиÑÑеÑÑÑ. ÐоÑмоÑÑиÑе <<porting-master-sites-n-new-port-targets-master-sites-all, B>> Ð´Ð»Ñ Ð¿Ð¾Ð»ÑÑÐµÐ½Ð¸Ñ Ð±Ð¾Ð»ÐµÐµ дополниÑелÑной инÑоÑмаÑии об ÑÑÐ¸Ñ Ð½Ð¾Ð²ÑÑ ÑелÑÑ . . ÐовÑе Ñели поÑÑÑÐ¾ÐµÐ½Ð¸Ñ Ð¿Ð¾ÑÑов .. ÐмеÑÑÑÑ Ñели `master-sites-_n_` и `patch-sites-_n_`, коÑоÑÑе бÑдÑÑ Ð¿ÐµÑеÑиÑлÑÑÑ ÑлеменÑÑ ÑооÑвеÑÑÑвÑÑÑей гÑÑÐ¿Ð¿Ñ _n_ из `MASTER_SITES` и `PATCH_SITES` ÑооÑвеÑÑÑвенно. РпÑимеÑÑ, `master-sites-DEFAULT` и `patch-sites-DEFAULT` обе бÑдÑÑ Ð²Ð¾Ð·Ð²ÑаÑаÑÑ ÑлеменÑÑ Ð³ÑÑÐ¿Ð¿Ñ `DEFAULT`, `master-sites-test` и `patch-sites-test` гÑÑÐ¿Ð¿Ñ `test` и Ñак далее. @@ -1254,7 +1254,7 @@ COMMENT= Cat chasing a mouse all over the screen [[makefile-portscout]] == `PORTSCOUT` -Portscout ÑвлÑÐµÑ Ñобой авÑомаÑизиÑованное ÑÑедÑÑво пÑовеÑки доÑÑÑпноÑÑи диÑÑÑибÑÑивнÑÑ Ñайлов Ð´Ð»Ñ ÐоллекÑии ÐоÑÑов FreeBSD, подÑобное опиÑание коÑоÑого пÑедоÑÑавлÑÐµÑ <<distfile-survey>>. +Portscout ÑвлÑÐµÑ Ñобой авÑомаÑизиÑованное ÑÑедÑÑво пÑовеÑки доÑÑÑпноÑÑи диÑÑÑибÑÑивнÑÑ Ñайлов Ð´Ð»Ñ ÐоллекÑии ÐоÑÑов FreeBSD, подÑобное опиÑание коÑоÑого пÑедоÑÑавлÑÐµÑ crossref:keeping-up[distfile-survey, Portscout: ÑÐºÐ°Ð½ÐµÑ Ð´Ð¸ÑÑÑибÑÑивнÑÑ Ñайлов поÑÑов FreeBSD]. ÐеÑÐµÐ¼ÐµÐ½Ð½Ð°Ñ `PORTSCOUT` задаÑÑ ÑпеÑиалÑнÑе ÑÑловиÑ, огÑаниÑиваÑÑие ÑабоÑÑ Portscout - ÑканеÑа диÑÑÑибÑÑивнÑÑ Ñайлов. @@ -1456,7 +1456,7 @@ USE_GCC=X.Y |ÐÐ»Ñ ÑбоÑки поÑÑа ÑÑебÑеÑÑÑ GCC (gcc или {gcc-plus-plus}). ÐекоÑоÑÑм поÑÑам Ð¿Ð¾Ð´Ñ Ð¾Ð´Ð¸Ñ Ð»ÑÐ±Ð°Ñ Ð²ÐµÑÑиÑ, Ð´Ð»Ñ Ð´ÑÑÐ³Ð¸Ñ ÑÑебÑÑÑÑÑ Ð¿Ð¾Ñледние ÑовÑеменнÑе веÑÑии. ÐбÑÑно иÑполÑзÑеÑÑÑ Ñо знаÑением `any` (в ÑÑом ÑлÑÑае иÑполÑзÑеÑÑÑ Ð²ÑÑÑоеннÑй GCC в ÑÐµÑ Ð²ÐµÑÑиÑÑ FreeBSD, в ÑоÑÑав коÑоÑÑÑ Ð¾Ð½ вÑÑ ÐµÑÑ Ð²Ñ Ð¾Ð´Ð¸Ñ, или ÑÑÑанавливаеÑÑÑ Ð¿Ð¾ÑÑ `lang/gcc`, когда Clang ÑвлÑеÑÑÑ ÐºÐ¾Ð¼Ð¿Ð¸Ð»ÑÑоÑом C/C++ по ÑмолÑаниÑ) или `yes` (вÑегда иÑполÑзÑеÑÑÑ ÑÑабилÑÐ½Ð°Ñ ÑовÑÐµÐ¼ÐµÐ½Ð½Ð°Ñ Ð²ÐµÑÑÐ¸Ñ GCC из поÑÑа `lang/gcc`). Также Ð ² знаÑении пеÑеменной можно ÑказаÑÑ ÑоÑнÑÑ Ð²ÐµÑÑиÑ, напÑÐ¸Ð¼ÐµÑ `4.7`. ÐинималÑно допÑÑÑимÑÑ Ð²ÐµÑÑÐ¸Ñ Ð¼Ð¾Ð¶Ð½Ð¾ ÑказаÑÑ ÐºÐ°Ðº `4.6+`. GCC из оÑновной ÑиÑÑÐµÐ¼Ñ Ð¸ÑполÑзÑеÑÑÑ Ð² ÑлÑÑае, еÑли его веÑÑÐ¸Ñ ÑдовлеÑвоÑÑÐµÑ Ð·Ð°Ð¿ÑоÑенной, инаÑе ÑобиÑаеÑÑÑ Ð¿Ð¾Ð´Ñ Ð¾Ð´ÑÑÐ°Ñ Ð²ÐµÑÑии компилÑÑоÑа из поÑÑа Ñ ÑооÑвеÑÑÑвÑÑÑей коÑÑекÑией пеÑеменнÑÑ `CC` и `CXX`. |=== -ÐеÑеменнÑе, оÑноÑÑÑиеÑÑ Ðº gmake и ÑÑенаÑÐ¸Ñ [.filename]#configure#, опиÑÐ°Ð½Ñ Ð² <<building>>, а autoconf, automake и libtool опиÑÐ°Ð½Ñ Ð² <<using-autotools>>. ÐеÑеменнÑе, ÑвÑзаннÑе Ñ Perl, опиÑÐ°Ð½Ñ Ð² <<using-perl>>. ÐеÑеменнÑе X11 пеÑеÑиÑÐ»ÐµÐ½Ñ Ð² <<using-x11>>. <<using-gnome>> ÑабоÑÐ°ÐµÑ Ñ Ð¿ÐµÑеменнÑми GNOME и <<using-kde>> Ñ KDE. <<using-java>> опиÑÑÐ²Ð°ÐµÑ Ð¿ÐµÑеменнÑе Java, а <<using-php>> ÑодеÑÐ¶Ð¸Ñ Ð¸Ð½ÑоÑмаÑÐ¸Ñ Ð¾Ð± Apache, PHP и модÑлÑÑ PEAR. Python обÑÑждаеÑÑÑ Ð² <<using-python>>, а Ruby в <<using-ruby>>. <<using-sdl>> пÑедоÑÑавлÑÐµÑ Ð¿ÐµÑеменнÑе, иÑполÑзÑемÑе Ð´Ð»Ñ Ð¿Ñиложений SDL, Ð ¸, наконеÑ, <<using-xfce>> ÑодеÑÐ¶Ð¸Ñ Ð¸Ð½ÑоÑмаÑÐ¸Ñ Ð¾ пÑиложении Xfce. +ÐеÑеменнÑе, оÑноÑÑÑиеÑÑ Ðº gmake и ÑÑенаÑÐ¸Ñ [.filename]#configure#, опиÑÐ°Ð½Ñ Ð² crossref:special[building, ÐÐµÑ Ð°Ð½Ð¸Ð·Ð¼Ñ Ð¿Ð¾ÑÑÑоениÑ], а autoconf, automake и libtool опиÑÐ°Ð½Ñ Ð² crossref:special[using-autotools, ÐÑполÑзование GNU Autotools]. ÐеÑеменнÑе, ÑвÑзаннÑе Ñ Perl, опиÑÐ°Ð½Ñ Ð² crossref:special[using-perl, ÐÑполÑзование Perl]. ÐеÑеменнÑе X11 пеÑеÑиÑÐ»ÐµÐ½Ñ Ð² crossref:special[using-x11, ÐÑполÑзование X11]. crossref:special[using-gnome, ÐÑполÑзование GNOME] ÑабоÑÐ°ÐµÑ Ñ Ð¿ÐµÑеменнÑми GNOME и crossref:special[using-kde, ÐÑполÑзование KDE] Ñ KDE. crossref:special[using-java, ÐÑполÑзование Jav a] опиÑÑÐ²Ð°ÐµÑ Ð¿ÐµÑеменнÑе Java, а crossref:special[using-php, Ðеб-пÑиложениÑ, Apache и PHP] ÑодеÑÐ¶Ð¸Ñ Ð¸Ð½ÑоÑмаÑÐ¸Ñ Ð¾Ð± Apache, PHP и модÑлÑÑ P EAR. Python обÑÑждаеÑÑÑ Ð² crossref:special[using-python, ÐÑполÑзование Python], а Ruby в crossref:special[using-ruby, ÐÑполÑзование Ruby]. crossref:special[using-sdl, ÐÑполÑзование SDL] пÑедоÑÑавлÑÐµÑ Ð¿ÐµÑеменнÑе, иÑполÑзÑемÑе Ð´Ð»Ñ Ð¿Ñиложений SDL, и, наконеÑ, crossref:special[using-xfce, ÐÑполÑзование Xfce] ÑодеÑÐ¶Ð¸Ñ Ð¸Ð½ÑоÑмаÑÐ¸Ñ Ð¾ пÑиложении Xfce. === ÐинималÑÐ½Ð°Ñ Ð²ÐµÑÑÐ¸Ñ Ð·Ð°Ð²Ð¸ÑимоÑÑи @@ -2218,7 +2218,7 @@ NO_WRKSUBDIR= yes [NOTE] ==== -ÐеÑеменнÑе ÑегиÑÑÑаÑии конÑликÑа авÑомаÑиÑеÑки опÑеделÑÑÑ Ð¿ÐµÑеменнÑÑ `IGNORE`, коÑоÑÐ°Ñ Ð±Ð¾Ð»ÐµÐµ подÑобно опиÑана в <<dads-noinstall>>. +ÐеÑеменнÑе ÑегиÑÑÑаÑии конÑликÑа авÑомаÑиÑеÑки опÑеделÑÑÑ Ð¿ÐµÑеменнÑÑ `IGNORE`, коÑоÑÐ°Ñ Ð±Ð¾Ð»ÐµÐµ подÑобно опиÑана в crossref:porting-dads[dads-noinstall, "ÐомеÑка неÑÑÑанавливаемого поÑÑа как `BROKEN`, `FORBIDDEN` или `IGNORE` "]. ==== ÐÑи Ñдалении одного из конÑликÑÑÑÑÐ¸Ñ Ð¿Ð¾ÑÑов ÑелеÑообÑазно ÑÐ¾Ñ ÑаниÑÑ Ð·Ð°Ð¿Ð¸Ñи `CONFLICTS` в ÑÐµÑ Ð´ÑÑÐ³Ð¸Ñ Ð¿Ð¾ÑÑÐ°Ñ Ð² ÑеÑении неÑколÑÐºÐ¸Ñ Ð¼ÐµÑÑÑев, ÑÑÐ¾Ð±Ñ Ð¿Ð¾Ð·Ð°Ð±Ð¾ÑиÑÑÑÑ Ð¾ ÑÐµÑ Ð¿Ð¾Ð»ÑзоваÑелей, коÑоÑÑе обновлÑÑÑÑÑ Ð¾Ñ ÑлÑÑÐ°Ñ Ðº ÑлÑÑаÑ. @@ -2321,7 +2321,7 @@ post-install: СоздайÑе Ð´Ð»Ñ Ð²Ð°Ñего поÑÑа новÑй каÑалог. ÐÐ¼Ñ ÐºÐ°Ñалога должно ÑооÑвеÑÑÑвоваÑÑ ÑомÑ, ÑÑо пÑедÑÑавлÑÐµÑ Ð¸Ð· ÑÐµÐ±Ñ Ð¿Ð¾ÑÑ. ÐбÑÑно ÑÑо ознаÑÐ°ÐµÑ `PORTNAME`. Ðднако, еÑли Ð²Ñ Ð´ÑмаеÑе, ÑÑо полÑзоваÑÐµÐ»Ñ Ð·Ð°Ñ Ð¾ÑÐµÑ Ð¸Ð¼ÐµÑÑ ÑазнÑе веÑÑии поÑÑа, ÑÑÑановленнÑе одновÑеменно, Ñо Ð²Ñ Ð¼Ð¾Ð¶ÐµÑе иÑполÑзоваÑÑ Ð¿Ð¾Ð»Ð½Ð¾Ðµ Ð¸Ð¼Ñ `PKGNAME`. -ÐоÑколÑÐºÑ ÑÑÑанавливаÑÑÑÑ ÑолÑко ÑайлÑ, пеÑеÑиÑленнÑе в [.filename]#pkg-plist#, безопаÑнÑм ÑпоÑобом бÑÐ´ÐµÑ ÑÑÑанавливаÑÑ Ð´Ð¾ÐºÑменÑаÑÐ¸Ñ Ð² `STAGEDIR` вÑегда (ÑмоÑÑиÑе <<staging>>). СледоваÑелÑно, блоки `.if` нÑÐ¶Ð½Ñ ÑолÑко Ð´Ð»Ñ Ñайлов доÑÑаÑоÑно болÑÑого ÑазмеÑа, ÑÑÑановка коÑоÑÑÑ Ð²Ð»ÐµÑÑÑ Ð·Ð½Ð°ÑиÑелÑнÑе накладнÑе ÑаÑÑ Ð¾Ð´Ñ Ð½Ð° опеÑаÑии ввода/вÑвода. +ÐоÑколÑÐºÑ ÑÑÑанавливаÑÑÑÑ ÑолÑко ÑайлÑ, пеÑеÑиÑленнÑе в [.filename]#pkg-plist#, безопаÑнÑм ÑпоÑобом бÑÐ´ÐµÑ ÑÑÑанавливаÑÑ Ð´Ð¾ÐºÑменÑаÑÐ¸Ñ Ð² `STAGEDIR` вÑегда (ÑмоÑÑиÑе crossref:special[staging, Staging]). СледоваÑелÑно, блоки `.if` нÑÐ¶Ð½Ñ ÑолÑко Ð´Ð»Ñ Ñайлов доÑÑаÑоÑно болÑÑого ÑазмеÑа, ÑÑÑановка коÑоÑÑÑ Ð²Ð»ÐµÑÑÑ Ð·Ð½Ð°ÑиÑелÑнÑе накладнÑе ÑаÑÑ Ð¾Ð´Ñ Ð½Ð° опеÑаÑии ввода/вÑвода. [.programlisting] .... diff --git a/documentation/content/ru/books/porters-handbook/new-port/chapter.adoc b/documentation/content/ru/books/porters-handbook/new-port/_index.adoc similarity index 97% rename from documentation/content/ru/books/porters-handbook/new-port/chapter.adoc rename to documentation/content/ru/books/porters-handbook/new-port/_index.adoc index 43b61bce99..e4a0c67481 100644 --- a/documentation/content/ru/books/porters-handbook/new-port/chapter.adoc +++ b/documentation/content/ru/books/porters-handbook/new-port/_index.adoc @@ -44,7 +44,7 @@ endif::[] ÐÑак, Ð²Ñ Ð¸Ð½ÑеÑеÑÑеÑеÑÑ, как ÑоздаÑÑ ÑобÑÑвеннÑй поÑÑ Ð¸Ð»Ð¸ обновиÑÑ ÑÑÑеÑÑвÑÑÑий? Ðеликолепно! -Ðиже Ð½Ð°Ñ Ð¾Ð´ÑÑÑÑ Ð½ÐµÐºÐ¾ÑоÑÑе ÑÐºÐ°Ð·Ð°Ð½Ð¸Ñ Ð¿Ð¾ ÑÐ¾Ð·Ð´Ð°Ð½Ð¸Ñ Ð½Ð¾Ð²Ð¾Ð³Ð¾ поÑÑа Ð´Ð»Ñ FreeBSD. ÐÑли Ð²Ñ Ñ Ð¾ÑиÑе обновиÑÑ ÑÑÑеÑÑвÑÑÑий поÑÑ, Ð²Ñ Ð´Ð¾Ð»Ð¶Ð½Ñ Ð¿ÑоÑеÑÑÑ Ð¸Ñ , а заÑем <<port-upgrading>>. +Ðиже Ð½Ð°Ñ Ð¾Ð´ÑÑÑÑ Ð½ÐµÐºÐ¾ÑоÑÑе ÑÐºÐ°Ð·Ð°Ð½Ð¸Ñ Ð¿Ð¾ ÑÐ¾Ð·Ð´Ð°Ð½Ð¸Ñ Ð½Ð¾Ð²Ð¾Ð³Ð¾ поÑÑа Ð´Ð»Ñ FreeBSD. ÐÑли Ð²Ñ Ñ Ð¾ÑиÑе обновиÑÑ ÑÑÑеÑÑвÑÑÑий поÑÑ, Ð²Ñ Ð´Ð¾Ð»Ð¶Ð½Ñ Ð¿ÑоÑеÑÑÑ Ð¸Ñ , а заÑем crossref:upgrading[port-upgrading, Ðбновление оÑделÑного поÑÑа]. ÐÑли ÑÑÐ¾Ñ Ð´Ð¾ÐºÑÐ¼ÐµÐ½Ñ Ð½ÐµÐ´Ð¾ÑÑаÑоÑно подÑобен, Ð²Ñ Ð´Ð¾Ð»Ð¶Ð½Ñ Ð¾Ð±ÑаÑиÑÑÑÑ Ðº ÑÐ°Ð¹Ð»Ñ [.filename]#/usr/ports/Mk/bsd.port.mk#, коÑоÑÑй вклÑÑаеÑÑÑ Ð² make-Ñайл каждого поÑÑа. Ðн Ñ Ð¾ÑоÑо пÑокомменÑиÑован, и даже еÑли Ð²Ñ Ð½Ðµ занимаеÑеÑÑ Ñ Ð°ÐºÐ¸Ð½Ð³Ð¾Ð¼ make-Ñайлов каждодневно, из него Ð²Ñ ÑможеÑе ÑзнаÑÑ Ð¼Ð½Ð¾Ð³Ð¾ нового. ÐÑоме Ñого, конкÑеÑнÑе вопÑоÑÑ Ð¼Ð¾Ð¶Ð½Ð¾ задаÑÑ, поÑлав пиÑÑмо на адÑÐµÑ {freebsd-ports}. diff --git a/documentation/content/ru/books/porters-handbook/pkg-files/chapter.adoc b/documentation/content/ru/books/porters-handbook/pkg-files/_index.adoc similarity index 99% rename from documentation/content/ru/books/porters-handbook/pkg-files/chapter.adoc rename to documentation/content/ru/books/porters-handbook/pkg-files/_index.adoc index 5f98929394..7b641bf91b 100644 --- a/documentation/content/ru/books/porters-handbook/pkg-files/chapter.adoc +++ b/documentation/content/ru/books/porters-handbook/pkg-files/_index.adoc @@ -5,7 +5,7 @@ next: books/porters-handbook/testing --- [[pkg-files]] -= Ð¤Ð°Ð¹Ð»Ñ [.filename]#pkg-*# += Ð¤Ð°Ð¹Ð»Ñ pkg-* :doctype: book :toc: macro :toclevels: 1 diff --git a/documentation/content/ru/books/porters-handbook/plist/chapter.adoc b/documentation/content/ru/books/porters-handbook/plist/_index.adoc similarity index 99% rename from documentation/content/ru/books/porters-handbook/plist/chapter.adoc rename to documentation/content/ru/books/porters-handbook/plist/_index.adoc index db57d34ca3..1f84971b10 100644 --- a/documentation/content/ru/books/porters-handbook/plist/chapter.adoc +++ b/documentation/content/ru/books/porters-handbook/plist/_index.adoc @@ -1,11 +1,11 @@ --- -title: Ðлава 7. ÐÑодвинÑÑÑе пÑакÑики [.filename]#pkg-plist# +title: Ðлава 7. ÐÑодвинÑÑÑе пÑакÑики pkg-plist prev: books/porters-handbook/special next: books/porters-handbook/pkg-files --- [[plist]] -= ÐÑодвинÑÑÑе пÑакÑики [.filename]#pkg-plist# += ÐÑодвинÑÑÑе пÑакÑики pkg-plist :doctype: book :toc: macro :toclevels: 1 diff --git a/documentation/content/ru/books/porters-handbook/porting-dads/chapter.adoc b/documentation/content/ru/books/porters-handbook/porting-dads/_index.adoc similarity index 99% rename from documentation/content/ru/books/porters-handbook/porting-dads/chapter.adoc rename to documentation/content/ru/books/porters-handbook/porting-dads/_index.adoc index 1960a211a4..28f6049c6a 100644 --- a/documentation/content/ru/books/porters-handbook/porting-dads/chapter.adoc +++ b/documentation/content/ru/books/porters-handbook/porting-dads/_index.adoc @@ -348,7 +348,7 @@ IGNORE= unsupported on recent versions ÐÑавилÑнÑм ÑпоÑобом подаÑÑ Ñигнал Ð´Ð»Ñ [.filename]#Makefile# о Ñом, ÑÑо поÑÑ Ð½Ðµ Ð¼Ð¾Ð¶ÐµÑ Ð±ÑÑÑ ÑÑÑановлен из-за какого-Ñо внеÑнего ÑакÑоÑа (напÑимеÑ, полÑзоваÑÐµÐ»Ñ Ñказал недопÑÑÑимÑÑ ÐºÐ¾Ð¼Ð±Ð¸Ð½Ð°ÑÐ¸Ñ Ð¾Ð¿Ñий поÑÑÑоениÑ), ÑвлÑеÑÑÑ ÑÑÑановка непÑÑÑого знаÑÐµÐ½Ð¸Ñ Ð´Ð»Ñ `IGNORE`. ÐÑо знаÑение бÑÐ´ÐµÑ ÑÑоÑмаÑиÑовано и показано полÑзоваÑÐµÐ»Ñ Ð²Ð¾ вÑÐµÐ¼Ñ `make install`. -ÐÑполÑзование Ð´Ð»Ñ ÑÑÐ¸Ñ Ñелей `.error` ÑвлÑеÑÑÑ ÑаÑпÑоÑÑÑаненной оÑибкой. ÐÑоблема в Ñом, ÑÑо в ÑÑой ÑиÑÑаÑии бÑдÑÑ Ð¿Ð¾Ð²ÑÐµÐ¶Ð´ÐµÐ½Ñ Ð¼Ð½Ð¾Ð³Ð¸Ðµ инÑÑÑÑменÑÑ Ð°Ð²ÑомаÑизаÑии, ÑабоÑаÑÑие Ñ Ð´ÐµÑевом поÑÑов. ÐаиболÑÑим обÑазом ÑÑо ÑаÑпÑоÑÑÑанено пÑи попÑÑке поÑÑÑоиÑÑ [.filename]#/usr/ports/INDEX# (ÑмоÑÑиÑе <<make-describe>>). Тем не менее, даже более пÑоÑÑÑе командÑ, Ñакие как `make maintainer`, в ÑÑом ÑлÑÑае Ñакже веÑнÑÑ Ð¾ÑибкÑ. ÐÑо не ÑвлÑеÑÑÑ Ð¿ÑиемлемÑм. +ÐÑполÑзование Ð´Ð»Ñ ÑÑÐ¸Ñ Ñелей `.error` ÑвлÑеÑÑÑ ÑаÑпÑоÑÑÑаненной оÑибкой. ÐÑоблема в Ñом, ÑÑо в ÑÑой ÑиÑÑаÑии бÑдÑÑ Ð¿Ð¾Ð²ÑÐµÐ¶Ð´ÐµÐ½Ñ Ð¼Ð½Ð¾Ð³Ð¸Ðµ инÑÑÑÑменÑÑ Ð°Ð²ÑомаÑизаÑии, ÑабоÑаÑÑие Ñ Ð´ÐµÑевом поÑÑов. ÐаиболÑÑим обÑазом ÑÑо ÑаÑпÑоÑÑÑанено пÑи попÑÑке поÑÑÑоиÑÑ [.filename]#/usr/ports/INDEX# (ÑмоÑÑиÑе crossref:testing[make-describe, ÐапÑÑк `make describe`]). Тем не менее, даже более пÑоÑÑÑе командÑ, Ñакие как `make maintainer`, в ÑÑом ÑлÑÑае Ñакже веÑнÑÑ Ð¾ÑибкÑ. ÐÑо не ÑвлÑеÑÑÑ Ð¿ÑиемлемÑм. [[dot-error-breaks-index]] .Ðак избегаÑÑ Ð¸ÑполÑÐ·Ð¾Ð²Ð°Ð½Ð¸Ñ `.error` diff --git a/documentation/content/ru/books/porters-handbook/porting-samplem/chapter.adoc b/documentation/content/ru/books/porters-handbook/porting-samplem/_index.adoc similarity index 100% rename from documentation/content/ru/books/porters-handbook/porting-samplem/chapter.adoc rename to documentation/content/ru/books/porters-handbook/porting-samplem/_index.adoc diff --git a/documentation/content/ru/books/porters-handbook/porting-why/chapter.adoc b/documentation/content/ru/books/porters-handbook/porting-why/_index.adoc similarity index 100% rename from documentation/content/ru/books/porters-handbook/porting-why/chapter.adoc rename to documentation/content/ru/books/porters-handbook/porting-why/_index.adoc diff --git a/documentation/content/ru/books/porters-handbook/quick-porting/chapter.adoc b/documentation/content/ru/books/porters-handbook/quick-porting/_index.adoc similarity index 98% rename from documentation/content/ru/books/porters-handbook/quick-porting/chapter.adoc rename to documentation/content/ru/books/porters-handbook/quick-porting/_index.adoc index 87e1275c42..bebfdd67ee 100644 --- a/documentation/content/ru/books/porters-handbook/quick-porting/chapter.adoc +++ b/documentation/content/ru/books/porters-handbook/quick-porting/_index.adoc @@ -171,12 +171,12 @@ PLIST_DIRS= lib/X11/oneko [NOTE] ==== -ÐеÑколÑко поÑÑов могÑÑ ÑовмеÑÑно иÑполÑзоваÑÑ Ð¾Ð±Ñий каÑалог. Ð ÑÑом ÑлÑÑае `PLIST_DIRS` ÑледÑÐµÑ Ð·Ð°Ð¼ÐµÐ½Ð¸ÑÑ Ð½Ð° `PLIST_DIRSTRY`, Ñак ÑÑÐ¾Ð±Ñ ÐºÐ°Ñалог ÑдалÑлÑÑ ÑолÑко еÑли он пÑÑÑ, а инаÑе игноÑиÑовалÑÑ. ÐÑполÑзование `PLIST_DIRS` и `PLIST_DIRSTRY` аналогиÑно `@dirrm` и `@dirrmtry` в [.filename]#pkg-plist#, опиÑание коÑоÑÑÑ Ð²Ñ Ð¾Ð´Ð¸Ñ Ð² <<plist-dir-cleaning>>. +ÐеÑколÑко поÑÑов могÑÑ ÑовмеÑÑно иÑполÑзоваÑÑ Ð¾Ð±Ñий каÑалог. Ð ÑÑом ÑлÑÑае `PLIST_DIRS` ÑледÑÐµÑ Ð·Ð°Ð¼ÐµÐ½Ð¸ÑÑ Ð½Ð° `PLIST_DIRSTRY`, Ñак ÑÑÐ¾Ð±Ñ ÐºÐ°Ñалог ÑдалÑлÑÑ ÑолÑко еÑли он пÑÑÑ, а инаÑе игноÑиÑовалÑÑ. ÐÑполÑзование `PLIST_DIRS` и `PLIST_DIRSTRY` аналогиÑно `@dirrm` и `@dirrmtry` в [.filename]#pkg-plist#, опиÑание коÑоÑÑÑ Ð²Ñ Ð¾Ð´Ð¸Ñ Ð² crossref:plist[plist-dir-cleaning,ÐÑиÑÑка пÑÑÑÑÑ ÐºÐ°Ñалогов]. ==== ÐбÑаÑной ÑÑоÑоной Ñакого ÑпоÑоба пеÑеÑиÑÐ»ÐµÐ½Ð¸Ñ Ñайлов и каÑалогов поÑÑа ÑвлÑеÑÑÑ Ð½ÐµÐ²Ð¾Ð·Ð¼Ð¾Ð¶Ð½Ð¾ÑÑÑ Ð¸ÑполÑÐ·Ð¾Ð²Ð°Ð½Ð¸Ñ Ð¿Ð¾ÑледоваÑелÑноÑÑей команд, опиÑаннÑÑ Ð² man:pkg-create[8]. ÐоÑÑÐ¾Ð¼Ñ Ð¾Ð½ Ð¿Ð¾Ð´Ñ Ð¾Ð´Ð¸Ñ Ð´Ð»Ñ Ð¿ÑоÑÑÑÑ Ð¿Ð¾ÑÑов, ÑÑо Ð´ÐµÐ»Ð°ÐµÑ Ð¸Ñ ÐµÑÑ Ð±Ð¾Ð»ÐµÐµ пÑоÑÑÑми. ÐдновÑеменно Ñ ÑÑим положиÑелÑнÑм моменÑом ÑвлÑеÑÑÑ ÑменÑÑение колиÑеÑÑва Ñайлов в коллекÑии поÑÑов. ÐожалÑйÑÑа, подÑмайÑе над иÑполÑзованием ÑÑой ÑÐµÑ Ð½Ð¸ÐºÐ¸, пÑежде Ñем ÑоздаваÑÑ [.filename]#pkg-plist#. -Ðалее Ð¼Ñ Ñвидим, как можно иÑполÑзоваÑÑ ÑÐ°Ð¹Ð»Ñ [.filename]#pkg-plist# и `PLIST_FILES` вÑÐ¿Ð¾Ð»Ð½ÐµÐ½Ð¸Ñ <<plist,более ÑложнÑÑ Ð·Ð°Ð´Ð°Ñ>>. +Ðалее Ð¼Ñ Ñвидим, как можно иÑполÑзоваÑÑ ÑÐ°Ð¹Ð»Ñ [.filename]#pkg-plist# и `PLIST_FILES` вÑÐ¿Ð¾Ð»Ð½ÐµÐ½Ð¸Ñ crossref:plist[plist,более ÑложнÑÑ Ð·Ð°Ð´Ð°Ñ]. [[porting-checksum]] == Создание Ñайла Ñ ÐºÐ¾Ð½ÑÑолÑной ÑÑммой @@ -221,7 +221,7 @@ PLIST_DIRS= lib/X11/oneko [[porting-submitting]] == ÐоÑÑлка нового поÑÑа -ÐеÑед поÑÑлкой нового поÑÑа пÑоÑиÑайÑе Ñаздел о Ñом, ÑÑо <<porting-dads,можно и нелÑзÑ>> делаÑÑ. +ÐеÑед поÑÑлкой нового поÑÑа пÑоÑиÑайÑе Ñаздел о Ñом, ÑÑо crossref:porting-dads[porting-dads,можно и нелÑзÑ] делаÑÑ. Ðогда Ð²Ñ Ð½Ð°ÐºÐ¾Ð½ÐµÑ Ð´Ð¾Ð²Ð¾Ð»ÑÐ½Ñ Ñвоим пеÑвÑм поÑÑом, единÑÑвенное, ÑÑо оÑÑалоÑÑ ÑделаÑÑ, ÑÑо вклÑÑиÑÑ ÐµÐ³Ð¾ в оÑновное деÑево поÑÑов FreeBSD и оÑÑаÑÑливиÑÑ ÑÑим вÑÐµÑ Ð¾ÑÑалÑнÑÑ . Ðам не нÑжен ни каÑалог [.filename]#work#, ни Ð¿Ð°ÐºÐµÑ [.filename]#pkgname.tgz#, Ñак ÑÑо ÑдалиÑе Ð¸Ñ Ð¿ÑÑмо ÑейÑаÑ. diff --git a/documentation/content/ru/books/porters-handbook/security/chapter.adoc b/documentation/content/ru/books/porters-handbook/security/_index.adoc similarity index 100% rename from documentation/content/ru/books/porters-handbook/security/chapter.adoc rename to documentation/content/ru/books/porters-handbook/security/_index.adoc diff --git a/documentation/content/ru/books/porters-handbook/slow-porting/chapter.adoc b/documentation/content/ru/books/porters-handbook/slow-porting/_index.adoc similarity index 99% rename from documentation/content/ru/books/porters-handbook/slow-porting/chapter.adoc rename to documentation/content/ru/books/porters-handbook/slow-porting/_index.adoc index 1d7cbc61e7..2cadd40028 100644 --- a/documentation/content/ru/books/porters-handbook/slow-porting/chapter.adoc +++ b/documentation/content/ru/books/porters-handbook/slow-porting/_index.adoc @@ -61,7 +61,7 @@ endif::[] .. ÐÑли задана пеÑÐµÐ¼ÐµÐ½Ð½Ð°Ñ `HAS_CONFIGURE` или `GNU_CONFIGURE`, Ñо запÑÑкаеÑÑÑ ÑкÑÐ¸Ð¿Ñ [.filename]#WRKSRC/configure#. . ÐÑполнÑеÑÑÑ ÑÐµÐ»Ñ `build`. Ðна оÑвеÑÐ°ÐµÑ Ð·Ð° пеÑÐµÑ Ð¾Ð´ в ÑобÑÑвеннÑй ÑабоÑий каÑалог поÑÑа (`WRKSRC`) и его поÑÑÑоение. -. ÐÑполнÑеÑÑÑ ÑÐµÐ»Ñ `stage`. ÐонеÑнÑй Ð½Ð°Ð±Ð¾Ñ Ð¿Ð¾ÑÑÑоеннÑÑ Ñайлов помеÑаеÑÑÑ Ð²Ð¾ вÑеменнÑй каÑалог (`STAGEDIR`, ÑмоÑÑиÑе <<staging>>). ÐеÑаÑÑ Ð¸Ñ ÑÑого каÑалога оÑÑÐ°Ð¶Ð°ÐµÑ Ð¸ÐµÑаÑÑ Ð¸Ñ ÐºÐ°Ñалогов ÑиÑÑемÑ, в коÑоÑÑÑ Ð´Ð°Ð½Ð½Ñй Ð¿Ð°ÐºÐµÑ Ð±ÑÐ´ÐµÑ ÑÑÑанавливаÑÑÑÑ. +. ÐÑполнÑеÑÑÑ ÑÐµÐ»Ñ `stage`. ÐонеÑнÑй Ð½Ð°Ð±Ð¾Ñ Ð¿Ð¾ÑÑÑоеннÑÑ Ñайлов помеÑаеÑÑÑ Ð²Ð¾ вÑеменнÑй каÑалог (`STAGEDIR`, ÑмоÑÑиÑе crossref:special[staging,Staging]). ÐеÑаÑÑ Ð¸Ñ ÑÑого каÑалога оÑÑÐ°Ð¶Ð°ÐµÑ Ð¸ÐµÑаÑÑ Ð¸Ñ ÐºÐ°Ñалогов ÑиÑÑемÑ, в коÑоÑÑÑ Ð´Ð°Ð½Ð½Ñй Ð¿Ð°ÐºÐµÑ Ð±ÑÐ´ÐµÑ ÑÑÑанавливаÑÑÑÑ. . ÐÑполнÑеÑÑÑ ÑÐµÐ»Ñ `install`. Ð ÑиÑÑÐµÐ¼Ñ ÐºÐ¾Ð¿Ð¸ÑÑÑÑÑÑ ÑайлÑ, пеÑеÑиÑленнÑе в pkg-plist поÑÑа. ==== diff --git a/documentation/content/ru/books/porters-handbook/special/chapter.adoc b/documentation/content/ru/books/porters-handbook/special/_index.adoc similarity index 99% rename from documentation/content/ru/books/porters-handbook/special/chapter.adoc rename to documentation/content/ru/books/porters-handbook/special/_index.adoc index c46eb9a002..ac01c34875 100644 --- a/documentation/content/ru/books/porters-handbook/special/chapter.adoc +++ b/documentation/content/ru/books/porters-handbook/special/_index.adoc @@ -47,7 +47,7 @@ endif::[] [[staging]] == Staging -[.filename]#bsd.port.mk# Ð¾Ð¶Ð¸Ð´Ð°ÐµÑ Ð¾Ñ Ð¿Ð¾ÑÑов ÑабоÑÑ Ñ "каÑалогом ÑбоÑки". ÐÑо ознаÑаеÑ, ÑÑо поÑÑ Ð´Ð¾Ð»Ð¶ÐµÐ½ ÑÑÑанавливаÑÑ ÑÐ°Ð¹Ð»Ñ Ð½Ðµ напÑÑмÑÑ Ð² назнаÑеннÑе каÑалоги (Ñо еÑÑÑ, напÑимеÑ, под `PREFIX`), а в оÑделÑнÑй каÑалог, из коÑоÑого заÑем ÑобиÑаеÑÑÑ Ð¿Ð°ÐºÐµÑ. Ðо Ð¼Ð½Ð¾Ð³Ð¸Ñ ÑлÑÑаÑÑ Ð¿Ñивилегии root Ð´Ð»Ñ ÑÑого не ÑÑебÑÑÑÑÑ, ÑÑо Ð´ÐµÐ»Ð°ÐµÑ Ð²Ð¾Ð·Ð¼Ð¾Ð¶Ð½Ñм ÑбоÑÐºÑ Ð¿Ð°ÐºÐµÑов из-под непÑивилегиÑованного полÑзоваÑелÑ. Ð Ñежиме staging поÑÑ ÑобиÑаеÑÑÑ Ð¸ ÑÑÑанавливаеÑÑÑ Ð² каÑалог ÑбоÑки `STAGED IR`. ÐÐ°ÐºÐµÑ ÑоздаеÑÑÑ Ð¸Ð· каÑалога ÑбоÑки и заÑем ÑÑÑанавливаеÑÑÑ Ð² ÑиÑÑемÑ. РинÑÑÑÑменÑаÑии automake ÑÐ°ÐºÐ°Ñ ÐºÐ¾Ð½Ñеп ÑÐ¸Ñ Ð¸Ð¼ÐµÐ½ÑеÑÑÑ `DESTDIR`; в пÑоÑем, в FreeBSD `DESTDIR` Ð¸Ð¼ÐµÐµÑ ÑобÑÑвенное знаÑение (ÑмоÑÑиÑе <<porting-prefix>>). +[.filename]#bsd.port.mk# Ð¾Ð¶Ð¸Ð´Ð°ÐµÑ Ð¾Ñ Ð¿Ð¾ÑÑов ÑабоÑÑ Ñ "каÑалогом ÑбоÑки". ÐÑо ознаÑаеÑ, ÑÑо поÑÑ Ð´Ð¾Ð»Ð¶ÐµÐ½ ÑÑÑанавливаÑÑ ÑÐ°Ð¹Ð»Ñ Ð½Ðµ напÑÑмÑÑ Ð² назнаÑеннÑе каÑалоги (Ñо еÑÑÑ, напÑимеÑ, под `PREFIX`), а в оÑделÑнÑй каÑалог, из коÑоÑого заÑем ÑобиÑаеÑÑÑ Ð¿Ð°ÐºÐµÑ. Ðо Ð¼Ð½Ð¾Ð³Ð¸Ñ ÑлÑÑаÑÑ Ð¿Ñивилегии root Ð´Ð»Ñ ÑÑого не ÑÑебÑÑÑÑÑ, ÑÑо Ð´ÐµÐ»Ð°ÐµÑ Ð²Ð¾Ð·Ð¼Ð¾Ð¶Ð½Ñм ÑбоÑÐºÑ Ð¿Ð°ÐºÐµÑов из-под непÑивилегиÑованного полÑзоваÑелÑ. Ð Ñежиме staging поÑÑ ÑобиÑаеÑÑÑ Ð¸ ÑÑÑанавливаеÑÑÑ Ð² каÑалог ÑбоÑки `STAGED IR`. ÐÐ°ÐºÐµÑ ÑоздаеÑÑÑ Ð¸Ð· каÑалога ÑбоÑки и заÑем ÑÑÑанавливаеÑÑÑ Ð² ÑиÑÑемÑ. РинÑÑÑÑменÑаÑии automake ÑÐ°ÐºÐ°Ñ ÐºÐ¾Ð½Ñеп ÑÐ¸Ñ Ð¸Ð¼ÐµÐ½ÑеÑÑÑ `DESTDIR`; в пÑоÑем, в FreeBSD `DESTDIR` Ð¸Ð¼ÐµÐµÑ ÑобÑÑвенное знаÑение (ÑмоÑÑиÑе crossref:testing[porting-prefix, `PREFIX` и `DESTDIR`]). ÐÑли Ð´Ð»Ñ Ð¿Ð¾ÑÑа вÑÑ ÐµÑÑ ÑÑебÑÑÑÑÑ ÑиÑÑемнÑе пÑивилегии пÑи вÑполнении Ñели `package`, Ñо в [.filename]#Makefile# должна бÑÑÑ Ð´Ð¾Ð±Ð°Ð²Ð»ÐµÐ½Ð° ÑледÑÑÑÐ°Ñ ÑÑÑока: @@ -425,7 +425,7 @@ USE_AUTOTOOLS= aclocal:version === ÐÑоÑÑой ваÑÐ¸Ð°Ð½Ñ Ð¸ÑполÑÐ·Ð¾Ð²Ð°Ð½Ð¸Ñ -ÐÑли Ð´Ð»Ñ Ð²Ð°Ñего поÑÑа ÑÑебÑеÑÑÑ `gettext`, добавÑÑе `USES= gettext`, и Ð²Ð°Ñ Ð¿Ð¾ÑÑ ÑнаÑледÑÐµÑ Ð·Ð°Ð²Ð¸ÑимоÑÑÑ Ð¾Ñ package:devel/gettext[]. <<uses-makefiles>> ÑодеÑÐ¶Ð¸Ñ Ð¿ÐµÑеÑÐµÐ½Ñ Ð´ÑÑÐ³Ð¸Ñ Ð·Ð½Ð°Ñений Ð´Ð»Ñ Ð¸ÑполÑÐ·Ð¾Ð²Ð°Ð½Ð¸Ñ `gettext`. +ÐÑли Ð´Ð»Ñ Ð²Ð°Ñего поÑÑа ÑÑебÑеÑÑÑ `gettext`, добавÑÑе `USES= gettext`, и Ð²Ð°Ñ Ð¿Ð¾ÑÑ ÑнаÑледÑÐµÑ Ð·Ð°Ð²Ð¸ÑимоÑÑÑ Ð¾Ñ package:devel/gettext[]. crossref:makefiles[uses-makefiles, `USES`] ÑодеÑÐ¶Ð¸Ñ Ð¿ÐµÑеÑÐµÐ½Ñ Ð´ÑÑÐ³Ð¸Ñ Ð·Ð½Ð°Ñений Ð´Ð»Ñ Ð¸ÑполÑÐ·Ð¾Ð²Ð°Ð½Ð¸Ñ `gettext`. ÐоволÑно ÑаÑпÑоÑÑÑаненнÑм ÑлÑÑаем ÑвлÑеÑÑÑ Ð¸ÑполÑзование в поÑÑе `gettext` и `configure`. Ðак пÑавило, GNU `configure` ÑпоÑобен Ð½Ð°Ñ Ð¾Ð´Ð¸ÑÑ `gettext` авÑомаÑиÑеÑки. ÐÑли он вÑе же не ÑÐ¼Ð¾Ð¶ÐµÑ ÑÑо ÑделаÑÑ, Ñо подÑказки Ð´Ð»Ñ ÑазмеÑÐµÐ½Ð¸Ñ `gettext` можно пеÑедаÑÑ ÑеÑез пеÑеменнÑе окÑÑÐ¶ÐµÐ½Ð¸Ñ `CPPFLAGS` и `LDFLAGS`: @@ -1103,7 +1103,7 @@ USE_QT4= moc_build qmake_build rcc_build uic_build |ÐаÑалог, в коÑоÑÑй ÑÑÑанавливаÑÑÑÑ JAR-ÑÐ°Ð¹Ð»Ñ Ð¸Ð· дÑÑÐ³Ð¸Ñ Ð¿Ð¾ÑÑов. Ðо ÑмолÑаниÑ: [.filename]#${LOCALBASE}/shared/java/classes#. |=== -СооÑвеÑÑÑвÑÑÑие запиÑи опÑеделÑÑÑÑÑ Ð² Ð¾Ð±Ð¾Ð¸Ñ Ð¿ÐµÑеменнÑÑ `PLIST_SUB` (опиÑана в <<plist-sub>>) и `SUB_LIST`. +СооÑвеÑÑÑвÑÑÑие запиÑи опÑеделÑÑÑÑÑ Ð² Ð¾Ð±Ð¾Ð¸Ñ Ð¿ÐµÑеменнÑÑ `PLIST_SUB` (опиÑана в crossref:plist[plist-sub,Ðзменение ÑодеÑжимого pkg-plist в завиÑимоÑÑи Ð¾Ñ make-пеÑеменнÑÑ ]) и `SUB_LIST`. [[java-building-with-ant]] === ÐоÑÑÑоение Ñ Ant @@ -1141,7 +1141,7 @@ do-install: Ðне завиÑимоÑÑи Ð¾Ñ Ñипа ваÑего поÑÑа (библиоÑека ÑÑо или пÑиложение), дополниÑелÑÐ½Ð°Ñ Ð´Ð¾ÐºÑменÑаÑÐ¸Ñ Ð´Ð¾Ð»Ð¶Ð½Ð° ÑÑÑанавливаÑÑÑÑ <<install-documentation,в Ñоже Ñамое меÑÑо>>, ÑÑо и Ð´Ð»Ñ Ð´ÑÑÐ³Ð¸Ñ Ð¿Ð¾ÑÑов. ÐзвеÑÑно, ÑÑо в завиÑимоÑÑи Ð¾Ñ Ð¸ÑполÑзÑемой веÑÑии JDK ÑÑилиÑа JavaDoc генеÑиÑÑÐµÑ ÑазлиÑнÑе набоÑÑ Ñайлов. ÐÐ»Ñ Ð¿Ð¾ÑÑов, коÑоÑÑе не пÑивÑÐ·Ð°Ð½Ñ Ðº иÑполÑÐ·Ð¾Ð²Ð°Ð½Ð¸Ñ Ð¾Ð¿ÑеделÑнной веÑÑии JDK, Ñаким обÑазом ÑÑановиÑÑÑ Ð¿ÑоблемаÑиÑнÑм опÑеделиÑÑ ÑпиÑок Ñайлов Ð´Ð»Ñ Ñпаковки ( [.filename]#pkg-plist#). ÐÑо одна из пÑиÑин, по коÑоÑой ÑоздаÑелÑм поÑÑов наÑÑоÑÑелÑно ÑекомендÑеÑÑÑ Ð¸ÑполÑзоваÑÑ Ð¼Ð°ÐºÑ Ð¾Ñ `PORTDOCS`. Ðолее Ñого, даже еÑли Ð²Ñ ÑможеÑе ÑгадаÑÑ Ð½Ð°Ð±Ð¾Ñ Ñайлов, коÑоÑÑй бÑÐ´ÐµÑ ÑгенеÑиÑован ÑÑилиÑой `javadoc`, ÑÐ°Ð·Ð¼ÐµÑ Ð¿Ð¾Ð»ÑÑаÑÑегоÑÑ Ñайла [.filename]#pkg-plist# голоÑÑÐµÑ Ð·Ð° иÑполÑзование `PORTDOCS`. -ÐнаÑением по ÑмолÑÐ°Ð½Ð¸Ñ Ð´Ð»Ñ Ð¿ÐµÑеменной `DATADIR` ÑвлÑеÑÑÑ [.filename]#${PREFIX}/shared/${PORTNAME}#. ХоÑоÑей идеей ÑвлÑеÑÑÑ Ð¿ÐµÑеопÑеделение Ð´Ð»Ñ Java-поÑÑов знаÑÐµÐ½Ð¸Ñ `DATADIR` как [.filename]#${JAVASHAREDIR}/${PORTNAME}#. Ðа Ñамом деле `DATADIR` авÑомаÑиÑеÑки добавлÑеÑÑÑ Ðº `PLIST_SUB` (ÑÑо опиÑано в <<plist-sub>>), Ñак ÑÑо Ð²Ñ ÑможеÑе иÑполÑзоваÑÑ `%%DATADIR%%` непоÑÑедÑÑвенно в [.filename]#pkg-plist#. +ÐнаÑением по ÑмолÑÐ°Ð½Ð¸Ñ Ð´Ð»Ñ Ð¿ÐµÑеменной `DATADIR` ÑвлÑеÑÑÑ [.filename]#${PREFIX}/shared/${PORTNAME}#. ХоÑоÑей идеей ÑвлÑеÑÑÑ Ð¿ÐµÑеопÑеделение Ð´Ð»Ñ Java-поÑÑов знаÑÐµÐ½Ð¸Ñ `DATADIR` как [.filename]#${JAVASHAREDIR}/${PORTNAME}#. Ðа Ñамом деле `DATADIR` авÑомаÑиÑеÑки добавлÑеÑÑÑ Ðº `PLIST_SUB` (ÑÑо опиÑано в crossref:plist[plist-sub,Ðзменение ÑодеÑжимого pkg-plist в завиÑимоÑÑи Ð¾Ñ make-пеÑеменнÑÑ ]), Ñак ÑÑо Ð²Ñ ÑможеÑе иÑполÑзоваÑÑ `%%DATADIR%%` непоÑÑедÑÑвенно в [.filename]#pkg-plist#. ЧÑо каÑаеÑÑÑ Ð²ÑбоÑа Ð¼ÐµÐ¶Ð´Ñ Ð¿Ð¾ÑÑÑоением поÑÑов Java из иÑÑ Ð¾Ð´Ð½ÑÑ ÑекÑÑов или Ð¸Ñ Ð¿ÑÑмой ÑÑÑановкой из бинаÑнÑÑ Ð´Ð¸ÑÑÑибÑÑивов, Ñо на Ð¼Ð¾Ð¼ÐµÐ½Ñ ÑÐ¾Ð·Ð´Ð°Ð½Ð¸Ñ ÑÑого ÑекÑÑа опÑеделÑнной полиÑики на ÑÑÐ¾Ñ ÑÑÑÑ Ð½Ðµ ÑÑÑеÑÑвÑеÑ. Ðднако ÑÑаÑÑники http://www.freebsd.org/java/[ÐÑоекÑа FreeBSD Java] ÑекомендÑÑÑ ÑоздаÑелÑм поÑÑов ÑÑÑоиÑÑ Ð¸Ñ Ð¸Ð· иÑÑ Ð¾Ð´Ð½ÑÑ ÑекÑÑов, еÑли ÑÑа задаÑа ÑвлÑеÑÑÑ Ð½ÐµÑложной. @@ -1149,7 +1149,7 @@ do-install: ХоÑÑ Ð² базе ÑообÑений об оÑÐ¸Ð±ÐºÐ°Ñ Ð´Ð»Ñ ÑооÑвеÑÑÑвÑÑÑÐ¸Ñ PR имееÑÑÑ ÐºÐ°ÑегоÑÐ¸Ñ `java`, она оÑноÑиÑÑÑ Ðº ÑабоÑе над поÑÑиÑованием JDK, коÑоÑÑе пÑÐ¾Ð²Ð¾Ð´Ð¸Ñ ÐÑÐ¾ÐµÐºÑ FreeBSD Java. Таким обÑазом, Ð²Ñ Ð´Ð¾Ð»Ð¶Ð½Ñ Ð¾ÑноÑиÑÑ Ñвой Java-поÑÑ, как и лÑбой дÑÑгой, к каÑегоÑии `ports`, еÑли ÑеÑаемÑй вами вопÑÐ¾Ñ Ð½Ðµ оÑноÑиÑÑÑ Ð½Ð¸ к ÑеализаÑии JDK, ни к [.filename]#bsd.java.mk#. -ÐÐ¾Ñ Ð¾Ð¶Ð¸Ð¼ обÑазом опÑеделена полиÑика по оÑноÑÐµÐ½Ð¸Ñ Ðº `CATEGORIES` поÑÑа Java, коÑоÑÐ°Ñ Ð¿Ð¾Ð´Ñобно опиÑана в <<makefile-categories>>. +ÐÐ¾Ñ Ð¾Ð¶Ð¸Ð¼ обÑазом опÑеделена полиÑика по оÑноÑÐµÐ½Ð¸Ñ Ðº `CATEGORIES` поÑÑа Java, коÑоÑÐ°Ñ Ð¿Ð¾Ð´Ñобно опиÑана в crossref:makefiles[makefile-categories, Разделение по каÑегоÑиÑм]. [[using-php]] == Ðеб-пÑиложениÑ, Apache и PHP diff --git a/documentation/content/ru/books/porters-handbook/testing/chapter.adoc b/documentation/content/ru/books/porters-handbook/testing/_index.adoc similarity index 92% rename from documentation/content/ru/books/porters-handbook/testing/chapter.adoc rename to documentation/content/ru/books/porters-handbook/testing/_index.adoc index 98b7c82e1f..a40e23725e 100644 --- a/documentation/content/ru/books/porters-handbook/testing/chapter.adoc +++ b/documentation/content/ru/books/porters-handbook/testing/_index.adoc @@ -49,7 +49,7 @@ endif::[] [NOTE] ==== -ÐозможноÑÑÑ Ð³ÐµÐ½ÐµÑиÑоваÑÑ ÑÑÐ¾Ñ Ñайл оÑÐµÐ½Ñ Ð²Ð°Ð¶Ð½Ð° вне завиÑимоÑÑи Ð¾Ñ Ñого, какие паÑамеÑÑÑ Ð¿ÑиÑÑÑÑÑвÑÑÑ Ð² [.filename]#make.conf#, поÑÑомÑ, пожалÑйÑÑа, избегайÑе, ÑÐ°ÐºÐ¸Ñ Ð²ÐµÑей, как иÑполÑзование деклаÑаÑии `.error`, когда (к пÑимеÑÑ) ÑÑÐµÐ±Ð¾Ð²Ð°Ð½Ð¸Ñ Ðº завиÑимоÑÑи не бÑло ÑдовлеÑвоÑено. (СмоÑÑиÑе <<dads-dot-error>>.) +ÐозможноÑÑÑ Ð³ÐµÐ½ÐµÑиÑоваÑÑ ÑÑÐ¾Ñ Ñайл оÑÐµÐ½Ñ Ð²Ð°Ð¶Ð½Ð° вне завиÑимоÑÑи Ð¾Ñ Ñого, какие паÑамеÑÑÑ Ð¿ÑиÑÑÑÑÑвÑÑÑ Ð² [.filename]#make.conf#, поÑÑомÑ, пожалÑйÑÑа, избегайÑе, ÑÐ°ÐºÐ¸Ñ Ð²ÐµÑей, как иÑполÑзование деклаÑаÑии `.error`, когда (к пÑимеÑÑ) ÑÑÐµÐ±Ð¾Ð²Ð°Ð½Ð¸Ñ Ðº завиÑимоÑÑи не бÑло ÑдовлеÑвоÑено. (СмоÑÑиÑе crossref:porting-dads[dads-dot-error, ÐзбегайÑе иÑполÑÐ·Ð¾Ð²Ð°Ð½Ð¸Ñ ÐºÐ¾Ð½ÑÑÑÑкÑии `.error`].) ==== ÐÑли `make describe` вÑдаÑÑ ÑÑÑоÑкÑ, а не оÑибкÑ, Ñо Ð´Ð»Ñ Ð²Ð°Ñ ÑÑо пÑойдÑÑ Ð±ÐµÐ·Ð±Ð¾Ð»ÐµÐ·Ð½ÐµÐ½Ð½Ð¾. ÐбÑаÑиÑеÑÑ Ðº ÑÐ°Ð¹Ð»Ñ [.filename]#bsd.port.mk#, ÑÑÐ¾Ð±Ñ Ð²ÑÑÑниÑÑ Ð·Ð½Ð°Ñение вÑдаваемÑÑ ÑÑÑок. @@ -59,7 +59,7 @@ endif::[] [[testing-portlint]] == Portlint -ÐÑовеÑÑÑе ÑÐ²Ð¾Ñ ÑабоÑÑ ÐºÐ¾Ð¼Ð°Ð½Ð´Ð¾Ð¹ <<porting-portlint,`portlint`>> пеÑед Ñем, как ÐµÑ Ð¾ÑоÑлаÑÑ Ð¸Ð»Ð¸ пеÑенеÑÑи в деÑево поÑÑов. `portlint` пÑедÑпÑÐµÐ¶Ð´Ð°ÐµÑ Ð²Ð°Ñ Ð¾ Ð¼Ð½Ð¾Ð³Ð¸Ñ ÑаÑпÑоÑÑÑанÑннÑÑ Ð¾ÑÐ¸Ð±ÐºÐ°Ñ , как ÑÑнкÑионалÑнÑÑ , Ñак и ÑÑилиÑÑиÑеÑÐºÐ¸Ñ . ÐÐ»Ñ Ð½Ð¾Ð²Ð¾Ð³Ð¾ (или ÑкопиÑованного внÑÑÑи Ñ ÑанилиÑа) поÑÑа ÑамÑм Ð¿Ð¾Ð´Ñ Ð¾Ð´ÑÑим ÑвлÑеÑÑÑ Ð·Ð°Ð¿ÑÑк `portlint -A`; Ð´Ð»Ñ Ñже ÑÑÑеÑÑвÑÑÑего поÑÑа доÑÑаÑоÑно бÑÐ´ÐµÑ Ð·Ð°Ð¿ÑÑÑиÑÑ `portlint -C`. +ÐÑовеÑÑÑе ÑÐ²Ð¾Ñ ÑабоÑÑ ÐºÐ¾Ð¼Ð°Ð½Ð´Ð¾Ð¹ crossref:quick-porting[porting-portlint,`portlint`] пеÑед Ñем, как ÐµÑ Ð¾ÑоÑлаÑÑ Ð¸Ð»Ð¸ пеÑенеÑÑи в деÑево поÑÑов. `portlint` пÑедÑпÑÐµÐ¶Ð´Ð°ÐµÑ Ð²Ð°Ñ Ð¾ Ð¼Ð½Ð¾Ð³Ð¸Ñ ÑаÑпÑоÑÑÑанÑннÑÑ Ð¾ÑÐ¸Ð±ÐºÐ°Ñ , как ÑÑнкÑионалÑнÑÑ , Ñак и ÑÑилиÑÑиÑеÑÐºÐ¸Ñ . ÐÐ»Ñ Ð½Ð¾Ð²Ð¾Ð³Ð¾ (или ÑкопиÑованного внÑÑÑи Ñ ÑанилиÑа) поÑÑа ÑамÑм Ð¿Ð¾Ð´Ñ Ð¾Ð´ÑÑим ÑвлÑеÑÑÑ Ð·Ð°Ð¿ÑÑк `portlint -A`; Ð´Ð»Ñ Ñже ÑÑÑеÑÑвÑÑÑего поÑÑа доÑÑаÑоÑно бÑÐ´ÐµÑ Ð·Ð°Ð¿ÑÑÑиÑÑ `portlint -C`. Так как Ð´Ð»Ñ Ð¾Ð±Ð½Ð°ÑÑÐ¶ÐµÐ½Ð¸Ñ Ð¾Ñибок `portlint` иÑполÑзÑÐµÑ ÑвÑиÑÑиÑеÑкие меÑодÑ, Ñо им могÑÑ Ð²ÑдаваÑÑÑÑ Ð¸ оÑибоÑнÑе пÑедÑпÑеждениÑ. ÐÑоме Ñого, вÑÐµÐ¼Ñ Ð¾Ñ Ð²Ñемени неÑÑо, оÑмеÑаемое как некоÑÑекÑноÑÑÑ, из-за огÑаниÑений Ð¼ÐµÑ Ð°Ð½Ð¸Ð·Ð¼Ð° ÑÐ¾Ð·Ð´Ð°Ð½Ð¸Ñ Ð¿Ð¾ÑÑов не Ð¼Ð¾Ð¶ÐµÑ Ð±ÑÑÑ Ñделано никак инаÑе. ÐÑли Ð²Ñ ÑомневаеÑеÑÑ, Ñо лÑÑÑе вÑего ÑпÑоÑиÑÑ Ð² {freebsd-ports}. @@ -95,7 +95,7 @@ endif::[] ÐÑли ÑÑо-Ñо бÑло ÑÑÑановлено за пÑеделами `PREFIX`, Ñо пÑоÑеÑÑ ÑÐ¾Ð·Ð´Ð°Ð½Ð¸Ñ Ð¿Ð°ÐºÐµÑа ÑообÑÐ¸Ñ Ð¾Ð± оÑÑÑÑÑÑвии Ñайлов. -ÐÑо Ñакже ÑÑÐ¾Ð¸Ñ Ð¿ÑовеÑиÑÑ Ñ Ð¸ÑполÑзованием поддеÑжки каÑалога ÑбоÑки (ÑмоÑÑиÑе <<staging>>): +ÐÑо Ñакже ÑÑÐ¾Ð¸Ñ Ð¿ÑовеÑиÑÑ Ñ Ð¸ÑполÑзованием поддеÑжки каÑалога ÑбоÑки (ÑмоÑÑиÑе crossref:special[staging, Staging]): [source,shell] .... diff --git a/documentation/content/ru/books/porters-handbook/upgrading/chapter.adoc b/documentation/content/ru/books/porters-handbook/upgrading/_index.adoc similarity index 98% rename from documentation/content/ru/books/porters-handbook/upgrading/chapter.adoc rename to documentation/content/ru/books/porters-handbook/upgrading/_index.adoc index 8996df3362..6314418994 100644 --- a/documentation/content/ru/books/porters-handbook/upgrading/chapter.adoc +++ b/documentation/content/ru/books/porters-handbook/upgrading/_index.adoc @@ -79,7 +79,7 @@ endif::[] ÐовÑоÑÑем еÑе Ñаз - Ð´Ð»Ñ Ð¿Ð¾ÑÑлки обновлений ÑÑÑеÑÑвÑÑÑÐ¸Ñ Ð¿Ð¾ÑÑов иÑполÑзÑйÑе ÑÑилиÑÑ man:diff[1], а не man:shar[1]! ÐÑо Ð¿Ð¾Ð¼Ð¾Ð¶ÐµÑ Ð¿Ð¾Ð½ÑÑÑ ÐºÐ¾Ð¼Ð¼Ð¸ÑÑеÑам поÑÑов, ÑÑо именно бÑло изменено. ==== -ТепеÑÑ, когда Ð²Ñ Ð¿Ñоделали вÑÑ ÑÑо, пÑоÑиÑайÑе о Ñом, как поддеÑживаÑÑ Ð°ÐºÑÑалÑное ÑоÑÑоÑние, в <<keeping-up>>. +ТепеÑÑ, когда Ð²Ñ Ð¿Ñоделали вÑÑ ÑÑо, пÑоÑиÑайÑе о Ñом, как поддеÑживаÑÑ Ð°ÐºÑÑалÑное ÑоÑÑоÑние, в crossref:keeping-up[keeping-up, ÐкÑÑализаÑиÑ]. [[svn-diff]] == ÐÑполÑзование Subversion Ð´Ð»Ñ ÑÐ¾Ð·Ð´Ð°Ð½Ð¸Ñ Ð¿Ð°ÑÑей @@ -105,7 +105,7 @@ endif::[] % svn remove deleted_file .... -УбедиÑеÑÑ, ÑÑо Ð²Ñ Ð¿ÑовеÑÑеÑе поÑÑ Ð² ÑооÑвеÑÑÑвии Ñ ÑекомендÑемÑм поÑÑдком пÑовеÑки, опиÑаннÑм в <<porting-testing>> и <<porting-portlint>>. +УбедиÑеÑÑ, ÑÑо Ð²Ñ Ð¿ÑовеÑÑеÑе поÑÑ Ð² ÑооÑвеÑÑÑвии Ñ ÑекомендÑемÑм поÑÑдком пÑовеÑки, опиÑаннÑм в crossref:quick-porting[porting-testing, ТеÑÑиÑование поÑÑа] и crossref:quick-porting[porting-portlint, ÐÑовеÑка ваÑего поÑÑа ÑÑилиÑой `portlint`]. [source,shell] .... diff --git a/documentation/content/ru/books/porters-handbook/uses/chapter.adoc b/documentation/content/ru/books/porters-handbook/uses/_index.adoc similarity index 55% rename from documentation/content/ru/books/porters-handbook/uses/chapter.adoc rename to documentation/content/ru/books/porters-handbook/uses/_index.adoc index 2862084668..b9944e68d9 100644 --- a/documentation/content/ru/books/porters-handbook/uses/chapter.adoc +++ b/documentation/content/ru/books/porters-handbook/uses/_index.adoc @@ -46,56 +46,51 @@ endif::[] [[uses-intro]] == An Introduction to `USES` -`USES` macros make it easy to declare requirements and settings for a port. They can add dependencies, change building behavior, add metadata to packages, and so on, all by selecting simple, preset values. +`USES` macros make it easy to declare requirements and settings for a port. +They can add dependencies, change building behavior, add metadata to packages, and so on, all by selecting simple, preset values. -Each section in this chapter describes a possible value for `USES`, along with its possible arguments. Arguments are appeneded to the value after a colon (`:`). Multiple arguments are separated by commas (`,`). +Each section in this chapter describes a possible value for `USES`, along with its possible arguments. +Arguments are appended to the value after a colon (`:`). +Multiple arguments are separated by commas (`,`). [[uses-intro-ex1]] .Using Multiple Values [example] ==== - [.programlisting] .... USES= bison perl .... - ==== [[uses-intro-ex2]] .Adding an Argument [example] ==== - [.programlisting] .... USES= tar:xz .... - ==== [[uses-intro-ex3]] .Adding Multiple Arguments [example] ==== - [.programlisting] .... USES= drupal:7,theme .... - ==== [[uses-intro-ex4]] .Mixing it All Together [example] ==== - [.programlisting] .... USES= pgsql:9.3+ cpe python:2.7,build .... - ==== [[uses-7z]] @@ -103,21 +98,30 @@ USES= pgsql:9.3+ cpe python:2.7,build Possible arguments: (none), `p7zip`, `partial` -Extract using man:7z[1] instead of man:bsdtar[1] and sets `EXTRACT_SUFX=.7z`. The `p7zip` option forces a dependency on the `7z` from package:archivers/p7zip[] if the one from the base system is not able to extract the files. `EXTRACT_SUFX` is not changed if the `partial` option is used, this can be used if the main distribution file does not have a [.filename]#.7z# extension. +Extract using man:7z[1] instead of man:bsdtar[1] and sets `EXTRACT_SUFX=.7z`. +The `p7zip` option forces a dependency on the `7z` from package:archivers/p7zip[] if the one from the base system is not able to extract the files. +`EXTRACT_SUFX` is not changed if the `partial` option is used, this can be used if the main distribution file does not have a [.filename]#.7z# extension. [[uses-ada]] == `ada` Possible arguments: (none), `5`, `6` -Depends on an Ada-capable compiler, and sets `CC` accordingly. Defaults to use gcc 5 from ports. Use the `:__X__` version option to force building with a different version. +Depends on an Ada-capable compiler, and sets `CC` accordingly. +Defaults to use gcc 5 from ports. +Use the `:_X_` version option to force building with a different version. [[uses-autoreconf]] == `autoreconf` Possible arguments: (none), `build` -Runs `autoreconf`. It encapsulates the `aclocal`, `autoconf`, `autoheader`, `automake`, `autopoint`, and `libtoolize` commands. Each command applies to [.filename]#${AUTORECONF_WRKSRC}/configure.ac# or its old name, [.filename]#${AUTORECONF_WRKSRC}/configure.in#. If [.filename]#configure.ac# defines subdirectories with their own [.filename]#configure.ac# using `AC_CONFIG_SUBDIRS`, `autoreconf` will recursively update those as well. The `:build` argument only adds build time dependencies on those tools but does not run `autoreconf`. A port can set `AUTORECONF_WRKSRC` if `WRKSRC` does not contain the path to [.filename]#configure.ac#. +Runs `autoreconf`. +It encapsulates the `aclocal`, `autoconf`, `autoheader`, `automake`, `autopoint`, and `libtoolize` commands. +Each command applies to [.filename]#${AUTORECONF_WRKSRC}/configure.ac# or its old name, [.filename]#${AUTORECONF_WRKSRC}/configure.in#. +If [.filename]#configure.ac# defines subdirectories with their own [.filename]#configure.ac# using `AC_CONFIG_SUBDIRS`, `autoreconf` will recursively update those as well. +The `:build` argument only adds build time dependencies on those tools but does not run `autoreconf`. +A port can set `AUTORECONF_WRKSRC` if `WRKSRC` does not contain the path to [.filename]#configure.ac#. [[uses-blaslapack]] == `blaslapack` @@ -131,26 +135,37 @@ Adds dependencies on Blas / Lapack libraries. Possible arguments: (none), `48`, `5` (default), `6` -Add dependency on the Berkeley DB library. Default to package:databases/db5[]. It can also depend on package:databases/db48[] when using the `:48` argument or package:databases/db6[] with `:6`. It is possible to declare a range of acceptable values, `:48+` finds the highest installed version, and falls back to 4.8 if nothing else is installed. `INVALID_BDB_VER` can be used to specify versions which do not work with this port. The framework exposes the following variables to the port: +Add dependency on the Berkeley DB library. +Default to package:databases/db5[]. +It can also depend on package:databases/db48[] when using the `:48` argument or package:databases/db6[] with `:6`. +It is possible to declare a range of acceptable values, `:48+` finds the highest installed version, and falls back to 4.8 if nothing else is installed. +`INVALID_BDB_VER` can be used to specify versions which do not work with this port. +The framework exposes the following variables to the port: `BDB_LIB_NAME`:: -The name of the Berkeley DB library. For example, when using package:databases/db5[], it contains `db-5.3`. +The name of the Berkeley DB library. +For example, when using package:databases/db5[], it contains `db-5.3`. `BDB_LIB_CXX_NAME`:: -The name of the Berkeley DBC++ library. For example, when using package:databases/db5[], it contains `db_cxx-5.3`. +The name of the Berkeley DBC++ library. +For example, when using package:databases/db5[], it contains `db_cxx-5.3`. `BDB_INCLUDE_DIR`:: -The location of the Berkeley DB include directory. For example, when using package:databases/db5[], it will contain `${LOCALBASE}/include/db5`. +The location of the Berkeley DB include directory. +For example, when using package:databases/db5[], it will contain `${LOCALBASE}/include/db5`. `BDB_LIB_DIR`:: -The location of the Berkeley DB library directory. For example, when using package:databases/db5[], it contains `${LOCALBASE}/lib`. +The location of the Berkeley DB library directory. +For example, when using package:databases/db5[], it contains `${LOCALBASE}/lib`. `BDB_VER`:: -The detected Berkeley DB version. For example, if using `USES=bdb:48+` and Berkeley DB 5 is installed, it contains `5`. +The detected Berkeley DB version. +For example, if using `USES=bdb:48+` and Berkeley DB 5 is installed, it contains `5`. [IMPORTANT] ==== -package:databases/db48[] is deprecated and unsupported. It must not be used by any port. +package:databases/db48[] is deprecated and unsupported. +It must not be used by any port. ==== [[uses-bison]] @@ -165,23 +180,32 @@ Uses package:devel/bison[] By default, with no arguments or with the `build` arg [IMPORTANT] ==== -Ports should not be created for Haskell libraries, see <<haskell-libs>> for more information. +Ports should not be created for Haskell libraries, see crossref:special[haskell-libs,Haskell Libraries] for more information. ==== Possible arguments: (none), `hpack` -Sets default values and targets used to build Haskell software using Cabal. A build dependency on the Haskell compiler port (GHC) is added. If `hpack` argument is given, a build dependency on package:devel/hs-hpack[] is added and `hpack` is invoked at configuration step to generate .cabal file. +Sets default values and targets used to build Haskell software using Cabal. +A build dependency on the Haskell compiler port (GHC) is added. +If `hpack` argument is given, a build dependency on package:devel/hs-hpack[] is added and `hpack` is invoked at configuration step to generate. +cabal file. The framework provides the following variables: `USE_CABAL`:: -If the software uses Haskell dependencies, list them in this variable. Each item should be present on Hackage and be listed in form `packagename-_0.1.2_`. Dependencies can have revisions, which are specified after the `_` symbol. Automatic generation of dependency list is supported, see <<using-cabal>>. +If the software uses Haskell dependencies, list them in this variable. +Each item should be present on Hackage and be listed in form `packagename-_0.1.2_`. +Dependencies can have revisions, which are specified after the `_` symbol. +Automatic generation of dependency list is supported, see crossref:special[using-cabal,Building Haskell Applications with `cabal`]. `CABAL_FLAGS`:: -List of flags to be passed to `cabal-install` during the configuring and building stage. The flags are passed verbatim. +List of flags to be passed to `cabal-install` during the configuring and building stage. +The flags are passed verbatim. `EXECUTABLES`:: -List of executable files installed by the port. Default value: `${PORTNAME}`. Items from this list are automatically added to pkg-plist. +List of executable files installed by the port. +Default value: `${PORTNAME}`. +Items from this list are automatically added to pkg-plist. `SKIP_CABAL_PLIST`:: If defined, do not add items from `${EXECUTABLES}` to pkg-plist. @@ -193,7 +217,8 @@ Adds items to `${USE_CABAL}` depending on `opt` option. Adds items to `${EXECUTABLES}` depending on `opt` option. `opt_CABAL_FLAGS`:: -If `opt` is enabled, append the value to `${CABAL_FLAGS}`. Otherwise, append `-value` to disable the flag. +If `opt` is enabled, append the value to `${CABAL_FLAGS}`. +Otherwise, append `-value` to disable the flag. `FOO_DATADIR_VARS`:: For an executable named `FOO` list Haskell packages, whose data files should be accessible by the executable. @@ -203,38 +228,53 @@ For an executable named `FOO` list Haskell packages, whose data files should be Possible arguments: (none) -Uses Cargo for configuring, building, and testing. It can be used to port Rust applications that use the Cargo build system. For more information see <<using-cargo>>. +Uses Cargo for configuring, building, and testing. +It can be used to port Rust applications that use the Cargo build system. +For more information see crossref:special[using-cargo,Building Rust Applications with `cargo`]. [[uses-charsetfix]] == `charsetfix` Possible arguments: (none) -Prevents the port from installing [.filename]#charset.alias#. This must be installed only by package:converters/libiconv[]. `CHARSETFIX_MAKEFILEIN` can be set to a path relative to `WRKSRC` if [.filename]#charset.alias# is not installed by [.filename]#${WRKSRC}/Makefile.in#. +Prevents the port from installing [.filename]#charset.alias#. +This must be installed only by package:converters/libiconv[]. +`CHARSETFIX_MAKEFILEIN` can be set to a path relative to `WRKSRC` if [.filename]#charset.alias# is not installed by [.filename]#${WRKSRC}/Makefile.in#. [[uses-cmake]] == `cmake` -Possible arguments: (none), `insource`, `noninja`, `run` +Possible arguments: (none), `insource`, `noninja`, `run`, `testing` -Uses CMake for configuring and building. +Use CMake for configuring the port and generating a build system. -By default an out-of-source build is performed, leaving the sources in `WRKSRC` free from build artifacts. With the `insource` argument, an in-source build will be performed instead. Setting it should be the exception when a regular out-of-source build does not work. +By default an out-of-source build is performed, leaving the sources in `WRKSRC` free from build artifacts. +With the `insource` argument, an in-source build will be performed instead. +This argument should be an exception, used only when a regular out-of-source build does not work. -By default Ninja is used for the build. In some cases this does not work correctly. With the `noninja` argument, the build will fallback to using regular `make` for builds. It should only be used if a Ninja-based build does not work. +By default Ninja (package:devel/ninja[]) is used for the build. +In some cases this does not work correctly. +With the `noninja` argument, the build will use regular `make` for builds. +This argument should only be used if a Ninja-based build does not work. With the `run` argument, a run dependency is registered in addition to a build dependency. -For more information see <<using-cmake>>. +With the `testing` argument, a test-target is added that uses CTest. +When running tests the port will be re-configured for testing and re-built. + +For more information see crossref:special[using-cmake,Using `cmake`]. [[uses-compiler]] == `compiler` -Possible arguments: (none), `env` (default, implicit), `{c-plus-plus}17-lang`, `{c-plus-plus}14-lang`, `{c-plus-plus}11-lang`, `gcc-{c-plus-plus}11-lib`, `{c-plus-plus}11-lib`, `{c-plus-plus}0x`, `c11`, `openmp`, `nestedfct`, `features` +Possible arguments: (none), `env` (default, implicit), `{c-plus-plus}17-lang`, `{c-plus-plus}14-lang`, `{c-plus-plus}11-lang`, `gcc-{c-plus-plus}11-lib`, `{c-plus-plus}11-lib`, `{c-plus-plus}0x`, `c11`, `nestedfct`, `features` -Determines which compiler to use based on any given wishes. Use `{c-plus-plus}17-lang` if the port needs a {c-plus-plus}17-capable compiler, `{c-plus-plus}14-lang` if the port needs a {c-plus-plus}14-capable compiler, `{c-plus-plus}11-lang` if the port needs a {c-plus-plus}11-capable compiler, `gcc-{c-plus-plus}11-lib` if the port needs the `g++` compiler with a {c-plus-plus}11 library, or `{c-plus-plus}11-lib` if the port needs a {c-plus-plus}11-ready standard library. If the port needs a compiler understanding {c-plus-plus}0X, C11, OpenMP, or nested functions, the corresponding parameters should be used. +Determines which compiler to use based on any given wishes. +Use `{c-plus-plus}17-lang` if the port needs a {c-plus-plus}17-capable compiler, `{c-plus-plus}14-lang` if the port needs a {c-plus-plus}14-capable compiler, `{c-plus-plus}11-lang` if the port needs a {c-plus-plus}11-capable compiler, `gcc-{c-plus-plus}11-lib` if the port needs the `g++` compiler with a {c-plus-plus}11 library, or `{c-plus-plus}11-lib` if the port needs a {c-plus-plus}11-ready standard library. +If the port needs a compiler understanding {c-plus-plus}0X, C11 or nested functions, the corresponding parameters should be used. -Use `features` to request a list of features supported by the default compiler. After including [.filename]#bsd.port.pre.mk# the port can inspect the results using these variables: +Use `features` to request a list of features supported by the default compiler. +After including [.filename]#bsd.port.pre.mk# the port can inspect the results using these variables: * `COMPILER_TYPE`: the default compiler on the system, either gcc or clang * `ALT_COMPILER_TYPE`: the alternative compiler on the system, either gcc or clang. Only set if two compilers are present in the base system. @@ -248,10 +288,11 @@ Use `features` to request a list of features supported by the default compiler. Possible arguments: (none) -Include Common Platform Enumeration (CPE) information in package manifest as a CPE 2.3 formatted string. See the http://scap.nist.gov/specifications/cpe/[CPE specification] for details. To add CPE information to a port, follow these steps: +Include Common Platform Enumeration (CPE) information in package manifest as a CPE 2.3 formatted string. +See the http://scap.nist.gov/specifications/cpe/[CPE specification] for details. +To add CPE information to a port, follow these steps: [.procedure] -==== . Search for the official CPE entry for the software product either by using the NVD's http://web.nvd.nist.gov/view/cpe/search[CPE search engine] or in the http://static.nvd.nist.gov/feeds/xml/cpe/dictionary/official-cpe-dictionary_v2.3.xml[official CPE dictionary] (warning, very large XML file). _Do not ever make up CPE data._ . Add `cpe` to `USES` and compare the result of `make -V CPE_STR` to the CPE dictionary entry. Continue one step at a time until `make -V CPE_STR` is correct. . If the product name (second field, defaults to `PORTNAME`) is incorrect, define `CPE_PRODUCT`. @@ -261,21 +302,24 @@ Include Common Platform Enumeration (CPE) information in package manifest as a C . If it is still not correct, check [.filename]#Mk/Uses/cpe.mk# for additional details, or contact the {ports-secteam}. . Derive as much as possible of the CPE name from existing variables such as `PORTNAME` and `PORTVERSION`. Use variable modifiers to extract the relevant portions from these variables rather than hardcoding the name. . _Always_ run `make -V CPE_STR` and check the output before committing anything that changes `PORTNAME` or `PORTVERSION` or any other variable which is used to derive `CPE_STR`. -==== [[uses-cran]] == `cran` Possible arguments: (none), `auto-plist`, `compiles` -Uses the Comprehensive R Archive Network. Specify `auto-plist` to automatically generate [.filename]#pkg-plist#. Specify `compiles` if the port has code that need to be compiled. +Uses the Comprehensive R Archive Network. +Specify `auto-plist` to automatically generate [.filename]#pkg-plist#. +Specify `compiles` if the port has code that need to be compiled. [[uses-desktop-file-utils]] == `desktop-file-utils` Possible arguments: (none) -Uses update-desktop-database from package:devel/desktop-file-utils[]. An extra post-install step will be run without interfering with any post-install steps already in the port [.filename]#Makefile#. A line with <<plist-keywords-desktop-file-utils,`@desktop-file-utils`>> will be added to the plist. +Uses update-desktop-database from package:devel/desktop-file-utils[]. +An extra post-install step will be run without interfering with any post-install steps already in the port [.filename]#Makefile#. +A line with <<plist-keywords-desktop-file-utils,`@desktop-file-utils`>> will be added to the plist. [[uses-desthack]] == `desthack` @@ -289,14 +333,19 @@ Changes the behavior of GNU configure to properly support `DESTDIR` in case the Possible arguments: (none), _ARGS_ -Set up a virtual display environment. If the environment variable `DISPLAY` is not set, then Xvfb is added as a build dependency, and `CONFIGURE_ENV` is extended with the port number of the currently running instance of Xvfb. The _ARGS_ parameter defaults to `install` and controls the phase around which to start and stop the virtual display. +Set up a virtual display environment. +If the environment variable `DISPLAY` is not set, then Xvfb is added as a build dependency, and `CONFIGURE_ENV` is extended with the port number of the currently running instance of Xvfb. +The _ARGS_ parameter defaults to `install` and controls the phase around which to start and stop the virtual display. [[uses-dos2unix]] == `dos2unix` Possible arguments: (none) -The port has files with line endings in DOS format which need to be converted. Several variables can be set to control which files will be converted. The default is to convert _all_ files, including binaries. See <<slow-patch-automatic-replacements>> for examples. +The port has files with line endings in DOS format which need to be converted. +Several variables can be set to control which files will be converted. +The default is to convert _all_ files, including binaries. +See crossref:slow-porting[slow-patch-automatic-replacements,Simple Automatic Replacements] for examples. * `DOS2UNIX_REGEX`: match file names based on a regular expression. * `DOS2UNIX_FILES`: match literal file names. @@ -308,21 +357,33 @@ The port has files with line endings in DOS format which need to be converted. S Possible arguments: `7`, `module`, `theme` -Automate installation of a port that is a Drupal theme or module. Use with the version of Drupal that the port is expecting. For example, `USES=drupal:7,module` says that this port creates a Drupal 6 module. A Drupal 7 theme can be specified with `USES=drupal:7,theme`. +Automate installation of a port that is a Drupal theme or module. +Use with the version of Drupal that the port is expecting. +For example, `USES=drupal:7,module` says that this port creates a Drupal 6 module. +A Drupal 7 theme can be specified with `USES=drupal:7,theme`. + +[[uses-eigen]] +== `eigen` + +Possible arguments: 2, 3, build (default), run + +Add dependency on package:math/eigen[]. [[uses-fakeroot]] == `fakeroot` Possible arguments: (none) -Changes some default behavior of build systems to allow installing as a user. See https://wiki.debian.org/FakeRoot[] for more information on `fakeroot`. +Changes some default behavior of build systems to allow installing as a user. +See https://wiki.debian.org/FakeRoot[] for more information on `fakeroot`. [[uses-fam]] == `fam` Possible arguments: (none), `fam`, `gamin` -Uses a File Alteration Monitor as a library dependency, either package:devel/fam[] or package:devel/gamin[]. End users can set WITH_FAM_SYSTEM to specify their preference. +Uses a File Alteration Monitor as a library dependency, either package:devel/fam[] or package:devel/gamin[]. +End users can set WITH_FAM_SYSTEM to specify their preference. [[uses-firebird]] == `firebird` @@ -336,7 +397,10 @@ Add a dependency to the client library of the Firebird database. Possible arguments: (none), `fc`, `fcfontsdir` (default), `fontsdir`, `none` -Adds a runtime dependency on tools needed to register fonts. Depending on the argument, add a `<<plist-keywords-fc,@fc>> ${FONTSDIR}` line, `<<plist-keywords-fcfontsdir,@fcfontsdir>> ${FONTSDIR}` line, `<<plist-keywords-fontsdir,@fontsdir>> ${FONTSDIR}` line, or no line if the argument is `none`, to the plist. `FONTSDIR` defaults to [.filename]#${PREFIX}/shared/fonts/${FONTNAME}# and `FONTNAME` to `${PORTNAME}`. Add `FONTSDIR` to `PLIST_SUB` and `SUB_LIST` +Adds a runtime dependency on tools needed to register fonts. +Depending on the argument, add a `crossref:plist[plist-keywords-fc,@fc] ${FONTSDIR}` line, `crossref:plist[plist-keywords-fcfontsdir,@fcfontsdir] ${FONTSDIR}` line, `crossref:plist[plist-keywords-fontsdir,@fontsdir] ${FONTSDIR}` line, or no line if the argument is `none`, to the plist. +`FONTSDIR` defaults to [.filename]#${PREFIX}/share/fonts/${FONTNAME}# and `FONTNAME` to `${PORTNAME}`. +Add `FONTSDIR` to `PLIST_SUB` and `SUB_LIST` [[uses-fortran]] == `fortran` @@ -357,42 +421,53 @@ The port will depend on the FUSE library and handle the dependency on the kernel Possible arguments: (none), `noautoplist` -Handle building with RubyGems. If `noautoplist` is used, the packing list is not generated automatically. +Handle building with RubyGems. +If `noautoplist` is used, the packing list is not generated automatically. [[uses-gettext]] == `gettext` Possible arguments: (none) -Deprecated. Will include both <<uses-gettext-runtime,`gettext-runtime`>> and <<uses-gettext-tools,`gettext-tools`>>. +Deprecated. +Will include both <<uses-gettext-runtime,`gettext-runtime`>> and <<uses-gettext-tools,`gettext-tools`>>. [[uses-gettext-runtime]] == `gettext-runtime` Possible arguments: (none), `lib` (default), `build`, `run` -Uses package:devel/gettext-runtime[]. By default, with no arguments or with the `lib` argument, implies a library dependency on [.filename]#libintl.so#. `build` and `run` implies, respectively a build-time and a run-time dependency on [.filename]#gettext#. +Uses package:devel/gettext-runtime[]. +By default, with no arguments or with the `lib` argument, implies a library dependency on [.filename]#libintl.so#. +`build` and `run` implies, respectively a build-time and a run-time dependency on [.filename]#gettext#. [[uses-gettext-tools]] == `gettext-tools` Possible arguments: (none), `build` (default), `run` -Uses package:devel/gettext-tools[]. By default, with no argument, or with the `build` argument, a build time dependency on [.filename]#msgfmt# is registered. With the `run` argument, a run-time dependency is registered. +Uses package:devel/gettext-tools[]. +By default, with no argument, or with the `build` argument, a build time dependency on [.filename]#msgfmt# is registered. +With the `run` argument, a run-time dependency is registered. [[uses-ghostscript]] == `ghostscript` Possible arguments: _X_, `build`, `run`, `nox11` -A specific version _X_ can be used. Possible versions are `7`, `8`, `9`, and `agpl` (default). `nox11` indicates that the `-nox11` version of the port is required. `build` and `run` add build- and run-time dependencies on Ghostscript. The default is both build- and run-time dependencies. +A specific version _X_ can be used. Possible versions are `7`, `8`, `9`, and `agpl` (default). +`nox11` indicates that the `-nox11` version of the port is required. +`build` and `run` add build- and run-time dependencies on Ghostscript. +The default is both build- and run-time dependencies. [[uses-gl]] == `gl` Possible arguments: (none) -Provides an easy way to depend on GL components. The components should be listed in `USE_GL`. The available components are: +Provides an easy way to depend on GL components. +The components should be listed in `USE_GL`. +The available components are: `egl`:: add a library dependency on [.filename]#libEGL.so# from package:graphics/libglvnd[] @@ -430,7 +505,9 @@ Uses package:devel/gmake[] as a build-time dependency and sets up the environmen Possible arguments: (none) -Provides an easy way to depend on GNOME components. The components should be listed in `USE_GNOME`. The available components are: +Provides an easy way to depend on GNOME components. +The components should be listed in `USE_GNOME`. +The available components are: * `atk` * `atkmm` @@ -514,7 +591,8 @@ Provides an easy way to depend on GNOME components. The components should be lis * `vte` * `vte3` -The default dependency is build- and run-time, it can be changed with `:build` or `:run`. For example: +The default dependency is build- and run-time, it can be changed with `:build` or `:run`. +For example: [.programlisting] .... @@ -522,30 +600,45 @@ USES= gnome USE_GNOME= gnomemenus3:build intlhack .... -See <<using-gnome>> for more information. +See crossref:special[using-gnome,Using GNOME] for more information. [[uses-go]] == `go` [IMPORTANT] ==== -Ports should not be created for Go libs, see <<go-libs>> for more information. +Ports should not be created for Go libs, see crossref:special[go-libs,Go Libraries] for more information. ==== Possible arguments: (none), `modules`, `no_targets`, `run` -Sets default values and targets used to build Go software. A build dependency on the Go compiler port selected via `GO_PORT` is added. By default the build is performed in GOPATH mode. If Go software uses modules, the modules-aware mode can be switched on with `modules` argument. `no_targets` will setup build environment like `GO_ENV`, `GO_BUILDFLAGS` but skip creating `post-extract` and `do-{build,install,test}` targets. `run` will also add a run dependency on what is in `GO_PORT`. +Sets default values and targets used to build Go software. +A build dependency on the Go compiler port selected via `GO_PORT` is added. +By default the build is performed in GOPATH mode. +If Go software uses modules, the modules-aware mode can be switched on with `modules` argument. +`no_targets` will setup build environment like `GO_ENV`, `GO_BUILDFLAGS` but skip creating `post-extract` and `do-{build,install,test}` targets. +`run` will also add a run dependency on what is in `GO_PORT`. The build process is controlled by several variables: +`GO_MODULE`:: +The name of the application module as specified by the `module` directive in `go.mod`. +In most cases, this is the only required variable for ports that use Go modules. + `GO_PKGNAME`:: -The name of the Go package when building in GOPATH mode. This is the directory that will be created in `${GOPATH}/src`. If not set explicitly and `GH_SUBDIR` or `GL_SUBDIR` is present, `GO_PKGNAME` will be inferred from it. It is not needed when building in modules-aware mode. +The name of the Go package when building in GOPATH mode. +This is the directory that will be created in `${GOPATH}/src`. +If not set explicitly and `GH_SUBDIR` or `GL_SUBDIR` is present, `GO_PKGNAME` will be inferred from it. *** 895 LINES SKIPPED ***