Changeset View
Changeset View
Standalone View
Standalone View
sysutils/shim/Makefile
# Created by: Edward Tomasz Napierala <trasz@FreeBSD.org> | # Created by: Edward Tomasz Napierala <trasz@FreeBSD.org> | ||||
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME= shim | PORTNAME= shim | ||||
PORTVERSION= 0.8 | PORTVERSION= 0.9 | ||||
PORTREVISION= 6 | |||||
CATEGORIES= sysutils | CATEGORIES= sysutils | ||||
MAINTAINER= ports@FreeBSD.org | MAINTAINER= egypcio@googlemail.com | ||||
COMMENT= UEFI Secure Boot shim loader | COMMENT= UEFI Secure Boot shim loader | ||||
LICENSE= BSD2CLAUSE | LICENSE= BSD2CLAUSE | ||||
LICENSE_FILE= ${WRKSRC}/COPYRIGHT | |||||
ONLY_FOR_ARCHS= amd64 | |||||
mat: I know you only moved that line, but it would be nice to have a `ONLY_FOR_ARCHS_REASON` to say… | |||||
Done Inline ActionsYep. fernape: Yep. | |||||
ONLY_FOR_ARCHS_REASON= depends on devel/gnu-efi that is amd64 only | |||||
matUnsubmitted Done Inline ActionsI don't think having this is a good idea. The day gnu-efi grows to support more than amd64, someone will have to sweep the tree for dependencies. (I know it was there before.) Poudriere will ignore it because it cannot build gnu-efi, and when building manually, it will fail very early when it tries to build gnu-efi. mat: I don't think having this is a good idea. The day gnu-efi grows to support more than amd64… | |||||
BUILD_DEPENDS= ${LOCALBASE}/lib/libgnuefi.a:devel/gnu-efi \ | BUILD_DEPENDS= ${LOCALBASE}/lib/libgnuefi.a:devel/gnu-efi \ | ||||
bash:shells/bash | bash:shells/bash | ||||
USE_GITHUB= yes | USES= compiler gmake shebangfix | ||||
GH_ACCOUNT= mjg59 | |||||
USES= gmake | |||||
USE_CSTD= gnu89 | USE_CSTD= gnu89 | ||||
USE_GCC= yes | USE_GCC= yes | ||||
SHEBANG_FILES= make-certs | |||||
USE_GITHUB= yes | USE_GITHUB= yes | ||||
GH_ACCOUNT= mjg59 | |||||
Done Inline Actions^ double "USE_GITHUB" tcberner: ^ double "USE_GITHUB" | |||||
MAKE_ARGS= CC="${CC} ${CFLAGS:M-std=*}" LD="${LD}" OBJCOPY="${OBJCOPY}" | MAKE_ARGS= CC="${CC} ${CFLAGS:M-std=*}" LD="${LD}" OBJCOPY="${OBJCOPY}" | ||||
MAKE_JOBS_UNSAFE= yes | MAKE_JOBS_UNSAFE= yes | ||||
ONLY_FOR_ARCHS= amd64 | |||||
PLIST_FILES= lib/shim/shim.pem lib/shim/shim.key \ | PLIST_FILES= lib/shim/shim.pem lib/shim/shim.key \ | ||||
lib/shim/MokManager.efi lib/shim/fallback.efi lib/shim/shim.efi | lib/shim/MokManager.efi lib/shim/fallback.efi lib/shim/shim.efi | ||||
post-patch: | |||||
@${REINPLACE_CMD} -e "s|/bin/bash|${LOCALBASE}/bin/bash|" ${WRKSRC}/make-certs | |||||
do-install: | do-install: | ||||
# Note that before this step, the shim.pem contains the _private_ key. | # Note that before this step, the shim.pem contains the _private_ key. | ||||
openssl x509 -inform der -in ${WRKSRC}/shim.cer -outform pem -out ${WRKSRC}/shim.pem | openssl x509 -inform der -in ${WRKSRC}/shim.cer -outform pem -out ${WRKSRC}/shim.pem | ||||
${MKDIR} ${STAGEDIR}/${PREFIX}/lib/shim | ${MKDIR} ${STAGEDIR}${PREFIX}/lib/shim | ||||
${INSTALL_DATA} -m 600 ${WRKSRC}/shim.key ${STAGEDIR}/${PREFIX}/lib/shim | ${INSTALL_DATA} -m 600 ${WRKSRC}/shim.key ${STAGEDIR}${PREFIX}/lib/shim | ||||
${INSTALL_DATA} ${WRKSRC}/shim.pem ${STAGEDIR}/${PREFIX}/lib/shim | .for file in shim.pem MokManager.efi fallback.efi shim.efi | ||||
${INSTALL_DATA} ${WRKSRC}/shim.efi ${STAGEDIR}/${PREFIX}/lib/shim | ${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}${PREFIX}/lib/shim | ||||
${INSTALL_DATA} ${WRKSRC}/MokManager.efi ${STAGEDIR}/${PREFIX}/lib/shim | .endfor | ||||
${INSTALL_DATA} ${WRKSRC}/fallback.efi ${STAGEDIR}/${PREFIX}/lib/shim | |||||
.include <bsd.port.mk> | .include <bsd.port.mk> |
I know you only moved that line, but it would be nice to have a ONLY_FOR_ARCHS_REASON to say why.