From owner-freebsd-ports Sun May 16 12:17:28 1999 Delivered-To: freebsd-ports@freebsd.org Received: from nothing-going-on.demon.co.uk (nothing-going-on.demon.co.uk [193.237.89.66]) by hub.freebsd.org (Postfix) with ESMTP id 7C91F14F59 for ; Sun, 16 May 1999 12:17:22 -0700 (PDT) (envelope-from nik@nothing-going-on.demon.co.uk) Received: (from nik@localhost) by nothing-going-on.demon.co.uk (8.9.2/8.9.2) id TAA29885 for ports@freebsd.org; Sun, 16 May 1999 19:58:33 +0100 (BST) (envelope-from nik) Date: Sun, 16 May 1999 19:58:33 +0100 From: Nik Clayton To: ports@freebsd.org Subject: Package creation, installing in a different place Message-ID: <19990516195833.B75287@catkin.nothing-going-on.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.4i Organization: Nik at home, where there's nothing going on Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi folks, I'm not sure if -ports is the right place to ask this question. Pointers to better lists accepted. I'm trying to build a FreeBSD package using pkg_create(1), and I'm trying to do this outside of the ports system. Suppose I have /tmp/foo.ps, and I want to package this in to foo.tgz. When the user runs "pkg_add foo.tgz", "foo.ps" should be installed in to /usr/local/share/foo/foo.ps. However, on my system, I'm building the package from /tmp, and /usr/local/share/foo doesn't exist. I don't want to have to copy foo.ps in to /usr/local/share/foo before I build the package. Can I do this? After spending some time experimenting with pkg_create, I don't think I can. It looks as though it expects the package to be created from an installed version of the file, rather than from a version in a staging area. I'd expected to be able to do something like % pwd /tmp % ls foo.ps % cat PLIST @name Foo (Postscript) @srcdir . @cwd /usr/local/share/foo foo.ps % pkg_create -c "-Foo" -d "-Foo" -f PLIST foo and have it create foo.tgz. But it fails with tar: can't add file foo.ps : No such file or directory Any ideas? N -- There's some milk in the fridge about to go off. . . and there it goes. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message