diff options
author | trasz <trasz@FreeBSD.org> | 2015-01-23 18:35:08 +0800 |
---|---|---|
committer | trasz <trasz@FreeBSD.org> | 2015-01-23 18:35:08 +0800 |
commit | 08cbda2ef81b377b23f9839e6c85acd59cde68e9 (patch) | |
tree | e19d60dd9397fc4f2891aaba87d1147d9171429e /sysutils | |
parent | 9a1293447df52c9a670b4c4b1e72dd056750e86e (diff) | |
download | freebsd-ports-gnome-08cbda2ef81b377b23f9839e6c85acd59cde68e9.tar.gz freebsd-ports-gnome-08cbda2ef81b377b23f9839e6c85acd59cde68e9.tar.zst freebsd-ports-gnome-08cbda2ef81b377b23f9839e6c85acd59cde68e9.zip |
Install certificate and key matching what's embedded in the shim itself.
Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/shim/Makefile | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sysutils/shim/Makefile b/sysutils/shim/Makefile index 8a5d7a60fdf9..c5575edf232e 100644 --- a/sysutils/shim/Makefile +++ b/sysutils/shim/Makefile @@ -3,6 +3,7 @@ PORTNAME= shim PORTVERSION= 0.8 +PORTREVISION= 1 CATEGORIES= sysutils MAINTAINER= trasz@FreeBSD.org @@ -23,14 +24,19 @@ USE_GITHUB= yes MAKE_JOBS_UNSAFE= yes ONLY_FOR_ARCHS= amd64 -PLIST_FILES= lib/shim/MokManager.efi lib/shim/fallback.efi lib/shim/shim.efi +PLIST_FILES= lib/shim/shim.pem lib/shim/shim.key \ + 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 @${REINPLACE_CMD} -e 's|%%CC%%|${CC}|g' ${WRKSRC}/Makefile do-install: + # 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 ${MKDIR} ${STAGEDIR}/${PREFIX}/lib/shim + ${INSTALL_DATA} -m 600 ${WRKSRC}/shim.key ${STAGEDIR}/${PREFIX}/lib/shim + ${INSTALL_DATA} ${WRKSRC}/shim.pem ${STAGEDIR}/${PREFIX}/lib/shim ${INSTALL_DATA} ${WRKSRC}/shim.efi ${STAGEDIR}/${PREFIX}/lib/shim ${INSTALL_DATA} ${WRKSRC}/MokManager.efi ${STAGEDIR}/${PREFIX}/lib/shim ${INSTALL_DATA} ${WRKSRC}/fallback.efi ${STAGEDIR}/${PREFIX}/lib/shim |