git: 499be1d04c11 - main - net/py-scamper: new port
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 19 Mar 2024 14:20:40 UTC
The branch main has been updated by fuz: URL: https://cgit.FreeBSD.org/ports/commit/?id=499be1d04c11c07486e50b9befb72c624ad2e7e2 commit 499be1d04c11c07486e50b9befb72c624ad2e7e2 Author: Matthew Luckie <mjl@luckie.org.nz> AuthorDate: 2024-03-19 07:27:34 +0000 Commit: Robert Clausecker <fuz@FreeBSD.org> CommitDate: 2024-03-19 14:18:52 +0000 net/py-scamper: new port This port has the Python bits of net/scamper. PR: 276395 --- net/Makefile | 1 + net/py-scamper/Makefile | 36 ++++++++++++++++++++++++++++++++++++ net/scamper/Makefile | 8 +++++++- 3 files changed, 44 insertions(+), 1 deletion(-) diff --git a/net/Makefile b/net/Makefile index 917319218cd1..eecb6478e8d6 100644 --- a/net/Makefile +++ b/net/Makefile @@ -1142,6 +1142,7 @@ SUBDIR += py-s4cmd SUBDIR += py-saltyrtc.server SUBDIR += py-sbws + SUBDIR += py-scamper SUBDIR += py-shodan SUBDIR += py-siosocks SUBDIR += py-smart-open diff --git a/net/py-scamper/Makefile b/net/py-scamper/Makefile new file mode 100644 index 000000000000..5db5b752082f --- /dev/null +++ b/net/py-scamper/Makefile @@ -0,0 +1,36 @@ +PORTREVISION= 0 +CATEGORIES= net python +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= mjl@luckie.org.nz +COMMENT= Python bindings for scamper + +LICENSE= GPLv2 +LICENSE_FILE= ${WRKSRC}/COPYING + +LIB_DEPENDS= libscamperfile.so:${MASTER_PORT} + +USES= python localbase:ldflags +USE_PYTHON= flavors +CONFIGURE_ARGS= --with-python + +PORTSCOUT= ignore:1 + +SLAVE_PORT= yes +MASTERDIR= ${.CURDIR}/../scamper + +PLIST= ${.CURDIR}/pkg-plist +BUILD_WRKSRC= ${WRKSRC}/lib/python +INSTALL_WRKSRC= ${BUILD_WRKSRC} + +PLIST_FILES= ${PYTHONPREFIX_SITELIBDIR:S,^${PREFIX}/,,}/scamper.a \ + ${PYTHONPREFIX_SITELIBDIR:S,^${PREFIX}/,,}/scamper.so + +post-patch: + @${REINPLACE_CMD} \ + -e 's/$$(scamper_la_DEPENDENCIES)//' \ + -e 's,../../scamper/libscamperfile.la,-lscamperfile,' \ + -e 's,../libscamperctrl/libscamperctrl.la,-lscamperctrl,' \ + ${BUILD_WRKSRC}/Makefile.in + +.include "${MASTERDIR}/Makefile" diff --git a/net/scamper/Makefile b/net/scamper/Makefile index d54fc8ac7094..3dea881da309 100644 --- a/net/scamper/Makefile +++ b/net/scamper/Makefile @@ -11,12 +11,16 @@ WWW= https://www.caida.org/tools/measurement/scamper/ LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/COPYING -USES= gmake libtool ssl +USES+= gmake libtool ssl USE_LDCONFIG= yes GNU_CONFIGURE= yes GNU_CONFIGURE_MANPREFIX=${PREFIX}/share INSTALL_TARGET= install-strip +SLAVE_PORT?= no + +.if ${SLAVE_PORT} == no + OPTIONS_DEFINE= HOIHO UPTIME OPTIONS_SUB= yes @@ -31,4 +35,6 @@ HOIHO_CONFIGURE_WITH= pcre2 UPTIME_USES= localbase:ldflags sqlite:3 UPTIME_CONFIGURE_ENABLE= sc_uptime +.endif # ${SLAVE_PORT} == no + .include <bsd.port.mk>