Re: how to create package example..
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 :-)
Re: how to create package example..
On Fri, Jan 04, 2008 at 09:24:03PM -0800, Jon wrote: 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.. Did you look at Bernd Ahlers' ports tutorial from OpenCON 2007? OpenCON 2007 (among many interesting events) is mentioned here: http://www.openbsd.org/events.html Here is a direct link to the tutorial: http://www.openbsd.org/papers/opencon07-portstutorial/index.html
FW: Re: how to create package example..
Forgot to CC [EMAIL PROTECTED] - Forwarded message from Mike Erdely [EMAIL PROTECTED] - Date: Sat, 5 Jan 2008 00:55:00 -0500 From: Mike Erdely [EMAIL PROTECTED] Subject: Re: how to create package example.. To: Jon [EMAIL PROTECTED] Download ports.tar.gz. Extract it in /usr. Look at /usr/ports/geo/openbsd-developers. It's a perfect port that doesn't download anything or build anything. It' has a file that's in ./files that gets copied to the fake area and then added to a package. Refer to that port and man 5 bsd.port.mk for the meanings of the variables and Makefile targets (like do-install). It's perfect for what you're looking for and not a hack way to do something in a different way than is designed. -ME On Fri, Jan 04, 2008 at 09:24:03PM -0800, Jon wrote: 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 :-) - End forwarded message -
Re: how to create package example..
Perfect.. thanks.. This is exactly what I needed to learn how to do this. Sriram Did you look at Bernd Ahlers' ports tutorial from OpenCON 2007? OpenCON 2007 (among many interesting events) is mentioned here: http://www.openbsd.org/events.html Here is a direct link to the tutorial: http://www.openbsd.org/papers/opencon07-portstutorial/index.html
Re: how to create package example..
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 :-)