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:54:43
I have also created this syspkg_init script:
#!/bin/sh
# Set the paths
PATH=/sbin:/usr/sbin:/bin:/usr/bin
SRCDIR=${SRCDIR:=/usr/src}
usage() {
cat << EOF
Usage: `basename $0` [options]
Options:
-h This help text
-s srcdir Location of the source files (default: /usr/src)
EOF
}
# Read command line arguments
ARGV=`getopt hs: $*`
[ $? != 0 ] && usage
set -- ${ARGV}
for i; do
case "${i}" in
-h)
usage
;;
-s)
SRCDIR="${2}"
shift 2
;;
--)
shift
break
;;
esac
done
# Create the system packages
cd ${SRCDIR}/distrib/syspkg/sets || exit 1
PKG_DBDIR=${DESTDIR}/var/db/syspkg make register
Purpose of this is to initialize syspkg so that one can use
the syspkg_{add,delete,...} scripts.
Martti
---
Martti Kuparinen <martti.kuparinen@iki.fi> NetBSD - No media hype
http://www.iki.fi/~kuparine/ http://www.netbsd.org/