DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Packages and Ports

OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 28th October 2008
sysfu sysfu is offline
Port Guard
 
Join Date: Jun 2008
Posts: 36
Default Debian checkinstall style functionality for pkg_create command?

I've found the Debian checkinstall utility to be very heplful for creating quick and dirty packages from software that I have compiled from source.

I was curious if there was any way that I could use the pkg_create command in a similar manner, without having to go through all the ports rigamarole.

*YES* I have read the entire pkg_create man page, and found it to be rather obtuse to be honest.
Reply With Quote
  #2   (View Single Post)  
Old 28th October 2008
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,975
Default

I've built and submitted ports which are now part of the tree, but have never touched pkg_create. Since ports build packages, I've always used the ports rigamarole.

To get started, either use /usr/ports/infrastructure/templates/Makefile.template, or a port in the tree with similar requirements. You'll find the porting and port testing web pages at the Project website helpful, too.
Reply With Quote
  #3   (View Single Post)  
Old 29th October 2008
robbak's Avatar
robbak robbak is offline
Real Name: Robert Backhaus
VPN Cryptographer
 
Join Date: May 2008
Location: North Queensland, Australia
Posts: 366
Default

Yes, pkg_create is obtuse: it is meant to be used by varius package tools, not general users.

the easiest way to make a package of a port is to use 'make package'. This will call the pkg_create command with all the options it needs. For instance:
Code:
cd /usr/ports/www/firefox
make package
That will build (with whatever options you have selected), install and then make a package of the port. by default, the package will be placed in /usr/ports/packages
__________________
The only dumb question is a question not asked.
The only dumb answer is an answer not given.
Reply With Quote
  #4   (View Single Post)  
Old 29th October 2008
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,975
Default

Quote:
Originally Posted by robbak View Post
..That will build (with whatever options you have selected), install and then make a package...
Not quite. It will "make fake" which is a synthetic install in order to structure the PLIST. A "make package" will not install in the OS.
Reply With Quote
Reply

Tags
source compile package create software

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Debian 5.0 released ephemera Other BSD and UNIX/UNIX-like 36 26th November 2010 04:50 PM
Debian GNU/kFreeBSD got release status ephemera Other BSD and UNIX/UNIX-like 24 15th December 2009 01:00 AM
VBulletin style? indiocolifa Feedback and Suggestions 0 24th March 2009 05:52 PM
X-Window style copy&paste in MS Windows? Carpetsmoker Other OS 11 16th October 2008 10:43 AM
Firefox and subpixel hinting in Debian Sonic Other BSD and UNIX/UNIX-like 0 27th May 2008 01:31 PM


All times are GMT. The time now is 02:20 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick