Files
ports/net/trippy/Makefile
Yuri Victorovich f99a708957 Mk/Uses/cargo.mk: Remove cross-compilation options for Rust-based ports
Reasons:
* Port build shouldn't use cross-compilation mode
  because it buids for the same architecture.
* RUSTFLAGS isn't passed to the build of all or some Rust ports
  in the cross-compilation mode.

Essential changes:
* Remove the CARGO_BUILD_TARGET make variable.
* Remove CARGO_BUILD_TARGET and CARGO_TARGET_* from CARGO_ENV.
* Update many ports that used CARGO_BUILD_TARGET.
* Build paths now don't include the architecture triplet part.

Immadiate benefits:
* Unbreak build on architectures like i386 that sometimes require
  special RUSTFLAGS that were not effective in the cross-compilation
  mode.

Ports that really need cross-compilation for some reason should
enable it on case-by-case basis. Example: net-p2p/cncli
(Not sure why does net-p2p/cncli actually need it, but it only
builds with these options.)

PR:		280305
Approved by:	rust@FreeBSD.org (maintainer's timeout; 98 days)
2024-10-22 20:11:24 -07:00

43 lines
968 B
Makefile

PORTNAME= trippy
DISTVERSION= 0.11.0
PORTREVISION= 1
CATEGORIES= net
MAINTAINER= ehaupt@FreeBSD.org
COMMENT= Network diagnostic tool inspired by mtr
WWW= https://github.com/fujiapple852/trippy
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= cargo
USE_GITHUB= yes
GH_ACCOUNT= fujiapple852
CARGO_INSTALL_PATH= crates/${PORTNAME}
PORTSCOUT= skipv:1.0.0
OPTIONS_DEFINE= MANPAGES SUID
OPTIONS_DEFAULT= MANPAGES SUID
OPTIONS_SUB= yes
MANPAGES_DESC= Build and install auto-generated manpages
SUID_DESC= Use suid to allow execution as non root
MANPAGES_BUILD_DEPENDS= help2man:misc/help2man
MANPAGES_PLIST_FILES= share/man/man1/trip.1.gz
SUID_PLIST_FILES= "@(,,4110) bin/trip"
SUID_PLIST_FILES_OFF= "@(,,0100) bin/trip"
post-build-MANPAGES-on:
help2man -s 1 -Nn "${COMMENT}" \
${CARGO_TARGET_DIR}/*/trip \
-o ${WRKSRC}/trip.1
post-install-MANPAGES-on:
${INSTALL_MAN} ${WRKSRC}/trip.1 \
${STAGEDIR}${PREFIX}/share/man/man1
.include <bsd.port.mk>