Subject: pkgsrc on FreeBSD 6.0
To: None <>
From: Lars Nordlund <>
List: tech-pkg
Date: 08/08/2005 21:52:30

I have a freshly installed beta of FreeBSD 6.0 which I am running
pkgsrc on. I have run into the following things so far:

/usr/bin/shlock does not exist on my system. I can not find it in
FreeBSD cvs either. Looking at the manual pages at
suggests it only exist in FreeBSD-ports right now. I solved it with
this patch to

RCS file: /home/cvs/cvsup/netbsd/pkgsrc/mk/tools/,v
retrieving revision 1.17
diff -u -r1.17
---    24 Jun 2005 20:59:59 -0000      1.17
+++    8 Aug 2005 19:25:40 -0000
@@ -55,7 +55,9 @@
 TOOLS_PLATFORM.rmdir?=         /bin/rmdir
 TOOLS_PLATFORM.sed?=           /usr/bin/sed            /bin/sh
+.if exists(/usr/bin/shlock)
 TOOLS_PLATFORM.shlock?=                /usr/bin/shlock
 TOOLS_PLATFORM.sort?=          /usr/bin/sort
 TOOLS_PLATFORM.strip?=         /usr/bin/strip
 TOOLS_PLATFORM.tail?=          /usr/bin/tail

Building and installing pkgtools/shlock generates an error message when
handling the manual page. One possible fix might be to add FreeBSD to
the list of operating systems with NOMAN=YES.

Best regards
	Lars Nordlund