| 1 | $DragonFly: src/nrelease/README.pkgsrc,v 1.2 2008/07/27 23:48:40 swildner Exp $ |
| 2 | |
| 3 | Generating bootstrap and nrelease packages |
| 4 | |
| 5 | This README file describes how to create the bootstrap package kit and |
| 6 | binary packages needed by the nrelease build. |
| 7 | |
| 8 | Creating the kit requires a test box or virtual kernel whos pkgsrc |
| 9 | infrastructure (/usr/pkg and /var/db/pkg) have been completely wiped, |
| 10 | because the bootstrap won't build otherwise. I'm sure there's a way |
| 11 | to do it with environment variables too but I don't now how. |
| 12 | |
| 13 | Wiping the installed packages means removing /usr/pkg and /var/db/pkg. |
| 14 | It is also a good idea to clean out cached binary packages in |
| 15 | /usr/pkgsrc/packages/ |
| 16 | |
| 17 | rm -rf /usr/obj/bootstrap-kit-20080211 |
| 18 | ./bootstrap --workdir /usr/obj/bootstrap-kit-20080211 \ |
| 19 | --binary-kit /usr/pkgsrc/packages/All/bootstrap-kit-20080211.tar |
| 20 | |
| 21 | (rehash if running on csh) |
| 22 | |
| 23 | cd /usr/pkgsrc/sysutils/cdrtools-ossdvd |
| 24 | bmake package |
| 25 | |
| 26 | cd /usr/pkgsrc/packages/All |
| 27 | gzip -9 < bootstrap-kit-20080211.tar > bootstrap-kit-20080211.tgz |
| 28 | |
| 29 | The binary packages needed for the build will then be in |
| 30 | /usr/pkgsrc/packages. |
| 31 | |
| 32 | The packages are then placed in a location that the nrelease build |
| 33 | can fetch them from, you can use the PKGSRC_BOOTSTRAP_URL make variable |
| 34 | to specify the URL. |
| 35 | |