Don't overwrite mtools.conf
PR: ports/157910 Submitted by: Max Brazhnikov <makc@FreeBSD.org>
This commit is contained in:
parent
6038aac35f
commit
9733d77c65
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=277135
1 changed files with 4 additions and 4 deletions
|
@ -7,7 +7,7 @@
|
|||
|
||||
PORTNAME= mtools
|
||||
PORTVERSION= 4.0.10
|
||||
PORTREVISION= 2
|
||||
PORTREVISION= 3
|
||||
CATEGORIES= emulators
|
||||
MASTER_SITES= ${MASTER_SITE_GNU}
|
||||
MASTER_SITE_SUBDIR= mtools
|
||||
|
@ -63,9 +63,9 @@ post-patch:
|
|||
|
||||
post-install:
|
||||
${INSTALL_DATA} ${WRKSRC}/mtools.conf ${PREFIX}/etc/mtools.conf.sample
|
||||
.if !exists(${PREFIX}/etc/mtools.conf)
|
||||
@cd ${PREFIX}/etc && ${CP} -f mtools.conf.sample mtools.conf
|
||||
.endif
|
||||
@if [ ! -f ${PREFIX}/etc/mtools.conf ]; then \
|
||||
cd ${PREFIX}/etc && ${CP} -p mtools.conf.sample mtools.conf; \
|
||||
fi
|
||||
@${CAT} ${PKGMESSAGE}
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
|
Loading…
Reference in a new issue