kill INSTALL/DEINSTALL/exec

This commit is contained in:
espie 2004-09-22 22:54:51 +00:00
parent 11d302a172
commit 6f58c18340
3 changed files with 3 additions and 95 deletions

View File

@ -1,26 +0,0 @@
#!/bin/sh
# $OpenBSD: DEINSTALL,v 1.3 2003/04/26 14:55:32 sturm Exp $
#
# metamail de-installation
set -e
PATH=/bin:/usr/bin:/sbin:/usr/sbin
PREFIX=${PKG_PREFIX:-/usr/local}
MAILCAP=${SYSCONFDIR}/mailcap
if [ -f ${MAILCAP} ]; then
echo
echo "+---------------"
echo "| To completely deinstall the $1 package you need to perform"
echo "| this step as root:"
echo "|"
echo "| rm -rf ${MAILCAP}"
echo "|"
echo "| CAUTION: other packages may also use this file. Do not"
echo "| remove the file if you are not sure, or if you plan on"
echo "| re-installing $1 at some future time."
echo "+---------------"
echo
fi
exit 0

View File

@ -1,67 +0,0 @@
#!/bin/sh
# $OpenBSD: INSTALL,v 1.2 2003/04/26 14:55:32 sturm Exp $
#
# Pre/post-installation setup for metamail
# exit on errors, use a sane path and install prefix
#
set -e
PATH=/bin:/usr/bin:/sbin:/usr/sbin
PREFIX=${PKG_PREFIX:-/usr/local}
MAILCAP=${SYSCONFDIR}/mailcap
# Function: tell the user what s/he needs to do to use the port just installed
#
do_notice()
{
echo
echo "+---------------"
echo "| The file ${MAILCAP} exists on your system. Please look"
echo "| at the file ${PREFIX}/lib/metamail/mailcap"
echo "| and add any desired (but missing) entries into your"
echo "| ${MAILCAP}"
echo "+---------------"
echo
}
# Function: copy the metamail mailcap to ${SYSCONFDIR}
#
do_install()
{
cp ${PREFIX}/lib/metamail/mailcap ${SYSCONFDIR}
echo
echo "+---------------"
echo "| The file ${MAILCAP} has been created on your system."
echo "| Other MIME capable programs may also use this file."
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)
if [ -f ${MAILCAP} ]; then
do_notice $1
else
do_install $1
fi
;;
*)
echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2
exit 1
;;
esac
exit 0

View File

@ -1,4 +1,4 @@
@comment $OpenBSD: PLIST,v 1.7 2004/09/15 09:09:43 espie Exp $
@comment $OpenBSD: PLIST,v 1.8 2004/09/22 22:54:51 espie Exp $
bin/audiocompose
bin/audiosend
bin/extcompose
@ -29,10 +29,12 @@ lib/metamail/
@fontdir lib/metamail/fonts/
@comment lib/metamail/fonts/fonts.alias
@comment lib/metamail/fonts/fonts.dir
@fontdir lib/metamail/fonts/
lib/metamail/fonts/heb6x13.pcf
lib/metamail/fonts/heb8x13.pcf
lib/metamail/fonts/heb8x13B.pcf
lib/metamail/mailcap
@sample ${SYSCONFDIR}/mailcap
@man man/man1/audiocompose.1
@man man/man1/audiosend.1
@man man/man1/extcompose.1
@ -53,4 +55,3 @@ lib/metamail/mailcap
@man man/man1/showpicture.1
@man man/man1/splitmail.1
@man man/man4/mailcap.4
@exec test -d /usr/X11R6 && mkfontdir %D/lib/metamail/fonts