On Tue, Mar 14, 2017 at 07:48:09PM +0200, Panagiotis Atmatzidis wrote: > Hello, > > I'm trying to use "pkg_create" under OpenBSD to distribute a precompiled > binary along with linked libraries. > > I have a python script which I inherited, that creates a "+CONTENTS" > file containing the list of files + sha. > > The problem is that "pkg_create" doesn't accept additional flags. I > tried -D COMMENT="test", -M "/path/to/file", etc. > The result is pretty ugly: > > ------ > bash-4.3$ pkg_create -f +CONTENTS -desc -D COMMENT="some comment" -D > MAINTAINER="moi" > -bash-4.3$ pkg_info myapp-3.99.tgz > Information for file:./myapp-3.99.tgz
Basically, you are missing some parameters to create a package from scratch, so you're using the 2nd synopsis of pkg_create, the one that says pkg_create -f plist everything else is ignored. You're going about this all wrong. Your plist shouldn't contain the pkgname, it shouldn't contain sha for all the files. No wonder this is not working. Note that -p is not optional for the normal way to create packages. I think tedu's suggestion is very much correct, actually, use the ports tree, or figure out how to do everything by hand.

