Skip to content
/ neatsrc Public

Just for me, not for you.

Notifications You must be signed in to change notification settings

obache/neatsrc

Repository files navigation

Please ignore doc/pkgsrc.txt for information, it's not maintained.

This is just neat source tree for me, not for you. Feel free to fork this repository and create your neat source tree. But you MUST NOT apply diffs in this repository to your tree without understanding the full meaning of it, especially for TNF pkgsrc tree. It require PROPOSED AND DISCUSSED FIRST before commit and start to bikeshed discussion for several years. I would like to say "It's wrong" without particular reason to the propose, it's the TNF way.

Above notes are neither LICENSE not COPYRIGHT restriction, it's just a manner, but it is clear that quite a bit of patches originally from pkgsrc have unclear LICENSE and/or COPYRIGHT, so you have to be very careful when you have a mind to send diffs to upstream developers.

pkgsrc

pkgsrc is a framework for building software for a variety of UNIX-like systems.

It produces binary packages, which can be managed with tools such as pkgin. pkgsrc is highly configurable, supporting building packages for an arbitrary installation prefix (the default is /usr/pkg), allowing multiple branches to coexist on one machine, a build options framework, and a compiler transformation framework, among other advanced features. Unprivileged use and installation is also supported.

pkgsrc is the default package manager for NetBSD and SmartOS. It's also supported as a first-class option in OmniOS CE and Oasis Linux.

Bootstrapping

To use pkgsrc on operating systems other than NetBSD, you first need to bootstrap:

cd pkgsrc/bootstrap
./bootstrap

Note that this is only for the most simple case, using pkgsrc's defaults.

Please consult bootstrap/README and bootstrap/README.OS for detailed information about bootstrapping.

Building packages

cd pkgsrc/category/package-name
$PREFIX/bin/bmake install

Where $PREFIX is where you've chosen to install packages (typically /usr/pkg)

On NetBSD, bmake is simply the built-in make tool.

To build packages in bulk, tools such as pkgtools/pbulk and pkgtools/pkg_comp can be used.

Community / Troubleshooting

Latest sources

To fetch the main CVS repository:

cvs -d anoncvs@anoncvs.NetBSD.org:/cvsroot checkout -P pkgsrc

To work in the Git mirror, which is updated every few hours from CVS:

git clone https://github.com/NetBSD/pkgsrc.git

Additional links