- Don't replace /usr/bin with ${LOCALBASE}/bin as it does need /usr/bin (to search for crontab) and still does fall back to search in /usr/local (for clamav binaries)

- Ensure that /usr/local is raplaced with ${LOCALBASE}
- Switch to options helpers

PR:		205952
Submitted by:	lhersch@dssgmbh.de
Approved by:	maintainer timeout (tj, almost a year)
This commit is contained in:
Dmitry Marakasov
2016-12-26 11:30:05 +00:00
parent 4ceb5bd553
commit 9fb53d3fe9

View File

@@ -37,7 +37,7 @@ post-extract:
post-patch:
@${REINPLACE_CMD} -e \
's|/usr/bin|${LOCALBASE}/bin|g ; \
's|/usr/local|${LOCALBASE}|g ; \
s|/usr/share|${PREFIX}/share|g ; \
s|/var/lib/clamav|/var/db/clamav|g' ${WRKSRC}/lib/*.pm
@@ -55,6 +55,8 @@ do-install:
${INSTALL_DATA} ${WRKSRC}/po/$${l}.mo \
${STAGEDIR}${PREFIX}/share/locale/$${l}/LC_MESSAGES/${PORTNAME}.mo; \
done
do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for file in CHANGES DISCLAIMER README
${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}${DOCSDIR}