openbsd-ports/infrastructure
espie 2a525277b7 `Fake' infrastructure:
if a port sets FAKE=Yes, this means it can be `pre'-installed elsewhere,
with DESTDIR set to WRKINST (=work/fake-${ARCH} by default).

the infrastructure takes care of pre-install/do-install/post-install targets,
assuming those install stuff under PREFIX.

To help ports to cope with DESTDIR, you can set FAKE_FLAGS and FAKE_TARGET
(used for the fake installation).

Ports with FAKE=Yes are the way to go: they can be packaged directly without
a real installation, and the installation proceeds from the package, thus
forcing porters to check the package.
2000-03-03 21:24:50 +00:00
..
build Tweak the packaging slightly 1999-10-07 14:22:36 +00:00
db `Fake' infrastructure: 2000-03-03 21:24:50 +00:00
fetch cleaner 1999-05-28 19:21:42 +00:00
install `Fake' infrastructure: 2000-03-03 21:24:50 +00:00
mk `Fake' infrastructure: 2000-03-03 21:24:50 +00:00
package use tar's q flag for speed 1999-10-26 15:37:42 +00:00
templates nix LICENSE_TYPE. This is much prettier now. 2000-03-03 14:23:10 +00:00
README Document what currently exists 1999-10-26 15:38:06 +00:00

This directory does not hold ports, but rather stuff to help
with building specific ports, or with checking packages.

Better documentation will be written as this progresses.

Quick list of what exists, most useful stuff first

build/bundle-readmes: 
	create README.html files and bundle them as one tar archive.

fetch/check-distfiles
	heuristic to check the whole contents of /usr/ports/distfiles against
	all MD5 files in the ports tree.
	
packages/check-dependencies
	Check dependencies for all packages in the current directory.
	Basically, verifies that the tsort in bsd.port.mk did their job.

build/find-build-order
	used such as cat db/essentials | build/find-build-order
	outputs a list of stuff that actually needs to be built to obtain those
	packges, in a suitable order for removing backward dependencies.

	Optional arg `build' or `run' to take only build or run dependencies
	into account.

	Major defect: tsort is not a stable sort, so find-build-order will
	rearrange the list it gets as input.

build/out-of-date
	compare installed registered  packages with INDEX, try to find out 
	of date ports.

install/make-plist
	perl helper for the make plist target

db/network.conf
	Distfiles configuration. Tweakable by the user

fetch/check-license
	legacy script used by Marco to check the LICENSE files

install/create-user
	simple script to create new users account, based on db/users.db