Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Nov 2013 12:56:31 +0000 (UTC)
From:      Emanuel Haupt <ehaupt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r334309 - head/security/zebedee
Message-ID:  <201311191256.rAJCuVm5006787@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ehaupt
Date: Tue Nov 19 12:56:31 2013
New Revision: 334309
URL: http://svnweb.freebsd.org/changeset/ports/334309

Log:
  Support staging.

Modified:
  head/security/zebedee/Makefile
  head/security/zebedee/pkg-plist

Modified: head/security/zebedee/Makefile
==============================================================================
--- head/security/zebedee/Makefile	Tue Nov 19 12:52:28 2013	(r334308)
+++ head/security/zebedee/Makefile	Tue Nov 19 12:56:31 2013	(r334309)
@@ -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 <bsd.port.options.mk>
+
 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
 

Modified: head/security/zebedee/pkg-plist
==============================================================================
--- head/security/zebedee/pkg-plist	Tue Nov 19 12:52:28 2013	(r334308)
+++ head/security/zebedee/pkg-plist	Tue Nov 19 12:56:31 2013	(r334309)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201311191256.rAJCuVm5006787>