Use DOCSDIR macro.
Install documents in DOCSDIR with INSTALL_DATA instead of INSTALL_MAN. Simplify executable and man page installation.
This commit is contained in:
parent
a065d1ce5d
commit
2baae7dc74
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=104358
@ -19,12 +19,11 @@ MAN8= chrootuid.8
|
||||
|
||||
do-install:
|
||||
.if !defined(NOPORTDOCS)
|
||||
@${MKDIR} ${PREFIX}/share/doc/chrootuid
|
||||
${INSTALL_MAN} ${WRKSRC}/README ${PREFIX}/share/doc/chrootuid
|
||||
${INSTALL_MAN} ${WRKSRC}/chrootuid_license ${PREFIX}/share/doc/chrootuid
|
||||
@${MKDIR} ${DOCSDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/chrootuid_license ${DOCSDIR}
|
||||
.endif
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/chrootuid ${PREFIX}/sbin/chrootuid
|
||||
${CP} ${WRKSRC}/chrootuid.1 ${WRKSRC}/chrootuid.8
|
||||
${INSTALL_MAN} ${WRKSRC}/${MAN8} ${PREFIX}/man/man8
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/chrootuid ${PREFIX}/sbin/
|
||||
${INSTALL_MAN} ${WRKSRC}/chrootuid.1 ${PREFIX}/man/man8/${MAN8}
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,4 +1,4 @@
|
||||
sbin/chrootuid
|
||||
share/doc/chrootuid/README
|
||||
share/doc/chrootuid/chrootuid_license
|
||||
@dirrm share/doc/chrootuid
|
||||
%%PORTDOCS%%%%DOCSDIR%%/README
|
||||
%%PORTDOCS%%%%DOCSDIR%%/chrootuid_license
|
||||
@dirrm %%DOCSDIR%%
|
||||
|
Loading…
Reference in New Issue
Block a user