Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Jun 2001 10:22:43 -0700
From:      Frank Gilmurray <gilmurra@IPRG.nokia.com>
To:        freebsd-questions@FreeBSD.ORG
Subject:   pkg_create question
Message-ID:  <3B28F2E3.8F4711A7@iprg.nokia.com>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3B28F2E3.8F4711A7>