diff --git a/ftp/fmirror/Makefile b/ftp/fmirror/Makefile index 91a58efeacd8..47df130ca441 100644 --- a/ftp/fmirror/Makefile +++ b/ftp/fmirror/Makefile @@ -13,19 +13,17 @@ COMMENT= Program for mirroring files and directories from a remote FTP server GNU_CONFIGURE= yes -MAN1= fmirror.1 +OPTIONS_DEFINE= DOCS -NO_STAGE= yes do-install: cd ${WRKSRC} && \ - ${INSTALL_PROGRAM} fmirror ${PREFIX}/bin && \ - ${INSTALL_MAN} ${MAN1} ${PREFIX}/man/man1 -.if !defined(NOPORTDOCS) - ${MKDIR} ${DOCSDIR} && \ + ${INSTALL_PROGRAM} fmirror ${STAGEDIR}${PREFIX}/bin && \ + ${INSTALL_MAN} ${PORTNAME}.1 ${STAGEDIR}${PREFIX}/man/man1 + ${MKDIR} ${STAGEDIR}${DOCSDIR} && \ cd ${WRKSRC} && \ - ${INSTALL_DATA} ChangeLog README ${DOCSDIR} && \ + ${INSTALL_DATA} ChangeLog README ${STAGEDIR}${DOCSDIR} && \ cd ${WRKSRC}/configs && \ - ${INSTALL_DATA} generic.conf redhat.conf sample.conf ${DOCSDIR} -.endif + ${INSTALL_DATA} generic.conf redhat.conf sample.conf \ + ${STAGEDIR}${DOCSDIR} .include diff --git a/ftp/fmirror/pkg-plist b/ftp/fmirror/pkg-plist index 85b2e733b806..e81851a3e13b 100644 --- a/ftp/fmirror/pkg-plist +++ b/ftp/fmirror/pkg-plist @@ -1,4 +1,5 @@ bin/fmirror +man/man1/fmirror.1.gz %%PORTDOCS%%share/doc/fmirror/ChangeLog %%PORTDOCS%%share/doc/fmirror/README %%PORTDOCS%%share/doc/fmirror/generic.conf