Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision | ||
| playground:package-messages [2018/03/12 18:58] – jeff | playground:package-messages [2018/03/12 20:08] – [Overview] jeff | ||
|---|---|---|---|
| Line 3: | Line 3: | ||
| ===== Overview ===== | ===== Overview ===== | ||
| - | At present, '' | + | At present, '' |
| - | Other package-management systems, such as '' | + | '' |
| + | |||
| + | It is not clear that '' | ||
| This page is a work-in-progress to define the use cases and success criteria for any future development of such a facility. At the time of this writing (March, 2018), there is not a schedule for such development. | This page is a work-in-progress to define the use cases and success criteria for any future development of such a facility. At the time of this writing (March, 2018), there is not a schedule for such development. | ||
| Line 37: | Line 39: | ||
| ===== Similar Implementations ===== | ===== Similar Implementations ===== | ||
| - | This section describes how package messages are handled in other Unix-like operating systems. It is intended as a reference for the specification of behavior that is appropriate in the OpenWRT environment. | + | This section describes how package messages are handled in other Unix-like operating systems. It is intended as a reference for the preparation of specification of behavior that is appropriate in the OpenWRT environment. |
| ==== FreeBSD ==== | ==== FreeBSD ==== | ||
| Line 43: | Line 45: | ||
| Recent FreeBSD distributions use the '' | Recent FreeBSD distributions use the '' | ||
| + | Note that portions of this content may be subject to [[https:// | ||
| + | |||
| + | === Package Install Example === | ||
| + | |||
| + | < | ||
| + | jeff@js:~$ sudo pkg upgrade | ||
| + | Updating FreeBSD repository catalogue... | ||
| + | FreeBSD repository is up to date. | ||
| + | All repositories are up to date. | ||
| + | Checking for upgrades (59 candidates): | ||
| + | Processing candidates (59 candidates): | ||
| + | The following 2 package(s) will be affected (of 0 checked): | ||
| + | |||
| + | Installed packages to be UPGRADED: | ||
| + | nspr: 4.18 -> 4.19 | ||
| + | ca_root_nss: | ||
| + | |||
| + | Number of packages to be upgraded: 2 | ||
| + | |||
| + | 533 KiB to be downloaded. | ||
| + | |||
| + | Proceed with this action? [y/N]: y | ||
| + | [1/2] Fetching nspr-4.19.txz: | ||
| + | [2/2] Fetching ca_root_nss-3.36.txz: | ||
| + | Checking integrity... done (0 conflicting) | ||
| + | [1/2] Upgrading nspr from 4.18 to 4.19... | ||
| + | [1/2] Extracting nspr-4.19: 100% | ||
| + | [2/2] Upgrading ca_root_nss from 3.35 to 3.36... | ||
| + | Extracting ca_root_nss-3.36: | ||
| + | Message from ca_root_nss-3.36: | ||
| + | |||
| + | ********************************* WARNING ********************************* | ||
| + | |||
| + | FreeBSD does not, and can not warrant that the certification authorities | ||
| + | whose certificates are included in this package have in any way been | ||
| + | audited for trustworthiness or RFC 3647 compliance. | ||
| + | |||
| + | Assessment and verification of trust is the complete responsibility of the | ||
| + | system administrator. | ||
| + | |||
| + | *********************************** NOTE ********************************** | ||
| + | |||
| + | This package installs symlinks to support root certificates discovery by | ||
| + | default for software that uses OpenSSL. | ||
| + | |||
| + | This enables SSL Certificate Verification by client software without manual | ||
| + | intervention. | ||
| + | |||
| + | If you prefer to do this manually, replace the following symlinks with | ||
| + | either an empty file or your site-local certificate bundle. | ||
| + | |||
| + | * / | ||
| + | * / | ||
| + | * / | ||
| + | |||
| + | *************************************************************************** | ||
| + | </ | ||
| + | |||
| + | === Package Query Example === | ||
| + | |||
| + | < | ||
| + | jeff@js:~$ pkg query %M postfix | ||
| + | Always: | ||
| + | To use postfix instead of sendmail: | ||
| + | - clear sendmail queue and stop the sendmail daemons | ||
| + | |||
| + | Run the following commands to enable postfix during startup: | ||
| + | - sysrc postfix_enable=" | ||
| + | - sysrc sendmail_enable=" | ||
| + | |||
| + | If postfix is *not* already activated in / | ||
| + | - mv / | ||
| + | - install -m 0644 / | ||
| + | |||
| + | Disable sendmail(8) specific tasks, | ||
| + | add the following lines to / | ||
| + | daily_clean_hoststat_enable=" | ||
| + | daily_status_mail_rejects_enable=" | ||
| + | daily_status_include_submit_mailq=" | ||
| + | daily_submit_queuerun=" | ||
| + | |||
| + | If you are using SASL, you need to make sure that postfix has access to read | ||
| + | the sasldb file. This is accomplished by adding postfix to group mail and | ||
| + | making the / | ||
| + | be the default for new installs). | ||
| + | |||
| + | If you are upgrading from prior postfix version, please see the README | ||
| + | files for recommended changes to your configuration and additional | ||
| + | http:// | ||
| + | </ | ||
| + | |||
| + | === Implementation === | ||
| + | |||
| + | Primary documentation for the FreeBSD '' | ||
| + | |||
| + | FreeBSD does not, in its base configuration, | ||
| + | |||
| + | There is [[https:// | ||
| + | |||
| + | > To display a message when the package is installed, place the message in pkg-message. This capability is often useful to display additional installation steps to be taken after a pkg install or to display licensing information. | ||
| + | |||
| + | > When some lines about the build-time knobs or warnings have to be displayed, use ECHO_MSG. pkg-message is only for post-installation steps. Likewise, the distinction between ECHO_MSG is for printing informational text to the screen and ECHO_CMD is for command pipelining: | ||
| + | |||
| + | < | ||
| + | update-etc-shells: | ||
| + | @${ECHO_MSG} " | ||
| + | @${CP} /etc/shells / | ||
| + | @( ${GREP} -v ${PREFIX}/ | ||
| + | ${ECHO_CMD} ${PREFIX}/ | ||
| + | @${RM} / | ||
| + | </ | ||
| + | |||
| + | ==== Debian-based Systems ==== | ||
| + | |||
| + | Debian-based systems typically use the '' | ||
| + | |||
| + | Debian packaging has a [[https:// | ||
| + | |||
| + | https:// | ||
| + | |||
| + | The presence or absence of a " | ||
| + | > Maintainer scripts are not guaranteed to run with a controlling terminal and may not be able to interact with the user. They must be able to fall back to noninteractive behavior if no controlling terminal is available. Maintainer scripts that prompt via a program conforming to the Debian Configuration Management Specification (see Prompting in maintainer scripts) may assume that program will handle falling back to noninteractive behavior. | ||
| + | [[https:// | ||
| + | ==== RedHat/ | ||
| + | RedHat, Fedora, and their derivatives use the [[https:// | ||