SUMMARY="Prints out values of POSIX configuration variables"
DESCRIPTION="
FreeBSD getconf
The getconf command prints values of system configuration variables. It is a \
command interface to the values returned by sysconf(3), confstr(3), and \
pathconf(3).
"
HOMEPAGE="http://www.freebsd.org/"
COPYRIGHT="2000 Massachusetts Institute of Technology"
LICENSE="MIT"
SOURCE_URI="svn+http://svn.freebsd.org/base/head/usr.bin/getconf#260000"
#CHECKSUM_MD5=""
REVISION="1"
ARCHITECTURES="x86_gcc2 x86 x86_64"

PATCHES="getconf-makefile.patch"

PROVIDES="
	getconf = $portVersion
	cmd:getconf = $portVersion
"
REQUIRES="
	haiku
"
BUILD_REQUIRES="
	haiku_devel
"
BUILD_PREREQUIRES="
	makefile_engine
	cmd:awk
	cmd:gcc
	cmd:make
"

BUILD()
{
	export COPYRIGHT
	export LICENSE
	export PORT_VERSION=$portVersion
	make -f makefile.haiku $jobArgs
}

INSTALL()
{
	make -f makefile.haiku install INSTALL_DIR=$binDir
	mkdir -p $manDir/man1
	install -m 644 getconf.1 $manDir/man1/
}
