new-style PLIST, using @sample.

This commit is contained in:
xsa 2004-08-09 14:25:17 +00:00
parent c088bf2194
commit 7dd62b5b84
3 changed files with 5 additions and 82 deletions
devel/cvsgraph/pkg

@ -1,25 +0,0 @@
#!/bin/sh
# $OpenBSD: DEINSTALL,v 1.2 2004/04/19 09:43:50 xsa Exp $
#
# De-installation setup of cvsgraph
set -e
PATH=/bin:/usr/bin:/sbin:/usr/sbin
PREFIX=${PKG_PREFIX:-/usr/local}
CONFIG_FILE=${SYSCONFDIR}/cvsgraph.conf
if [ ${PKG_DELETE_EXTRA} != Yes -a -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 "|"
echo "| Do not do this if you plan on re-installing $1"
echo "| at some future time."
echo "+---------------"
echo
fi
exit 0

@ -1,51 +0,0 @@
#!/bin/sh
# $OpenBSD: INSTALL,v 1.1.1.1 2002/06/29 13:39:51 espie Exp $
#
# Pre/post-installation setup of postfix
PATH=/bin:/usr/bin:/sbin:/usr/sbin
PREFIX=${PKG_PREFIX:-/usr/local}
CONFDIR=${SYSCONFDIR}
SAMPLECONF=${PREFIX}/share/examples/cvsgraph
# verify proper execution
#
if [ $# -ne 2 ]; then
echo "usage: $0 distname POST-INSTALL" >&2
exit 1
fi
# Verify/process the command
#
case $2 in
PRE-INSTALL)
;;
POST-INSTALL)
if [ -f $CONFDIR/cvsgraph.conf ]; then
echo ""
echo "+---------------"
echo "| The existing $1 configuration file $CONFDIR/cvsgraph.conf,"
echo "| have NOT been changed. You may want to compare it to the"
echo "| current sample file, $SAMPLECONF/cvsgraph.conf,"
echo "| and update your configuration as needed."
echo "+---------------"
echo ""
else
# Install config file.
install -o root -g wheel -m 644 $SAMPLECONF/cvsgraph.conf $CONFDIR
echo ""
echo "+---------------"
echo "| The $1 configuration file $CONFDIR/cvsgraph.conf,"
echo "| have been installed. Please view this file and change"
echo "| the configuration to meet your needs."
echo "+---------------"
echo ""
fi
;;
*)
echo "Usage: `basename $0` distname POST-INSTALL" >&2
exit 1
;;
esac
exit 0

@ -1,8 +1,7 @@
@comment $OpenBSD: PLIST,v 1.2 2004/04/19 09:43:50 xsa Exp $
@comment $OpenBSD: PLIST,v 1.3 2004/08/09 14:25:17 xsa Exp $
bin/cvsgraph
man/man1/cvsgraph.1
man/man5/cvsgraph.conf.5
@man man/man1/cvsgraph.1
@man man/man5/cvsgraph.conf.5
share/examples/cvsgraph/
share/examples/cvsgraph/cvsgraph.conf
@dirrm share/examples/cvsgraph
@cwd ${SYSCONFDIR}
@extra cvsgraph.conf
@sample ${SYSCONFDIR}/cvsgraph.conf