version 1.4, 2014/07/08 14:52:13
|
version 1.6, 2014/07/09 12:34:13
|
Line 13 listed below:
|
Line 13 listed below:
|
## pkgsrc tree |
## pkgsrc tree |
|
|
You should have a copy of the pkgsrc tree sitting somewhere on your |
You should have a copy of the pkgsrc tree sitting somewhere on your |
disk, already bootstrapped, see this [blog |
disk, already bootstrapped. |
post](http://saveosx.org/pkgsrc-bootstrap/) on how to do this. |
|
|
|
The tree contains a `Makefile`, a `README`, distfiles, packages, |
The tree contains a `Makefile`, a `README`, distfiles, packages, |
category directories containing the ports, the bootstrap directory |
category directories containing the ports, the bootstrap directory |
and some documentation. |
and some documentation. |
Line 269 PKG_DEFAULT_OPTIONS+= -pulseaudio -
|
Line 267 PKG_DEFAULT_OPTIONS+= -pulseaudio -
|
I disabled a few options so less ports would break, pulseaudio |
I disabled a few options so less ports would break, pulseaudio |
doesn't build on Mac OS X for example, neither do x264, dconf |
doesn't build on Mac OS X for example, neither do x264, dconf |
|
|
Keep in mind that there are many other available options documented |
Keep in mind that there are many other available options. |
in the official pkgsrc guide. |
|
|
|
|
|
## creating a simple port |
## creating a simple port |
Line 596 You can find the 2bwm port I submitted i
|
Line 593 You can find the 2bwm port I submitted i
|
## pkgsrc and wip |
## pkgsrc and wip |
|
|
If you want to submit your port for others to use you can either |
If you want to submit your port for others to use you can either |
subscribe to pkgsrc-wip or ask a NetBSD developer to add it for you |
subscribe to pkgsrc-wip or ask a NetBSD developer to add it for you. |
which can be tough. Even though there are many IRC channels in which |
|
you can find nice developers, you will have to take the time to get |
|
to know them. The easiest way for beginners is to submit to pkgsrc-wip |
|
so other people can review and test it first. |
|
|
|
pkgsrc-wip is hosted on |
pkgsrc-wip is hosted on |
[sourceforge](https://sourceforge.net/projects/pkgsrc-wip/) and you |
[sourceforge](https://sourceforge.net/projects/pkgsrc-wip/) and you |
can easily get cvs access to it if you create an account on there |
can easily get cvs access to it if you create an account on there |
and send an email to NetBSD developer `@wiz` (Thomas Klausner) |
and send an email to NetBSD developer `@wiz` (Thomas Klausner) |
asking nicely for commit access. I got access fairly quickly and |
asking nicely for commit access. |
he even fixed a port to show me how to do it properly. |
|
|
|
You can also send me an email or talk to me on IRC so I can submit it for you. |
|
|
|
|
|
## the options framework |
## the options framework |
Line 680 packages available for testing. You will
|
Line 670 packages available for testing. You will
|
on the host system. I host my [packages](http://pkgsrc.saveosx.org/) |
on the host system. I host my [packages](http://pkgsrc.saveosx.org/) |
on a FreeBSD server with a bootstrapped pkgsrc. |
on a FreeBSD server with a bootstrapped pkgsrc. |
|
|
I use this `zsh` function to : |
use this `zsh` function to : |
|
|
[[!format make """ |
[[!format bash """ |
add () { |
add () { |
# upload the package to remote server |
# upload the package to remote server |
scp $1 yrmt@saveosx.org:/usr/local/www/saveosx/packages/Darwin/2013Q4/x86_64/All/ 2> /dev/null |
scp $1 yrmt@saveosx.org:/usr/local/www/saveosx/packages/Darwin/2013Q4/x86_64/All/ 2> /dev/null |
Line 748 course.
|
Line 738 course.
|
|
|
## build all packages |
## build all packages |
|
|
Bulk building pkgsrc packages is a topic for another post, see |
see jperkin's excellent blog |
jperkin's excellent blog |
|
[posts](http://www.perkin.org.uk/posts/distributed-chrooted-pkgsrc-bulk-builds.html) |
[posts](http://www.perkin.org.uk/posts/distributed-chrooted-pkgsrc-bulk-builds.html) |
about this. |
about this. |
|
|
Line 848 make installed from the pkgsrc bootstrap
|
Line 837 make installed from the pkgsrc bootstrap
|
- If you have a feeling a port is stuck in the building stage, |
- If you have a feeling a port is stuck in the building stage, |
disable make jobs in your mk.conf |
disable make jobs in your mk.conf |
|
|
- Please contribute here :) |
|
|
|
|
|
## links |
|
- [Jonathan Perkin's excellent blog](http://www.perkin.org.uk/) |
|
- [NetBSD's very extensive pkgsrc guide](http://www.netbsd.org/docs/pkgsrc/) |
|
- [NetBSD's pkgsrc wiki](http://wiki.netbsd.org/pkgsrc/) |
|
- Other blog posts here :) |
|
|
|
## where to find me |
|
|
|
- yrmt@edgebsd.org |
|
- irc.oftc.net |
|
|
|
`#saveosx` |
|
|
|
[[!cut id=rcsid1 text="$Net"]] |
[[!cut id=rcsid1 text="$Net"]] |
[[!cut id=rcsid2 text="BSD$"]] |
[[!cut id=rcsid2 text="BSD$"]] |