bye bye INSTALL sez @sample;

This commit is contained in:
xsa 2004-09-29 10:02:57 +00:00
parent edc58c4567
commit 5b54e4bbb7
3 changed files with 3 additions and 92 deletions

View File

@ -1,24 +0,0 @@
#!/bin/sh
# $OpenBSD: DEINSTALL,v 1.4 2003/11/03 00:49:29 margarida Exp $
#
# tinyproxy de-installation
#
PATH=/bin:/usr/bin:/sbin:/usr/sbin
PREFIX=${PKG_PREFIX:-/usr/local}
CONFIG_DIR=${SYSCONFDIR}/tinyproxy
if [ "$PKG_DELETE_EXTRA" != Yes -a -d $CONFIG_DIR ]; then
echo
echo "+------------"
echo "| To completely deinstall the $1 package you need to perform"
echo "| this step as root:"
echo "|"
echo "| rm -rf $CONFIG_DIR"
echo "|"
echo "| Do not do this if you plan on re-installing $1"
echo "| at some future."
echo "+------------"
echo
fi
exit 0

View File

@ -1,64 +0,0 @@
#!/bin/sh
# $OpenBSD: INSTALL,v 1.3 2003/01/27 22:10:56 margarida Exp $
#
# Pre/post-installation setup of tinyproxy
# exit on errors, use a sane path and install prefix
#
PATH=/bin:/usr/bin:/sbin:/usr/sbin
PREFIX=${PKG_PREFIX:-/usr/local}
CONFIG_DIR=${SYSCONFDIR}/tinyproxy
SAMPLE_CONFIG_DIR=$PREFIX/share/examples/tinyproxy
do_notice()
{
echo
echo "+------------"
echo "| The existing $1 configuration file in $CONFIG_DIR,"
echo "| has NOT been changed. You may want to compare it to"
echo "| the current sample file in $SAMPLE_CONFIG_DIR, and"
echo "| update your configuration as needed."
echo "+------------"
}
do_install()
{
install -d -o root -g wheel -m 755 $CONFIG_DIR
install -o root -g wheel -m 644 $SAMPLE_CONFIG_DIR/tinyproxy.conf $CONFIG_DIR
echo
echo "+------------"
echo "| The $1 configuration file has been installed into"
echo "| $CONFIG_DIR."
echo "| Please view this file and change the configuration"
echo "| to meet your needs."
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 [ ! -d $CONFIG_DIR ]; then
do_install $1
elif [ ! -f $CONFIG_DIR/tinyproxy.conf ]; then
do_install $1
else
do_notice $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.5 2004/09/15 18:49:52 espie Exp $
@comment $OpenBSD: PLIST,v 1.6 2004/09/29 10:02:57 xsa Exp $
@man man/man8/tinyproxy.8
sbin/tinyproxy
share/doc/tinyproxy/
@ -10,7 +10,6 @@ share/doc/tinyproxy/default.html
share/doc/tinyproxy/filter-howto.txt
share/doc/tinyproxy/stats.html
share/examples/tinyproxy/
@sample ${SYSCONFDIR}/tinyproxy/
share/examples/tinyproxy/tinyproxy.conf
@cwd ${SYSCONFDIR}
@extra tinyproxy/tinyproxy.conf
@extra tinyproxy/
@sample ${SYSCONFDIR}/tinyproxy/tinyproxy.conf