Subject: Re: Probably silly question
To: Erik E. Fair <fair@clock.org>
From: David Maxwell <david@vex.net>
List: port-sparc
Date: 05/13/2003 14:40:59
On Tue, May 13, 2003 at 10:49:09AM -0700, Erik E. Fair wrote:
> There is a program I wrote ages ago that is in the basesrc that might 
> be useful: shlock(1).

The implementation in pkgsrc already uses shlock(1). It's in pkgtools
for pkgsrc use on non-NetBSD platforms.

The initial version that I wrote in a PR even used shlock, from your
recommendation on a mailing list when this locking question came up,
~1999

http://www.netbsd.org/cgi-bin/query-pr-single.pl?number=7590

from bsd.pkg.mk:


.if (${PKGSRC_LOCKTYPE} == "sleep" || ${PKGSRC_LOCKTYPE} == "once")
. if !defined(OBJHOSTNAME)
PKG_FAIL_REASON+='PKGSRC_LOCKTYPE needs OBJHOSTNAME defined.'
. elif !exists(${SHLOCK})
PKG_FAIL_REASON+='The ${SHLOCK} utility does not exist, and is necessary
for locking.'
PKG_FAIL_REASON+='Please "${MAKE} install" in ../../pkgtools/shlock.' 
. endif
.endif

-- 
David Maxwell, david@vex.net|david@maxwell.net -->
Any sufficiently advanced Common Sense will seem like magic... 
					      - me