Not doing any thing strange.. just want to create a binary (foobar) and create a package so I can add it. ** Why I want to do that is not the question. I know I can tar the install location with +CONTENT and +DESC etc.. and get done with it.. I would like to know how to use pkg_create or the ports for a sw that is not current ports directory.
I have tried using the ports and working with an example, and it seems like it is beyond my understanding. It works with what ever is in the ports, but I can't seem to replicate it All I need is a ** screen dump ** of a creating a package for a software dist that is not in the default ports. Can some one help provide that examples - with out pointing out a rtfm / source code for a bsd.mk etc.. I have tried and can't seem to understand - so please do put a command of pkg_create with dummy variables.. many thanks.. On Jan 3, 2008 3:52 PM, Stuart Henderson <[EMAIL PROTECTED]> wrote: > On 2008/01/03 15:04, Jon wrote: > > I understand the value and usefulness and the reccomendation of Ports.. This > > is for my own software. I have also searched the net for examples and can't > > find any. > > You'd have to be doing something _very_ strange for there to be any > advantage in not just making your own port and typing "make package", > the tgz file will then appear in /usr/ports/$ARCH/all. You don't have > to distribute that port at all. It doesn't even have to build the > software, just unpacking a tar file would be perfectly ok (like the > Opera and Acrobat ports do). (Note that even these "PERMIT_*=no" > ports still build a package locally. EVERY installation from the > ports tree is done by building a package and using pkg_add). > > If you still really must, all OpenBSD packages are produced using > the ports tree, so you can find several thousand examples there. > Pick something, "make fake" then "make -n _internal-package-only" > to see how pkg_create is called. > > If you want more than this, well, you know where to find the source :-)

