Changeset View
Changeset View
Standalone View
Standalone View
sbsigntool/Makefile
# Created by: Edward Tomasz Napierala <trasz@FreeBSD.org> | # Created by: Edward Tomasz Napierala <trasz@FreeBSD.org> | ||||
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME= sbsigntool | PORTNAME= sbsigntool | ||||
PORTVERSION= 0.6 | PORTVERSION= 0.6 | ||||
PORTREVISION= 1 | PORTREVISION= 2 | ||||
CATEGORIES= sysutils | CATEGORIES= sysutils | ||||
MASTER_SITES= https://launchpad.net/ubuntu/+archive/primary/+files/ | MASTER_SITES= https://launchpad.net/ubuntu/+archive/primary/+files/ | ||||
DISTNAME= ${PORTNAME}_${PORTVERSION}.orig | DISTNAME= ${PORTNAME}_${PORTVERSION}.orig | ||||
MAINTAINER= ports@FreeBSD.org | MAINTAINER= obrien@FreeBSD.org | ||||
COMMENT= Signing utility for UEFI secure boot | COMMENT= Signing utility for UEFI secure boot | ||||
LICENSE= GPLv3 | LICENSE= GPLv3 | ||||
BROKEN= fails to build | # bfd.h can come from the binutils or libbfd ports. BUT the binutils | ||||
DEPRECATED= Broken for more than 6 months | # port does not include ansidecl.h. There are likely other GNU'ish | ||||
EXPIRATION_DATE= 2019-05-08 | # ports that do include ansidecl.h, so I don't want to depend only | ||||
# on ansidecl.h and have build failures due to missing bfd.h. | |||||
BUILD_DEPENDS= ${LOCALBASE}/lib/libgnuefi.a:devel/gnu-efi \ | BUILD_DEPENDS= ${LOCALBASE}/lib/libgnuefi.a:devel/gnu-efi \ | ||||
libbfd>=2.19:devel/libbfd \ | |||||
help2man:misc/help2man | help2man:misc/help2man | ||||
LIB_DEPENDS= libuuid.so:misc/e2fsprogs-libuuid | LIB_DEPENDS= libuuid.so:misc/e2fsprogs-libuuid | ||||
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} | WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} | ||||
GNU_CONFIGURE= yes | GNU_CONFIGURE= yes | ||||
CONFIGURE_ENV= libcrypto_CFLAGS=-lcrypto \ | CONFIGURE_ENV= libcrypto_CFLAGS=-lcrypto \ | ||||
libcrypto_LIBS=-lcrypto \ | libcrypto_LIBS=-lcrypto \ | ||||
LOCALBASE=${LOCALBASE} \ | LOCALBASE=${LOCALBASE} \ | ||||
ac_cv_header_bfd_h=yes | ac_cv_header_bfd_h=yes | ||||
USES= gmake localbase pkgconfig ssl | USES= gmake localbase pkgconfig ssl | ||||
LDFLAGS+= -L${OPENSSLLIB} | LDFLAGS+= -L${OPENSSLLIB} | ||||
CFLAGS+= -I${OPENSSLINC} | CFLAGS+= -I${OPENSSLINC} | ||||
.include <bsd.port.pre.mk> | |||||
.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1200085 && ${SSL_DEFAULT} == "base" | |||||
# 1200085 339270 October 19, 2018 12.0-STABLE after updating OpenSSL to version 1.1.1. | |||||
BROKEN= ${PORTNAME} requires Openssl 1.1.1. Upgrade to FreeBSD 12.x or later; or add DEFAULT_VERSIONS+=ssl=[openssl|libressl*] to /etc/make.conf | |||||
.endif | |||||
post-patch: | post-patch: | ||||
@${REINPLACE_CMD} -e 's|<endian.h>|<sys/endian.h>|' ${WRKSRC}/configure ${WRKSRC}/lib/ccan/ccan/hash/hash.c | @${REINPLACE_CMD} -e 's|<endian.h>|<sys/endian.h>|' ${WRKSRC}/configure ${WRKSRC}/lib/ccan/ccan/hash/hash.c | ||||
.include <bsd.port.mk> | .include <bsd.port.post.mk> |