- Work around a case where .if !exists(${ETCDIR}/${f}) fails
- Consistent usage of %%ETCDIR%%
This commit is contained in:
parent
00a6e20d03
commit
56435ea646
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=312354
2 changed files with 7 additions and 9 deletions
|
@ -50,11 +50,9 @@ post-patch:
|
|||
@${REINPLACE_CMD} -e 's|\ install-conf||' ${WRKSRC}/Makefile.in
|
||||
|
||||
post-install:
|
||||
${MKDIR} ${PREFIX}/etc/xmp
|
||||
${MKDIR} ${ETCDIR}
|
||||
.for f in ${CONFIG_FILES}
|
||||
.if !exists(${ETCDIR}/${f})
|
||||
${INSTALL_DATA} ${WRKSRC}/src/${f} ${ETCDIR}/${f}
|
||||
.endif
|
||||
@test -f ${ETCDIR}/${f} || ${INSTALL_DATA} ${WRKSRC}/src/${f} ${ETCDIR}/${f}
|
||||
${INSTALL_DATA} ${WRKSRC}/src/${f} ${ETCDIR}/${f}.sample
|
||||
.endfor
|
||||
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
@unexec if cmp -s %D/etc/xmp/xmp.conf %D/etc/xmp/xmp.conf.sample; then rm -f %D/etc/xmp/xmp.conf; fi
|
||||
etc/xmp/xmp.conf.sample
|
||||
@unexec if cmp -s %D/%%ETCDIR%%/xmp.conf %D/%%ETCDIR%%/xmp.conf.sample; then rm -f %D/%%ETCDIR%%/xmp.conf; fi
|
||||
%%ETCDIR%%/xmp.conf.sample
|
||||
@exec [ -f %B/xmp.conf ] || cp %B/%f %B/xmp.conf
|
||||
bin/xmp
|
||||
@unexec if cmp -s %D/etc/xmp/modules.conf %D/etc/xmp/modules.conf.sample; then rm -f %D/etc/xmp/modules.conf; fi
|
||||
etc/xmp/modules.conf.sample
|
||||
@unexec if cmp -s %D/%%ETCDIR%%/modules.conf %D/%%ETCDIR%%/modules.conf.sample; then rm -f %D/%%ETCDIR%%/modules.conf; fi
|
||||
%%ETCDIR%%/modules.conf.sample
|
||||
@exec [ -f %B/modules.conf ] || cp %B/%f %B/modules.conf
|
||||
@dirrmtry etc/xmp
|
||||
@dirrmtry %%ETCDIR%%
|
||||
|
|
Loading…
Reference in a new issue