OpenBSD has a "ports/packages" system for installing third party software, very similar, IIRC, to the ones that FreeBSD and Mac OS X use. It is best to use this system, whenever possible, instead of compiling source code directly. A "port" is a collection of source files that are used to build a binary "package" for a given piece of third party software. Each port consists of the third party source, a Makefile and some other special files. The ports are connected together by some more special Makefiles and files, to make a massive tree structure. OpenBSD doesn't install ports, it installs the binary packages that ports create. The make targets to get from a port to an installed package are as follows (in order):
fetch - Fetches all of the third party source file(s) needed to build the port.
checksum - Verifies the fetched source file(s).
prepare - Installs any build dependencies of the port.
extract - Extracts the source file(s) into a work directory.
patch - Applies any patches that are necessary for the port.
configure - Configures the port.
build - Builds the port.
fake - Pretends to install the port under a subdirectory of the work directory.
package - Creates a binary package from the fake installation.
install - Installs the resulting package.
Unless I'm missing something, ${prefix} would usually be /usr/local, not /usr, so we would be dealing with /usr/local/share/examples.Z-Man wrote:I don't have /usr/share/examples.
I don't fully understand it either, yet, although I am learningZ-Man wrote:I'm not quite sure how that is even supposed to work
Kind of. I think the ports/packages system performs the magic somewhere along the process.Z-Man wrote:is there some magic in BSD's 'install' command
Yes.Z-Man wrote:Is it even required?
I can't paste it here due to X Server mouse issues but basically I get an error from the ports/package system saying it can't find the example/config files in question. This happens at the make package stage.Z-Man wrote:If yes, what's the error you get if you don't apply it?
Thanks. Something tells me that there must be a fairly simple solution.Z-Man wrote:I'll try to look into it for the current branches.