1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

- Stage support

- Install a proper configuaration file
- Strip binaries
- Mark jobs-unsafe
- Fix WWW line in pkg-descr
- Fix pkg-plist
- Bump PORTREVISION

PR:		191958
Submitted by:	Carlos Jacobo Puga Media <cjpugmed@gmail.com>
Approved by:	portmgr (infrastructure blanket)
This commit is contained in:
Rene Ladan 2014-07-21 10:05:50 +00:00
parent 99859df43f
commit ba42ea3251
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=362414
3 changed files with 29 additions and 25 deletions

View File

@ -3,6 +3,7 @@
PORTNAME= gogoc
PORTVERSION= 1.2
PORTREVISION= 1
CATEGORIES= net ipv6
MASTER_SITES= http://gogo6.com/downloads/
DISTNAME= gogoc-1_2-RELEASE
@ -14,34 +15,35 @@ USES= gmake
USE_RC_SUBR= gogoc
USE_OPENSSL= yes
OPTIONS_DEFINE= DOCS EXAMPLES
MAKE_JOBS_UNSAFE= yes
MAN5= gogoc.conf.5
MAN8= gogoc.8
PORTDOCS= README CLIENT-LICENSE.TXT GUI-LICENSE.TXT
PORTDOCS= CLIENT-LICENSE.TXT GUI-LICENSE.TXT INSTALL README
SUB_FILES= gogoc
SUB_LIST= LOCALBASE=${LOCALBASE}
NO_STAGE= yes
do-install:
cd ${WRKSRC}/gogoc-tsp/ && \
${MAKE_CMD} platform=freebsd installdir=${PREFIX} install
${RM} ${PREFIX}/bin/gogoc.conf*
.if !defined(NOPORTEXAMPLES)
${MKDIR} ${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/gogoc-tsp/bin/gogoc.conf.sample ${EXAMPLESDIR}
.endif
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
.for file in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
.endfor
.endif
.include <bsd.port.options.mk>
@if [ ! -f ${PREFIX}/etc/gogoc.conf ]; then \
${TOUCH} ${PREFIX}/etc/gogoc.conf ; \
fi
do-install:
cd ${WRKSRC}/gogoc-tsp/ && ${SETENV} ${MAKE_ENV} DESTDIR=${STAGEDIR} \
${MAKE_CMD} platform=freebsd installdir=${STAGEDIR}${PREFIX} install
${RM} ${STAGEDIR}${PREFIX}/bin/gogoc.conf*
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/gogoc
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/gogoc-tsp/bin/gogoc.conf.sample ${STAGEDIR}${EXAMPLESDIR}
@${REINPLACE_CMD} -e \
's|gogoc_dir=${STAGEDIR}${PREFIX}|gogoc_dir=${PREFIX}|g' \
${STAGEDIR}${EXAMPLESDIR}/gogoc.conf.sample
@${RM} ${STAGEDIR}${EXAMPLESDIR}/gogoc.conf.sample.bak # pass stage-qa
${INSTALL_DATA} ${STAGEDIR}${EXAMPLESDIR}/gogoc.conf.sample \
${STAGEDIR}${PREFIX}/etc/gogoc.conf
${MKDIR} ${STAGEDIR}${DOCSDIR}
.for file in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}${DOCSDIR}
.endfor
.include <bsd.port.mk>

View File

@ -6,4 +6,4 @@ incremental deployment of IPv6. Freenet6 Tunnel users can get IPv6 connectivity
from anywhere, including from behind any NAT device or from outside of their
home network.
WWW: http://gogonet.gogo6.com/page/freenet6-services
WWW: http://www.gogo6.com/freenet6

View File

@ -1,7 +1,9 @@
bin/gogoc
%%ETCDIR%%.conf
etc/gogoc.conf
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/gogoc.conf.sample
man/man5/gogoc.conf.5.gz
man/man8/gogoc.8.gz
template/README
template/freebsd.sh
@dirrm template
%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%
@dirrmtry template