diff options
author | Daichi GOTO <daichi@FreeBSD.org> | 2006-06-29 12:39:00 +0000 |
---|---|---|
committer | Daichi GOTO <daichi@FreeBSD.org> | 2006-06-29 12:39:00 +0000 |
commit | 64cc00e0850ec1e5cf8bd794caf964678fc3aa78 (patch) | |
tree | 96149ed0766dd97d67f2d4c743365f3bd6ae361a /sysutils/psgconf/pkg-install | |
parent | 1116aaeb5a100db9600b28b3986601f1a48ba96a (diff) |
Notes
Diffstat (limited to 'sysutils/psgconf/pkg-install')
-rw-r--r-- | sysutils/psgconf/pkg-install | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/sysutils/psgconf/pkg-install b/sysutils/psgconf/pkg-install index 4a51f1782f73..e69de29bb2d1 100644 --- a/sysutils/psgconf/pkg-install +++ b/sysutils/psgconf/pkg-install @@ -1,43 +0,0 @@ -#!/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.sample ${PKG_PREFIX}/etc/psg.conf; - fi - - if [ -f ${PORTSDIR}/Makefile ]; then - echo "configuring ${PKG_PREFIX}/etc/psgconf_modules to use ports collection"; - sed -e 's/FreeBSD::Packages$/FreeBSD::Ports/' < ${PKG_PREFIX}/etc/psgconf_modules.sample > ${PKG_PREFIX}/etc/psgconf_modules.sample.new - if [ $? -eq 0 ]; then - mv ${PKG_PREFIX}/etc/psgconf_modules.sample.new ${PKG_PREFIX}/etc/psgconf_modules.sample - else - rm -f ${PKG_PREFIX}/etc/psgconf_modules.sample.new - fi - fi - if [ ! -r ${PKG_PREFIX}/etc/psgconf_modules ]; then - echo "installing ${PKG_PREFIX}/etc/psgconf_modules"; - cp ${PKG_PREFIX}/etc/psgconf_modules.sample ${PKG_PREFIX}/etc/psgconf_modules - fi - ;; -esac - -exit 0 |