#!/bin/sh # # $NetBSD: INSTALL,v 1.1.1.1 2000/07/27 16:10:23 jlam Exp $ PKGNAME=$1 STAGE=$2 case ${STAGE} in PRE-INSTALL) ;; POST-INSTALL) DBDIR=/var/pks/db MAILDIR=/var/pks/incoming EXAMPLE_DIR=${PKG_PREFIX}/share/examples INSTALL_DATA="/usr/bin/install -c -o root -g wheel -m 0644" mkdir -p ${DBDIR} ${MAILDIR} if [ ! -f /etc/pksd.conf ] then echo "Installing example pksd.conf as /etc/pksd.conf." ${INSTALL_DATA} ${EXAMPLE_DIR}/pksd.conf /etc/pksd.conf fi ;; *) echo "Unexpected argument: ${STAGE}" exit 1 ;; esac exit 0