Author Topic: Building Brand New Ports: How?  (Read 8021 times)

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
Building Brand New Ports: How?
« on: August 23, 2007, 08:52:18 pm »
I've also been searching for handy references on building new ports that are not present in the port tree.
There are quite a number of handy apps especially suitable for handhelds like the Z, although they are not in the port tree yet.
Too bad that the official man pages (e.g. pkg_create(1) w/ 8 pages of options (!), not to mention the giant bsd.port.mk(5)) simply list a whole lot of options without a simple and straightforward demonstration/example. And I just got overwhelmed and confused after reading them ...  
So has anyone here created any new port (not necessarily for Z)? Could you show me how to do it in reality (not in theory)?
Just a very simple real example (e.g. grun, less, etc.) will do, so that I (and others interested) will have a clear starting point and be able to proceed with RTFM?
Any input is much appreciated!
« Last Edit: August 23, 2007, 10:58:43 pm by ZDevil »

Life is too precious for hacking *too much*
Visit my Z screencap gallery[/color]
My EeePC 701 Black = Debian (Lenny) on IceRocks + Transcend SDHC Class6 8GB + 2GB RAM
My Zaurus SL-C3200 = Debian EABI (kernel 2.6.24.3-yonggun) on a swapped internal Sandisk Extreme III CF 16gb
My Debian EABI feed: http://matrixmen.free.fr/zaurus/debian/
My OpenBSD/Zaurus feeds:  Link1, Link2
[/i][/font][/color][/size]

mathemajikian

  • Sr. Member
  • ****
  • Posts: 301
    • View Profile
    • http://exit3.i-55.com/~xikon/openbsdzaurus.html
Building Brand New Ports: How?
« Reply #1 on: August 24, 2007, 06:34:05 am »
Quote
Any input is much appreciated!
Alot of information can be found at the following links:

http://www.openbsd.org/porting.html
http://www.openbsd.org/faq/faq15.html

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
Building Brand New Ports: How?
« Reply #2 on: August 25, 2007, 10:45:21 pm »
Alright... will do my study when free.
Building my own stuff from the latest sources indeed works in a breeze. The kernel and the dependencies are constantly kept up-to-date (unlike when i was doing it on pdaxrom).
Still a real example showing the basic steps will be great.  

Life is too precious for hacking *too much*
Visit my Z screencap gallery[/color]
My EeePC 701 Black = Debian (Lenny) on IceRocks + Transcend SDHC Class6 8GB + 2GB RAM
My Zaurus SL-C3200 = Debian EABI (kernel 2.6.24.3-yonggun) on a swapped internal Sandisk Extreme III CF 16gb
My Debian EABI feed: http://matrixmen.free.fr/zaurus/debian/
My OpenBSD/Zaurus feeds:  Link1, Link2
[/i][/font][/color][/size]

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
Building Brand New Ports: How?
« Reply #3 on: August 26, 2007, 09:51:37 am »
@mathemajikian: I've opened up your cdf package and looked into the file structure. It looks much simpler than I thought (and learned from the documentation): there're only a +CONTENT and a +DESC apart from the program files. So is this the minimal (though not complete) information I have to include in order to make a package for sharing? And did you pack the cdf up using pkg_create or some other method?

Life is too precious for hacking *too much*
Visit my Z screencap gallery[/color]
My EeePC 701 Black = Debian (Lenny) on IceRocks + Transcend SDHC Class6 8GB + 2GB RAM
My Zaurus SL-C3200 = Debian EABI (kernel 2.6.24.3-yonggun) on a swapped internal Sandisk Extreme III CF 16gb
My Debian EABI feed: http://matrixmen.free.fr/zaurus/debian/
My OpenBSD/Zaurus feeds:  Link1, Link2
[/i][/font][/color][/size]

mathemajikian

  • Sr. Member
  • ****
  • Posts: 301
    • View Profile
    • http://exit3.i-55.com/~xikon/openbsdzaurus.html
Building Brand New Ports: How?
« Reply #4 on: August 26, 2007, 10:10:59 am »
Quote
@mathemajikian: I've opened up your cdf package and looked into the file structure. It looks much simpler than I thought (and learned from the documentation): there're only a +CONTENT and a +DESC apart from the program files. So is this the minimal (though not complete) information I have to include in order to make a package for sharing? And did you pack the cdf up using pkg_create or some other method?
What you see in the cdf package is what you need. I used make package to generate the package. I'd suggest re-reading some previous posts. Start with this one: Packages and Port Building

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
Building Brand New Ports: How?
« Reply #5 on: August 26, 2007, 10:18:49 am »
Great. I really forgot that discussion when I hadn't even got the wifi CF and I kept asking so many different questions in the same thread. Your replies there make much better sense to me now.

Life is too precious for hacking *too much*
Visit my Z screencap gallery[/color]
My EeePC 701 Black = Debian (Lenny) on IceRocks + Transcend SDHC Class6 8GB + 2GB RAM
My Zaurus SL-C3200 = Debian EABI (kernel 2.6.24.3-yonggun) on a swapped internal Sandisk Extreme III CF 16gb
My Debian EABI feed: http://matrixmen.free.fr/zaurus/debian/
My OpenBSD/Zaurus feeds:  Link1, Link2
[/i][/font][/color][/size]