use variable substitution to remove the hard coded CONFIG_DIR in the

DEINSTALL/INSTALL scripts.
This commit is contained in:
brad 2000-08-12 13:29:55 +00:00
parent 1f2d869653
commit db58c7154a
3 changed files with 7 additions and 5 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.39 2000/08/04 17:55:26 brad Exp $
# $OpenBSD: Makefile,v 1.40 2000/08/12 13:29:55 brad Exp $
DISTNAME= mutt-1.2.5i
CATEGORIES= mail
@ -24,6 +24,8 @@ FLAVORS= slang curses imap pop
FLAVOR?= curses
SYSCONFDIR= /etc/mutt
SUBST_VARS= SYSCONFDIR
CONFIGURE_STYLE= gnu
CONFIGURE_ARGS= --with-sharedir="${PREFIX}/share/mutt" \
--with-docdir="${PREFIX}/share/doc/mutt" \

View File

@ -1,12 +1,12 @@
#!/bin/sh
# $OpenBSD: DEINSTALL,v 1.2 2000/08/04 17:55:26 brad Exp $
# $OpenBSD: DEINSTALL,v 1.3 2000/08/12 13:29:56 brad Exp $
#
# mutt de-installation
set -e
PATH=/bin:/usr/bin:/sbin:/usr/sbin
PREFIX=${PKG_PREFIX:-/usr/local}
CONFIG_DIR=/etc/mutt
CONFIG_DIR=${SYSCONFDIR}
if [ -d $CONFIG_DIR ]; then
echo

View File

@ -1,5 +1,5 @@
#!/bin/sh
# $OpenBSD: INSTALL,v 1.3 2000/08/09 00:45:27 brad Exp $
# $OpenBSD: INSTALL,v 1.4 2000/08/12 13:29:56 brad Exp $
#
# Pre/post-installation setup of mutt
@ -8,7 +8,7 @@
set -e
PATH=/bin:/usr/bin:/sbin:/usr/sbin
PREFIX=${PKG_PREFIX:-/usr/local}
CONFIG_DIR=/etc/mutt
CONFIG_DIR=${SYSCONFDIR}
SAMPLE_CONFIG_DIR=$PREFIX/share/examples/mutt
do_notice()