Lines 38-61
Link Here
|
38 |
.endfor |
38 |
.endfor |
39 |
.endif |
39 |
.endif |
40 |
|
40 |
|
41 |
NO_STAGE= yes |
|
|
42 |
pre-configure: |
41 |
pre-configure: |
43 |
${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|' ${WRKSRC}/configure |
42 |
${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|' ${WRKSRC}/configure |
44 |
|
43 |
|
45 |
do-install: |
44 |
do-install: |
46 |
${INSTALL_PROGRAM} ${WRKSRC}/hping3 ${PREFIX}/sbin/hping |
45 |
${INSTALL_PROGRAM} ${WRKSRC}/hping3 ${STAGEDIR}${PREFIX}/sbin/hping |
47 |
${INSTALL_MAN} ${WRKSRC}/docs/hping3.8 ${PREFIX}/man/man8/hping.8 |
46 |
${INSTALL_MAN} ${WRKSRC}/docs/hping3.8 ${STAGEDIR}${PREFIX}/man/man8/hping.8 |
48 |
${MKDIR} ${PREFIX}/lib/hping |
47 |
${MKDIR} ${STAGEDIR}${PREFIX}/lib/hping |
49 |
${INSTALL_DATA} ${WRKSRC}/lib/hpingstdlib.htcl ${PREFIX}/lib/hping/ |
48 |
${INSTALL_DATA} ${WRKSRC}/lib/hpingstdlib.htcl ${STAGEDIR}${PREFIX}/lib/hping/ |
50 |
.if !defined(NOPORTDOCS) |
49 |
.if !defined(NOPORTDOCS) |
51 |
${MKDIR} ${DOCSDIR} ${EXAMPLESDIR} |
50 |
${MKDIR} ${STAGEDIR}${DOCSDIR} ${STAGEDIR}${EXAMPLESDIR} |
52 |
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/docs/|} ${DOCSDIR} |
51 |
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/docs/|} ${STAGEDIR}${DOCSDIR} |
53 |
.for i in ${EXAMPLES} |
52 |
.for i in ${EXAMPLES} |
54 |
${REINPLACE_CMD} -e \ |
53 |
${REINPLACE_CMD} -e \ |
55 |
's|hpingstdlib.htcl|${PREFIX}/lib/hping/hpingstdlib.htcl|' \ |
54 |
's|hpingstdlib.htcl|${STAGEDIR}${PREFIX}/lib/hping/hpingstdlib.htcl|' \ |
56 |
${WRKSRC}/lib/${i} |
55 |
${WRKSRC}/lib/${i} |
57 |
.endfor |
56 |
.endfor |
58 |
${INSTALL_DATA} ${EXAMPLES:S|^|${WRKSRC}/lib/|} ${EXAMPLESDIR} |
57 |
${INSTALL_DATA} ${EXAMPLES:S|^|${WRKSRC}/lib/|} ${STAGEDIR}${EXAMPLESDIR} |
59 |
.endif |
58 |
.endif |
60 |
|
59 |
|
61 |
.include <bsd.port.mk> |
60 |
.include <bsd.port.mk> |