401 | | * https://en.wikipedia.org/wiki/Gentoo/Alt Gentoo Prefix |
| 402 | ===== Example ===== |
| 403 | {{{#!sh |
| 404 | $ sudo aptitude install cvs |
| 405 | $ mkdir pkgsrc |
| 406 | $ cd pkgsrc/ |
| 407 | $ cvs -d anoncvs@anoncvs.netbsd.org:/cvsroot co -rpkgsrc-2014Q4 -P pkgsrc # UPDATE this! See News on http://pkgsrc.org/ |
| 408 | $ cd pkgsrc/bootstrap/ |
| 409 | $ rm -r work/ # just in case it is not the first attempt to compile |
| 410 | $ env SH=/bin/bash ./bootstrap --prefix=${HOME}/pkgsrc --unprivileged |
| 411 | ... |
| 412 | => Please note the following: |
| 413 | |
| 414 | =========================================================================== |
| 415 | $NetBSD: MESSAGE,v 1.6 2014/12/05 14:31:07 schmonz Exp $ |
| 416 | |
| 417 | You may wish to have the vulnerabilities file downloaded daily so that |
| 418 | it remains current. This may be done by adding an appropriate entry |
| 419 | to a user's crontab(5) entry. For example the entry |
| 420 | |
| 421 | # download vulnerabilities file |
| 422 | 0 3 * * * /home/$USER/pkgsrc/sbin/pkg_admin fetch-pkg-vulnerabilities >/dev/null 2>&1 |
| 423 | |
| 424 | will update the vulnerability list every day at 3AM. You may wish to do |
| 425 | this more often than once a day. |
| 426 | |
| 427 | In addition, you may wish to run the package audit from the daily |
| 428 | security script. This may be accomplished by adding the following |
| 429 | lines to /etc/security.local |
| 430 | |
| 431 | if [ -x /home/$USER/pkgsrc/sbin/pkg_admin ]; then |
| 432 | /home/$USER/pkgsrc/sbin/pkg_admin audit |
| 433 | fi |
| 434 | |
| 435 | Alternatively this can also be acomplished by adding an entry to a user's |
| 436 | crontab(5) file. e.g.: |
| 437 | |
| 438 | # run audit-packages |
| 439 | 0 3 * * * /home/$USER/pkgsrc/sbin/pkg_admin audit |
| 440 | |
| 441 | Both pkg_admin subcommands can be run as as an unprivileged user, |
| 442 | as long as the user chosen has permission to read the pkgdb and to write |
| 443 | the pkg-vulnerabilities to /home/$USER/pkgsrc/var/db/pkg. |
| 444 | |
| 445 | The behavior of pkg_admin and pkg_add can be customised with |
| 446 | pkg_install.conf. Please see pkg_install.conf(5) for details. |
| 447 | |
| 448 | If you want to use GPG signature verification you will need to install |
| 449 | GnuPG and set the path for GPG appropriately in your pkg_install.conf. |
| 450 | =========================================================================== |
| 451 | |
| 452 | => Registering installation for pkg_install-20130902nb1 |
| 453 | ===> running: /bin/sh /tmp/pkgsrc/pkgsrc/bootstrap/work/bin/install-sh -d -o $USER -g $USER /home/$USER/pkgsrc/etc |
| 454 | |
| 455 | =========================================================================== |
| 456 | |
| 457 | Please remember to add /home/$USER/pkgsrc/bin to your PATH environment variable |
| 458 | and /home/$USER/pkgsrc/man to your MANPATH environment variable, if necessary. |
| 459 | |
| 460 | An example mk.conf file with the settings you provided to "bootstrap" |
| 461 | has been created for you. It can be found in: |
| 462 | |
| 463 | /home/$USER/pkgsrc/etc/mk.conf |
| 464 | |
| 465 | You can find extensive documentation of the NetBSD Packages Collection |
| 466 | in /tmp/pkgsrc/pkgsrc/doc/pkgsrc.txt. |
| 467 | |
| 468 | Hopefully everything is now complete. |
| 469 | Thank you for using pkgsrc! |
| 470 | |
| 471 | =========================================================================== |
| 472 | }}} |
| 473 | ==== Gentoo Prefix ==== |
| 474 | * https://en.wikipedia.org/wiki/Gentoo/Alt |