Directories aren't included?

Sean Fagan sef at ixsystems.com
Tue Jun 17 23:46:49 UTC 2014


Given this manifest file:

{
	"name" : "mypkg",
	"version" : "1.0",
	"origin" : "system/test",
	"comment" : "foo",
	"maintainer" : "me",
	"prefix" : "/",
	"www" : "http://www.example.com/",
	"licenselogic" : "single",
	"desc" : "bar",
	"dirs" : {
		"./dir1",
		"./dir1/dir2",
	},
	"files" : {
		"./dir1/test_file" : "-",
	},
}

and this layout:

dir1

./dir1:
dir2		test_file

./dir1/dir2:

The tar file it creates does not have "dir2" in it:

tar tvf badpkg-1.0.txz 
-rw-r--r--  0 root   wheel     214 Dec 31  1969 +COMPACT_MANIFEST
-rw-r--r--  0 root   wheel     310 Dec 31  1969 +MANIFEST
-rw-r--r--  0 sef    sef        29 Jun 17 16:17 ./dir1/test_file


In other words, it is not adding empty directories to the package.

Am I creating it incorrectly?

If I put "./dir2" in the "files" section, it puts it in the tarball, but I'm not sure that is correct.

This is pkg 1.2.7_2; I have't tried with a newer version yet, for which I apologise.

Sean.



More information about the freebsd-pkg mailing list