Subject: Re: syspkg frontends
To: Martti Kuparinen <martti.kuparinen@iki.fi>
From: Martti Kuparinen <martti.kuparinen@iki.fi>
List: current-users
Date: 03/15/2002 12:47:08
Okay, what you do like about his:

	#!/bin/sh
	#
	# $NetBSD$
	#
	# Copyright (c) 2001 The NetBSD Foundation, Inc.
	# All rights reserved.
	#...

	# Set the path
	PATH=/sbin:/usr/sbin:/bin:/usr/bin

	# Run the real pkg_xxx command
	PKG_CMD=`basename $0 | sed 's+^sys++'`
	PKG_DBDIR=${DESTDIR}/var/db/syspkg ${PKG_CMD} $*

Install this as syspkg_add and create hard links for _admin, _create,
_delete and _info.

Comments please... I can add these to usr.sbin/pkg_install/syspkg
if that's what people want. I'd like to see this in 1.6 if possible.

Martti

---
Martti Kuparinen <martti.kuparinen@iki.fi>      NetBSD - No media hype
http://www.iki.fi/~kuparine/                    http://www.netbsd.org/