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 :-)

