From e7e1938e253549b7c1dbc68c9dc7b3d3fba67c1e Mon Sep 17 00:00:00 2001 From: marcm Date: Mon, 11 Oct 2004 04:29:10 +0000 Subject: [PATCH] INSTALL/DEINSTALL here too. --- textproc/scrollkeeper/pkg/DEINSTALL | 56 ----------------- textproc/scrollkeeper/pkg/INSTALL | 98 ----------------------------- textproc/scrollkeeper/pkg/PLIST | 5 +- 3 files changed, 2 insertions(+), 157 deletions(-) delete mode 100644 textproc/scrollkeeper/pkg/DEINSTALL delete mode 100644 textproc/scrollkeeper/pkg/INSTALL diff --git a/textproc/scrollkeeper/pkg/DEINSTALL b/textproc/scrollkeeper/pkg/DEINSTALL deleted file mode 100644 index 8d661ae4ee2..00000000000 --- a/textproc/scrollkeeper/pkg/DEINSTALL +++ /dev/null @@ -1,56 +0,0 @@ -#!/bin/sh -# -# $OpenBSD: DEINSTALL,v 1.3 2003/08/23 19:54:23 marcm Exp $ -# - -set -e -PATH=/bin:/usr/bin:/sbin:/usr/sbin - -FILES=' -scrollkeeper.conf -' - -do_notice() -{ - echo - echo "+--------------- $1" - echo "| To really remove $1 from your system you should also" - echo "| remove the configuration files from the ${SYSCONFDIR} directory" - echo "| and perform the following step as root:" - echo "|" - echo "| rm -rf /var/db/scrollkeeper" - echo "|" - echo "| If you are planning on installing $1 again in the future" - echo "| you can leave it as it is." - echo "|" - echo "| FYI, the following configuration files belong to this package:" - echo "|" - for f in ${FILES}; do - echo "| ${SYSCONFDIR}/$f" - done - echo "+--------------- $1" - echo -} - -# Verify proper execution -# -if [ $# -ne 2 ]; then - echo "usage: $0 distname DEINSTALL" >&2 - exit 1 -fi - -# Verify/process the command -# -case $2 in - DEINSTALL) - if [ "$PKG_DELETE_EXTRA" != Yes ]; then - do_notice "$1" - fi - ;; - *) - echo "usage: $0 distname DEINSTALL" >&2 - exit 1 - ;; -esac - -exit 0 diff --git a/textproc/scrollkeeper/pkg/INSTALL b/textproc/scrollkeeper/pkg/INSTALL deleted file mode 100644 index a05c7837f1b..00000000000 --- a/textproc/scrollkeeper/pkg/INSTALL +++ /dev/null @@ -1,98 +0,0 @@ -#!/bin/sh -# -# $OpenBSD: INSTALL,v 1.3 2003/02/26 15:13:04 david Exp $ - -P_NAME=scrollkeeper - -DIRS=' -' - -FILES=' -scrollkeeper.conf -' - -set -e -PREFIX=${PKG_PREFIX:-/usr/local} -PATH=/bin:/usr/bin:/sbin:/usr/sbin - -do_post() { - - DEST_PFX=${SYSCONFDIR} - SOURCE_PFX=${PREFIX}/share/examples/${P_NAME} - - echo - echo "+--------------- ${P_NAME}" - - # install dirs if necessary - for d in ${DIRS}; do - if [ ! -d "${DEST_PFX}/$d" ]; then - install -d ${DEST_PFX}/$d - fi - done - install -d /var/db/scrollkeeper - - # install or take note of existing config files - for f in ${FILES}; do - if [ -f "${DEST_PFX}/$f" ]; then - OLD_CONFS="${OLD_CONFS} $f" - else - if ! install -m 644 ${SOURCE_PFX}/$f ${DEST_PFX}/$f; then - echo "| ERROR: The following file could not be installed, exiting: ${DEST_PFX}/$f" - exit 1 - fi - NEW_CONFS="${NEW_CONFS} $f" - fi - done - - # print status report - if [ -n "${NEW_CONFS}" ]; then - echo "| The following NEW configuration files have been installed:" - echo "|" - for f in ${NEW_CONFS}; do - echo "| ${DEST_PFX}/$f" - done - fi - - if [ -n "${OLD_CONFS}" ]; then - if [ -n "${NEW_CONFS}" ]; then - echo "|" - fi - echo "| The following OLD configuration files were found and have NOT been" - echo "| overwritten:" - echo "|" - for f in ${OLD_CONFS}; do - echo "| ${DEST_PFX}/$f" - done - echo "|" - echo "| You should however manually compare them to their equivalents in" - echo "|" - echo "| ${SOURCE_PFX}" - echo "|" - echo "| and update your configuration as needed." - fi - echo "+--------------- ${P_NAME}" - 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) - ;; - POST-INSTALL) - do_post - ;; - *) - echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2 - exit 1 - ;; -esac - -exit 0 diff --git a/textproc/scrollkeeper/pkg/PLIST b/textproc/scrollkeeper/pkg/PLIST index 6739eeca648..47eba97f497 100644 --- a/textproc/scrollkeeper/pkg/PLIST +++ b/textproc/scrollkeeper/pkg/PLIST @@ -1,4 +1,4 @@ -@comment $OpenBSD: PLIST,v 1.9 2004/09/15 18:44:07 espie Exp $ +@comment $OpenBSD: PLIST,v 1.10 2004/10/11 04:29:10 marcm Exp $ bin/scrollkeeper-config bin/scrollkeeper-extract bin/scrollkeeper-gen-seriesid @@ -33,6 +33,7 @@ share/doc/scrollkeeper-0.3.14/TODO share/doc/scrollkeeper-0.3.14/scrollkeeper-spec.txt share/examples/scrollkeeper/ share/examples/scrollkeeper/scrollkeeper.conf +@sample ${SYSCONFDIR}/scrollkeeper.conf share/locale/am/ share/locale/am/LC_MESSAGES/ share/locale/am/LC_MESSAGES/scrollkeeper.mo @@ -166,7 +167,5 @@ share/xml/scrollkeeper/dtds/scrollkeeper-omf.dtd @exec %D/bin/scrollkeeper-rebuilddb -q @unexec xmlcatalog --noout --del "-//OMF//DTD Scrollkeeper OMF Variant V1.0//EN" /var/db/xmlcatalog %%SHARED%% -@cwd ${SYSCONFDIR} -@extra scrollkeeper.conf @extraunexec rm -rf /var/db/scrollkeeper/ @extraunexec rm -f /var/log/scrollkeeper.log*