From owner-freebsd-stable Wed Mar 26 23:47:44 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id XAA10996 for stable-outgoing; Wed, 26 Mar 1997 23:47:44 -0800 (PST) Received: from mailhost.anasazi.com (mailhost.anasazi.com [138.113.128.2]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id XAA10990 for ; Wed, 26 Mar 1997 23:47:42 -0800 (PST) Received: from chad.anasazi.com by mailhost.anasazi.com (5.65/3.7) id AA23134; Thu, 27 Mar 97 00:47:10 -0700 Received: by chad.anasazi.com (5.65/3.7) id AA09178; Thu, 27 Mar 97 00:47:07 -0700 From: chad@anasazi.com (Chad R. Larson) Message-Id: <9703270747.AA09178@chad.anasazi.com> Subject: documentation suggestion To: jkh@time.cdrom.com (Jordan K. Hubbard) Date: Thu, 27 Mar 1997 00:47:06 -0700 (MST) Cc: freebsd-stable@freebsd.org In-Reply-To: <755.859362576@time.cdrom.com> from "Jordan K. Hubbard" at Mar 25, 97 11:49:36 pm Reply-To: chad@anasazi.com X-Mailer: ELM [version 2.4 PL23] Content-Type: text Sender: owner-stable@freebsd.org X-Loop: FreeBSD.org Precedence: bulk I just spent a couple of hours trying to put together my first "package" under FreeBSD. I had come to the conclusion that the "@srcdir" pseudo filename in the contents file was broken. I solved my riddle by reading the source code to pkg_create. That's why we're all here, right? Here's the contents file I was trying to use: @name ediff-v2 @owner bin @group bin @srcdir /usr/local/src/ediff @cwd /usr/local/bin ediff @cwd /usr/local/man/man1 ediff.1 You've probably already spotted the error. Here's the file that finally worked: @name ediff-v2 @owner bin @group bin @cwd /usr/local/bin @srcdir /usr/local/src/ediff ediff @cwd /usr/local/man/man1 @srcdir /usr/local/src/ediff ediff.1 Silly me. I took the word "override" in the man page literally. I quote: @srcdir directory Sets the internal directory pointer for _creation only_ to directory. That is to say that it overrides @cwd for package creation but not extraction. How about instead for the second sentence to read "Works just like @cwd except it is ignored during extraction." -crl -- Chad R. Larson (CRL22) Brother, can you paradigm? 602-870-3330 chad@anasazi.com chad@anasaz.UUCP chad@dcfinc.com Anasazi, Inc. - 7500 North Dreamy Draw Drive, Suite 120, Phoenix, Az 85020