sysutils/freebsd-bsdlabel: Fix package on non-Intel architectures

FreeBSD never installed disklabel(8) on non-Intel architectures.

MFH:	2024Q3
This commit is contained in:
Cy Schubert 2024-08-22 20:35:23 -07:00
parent 52cbcc7de3
commit 0f349ce7fa
2 changed files with 10 additions and 2 deletions

View file

@ -24,4 +24,12 @@ MAKE_ENV+= MAKESYSPATH=/usr/src/share/mk \
WRKSRC_SUBDIR= bsdlabel
.include <bsd.port.options.mk>
.if ${ARCH} == "amd64" || ${ARCH} == "i386"
PLIST_SUB= DISKLABEL=""
.else
PLIST_SUB= DISKLABEL="@comment "
.endif
.include <bsd.port.mk>

View file

@ -1,4 +1,4 @@
sbin/bsdlabel
sbin/disklabel
%%DISKLABEL%%sbin/disklabel
share/man/man8/bsdlabel.8.gz
share/man/man8/disklabel.8.gz
%%DISKLABEL%%share/man/man8/disklabel.8.gz