-
Notifications
You must be signed in to change notification settings - Fork 742
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sysutils/mstflint: Update to 4.25.0 and take maintainship
Remove the -lite flavor. Event: Oslo Hackathon at Modirum
- Loading branch information
Showing
27 changed files
with
117 additions
and
382 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,103 +1,56 @@ | ||
PORTNAME= mstflint | ||
DISTVERSIONPREFIX= v | ||
DISTVERSION= 4.22.0-1 | ||
DISTVERSION= 4.25.0-1 | ||
CATEGORIES= sysutils | ||
|
||
MAINTAINER= ports@FreeBSD.org | ||
COMMENT?= Firmware Burning and Diagnostics Tools for Mellanox devices | ||
MAINTAINER= olivier@FreeBSD.org | ||
COMMENT= Firmware Burning and Diagnostics Tools for Mellanox devices | ||
WWW= https://github.com/Mellanox/mstflint | ||
|
||
LICENSE= BSD2CLAUSE GPLv2 | ||
LICENSE_COMB= dual | ||
LICENSE_FILE_BSD2CLAUSE= ${WRKSRC}/LICENSE | ||
LICENSE_FILE_GPLv2= ${WRKSRC}/LICENSE | ||
|
||
USES= autoreconf gmake libtool localbase:ldflags pkgconfig | ||
USES= autoreconf gmake libtool localbase:ldflags pkgconfig ssl | ||
USE_CXXSTD= c++14 | ||
USE_GITHUB= yes | ||
GH_ACCOUNT= Mellanox | ||
|
||
GNU_CONFIGURE= yes | ||
|
||
OPTIONS_DEFINE= FWMANAGER ADAB STATIC | ||
.if defined(LITE) | ||
OPTIONS_SLAVE= FWMANAGER ADAB STATIC | ||
.endif | ||
OPTIONS_DEFINE= FWMANAGER ADAB | ||
OPTIONS_SUB= yes | ||
|
||
ADAB_DESC= Build with mstreg and mstlink | ||
FWMANAGER_DESC= Build with mstfwmanager and mstarchive | ||
STATIC_DESC= Static binary (disable curl support) | ||
|
||
ADAB_CONFIGURE_ON= --enable-adb-generic-tools | ||
FWMANAGER_CONFIGURE_ON= --enable-fw-mgr | ||
STATIC_USES_OFF= ssl | ||
STATIC_CONFIGURE_ON= --enable-all-static --disable-dc \ | ||
--disable-openssl --disable-inband | ||
ADAB_BUILD_DEPENDS= ${LOCALBASE}/lib/libboost_regex.a:devel/boost-libs | ||
ADAB_LIB_DEPENDS= libexpat.so:textproc/expat2 | ||
|
||
.include <bsd.port.options.mk> | ||
FWMANAGER_CONFIGURE_ON= --enable-fw-mgr | ||
FWMANAGER_BUILD_DEPENDS= ${LOCALBASE}/lib/libboost_regex.a:devel/boost-libs | ||
FWMANAGER_LIB_DEPENDS= libcurl.so:ftp/curl \ | ||
libxml2.so.2:textproc/libxml2 | ||
|
||
pre-patch: | ||
post-patch: | ||
@${ECHO} '#define TOOLS_GIT_SHA "N/A"' > ${WRKSRC}/common/gitversion.h | ||
@${MKDIR} ${WRKSRC}/config | ||
# ADAB and FWMANAGER options depends of libboost, so statically link this | ||
# lib to avoid installing 220MB of lib dependency. | ||
${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' \ | ||
${WRKSRC}/mlxlink/Makefile.am \ | ||
${WRKSRC}/mlxarchive/Makefile.am \ | ||
${WRKSRC}/mlxreg/Makefile.am | ||
|
||
.if ${PORT_OPTIONS:MADAB} | ||
.if ${PORT_OPTIONS:MSTATIC} | ||
BROKEN= does not link: expat2 no longer provides static library by default | ||
BUILD_DEPENDS+= xmlwf:textproc/expat2 \ | ||
boost-libs>0:devel/boost-libs | ||
.else | ||
LIB_DEPENDS+= libexpat.so:textproc/expat2 \ | ||
libboost_regex.so:devel/boost-libs | ||
.endif | ||
.endif | ||
|
||
.if ${PORT_OPTIONS:MFWMANAGER} | ||
.if ${PORT_OPTIONS:MSTATIC} | ||
BUILD_DEPENDS+= xmllint:textproc/libxml2 \ | ||
${LOCALBASE}/include/boost/algorithm/string/detail/formatter_regex.hpp:devel/boost-libs | ||
EXTRA_PATCHES+= ${PATCHDIR}/extrat-patch-configure.ac \ | ||
${PATCHDIR}/extrat-patch-mlxarchive_Makefile.am \ | ||
${PATCHDIR}/extrat-patch-mlxarchive_mlxarchive_mfa2.cpp \ | ||
${PATCHDIR}/extrat-patch-mlxfwupdate_Makefile.am \ | ||
${PATCHDIR}/extrat-patch-mlxfwupdate_server_request.cpp | ||
.else | ||
LIB_DEPENDS+= libxml2.so:textproc/libxml2 \ | ||
libboost_regex.so:devel/boost-libs \ | ||
libcurl.so:ftp/curl | ||
RUN_DEPENDS+= ca_root_nss>=0:security/ca_root_nss | ||
.endif | ||
.endif | ||
|
||
.if defined(LITE) | ||
LDFLAGS+= -lmd | ||
EXTRA_PATCHES+= ${PATCHDIR}/extrat-LITE-patch-Makefile.am \ | ||
${PATCHDIR}/extrat-LITE-patch-mlxconfig_Makefile.am \ | ||
${PATCHDIR}/extrat-LITE-patch-mlxreg_Makefile.am \ | ||
${PATCHDIR}/extrat-LITE-patch-cmdif_Makefile.am \ | ||
${PATCHDIR}/extrat-LITE-patch-mtcr_freebsd_Makefile.am \ | ||
${PATCHDIR}/extrat-LITE-patch-tools_layouts_Makefile.am \ | ||
${PATCHDIR}/extrat-LITE-patch-common_Makefile.am \ | ||
${PATCHDIR}/extrat-LITE-patch-dev_mgt_Makefile.am \ | ||
${PATCHDIR}/extrat-LITE-patch-reg_access_Makefile.am | ||
post-install: | ||
${RM} ${STAGEDIR}${PREFIX}/lib/libadb_parser.a \ | ||
${STAGEDIR}${PREFIX}/lib/libcmdif.a \ | ||
${STAGEDIR}${PREFIX}/lib/libdev_mgt.a \ | ||
${STAGEDIR}${PREFIX}/lib/libmodules_lib.a \ | ||
${STAGEDIR}${PREFIX}/lib/libmstreg_lib.a \ | ||
${STAGEDIR}${PREFIX}/lib/libprint_util_lib.a \ | ||
${STAGEDIR}${PREFIX}/lib/libreg_access.a \ | ||
${STAGEDIR}${PREFIX}/lib/libtools_layouts.a \ | ||
${STAGEDIR}${PREFIX}/lib/libmstarchive.a \ | ||
${STAGEDIR}${PREFIX}/lib/mstflint/libmtcr_ul.a \ | ||
${STAGEDIR}${PREFIX}/bin/mstarchive | ||
${RMDIR} ${STAGEDIR}${PREFIX}/lib/mstflint | ||
.else | ||
post-install: | ||
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/mstflint/python_tools/rreg_access.so | ||
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/mstflint/python_tools/ccmdif.so | ||
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/mstflint/python_tools/cmtcr.so | ||
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/mstflint/python_tools/c_dev_mgt.so | ||
.endif | ||
|
||
.include <bsd.port.mk> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
TIMESTAMP = 1671207291 | ||
SHA256 (Mellanox-mstflint-v4.22.0-1_GH0.tar.gz) = 1403928463fe589034e0effb215bbeb18e0ffac745c197b4511782f6694fe24c | ||
SIZE (Mellanox-mstflint-v4.22.0-1_GH0.tar.gz) = 5936816 | ||
TIMESTAMP = 1696339879 | ||
SHA256 (Mellanox-mstflint-v4.25.0-1_GH0.tar.gz) = 46f5fda9c8687bbcdae62145c17ad70f6b1725d738985eb3c8efd8c71604ddc3 | ||
SIZE (Mellanox-mstflint-v4.25.0-1_GH0.tar.gz) = 6398196 |
This file was deleted.
Oops, something went wrong.
23 changes: 0 additions & 23 deletions
23
sysutils/mstflint/files/extrat-LITE-patch-cmdif_Makefile.am
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
sysutils/mstflint/files/extrat-LITE-patch-common_Makefile.am
This file was deleted.
Oops, something went wrong.
16 changes: 0 additions & 16 deletions
16
sysutils/mstflint/files/extrat-LITE-patch-dev_mgt_Makefile.am
This file was deleted.
Oops, something went wrong.
16 changes: 0 additions & 16 deletions
16
sysutils/mstflint/files/extrat-LITE-patch-mlxconfig_Makefile.am
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
sysutils/mstflint/files/extrat-LITE-patch-mlxreg_Makefile.am
This file was deleted.
Oops, something went wrong.
8 changes: 0 additions & 8 deletions
8
sysutils/mstflint/files/extrat-LITE-patch-mtcr_freebsd_Makefile.am
This file was deleted.
Oops, something went wrong.
12 changes: 0 additions & 12 deletions
12
sysutils/mstflint/files/extrat-LITE-patch-reg_access_Makefile.am
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
sysutils/mstflint/files/extrat-LITE-patch-tools_layouts_Makefile.am
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
19 changes: 0 additions & 19 deletions
19
sysutils/mstflint/files/extrat-patch-mlxarchive_Makefile.am
This file was deleted.
Oops, something went wrong.
28 changes: 0 additions & 28 deletions
28
sysutils/mstflint/files/extrat-patch-mlxarchive_mlxarchive_mfa2.cpp
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.