- Support staging
PR: 189732 Submitted by: Matthew Luckie <mjl@luckie.org.nz> (maintainer)
This commit is contained in:
parent
0d5b95b260
commit
e94ff09d22
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=354041
3 changed files with 12 additions and 17 deletions
|
@ -15,25 +15,16 @@ LICENSE= GPLv2
|
|||
GNU_CONFIGURE= yes
|
||||
USE_LDCONFIG= yes
|
||||
|
||||
PORTDOCS= README
|
||||
PORTEXAMPLES= example.c
|
||||
OPTIONS_DEFINE= DOCS EXAMPLES
|
||||
|
||||
NO_STAGE= yes
|
||||
do-install:
|
||||
@${INSTALL_PROGRAM} ${WRKSRC}/bgpdump ${PREFIX}/bin
|
||||
@${INSTALL_DATA} ${WRKSRC}/libbgpdump.* ${PREFIX}/lib
|
||||
@${INSTALL_PROGRAM} ${WRKSRC}/bgpdump ${STAGEDIR}${PREFIX}/bin
|
||||
@${INSTALL_DATA} ${WRKSRC}/libbgpdump.* ${STAGEDIR}${PREFIX}/lib
|
||||
.for i in bgpdump_attr.h bgpdump_formats.h bgpdump_lib.h
|
||||
@${INSTALL_DATA} ${WRKSRC}/${i} ${PREFIX}/include
|
||||
@${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${PREFIX}/include
|
||||
.endfor
|
||||
|
||||
post-install:
|
||||
.if !defined(NOPORTDOCS)
|
||||
${MKDIR} ${DOCSDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
|
||||
.endif
|
||||
.if !defined(NOPORTEXAMPLES)
|
||||
${MKDIR} ${EXAMPLESDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/example.c ${EXAMPLESDIR}
|
||||
.endif
|
||||
@${MKDIR} ${STAGEDIR}${DOCSDIR} ${STAGEDIR}${EXAMPLESDIR}
|
||||
@${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
|
||||
@${INSTALL_DATA} ${WRKSRC}/example.c ${STAGEDIR}${EXAMPLESDIR}
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
|
|
@ -12,4 +12,4 @@ Entry formats:
|
|||
- BGP messages (OPEN, UPDATE, NOTIFY, KEEPALIVE)
|
||||
- BGP state changes
|
||||
|
||||
WWW: http://www.ris.ripe.net/source/
|
||||
WWW: http://www.ris.ripe.net/source/
|
||||
|
|
|
@ -4,3 +4,7 @@ lib/libbgpdump.so
|
|||
include/bgpdump_attr.h
|
||||
include/bgpdump_formats.h
|
||||
include/bgpdump_lib.h
|
||||
%%PORTDOCS%%%%DOCSDIR%%/README
|
||||
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example.c
|
||||
%%PORTDOCS%%@dirrm %%DOCSDIR%%
|
||||
%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%
|
||||
|
|
Loading…
Reference in a new issue