diff --git a/security/zebedee/Makefile b/security/zebedee/Makefile index 6e695983a340..bdc1aed4db3f 100644 --- a/security/zebedee/Makefile +++ b/security/zebedee/Makefile @@ -10,38 +10,40 @@ MAINTAINER= ports@FreeBSD.org COMMENT= Encrypted, secure compressed TCP tunnel USES= perl5 -USE_OPENSSL= YES +USE_OPENSSL= yes USE_PERL5= build MAKE_ENV+= PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \ PTHREAD_LIBS=${PTHREAD_LIBS} -MAN1= zebedee.1 ftpgw.tcl.1 - EXAMPLES= vncviewer.zbd vncserver.zbd server.key server.id client1.key \ client2.key clients.id DOCS= README.txt LICENCE.txt CHANGES.txt zebedee.html ftpgw.tcl.html -NO_STAGE= yes +OPTIONS_DEFINE= DOCS + +.include + post-patch: @${REINPLACE_CMD} \ -e 's| gcc| ${CC}|' \ ${BUILD_WRKSRC}/${MAKEFILE} do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/zebedee ${PREFIX}/bin - ${INSTALL_SCRIPT} ${WRKSRC}/ftpgw.tcl ${PREFIX}/bin - ${INSTALL_MAN} ${WRKSRC}/zebedee.1 ${PREFIX}/man/man1 - ${INSTALL_MAN} ${WRKSRC}/ftpgw.tcl.1 ${PREFIX}/man/man1 - ${INSTALL_DATA} ${WRKSRC}/server.zbd ${PREFIX}/etc/server.zbd.sample - ${MKDIR} ${EXAMPLESDIR} + ${INSTALL_PROGRAM} ${WRKSRC}/zebedee ${STAGEDIR}${PREFIX}/bin + ${INSTALL_SCRIPT} ${WRKSRC}/ftpgw.tcl ${STAGEDIR}${PREFIX}/bin + ${INSTALL_MAN} ${WRKSRC}/zebedee.1 ${STAGEDIR}${PREFIX}/man/man1 + ${INSTALL_MAN} ${WRKSRC}/ftpgw.tcl.1 ${STAGEDIR}${PREFIX}/man/man1 + ${INSTALL_DATA} ${WRKSRC}/server.zbd ${STAGEDIR}${PREFIX}/etc/server.zbd.sample + ${MKDIR} ${STAGEDIR}${EXAMPLESDIR} .for e in ${EXAMPLES} - ${INSTALL_DATA} ${WRKSRC}/${e} ${EXAMPLESDIR} + ${INSTALL_DATA} ${WRKSRC}/${e} ${STAGEDIR}${EXAMPLESDIR} .endfor -.if !defined(NOPORTDOCS) - @${MKDIR} ${DOCSDIR} + +.if ${PORT_OPTIONS:MDOCS} + @${MKDIR} ${STAGEDIR}${DOCSDIR} .for d in ${DOCS} - ${INSTALL_DATA} ${WRKSRC}/${d} ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/${d} ${STAGEDIR}${DOCSDIR} .endfor .endif diff --git a/security/zebedee/pkg-plist b/security/zebedee/pkg-plist index fb5ab7363e52..bd5e9b6d2972 100644 --- a/security/zebedee/pkg-plist +++ b/security/zebedee/pkg-plist @@ -1,6 +1,8 @@ bin/ftpgw.tcl bin/zebedee etc/server.zbd.sample +man/man1/ftpgw.tcl.1.gz +man/man1/zebedee.1.gz %%EXAMPLESDIR%%/client1.key %%EXAMPLESDIR%%/client2.key %%EXAMPLESDIR%%/clients.id