1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-20 04:02:27 +00:00

dns/yadifa: fix installation of the sample config

PR:		236322
Submitted by:	Leo Vandewoestijne <freebsd@dns.company> (maintainer)
This commit is contained in:
Kurt Jaeger 2019-03-10 19:48:01 +00:00
parent ce7f0eda59
commit 38f4ebf1aa
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=495318

View File

@ -43,19 +43,19 @@ post-configure:
${REINPLACE_CMD} -e 's|/usr/local/var|/var|' -e 's|/var/zones|/var/${PORTNAME}|' ${WRKSRC}/etc/yadifad.conf.example
pre-build:
@cd ${WRKSRC} && ${MAKE_CMD} features
cd ${WRKSRC} && ${MAKE_CMD} features
post-install:
${MV} ${STAGEDIR}${PREFIX}/etc/yadifad.conf \
${CP} ${WRKSRC}/etc/yadifad.conf \
${STAGEDIR}${PREFIX}/etc/yadifad.conf.sample
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
@${MV} ${STAGEDIR}/var/zones ${STAGEDIR}/var/${PORTNAME}
${MV} ${STAGEDIR}/var/zones ${STAGEDIR}/var/${PORTNAME}
post-install-EXAMPLES-on:
@${MKDIR} ${STAGEDIR}${PREFIX}/etc/bash_completion.d/
${MKDIR} ${STAGEDIR}${PREFIX}/etc/bash_completion.d/
.for f in yadifa yadifad
@${LN} -s ../../${EXAMPLESDIR_REL}/$f.bash_completion \
${LN} -s ../../${EXAMPLESDIR_REL}/$f.bash_completion \
${STAGEDIR}${PREFIX}/etc/bash_completion.d/$f.sh
.endfor