use @sample instead of INSTALL/DEINSTALL

This commit is contained in:
sturm 2004-10-13 18:09:03 +00:00
parent 4ddb942744
commit 60ac3ad060
4 changed files with 6 additions and 104 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.25 2003/04/04 21:19:23 sturm Exp $
# $OpenBSD: Makefile,v 1.26 2004/10/13 18:09:03 sturm Exp $
COMMENT= "TeX distribution, executables"
@ -61,6 +61,8 @@ pre-fake:
rm ${TEXMF_DIR}/ls-R
post-install:
@mv ${PREFIX}/share/texmf/web2c/texmf.cnf \
${PREFIX}/share/texmf/web2c/texmf.cnf.dist
${INSTALL_DATA_DIR} ${TETEX_EXDIR}
${INSTALL_DATA} files/tetex.cfg ${TETEX_EXDIR}/tetex.cfg
${INSTALL_SCRIPT} files/tetex_setup.sh ${PREFIX}/bin/tetex_setup

View File

@ -1,33 +0,0 @@
#!/bin/sh
# $OpenBSD: DEINSTALL,v 1.3 2003/10/18 15:07:10 sturm Exp $
#
# tetex base de-installation
set -e
PATH=/bin:/usr/bin:/sbin:/usr/sbin
PREFIX=${PKG_PREFIX:-/usr/local}
CONFIG=${SYSCONFDIR}/tetex.cfg
TEXMFCNF=$PREFIX/share/texmf/web2c/texmf.cnf
if [ "$PKG_DELETE_EXTRA" != Yes -a -f $TEXMFCNF ]; then
cp $TEXMFCNF $TEXMFCNF.old
if [ -f $TEXMFCNF.dist ]; then
rm $TEXMFCNF.dist
fi
echo
echo "+---------------"
echo "| Your $TEXMFCNF file has been"
echo "| preserved as $TEXMFCNF.old."
echo "| To completely deinstall the $1 package you"
echo "| need to perform these steps as root:"
echo "|"
echo "| rm -f $TEXMFCNF.old"
echo "| rm -f $CONFIG"
echo "|"
echo "| Do not do this if you plan on re-installing $1"
echo "| at some future time."
echo "+---------------"
echo
fi
exit 0

View File

@ -1,67 +0,0 @@
#!/bin/sh
# $OpenBSD: INSTALL,v 1.3 2004/08/11 10:42:55 espie Exp $
#
# Pre/post-installation setup of tetex base
# exit on errors, use a sane path and install prefix
#
set -e
PATH=/bin:/usr/bin:/sbin:/usr/sbin
PREFIX=${PKG_PREFIX:-/usr/local}
CONFIG=${SYSCONFDIR}/tetex.cfg
TEXMFCNF=$PREFIX/share/texmf/web2c/texmf.cnf
do_prenotice()
{
echo
echo "+---------------"
}
do_texmf_cnf_install()
{
mv $TEXMFCNF $TEXMFCNF.dist
mv $TEXMFCNF.old $TEXMFCNF
echo "| The existing $TEXMFCNF.old has"
echo "| been installed as $TEXMFCNF."
echo "| You may want to compare it to the distribution's file"
echo "| $TEXMFCNF.dist and update your"
echo "| configuration as needed."
echo "|"
}
do_notice()
{
echo "| Run $PREFIX/bin/texconfig to adjust for your local"
echo "| environment or see $CONFIG."
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_prenotice
if [ -f $TEXMFCNF.old ]; then
do_texmf_cnf_install $1
fi
do_notice
;;
*)
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.16 2004/09/18 13:03:22 espie Exp $
@comment $OpenBSD: PLIST,v 1.17 2004/10/13 18:09:03 sturm Exp $
@conflict dvipdfm-*
bin/MakeTeXPK
bin/access
@ -390,8 +390,8 @@ share/texmf/web2c/tex.fmt
@comment no checksum
share/texmf/web2c/tex.log
share/texmf/web2c/tex.pool
@comment no checksum
share/texmf/web2c/texmf.cnf
share/texmf/web2c/texmf.cnf.dist
@sample share/texmf/web2c/texmf.cnf
@exec TEXMFMAIN=%D/share/texmf %D/bin/mktexlsr
!%%no_x11%%
@extraunexec rm -f %D/share/texmf/web2c/texmf.cnf.dist