bd96a1a505
o call install script from makefile o remove duplicate install instructions from makefile and packing list o verify package builds/install/deinstalls correctly THIS PORT IS NOW FROZEN FOR 2.5
52 lines
1.1 KiB
Plaintext
52 lines
1.1 KiB
Plaintext
#!/bin/sh
|
|
# $OpenBSD: INSTALL,v 1.1 1999/04/09 22:30:48 marc Exp $
|
|
#
|
|
# Pre/post-installation setup of gtar
|
|
|
|
# exit on errors, use a sane path and install prefix
|
|
#
|
|
set -e
|
|
PATH=/bin:/usr/bin:/sbin:/usr/sbin
|
|
PREFIX=${PKG_PREFIX:-/usr/local}
|
|
|
|
# Function: tell the user what s/he needs to do to use the port just installed
|
|
#
|
|
do_notice()
|
|
{
|
|
echo
|
|
echo "+---------------"
|
|
echo "| You might want to setup a link to /etc/rmt by issuing the command:"
|
|
echo "|"
|
|
echo "| ln -sf ${PREFIX}/libexec/grmt /etc/rmt"
|
|
echo "|"
|
|
echo "| If so, you should try to remember to reset that link"
|
|
echo "| to its former value if you ever pkg_delete this package."
|
|
echo "| It is NOT necessary to do this to use gtar."
|
|
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_notice $1
|
|
;;
|
|
*)
|
|
echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2
|
|
exit 1
|
|
;;
|
|
esac
|
|
|
|
exit 0
|