Subject: micro-pkgizing the system
To: None <>
From: Hubert Feyrer <>
List: tech-pkg
Date: 02/02/2000 14:38:56
This reminds me, I hacked together some bits to pkgize the base system
last weekend:

  # cd /usr/src/bin/ls
  # make install
  # pkg_info -e netbsd-'*'
  # rfhpc8321# pkg_info -qL netbsd-bin-ls-1.4Q

Works for most dirs in /usr/src so far, MLINK handling is not ok yet. If
someone wants to play with it, .include the script at from your /etc/mk.conf. This
also works for DESTDIR bilds, which creates binary packages instead of
registering them locally:

  # cd /usr/tmp/releasedir/binary/pkgs
  # ls netbsd*
  netbsd-lib-csu-1.4Q.tgz                 netbsd-share-mk-1.4Q.tgz
  netbsd-lib-csu-i386_elf-1.4Q.tgz        netbsd-usr.sbin-user-1.4Q.tgz

Implementation details (in case someone cares): all files installed via
$INSTALL are put into the pkg's PLIST, any subdirs are reworked into
dependencies, i.e. the netbsd-bin-1.4Q package depends on

 - Hubert

NetBSD - Better for your uptime than Viagra

---------- Forwarded message ----------
Date: Wed, 2 Feb 2000 04:11:49 -0800 (PST)
From: Alistair G. Crooks <>
Subject: CVS commit: basesrc

Module Name:	basesrc
Committed By:	agc
Date:		Wed Feb  2 12:11:48 UTC 2000

Added Files:
	basesrc/distrib/sets: list2plist

Log Message:
First cut at a shell script to convert a distrib-style list into a
pkgsrc-style PLIST.

To generate a diff of this commit:
cvs rdiff -r0 -r1.1 basesrc/distrib/sets/list2plist

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.