From owner-freebsd-hackers Wed Oct 3 12:32:28 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from robin.mail.pas.earthlink.net (robin.mail.pas.earthlink.net [207.217.120.65]) by hub.freebsd.org (Postfix) with ESMTP id 1E90237B406 for ; Wed, 3 Oct 2001 12:32:26 -0700 (PDT) Received: from mindspring.com (dialup-209.245.142.238.Dial1.SanJose1.Level3.net [209.245.142.238]) by robin.mail.pas.earthlink.net (8.11.5/8.9.3) with ESMTP id f93JWNP14657; Wed, 3 Oct 2001 12:32:23 -0700 (PDT) Message-ID: <3BBB67A7.BD92F6@mindspring.com> Date: Wed, 03 Oct 2001 12:31:51 -0700 From: Terry Lambert Reply-To: tlambert2@mindspring.com X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Julian Elischer Cc: hackers@freebsd.org Subject: Re: pkg_create help needed. References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Julian Elischer wrote: > > I need to take a directory of 'stuff' > which includes a script install.sh > and make it into a package.. > I have had some success but it's not quite right.. > > What I'd like to make it do is: > unpack the 'stuff' into a temporary directory somewhere. > run the install script > delete the install directory > > The trouble is that I can't work out how to get the files > unpacked there and have the install script get them from there.. > > I can get it to unpack them into the final locations, and I can get the > install script to run and find them there, but I need the install script > to modify stuff and I'd rather have it all done in the temp > directory if possible, and then istalled into the final > location.. > also I have can not make the @srcdir option work in the packing list.. > does it work? > (-s seems to work) Use a preinstall script for the modifications. Yes, this means you will need two scripts. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message