mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-23 04:23:08 +00:00
- Avoid clobbering existing 3dm2.conf
- Don't unconditionally set mode 600 on 3dm2.conf Noticed by: Craig Leres <leres ee lbl gov> Submitted by: maintainer (in a follup to the PR) PR: ports/114994
This commit is contained in:
parent
46a859eb5a
commit
d04ebade2a
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=197194
@ -7,6 +7,7 @@
|
||||
|
||||
PORTNAME= 3dm
|
||||
PORTVERSION= 2.04.00.035
|
||||
PORTREVISION= 1
|
||||
PORTEPOCH= 1
|
||||
CATEGORIES= sysutils
|
||||
MASTER_SITES= http://3ware.com/download/Escalade9650SE-Series/9.4.0.1/
|
||||
@ -96,10 +97,11 @@ do-install:
|
||||
|
||||
post-install:
|
||||
${INSTALL_DATA} ${WRKSRC}/3dm2.conf.sample ${PREFIX}/etc/3dm2/
|
||||
[ -f ${PREFIX}/etc/3dm2/3dm2.conf ] || \
|
||||
${CP} ${PREFIX}/etc/3dm2/3dm2.conf.sample \
|
||||
${PREFIX}/etc/3dm2/3dm2.conf
|
||||
@${CHMOD} 600 ${PREFIX}/etc/3dm2/3dm2.conf.sample ${PREFIX}/etc/3dm2/3dm2.conf
|
||||
${CHMOD} 400 ${PREFIX}/etc/3dm2/3dm2.conf.sample
|
||||
[ -f ${PREFIX}/etc/3dm2/3dm2.conf ] || ( \
|
||||
${INSTALL_DATA} ${WRKSRC}/3dm2.conf.sample ${PREFIX}/etc/3dm2/3dm2.conf && \
|
||||
${CHMOD} 600 ${PREFIX}/etc/3dm2/3dm2.conf \
|
||||
)
|
||||
|
||||
# 3ware uses a hardcoded config dir location that doesn't match hier(9)
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
@unexec %D/etc/rc.d/3dm2.sh stop > /dev/null 2>&1 || true
|
||||
@unexec %D/etc/rc.d/3dm2 stop > /dev/null 2>&1 || true
|
||||
@unexec if cmp -s %D/etc/3dm2/3dm2.conf.sample %D/etc/3dm2/3dm2.conf; then rm -f %D/etc/3dm2/3dm2.conf; fi
|
||||
etc/3dm2/3dm2.conf.sample
|
||||
@exec if [ -f %B/3dm2.conf ] ; then cp -p %D/%F %B/3dm2.conf; fi
|
||||
@exec if [ ! -f %B/3dm2.conf ] ; then cp -p %D/%F %B/3dm2.conf && chmod 600 %B/3dm2.conf; fi
|
||||
etc/3dm2/msg/tdm_msg_en
|
||||
etc/3dm2/msg/tw_msg_en
|
||||
sbin/3dm2
|
||||
|
Loading…
Reference in New Issue
Block a user