xref: /netbsd-src/distrib/syspkg/notes/WORKPLAN (revision dec9565bbc9b9ac22eff5028894175e139edbcf6)
1*dec9565bSjwiseWork Plan: NetBSD System Packages
2*dec9565bSjwise=================================
3*dec9565bSjwise
4*dec9565bSjwiseThis document is intended as a work plan for modification of the NetBSD
5*dec9565bSjwiseinstall process to use `system packages' and `package sets' to install
6*dec9565bSjwisethe base system instead of the current set tarballs.
7*dec9565bSjwise
8*dec9565bSjwiseThe steps toward this goal are as follows.  Step a.) has already occurred,
9*dec9565bSjwiseand the remaining steps will begin this week, with changes influenced by
10*dec9565bSjwisediscussion on these lists.
11*dec9565bSjwise
12*dec9565bSjwise    a.) update {make,check}flist, etc. to ignore all but the first
13*dec9565bSjwise	(whitespace separated) field of each line of each set file
14*dec9565bSjwise
15*dec9565bSjwise    b.) add at least additional fields to each line of each set list
16*dec9565bSjwise	containing the name of the pkg the file is to be associated
17*dec9565bSjwise	with
18*dec9565bSjwise
19*dec9565bSjwise    c.) add DESCR's, COMMENTs, etc. in a tree under src/distrib/pkg,
20*dec9565bSjwise	this tree will be  hierarchical, with an organization
21*dec9565bSjwise	similar to pkgsrc.
22*dec9565bSjwise
23*dec9565bSjwise    d.) add a script to churn through the set files and syspkg/
24*dec9565bSjwise	and register the existing system, removing anything in
25*dec9565bSjwise	the obsolete lists in the process.  This is working but
26*dec9565bSjwise	needs a complete rewrite.
27*dec9565bSjwise
28*dec9565bSjwiseAt this point, make build can register packages as if a packaged install
29*dec9565bSjwisehad been done.  pkgs will be removable, and pkg versions will be usable
30*dec9565bSjwisein a DEPENDS=.  This will _greatly_ ease the process of upgrading from
31*dec9565bSjwisea NetBSD system installed at this point to a later packaged distribution.
32*dec9565bSjwiseNow comes the fun part:
33*dec9565bSjwise
34*dec9565bSjwise    e.) modify the distribution building makefiles to build
35*dec9565bSjwise	binary packages from the packages registered in DESTDIR
36*dec9565bSjwise
37*dec9565bSjwise    f.) modify pkg_* to understand pkgsets which are tarballs of
38*dec9565bSjwise	pkgs with a contents file of some sort.  These will be
39*dec9565bSjwise	used by sysinst to 1.) minimize the number of files to
40*dec9565bSjwise	be downloaded and 2.) present the current selection
41*dec9565bSjwise	granularity by default.
42*dec9565bSjwise
43*dec9565bSjwise    g.) modify the make distrib tools to build these pkgsets from
44*dec9565bSjwise	the binary packages.
45*dec9565bSjwise
46*dec9565bSjwise    h.) modify sysinst's set installation to use these pkgsets
47*dec9565bSjwise	instead of the current (tarball) sets.
48*dec9565bSjwise
49*dec9565bSjwise    i.) modify sysinst to allow `zooming in' on a set and picking
50*dec9565bSjwise	what to install at pkg granularity, with dependencies
51*dec9565bSjwise	enforced and so on.
52*dec9565bSjwise
53*dec9565bSjwise------------------------------------------------------------------------
54*dec9565bSjwise$Id: WORKPLAN,v 1.1.1.1 2002/01/07 22:46:17 jwise Exp $
55