9e39ec9802
Support for slim cases and a cgi to use disc-cover via a webserver.
50 lines
1.0 KiB
Plaintext
50 lines
1.0 KiB
Plaintext
#!/bin/sh
|
|
# $OpenBSD: INSTALL,v 1.2 2002/02/02 06:10:37 pvalchev Exp $
|
|
#
|
|
|
|
# exit on errors, use a sane path and install prefix
|
|
#
|
|
set -e
|
|
PATH=/bin:/usr/bin:/sbin:/usr/sbin
|
|
PREFIX=${PKG_PREFIX:-/usr/local}
|
|
|
|
do_install()
|
|
{
|
|
echo
|
|
echo "+---------------"
|
|
echo "| To use disc-cover, one has to create ~/.cdserverrc by running"
|
|
echo "|"
|
|
echo "| $PREFIX/bin/disc-cover -S"
|
|
echo "|"
|
|
echo "| if it does not already exist, and probably change the SERVER"
|
|
echo "| variable when editing this file."
|
|
echo "| Also see $PREFIX/share/examples/disc-cover"
|
|
echo "| for a cgi to use disc-cover with a webserver."
|
|
echo "+---------------"
|
|
echo
|
|
}
|
|
|
|
# verify proper execution
|
|
#
|
|
if [ $# -ne 2 ]; then
|
|
echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2
|
|
exit 1
|
|
fi
|
|
|
|
# Verify/process the command
|
|
#
|
|
case $2 in
|
|
PRE-INSTALL)
|
|
: nothing to pre-install for this port
|
|
;;
|
|
POST-INSTALL)
|
|
do_install $1
|
|
;;
|
|
*)
|
|
echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2
|
|
exit 1
|
|
;;
|
|
esac
|
|
|
|
exit 0
|