From owner-freebsd-questions Thu Jun 14 10:22:51 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mailhost.iprg.nokia.com (mailhost.iprg.nokia.com [205.226.5.12]) by hub.freebsd.org (Postfix) with ESMTP id E86EA37B405 for ; Thu, 14 Jun 2001 10:22:45 -0700 (PDT) (envelope-from gilmurra@iprg.nokia.com) Received: from darkstar.iprg.nokia.com (darkstar.iprg.nokia.com [205.226.5.69]) by mailhost.iprg.nokia.com (8.9.3/8.9.3-GLGS) with ESMTP id KAA24734; Thu, 14 Jun 2001 10:22:45 -0700 (PDT) Received: (from root@localhost) by darkstar.iprg.nokia.com (8.11.0/8.11.0-DARKSTAR) id f5EHMio16328; Thu, 14 Jun 2001 10:22:44 -0700 X-mProtect: Thu, 14 Jun 2001 10:22:44 -0700 Nokia Silicon Valley Messaging Protection Received: from gilmurra.iprg.nokia.com (205.226.11.225, claiming to be "iprg.nokia.com") by darkstar.iprg.nokia.com(P1.5 smtpdte7MVO; Thu, 14 Jun 2001 10:22:42 PDT Message-ID: <3B28F2E3.8F4711A7@iprg.nokia.com> Date: Thu, 14 Jun 2001 10:22:43 -0700 From: Frank Gilmurray Organization: NOKIA X-Mailer: Mozilla 4.7 [en] (X11; I; FreeBSD 3.4-RELEASE i386) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-questions@FreeBSD.ORG Subject: pkg_create question Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I'm a UNIX veteran but a FreeBSD newbie. I'm having problems creating my first trivial test package. Please see the typescript below. I've tried this on 2.2.6, 3.4, and 4.2 with the same results. Basically I'm trying to build a package that installs dummy-file in /tmp/local/bin. I thought the pkg_create -p switch would set the path for the -c, -d, and -f args but that doesn't seem to work. When I cd to the package directory and do the pkg_create there, I get a tar error even though I can manually tar the file. Any help would be most appreciated. Frank ------------------------------------------------------------------------- Script started on Thu Jun 14 08:50:53 2001 chipper# pwd /tmp chipper# ls -lR foo total 4 -rw-rw-r-- 1 root staff 16 Jun 13 17:09 COMMENT -rw-rw-r-- 1 root staff 54 Jun 13 17:10 DESCRIPTION -rw-r--r-- 1 root staff 80 Jun 13 17:12 PACKLIST drwxrwxr-x 2 root staff 512 Jun 13 17:13 bin foo/bin: total 1 -rw-rw-r-- 1 root staff 24 Jun 13 17:13 dummy-file chipper# more foo/PACKLIST @name dummy-0.0.1 @cwd /tmp/local bin/dummy-file @ignore +COMMENT @ignore +DESC chipper# pkg_create -p /tmp/foo -c COMMENT -d DESCRIPTION -f PACKLIST foox chipper# find . -name "foox*" -print chipper# cd foo chipper# pkg_create -c COMMENT -d DESCRIPTION -f PACKLIST foox tar: can't add file bin/dummy-file : No such file or directory chipper# tar tvzf foox.tgz -rw-r--r-- root/bin 118 Jun 14 08:52 2001 +CONTENTS -rw-r--r-- root/bin 16 Jun 14 08:52 2001 +COMMENT -rw-r--r-- root/bin 54 Jun 14 08:52 2001 +DESC chipper# exit Script done on Thu Jun 14 08:52:41 2001 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message