2013-07-20 23:37:46 +02:00
|
|
|
PORTNAME= packetdrill
|
2023-06-29 21:31:36 +02:00
|
|
|
PORTVERSION= 0.0.2023062500
|
2019-10-09 14:17:15 +02:00
|
|
|
CATEGORIES= net
|
2013-07-20 23:37:46 +02:00
|
|
|
|
2023-06-29 21:31:36 +02:00
|
|
|
MAINTAINER= olivier@FreeBSD.org
|
2013-07-20 23:37:46 +02:00
|
|
|
COMMENT= Network stack testing tool
|
2022-09-07 23:06:12 +02:00
|
|
|
WWW= https://github.com/freebsd-net/packetdrill
|
2013-07-20 23:37:46 +02:00
|
|
|
|
|
|
|
LICENSE= GPLv2
|
|
|
|
|
2019-02-27 10:25:37 +01:00
|
|
|
USES= bison python:run uidfix
|
2016-10-11 05:12:03 +02:00
|
|
|
USE_GITHUB= yes
|
|
|
|
GH_ACCOUNT= freebsd-net
|
2023-06-29 21:31:36 +02:00
|
|
|
GH_TAGNAME= aebdc35
|
2016-10-11 10:22:57 +02:00
|
|
|
WRKSRC_SUBDIR= gtests/net/packetdrill
|
2016-10-11 05:12:03 +02:00
|
|
|
PLIST_FILES= bin/${PORTNAME}
|
2013-10-17 08:28:35 +02:00
|
|
|
PORTDATA= packetdrill.el packetdrill.vim
|
2013-07-20 23:37:46 +02:00
|
|
|
PORTDOCS= README
|
2013-10-17 08:28:35 +02:00
|
|
|
PORTEXAMPLES= tests
|
2013-07-20 23:37:46 +02:00
|
|
|
|
|
|
|
OPTIONS_DEFINE= DOCS EXAMPLES
|
|
|
|
|
2021-02-22 18:12:36 +01:00
|
|
|
# XXX Static libraries with PIE are currently unsupported.
|
|
|
|
MAKE_ARGS+= WITHOUT_PIE=true
|
2023-10-07 06:41:02 +02:00
|
|
|
TEST_TARGET= tests
|
2023-06-29 21:31:36 +02:00
|
|
|
# 'MD5_Init' is deprecated on OpenSSL 3
|
|
|
|
CFLAGS+= -Wno-deprecated
|
|
|
|
|
2016-10-07 17:10:09 +02:00
|
|
|
pre-build:
|
2023-10-07 06:41:02 +02:00
|
|
|
cd ${WRKSRC} && ${LN} -f Makefile.FreeBSD Makefile
|
2023-06-29 21:31:36 +02:00
|
|
|
|
|
|
|
do-install:
|
2023-09-27 15:27:32 +02:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
|
2013-07-20 23:37:46 +02:00
|
|
|
|
|
|
|
post-install:
|
2013-10-17 08:28:35 +02:00
|
|
|
@${MKDIR} ${STAGEDIR}${DATADIR}
|
|
|
|
cd ${WRKSRC}/contrib && ${INSTALL_DATA} ${PORTDATA} \
|
|
|
|
${STAGEDIR}${DATADIR}
|
2015-09-24 23:19:28 +02:00
|
|
|
|
|
|
|
post-install-EXAMPLES-on:
|
2013-10-17 08:28:35 +02:00
|
|
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
|
|
|
cd ${WRKSRC} && ${COPYTREE_SHARE} ${PORTEXAMPLES} \
|
|
|
|
${STAGEDIR}${EXAMPLESDIR}
|
2015-09-24 23:19:28 +02:00
|
|
|
post-install-DOCS-on:
|
2013-10-17 08:28:35 +02:00
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
|
2013-07-20 23:37:46 +02:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|