Subject: pkgsrc on FreeBSD 6.0
To: None <tech-pkg@NetBSD.org>
From: Lars Nordlund <lars.nordlund@hem.utfors.se>
List: tech-pkg
Date: 08/08/2005 21:52:30
Hello

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 www.freebsd.org
suggests it only exist in FreeBSD-ports right now. I solved it with
this patch to tools.FreeBSD.mk:

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