Be more thorough about /etc/tosharc.

If it already exists, we DON'T touch it, but we notify the user
that manual intervention may be needed.
This commit is contained in:
espie 1999-09-26 21:09:50 +00:00
parent 0085c3136b
commit 0f062e702c
2 changed files with 11 additions and 2 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.5 1999/08/17 03:09:23 brad Exp $
# $OpenBSD: Makefile,v 1.6 1999/09/26 21:09:50 espie Exp $
DISTNAME= tosha-0.6
CATEGORIES= audio
@ -6,4 +6,12 @@ MASTER_SITES= ftp://ftp.tu-clausthal.de/pub/unix/audio/
MAINTAINER= angelos@openbsd.org
post-install:
@if [ -e /etc/tosharc ] ; then \
${ECHO} "===> You might wish to update /etc/tosharc"; \
${ECHO} "===> check ${PREFIX}/lib/tosha/tosharc.sample"; \
else \
cp ${PREFIX}/lib/tosha/tosharc.sample /etc/tosharc; \
fi
.include <bsd.port.mk>

View File

@ -2,7 +2,8 @@ bin/tosha
bin/pcmplay
bin/pcmfade
lib/tosha/tosharc.sample
@exec if [ ! -f /etc/tosharc ]; then cp %D/%F /etc/tosharc; fi
@exec if [ ! -f /etc/tosharc ]; then cp %D/%F /etc/tosharc; else echo "===> You might wish to update /etc/tosharc"; echo "===> check %D/%F"; fi
@unexec echo "===> You need to remove /etc/tosharc manually"
man/man1/tosha.1
man/man1/pcmplay.1
man/man1/pcmfade.1