Subject: micro-pkgizing the system
To: None <tech-install@netbsd.org>
From: Hubert Feyrer <feyrer@rfhs8012.fh-regensburg.de>
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-'*'
netbsd-bin-ls-1.4Q
# rfhpc8321# pkg_info -qL netbsd-bin-ls-1.4Q
//bin/ls
//usr/share/man/man1/ls.1
//usr/share/man/cat1/ls.0
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
http://www.feyrer.de/Misc/pkgize-system.mk 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
netbsd-lib-libarch-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
netbsd-bin-{cat,chio,chmod,ls,...}-1.4Q.
- Hubert
--
NetBSD - Better for your uptime than Viagra
---------- Forwarded message ----------
Date: Wed, 2 Feb 2000 04:11:49 -0800 (PST)
From: Alistair G. Crooks <agc@netbsd.org>
To: source-changes@netbsd.org
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.