The OpenNET Project / Index page

[ новости /+++ | форум | теги | ]

Поиск:  Каталог документации / Документация по FreeBSD / Руководства по FreeBSD на английском

15.8 Install additional documentation

If your software has some documentation other than the standard man and info pages that you think is useful for the user, install it under PREFIX/share/doc. This can be done, like the previous item, in the post-install target.

Create a new directory for your port. The directory name should reflect what the port is. This usually means PORTNAME. However, if you think the user might want different versions of the port to be installed at the same time, you can use the whole PKGNAME.

Make the installation dependent to the variable NOPORTDOCS so that users can disable it in /etc/make.conf, like this:

    post-install:
    .if !defined(NOPORTDOCS)
            ${MKDIR} ${PREFIX}/share/doc/xv
            ${INSTALL_MAN} ${WRKSRC}/docs/xvdocs.ps ${PREFIX}/share/doc/xv
    .endif

All documentation files and directories installed should be included in pkg-plist with the %%PORTDOCS%% prefix, for example:

    %%PORTDOCS%%share/doc/pure-ftpd/AUTHORS
    %%PORTDOCS%%share/doc/pure-ftpd/CONTACT
    %%PORTDOCS%%@dirrm share/doc/pure-ftpd

You can also use the pkg-message file to display messages upon installation. See the using pkg-message section for details.

Note: pkg-message does not need to be added to pkg-plist.

For questions about the FreeBSD ports system, e-mail <ports@FreeBSD.org>.
For questions about this documentation, e-mail <doc@FreeBSD.org>.


Партнёры:
PostgresPro
Inferno Solutions
Hosting by Hoster.ru
Хостинг:

Закладки на сайте
Проследить за страницей
Created 1996-2024 by Maxim Chirkov
Добавить, Поддержать, Вебмастеру