From 0f349ce7fa5bdf9af2b908487ddba8fcbfec33f8 Mon Sep 17 00:00:00 2001 From: Cy Schubert Date: Thu, 22 Aug 2024 20:35:23 -0700 Subject: [PATCH] sysutils/freebsd-bsdlabel: Fix package on non-Intel architectures FreeBSD never installed disklabel(8) on non-Intel architectures. MFH: 2024Q3 --- sysutils/freebsd-bsdlabel/Makefile | 8 ++++++++ sysutils/freebsd-bsdlabel/pkg-plist | 4 ++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/sysutils/freebsd-bsdlabel/Makefile b/sysutils/freebsd-bsdlabel/Makefile index 14b4eab20485..0626b13dee90 100644 --- a/sysutils/freebsd-bsdlabel/Makefile +++ b/sysutils/freebsd-bsdlabel/Makefile @@ -24,4 +24,12 @@ MAKE_ENV+= MAKESYSPATH=/usr/src/share/mk \ WRKSRC_SUBDIR= bsdlabel +.include + +.if ${ARCH} == "amd64" || ${ARCH} == "i386" +PLIST_SUB= DISKLABEL="" +.else +PLIST_SUB= DISKLABEL="@comment " +.endif + .include diff --git a/sysutils/freebsd-bsdlabel/pkg-plist b/sysutils/freebsd-bsdlabel/pkg-plist index e45737f5dcb8..23491d438a4b 100644 --- a/sysutils/freebsd-bsdlabel/pkg-plist +++ b/sysutils/freebsd-bsdlabel/pkg-plist @@ -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