From 31ef54eb30a2c99044fb99b094a2291e17421201 Mon Sep 17 00:00:00 2001 From: Colin Percival Date: Sat, 28 Feb 2015 21:35:13 +0000 Subject: [PATCH] Add patch to work around bug in FreeBSD before r226610 (MFCed to stable/9 as r230953): Add #include before . This was breaking the build on FreeBSD 8.4. While I'm here, quiesce portlint by switching from EXTRACT_SUFX=.tgz to the new spelling USES=tar:tgz. --- sysutils/spiped/Makefile | 8 ++++++-- sysutils/spiped/files/extra-patch-proto_proto__conn.c | 7 +++++++ 2 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 sysutils/spiped/files/extra-patch-proto_proto__conn.c diff --git a/sysutils/spiped/Makefile b/sysutils/spiped/Makefile index 8fd4a926b717..0f968ec46002 100644 --- a/sysutils/spiped/Makefile +++ b/sysutils/spiped/Makefile @@ -4,7 +4,6 @@ PORTNAME= spiped PORTVERSION= 1.5.0 CATEGORIES= sysutils security MASTER_SITES= http://www.tarsnap.com/spiped/ -EXTRACT_SUFX= .tgz MAINTAINER= cperciva@tarsnap.com COMMENT= Daemon for creating secure symmetric pipes @@ -14,7 +13,7 @@ LICENSE_FILE= ${WRKSRC}/COPYRIGHT # The spiped build only needs C99, but this will help to get us a compiler # which has support for AESNI on x86 systems -USES= compiler:c11 +USES= compiler:c11 tar:tgz # Install into ${STAGEDIR}${PREFIX} MAKE_ARGS+= BINDIR=${STAGEDIR}${PREFIX}/bin @@ -33,6 +32,11 @@ USE_RC_SUBR= spiped OPTIONS_DEFINE= DOCS +.include +.if ${OSVERSION} < 900503 +EXTRA_PATCHES= ${FILESDIR}/extra-patch-proto_proto__conn.c +.endif + post-install: @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR} diff --git a/sysutils/spiped/files/extra-patch-proto_proto__conn.c b/sysutils/spiped/files/extra-patch-proto_proto__conn.c new file mode 100644 index 000000000000..fee734cb4fa1 --- /dev/null +++ b/sysutils/spiped/files/extra-patch-proto_proto__conn.c @@ -0,0 +1,7 @@ +--- proto/proto_conn.c.orig 2015-02-28 21:19:18 UTC ++++ proto/proto_conn.c +@@ -1,3 +1,4 @@ ++#include + #include + + #include