Index | Thread | Search

From:
Sebastien Marie <semarie@kapouay.eu.org>
Subject:
security/suricata and lang/rust
To:
Gonzalo L. R. <gonzalo@openbsd.org>
Cc:
ports@openbsd.org
Date:
Mon, 01 Jan 2024 17:54:40 +0100

Download raw body.

Thread
  • Sebastien Marie:

    security/suricata and lang/rust

Hi,

I would like to commit the following diff to security/suricata.

It switches suricata to use MODULES+=lang/rust instead of
BUILD_DEPENDS+=lang/rust, and adds MODRUST_WANTLIB to WANTLIB.

It makes the ports to use _SYSTEM_VERSION-rust and be bumped
automatically when rust (compiler or stdlib) changes, and so get the
package updated.

Comments or OK ?
-- 
Sebastien Marie


Index: security/suricata/Makefile
===================================================================
RCS file: /cvs/ports/security/suricata/Makefile,v
diff -u -p -r1.63 Makefile
--- security/suricata/Makefile	17 Dec 2023 15:29:06 -0000	1.63
+++ security/suricata/Makefile	1 Jan 2024 16:14:29 -0000
@@ -21,15 +21,16 @@ PERMIT_PACKAGE=	Yes
 SITES =		https://www.openinfosecfoundation.org/download/
 
 # uses pledge()
-WANTLIB += ${COMPILER_LIBCXX} c elf iconv jansson lz4 m magic maxminddb
+WANTLIB += ${COMPILER_LIBCXX} ${MODRUST_WANTLIB}
+WANTLIB += elf iconv jansson lz4 m magic maxminddb
 WANTLIB += net pcap pcre2-8 yaml-0 z
 
-MODULES =	lang/python
+MODULES =	lang/python \
+		lang/rust
 
 BUILD_DEPENDS =	devel/py-setuptools${MODPY_FLAVOR} \
 		textproc/py-sphinx${MODPY_FLAVOR} \
-		textproc/py-yaml${MODPY_FLAVOR} \
-		lang/rust
+		textproc/py-yaml${MODPY_FLAVOR}
 
 RUN_DEPENDS =	textproc/py-yaml${MODPY_FLAVOR}