#!/bin/sh ### ### Copyright 2000-2005 University of Illinois Board of Trustees ### All rights reserved. ### ### pkg-install - Install script to use with FreeBSD packages ### ### Campus Information Technologies and Educational Services ### University of Illinois at Urbana-Champaign ### PKG_PREFIX=${PKG_PREFIX:-/usr/local} if [ $# -ne 2 ]; then echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2 exit 1 fi case $2 in POST-INSTALL) if [ ! -r ${PKG_PREFIX}/etc/psg.conf ]; then echo "installing ${PKG_PREFIX}/etc/psg.conf"; cp ${PKG_PREFIX}/etc/psg.conf ${PKG_PREFIX}/etc/psg.conf; fi if [ ! -r ${PKG_PREFIX}/etc/psgconf_modules ]; then echo "installing ${PKG_PREFIX}/etc/psgconf_modules"; cp ${PKG_PREFIX}/etc/psgconf_modules ${PKG_PREFIX}/etc/psgconf_modules fi ;; esac exit 0