- don't hardcode /etc, use SYSCONFDIR

- remove Jolan Luff as MAINTAINER
This commit is contained in:
sturm 2003-05-02 18:17:02 +00:00
parent 01e802c456
commit 513331d819
3 changed files with 10 additions and 11 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.11 2003/04/24 02:00:40 david Exp $
# $OpenBSD: Makefile,v 1.12 2003/05/02 18:17:02 sturm Exp $
COMMENT= "GNU Problem Report Management System"
@ -8,8 +8,6 @@ MASTER_SITES= ${MASTER_SITE_GNU:=gnats/}
HOMEPAGE= http://www.gnu.org/software/gnats/
MAINTAINER= Jolan Luff <jolan@cryptonomicon.org>
# GPL
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes

View File

@ -1,5 +1,5 @@
#!/bin/sh
# $OpenBSD: DEINSTALL,v 1.1.1.1 2001/01/12 17:14:51 dugsong Exp $
# $OpenBSD: DEINSTALL,v 1.2 2003/05/02 18:17:02 sturm Exp $
#
# De-installation setup of gnats
@ -24,9 +24,9 @@ do_configs()
{
echo ""
echo "+---------------"
echo "| The existing /etc/gnats-db.conf configuration file"
echo "| The existing ${SYSCONFDIR}/gnats-db.conf configuration file"
echo "| has NOT been deleted. To do this: execute"
echo "| 'rm /etc/gnats-db.conf' as root."
echo "| 'rm ${SYSCONFDIR}/gnats-db.conf' as root."
echo "+---------------"
echo ""
}

View File

@ -1,10 +1,11 @@
#!/bin/sh
# $OpenBSD: INSTALL,v 1.1.1.1 2001/01/12 17:14:51 dugsong Exp $
# $OpenBSD: INSTALL,v 1.2 2003/05/02 18:17:02 sturm Exp $
#
# Pre/post-installation setup of gnats
PATH=/bin:/usr/bin:/sbin:/usr/sbin
PREFIX=${PKG_PREFIX:-/usr/local}
CONFIG_FILE=${SYSCONFDIR}/gnats-db.conf
# Function: set up gnats user account.
#
@ -29,10 +30,10 @@ do_accts()
#
do_configs()
{
if [ -f /etc/gnats-db.conf ]; then
if [ -f ${CONFIG_FILE} ]; then
echo ""
echo "+---------------"
echo "| The existing /etc/gnats-db.conf configuration file"
echo "| The existing ${CONFIG_FILE} configuration file"
echo "| has NOT been changed. You may want to compare it to the"
echo "| current sample file, ${PREFIX}/share/examples/gnats/gnats-db.conf"
echo "| and update your configuration as needed."
@ -40,11 +41,11 @@ do_configs()
echo ""
else
# Install config files.
install -o root -g wheel -m 644 ${PREFIX}/share/examples/gnats/gnats-db.conf /etc/gnats-db.conf
install -o root -g wheel -m 644 ${PREFIX}/share/examples/gnats/gnats-db.conf ${CONFIG_FILE}
echo ""
echo "+---------------"
echo "| The /etc/gnats-db.conf configuration file has been"
echo "| The ${CONFIG_FILE} configuration file has been"
echo "| installed. Please view this file and change"
echo "| the configuration to meet your needs."
echo "+---------------"