o add install and deinstall scripts

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
This commit is contained in:
marc 1999-04-09 22:30:48 +00:00
parent 50b6b53e43
commit bd96a1a505
3 changed files with 75 additions and 3 deletions

View File

@ -0,0 +1,24 @@
# $OpenBSD: DEINSTALL,v 1.1 1999/04/09 22:30:48 marc Exp $
#
# gtar de-installation
set -e
PATH=/bin:/usr/bin:/sbin:/usr/sbin
PREFIX=${PKG_PREFIX:-/usr/local}
if [ X`readlink /etc/rmt` = X${PREFIX}/libexec/grmt ]; then
rm -f /etc/rmt
echo
echo "+---------------"
echo "| You should reset the /etc/rmt link to whatever it was
echo "| before gtar was installed, perhaps /usr/sbin/rmt
echo "| Try these steps as root:"
echo "|"
echo "| cd /etc"
echo "| ln -s /usr/sbin/rmt"
echo "|"
echo "+---------------"
echo
fi
exit 0

View File

@ -0,0 +1,51 @@
#!/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

View File

@ -1,8 +1,5 @@
bin/gtar
libexec/grmt
@exec echo "You might want to setup a link to /etc/rmt by issuing:"
@exec echo "ln -sf %D/libexec/grmt /etc/rmt"
@unexec if [ X`readlink /etc/rmt` = X%D/libexec/grmt ]; then rm -f /etc/rmt; echo "*** You should reset the /etc/rmt link to whatever it was earlier, perhaps:"; echo "*** ln -s /usr/sbin/rmt /etc"; fi
@unexec install-info --delete %D/info/tar.info %D/info/dir
info/tar.info
info/tar.info-1