kill INSTALL script

This commit is contained in:
espie 2004-09-22 23:09:26 +00:00
parent 5465271494
commit 0c853bffc1
3 changed files with 3 additions and 82 deletions

View File

@ -1,22 +0,0 @@
#!/bin/sh
# $OpenBSD: DEINSTALL,v 1.4 2003/10/31 15:17:04 brad Exp $
PATH=/bin:/usr/bin:/sbin:/usr/sbin
PREFIX=${PKG_PREFIX:-/usr/local}
CONFIG_DIR=${CONFDIR}
if [ "$PKG_DELETE_EXTRA" != Yes -a -d $CONFIG_DIR ]; then
echo
echo "+---------------"
echo "| To completely deinstall the $1 package you need to perform"
echo "| these steps 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 time."
echo "+---------------"
echo
fi
exit 0

View File

@ -1,58 +0,0 @@
#!/bin/sh
# $OpenBSD: INSTALL,v 1.7 2003/10/31 15:17:04 brad Exp $
PATH=/bin:/usr/bin:/sbin:/usr/sbin
PREFIX=${PKG_PREFIX:-/usr/local}
CONFIG_DIR=${CONFDIR}
SAMPLE_CONFIG_DIR=$PREFIX/share/examples/silc
do_notice_conf()
{
echo
echo "+---------------"
echo "| The existing $1 configuration files in $CONFIG_DIR"
echo "| have NOT been changed. You may want to compare them to the"
echo "| current samples in $SAMPLE_CONFIG_DIR, and update"
echo "| your configuration files as needed."
echo "+---------------"
echo
}
do_install_conf()
{
install -d -o root -g wheel -m 755 $CONFIG_DIR
install -o root -g wheel -m 644 $SAMPLE_CONFIG_DIR/silc.conf $CONFIG_DIR
echo
echo "+---------------"
echo "| The $1 configuration files have been installed in"
echo "| $CONFIG_DIR. Please view these files and change the configuration"
echo "| to meet your needs."
echo "+---------------"
echo
}
if [ $# -ne 2 ]; then
echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2
exit 1
fi
case $2 in
PRE-INSTALL)
: nothing to pre-install for this port
;;
POST-INSTALL)
if [ ! -d $CONFIG_DIR ]; then
do_install_conf $1
elif [ ! -f $CONFIG_DIR/silc.conf ]; then
do_install_conf $1
else
do_notice_conf $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.15 2004/09/15 18:17:45 espie Exp $
@comment $OpenBSD: PLIST,v 1.16 2004/09/22 23:09:26 espie Exp $
bin/silc
@comment libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/
@comment libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/Irssi/
@ -42,7 +42,9 @@ share/doc/silc/signals.txt
share/doc/silc/special_vars.txt
share/doc/silc/startup-HOWTO.html
share/examples/silc/
@sample ${CONFDIR}/
share/examples/silc/silc.conf
@sample ${CONFDIR}/silc.conf
share/examples/silc/silcalgs.conf
share/silc/
share/silc/help/
@ -145,5 +147,4 @@ share/silc/scripts/mail.pl
share/silc/scripts/silc-mime.pl
share/silc/themes/
share/silc/themes/default.theme
@extraunexec rm -rf ${CONFDIR}
%%SHARED%%