Hi Marc,
> On 15 Mar 2017, at 02:11, Marc Espie <[email protected]> wrote: > > 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. Thanks for the suggestions. Iâll play a bit more with âpkg_createâ and try ports. Panagiotis (atmosx) Atmatzidis email: [email protected] URL: http://www.convalesco.org GnuPG ID: 0x1A7BFEC5 gpg --keyserver pgp.mit.edu --recv-keys 1A7BFEC5 "Everyone thinks of changing the world, but no one thinks of changing himself.â - Leo Tolstoy [demime 1.01d removed an attachment of type application/pgp-signature which had a name of signature.asc]

