move sample config files from lib/icb to share/examples/icb

This commit is contained in:
brad 2000-08-07 11:49:34 +00:00
parent b8f24d5a8e
commit 48f5153109
4 changed files with 20 additions and 20 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.15 2000/06/27 22:36:19 fgsch Exp $
# $OpenBSD: Makefile,v 1.16 2000/08/07 11:49:34 brad Exp $
# $NetBSD: Makefile,v 1.6 1998/04/15 11:15:34 frueauf Exp $
DISTNAME= icb-5.0.9
@ -20,10 +20,12 @@ do-configure:
do-install:
${INSTALL_DATA_DIR} ${PREFIX}/lib/icb
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/icb
${INSTALL_PROGRAM} ${WRKSRC}/icb/icb ${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/icbserverdb \
${PREFIX}/lib/icb/sample.icbserverdb
${INSTALL_DATA} ${WRKSRC}/sample.icbrc ${PREFIX}/lib/icb
${PREFIX}/share/examples/icb/sample.icbserverdb
${INSTALL_DATA} ${WRKSRC}/sample.icbrc \
${PREFIX}/share/examples/icb
cd ${WRKSRC}/contrib; ${INSTALL_DATA} bartender confuse echofile \
${PREFIX}/lib/icb

View File

@ -1,20 +1,20 @@
#!/bin/sh
# $OpenBSD: DEINSTALL,v 1.2 2000/07/19 09:31:20 brad Exp $
# $OpenBSD: DEINSTALL,v 1.3 2000/08/07 11:49:35 brad Exp $
#
# icb de-installation
set -e
PATH=/bin:/usr/bin:/sbin:/usr/sbin
PREFIX=${PKG_PREFIX:-/usr/local}
CONFIG_FILE=${PREFIX}/lib/icbserverdb
CONFIG_FILE=$PREFIX/lib/icbserverdb
if [ -f ${CONFIG_FILE} ]; then
if [ -f $CONFIG_FILE ]; then
echo
echo "+---------------"
echo "| To completely deinstall the $1 package you need to perform"
echo "| this step as root:"
echo "|"
echo "| rm -f ${CONFIG_FILE}"
echo "| rm -f $CONFIG_FILE"
echo "|"
echo "| Do not do this if you plan on re-installing $1"
echo "| at some future time."

View File

@ -1,5 +1,5 @@
#!/bin/sh
# $OpenBSD: INSTALL,v 1.1 1999/12/14 04:17:15 brad Exp $
# $OpenBSD: INSTALL,v 1.2 2000/08/07 11:49:35 brad Exp $
#
# Pre/post-installation setup of icb
@ -8,30 +8,27 @@
set -e
PATH=/bin:/usr/bin:/sbin:/usr/sbin
PREFIX=${PKG_PREFIX:-/usr/local}
CONFIG_FILE=${PREFIX}/lib/icbserverdb
CONFIG_FILE=$PREFIX/lib/icbserverdb
SAMPLE_CONFIG_FILE=$PREFIX/share/examples/icb/sample.icbserverdb
# Function: tell the user what s/he needs to do to use the port just installed
#
do_notice()
{
echo
echo "+---------------"
echo "| The existing $1 configuration file, ${CONFIG_FILE},"
echo "| The existing $1 configuration file, $CONFIG_FILE,"
echo "| has NOT been changed. You may want to compare it to the"
echo "| current sample file, ${PREFIX}/lib/icb/sample.icbserverdb,"
echo "| current sample file, $SAMPLE_CONFIG_FILE,"
echo "| and update your configuration as needed."
echo "+---------------"
echo
}
# Function: install the system icb config file from the sample
#
do_install()
{
cp ${PREFIX}/lib/icb/sample.icbserverdb ${CONFIG_FILE}
install -o root -g wheel -m 644 $SAMPLE_CONFIG_FILE $CONFIG_FILE
echo
echo "+---------------"
echo "| The $1 configuration file, ${CONFIG_FILE},"
echo "| The $1 configuration file, $CONFIG_FILE,"
echo "| has been installed. Please view this file and change"
echo "| the configuration to meet your needs"
echo "+---------------"

View File

@ -1,8 +1,9 @@
@comment $OpenBSD: PLIST,v 1.7 2000/06/27 22:36:20 fgsch Exp $
@comment $OpenBSD: PLIST,v 1.8 2000/08/07 11:49:35 brad Exp $
bin/icb
lib/icb/bartender
lib/icb/confuse
lib/icb/echofile
lib/icb/sample.icbrc
lib/icb/sample.icbserverdb
share/examples/icb/sample.icbrc
share/examples/icb/sample.icbserverdb
@dirrm lib/icb
@dirrm share/examples/icb