1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00

sysutils/openipmi: resolve build issues with 2.0.21

- Return EAGAIN errno instead of EKEYREJECTED to fix build with SSL option [1]
- Prepend -I../include to CPPFLAGS to stop build breakage from old .h files [2]
- While here, add LICENSE and regen one of the original patches (portlint)

PR:		202002 [1]
PR:		202528 [2]
Submitted by:	dennis.noordsij@helsinki.fi [1]
Submitted by:	Anton Sayetsky <vsasjason@gmail.com> [1]
Submitted by:	Larry Rosenman <ler@lerctr.org> [2]
Approved by:	feld (mentor)
Differential Revision:	https://reviews.freebsd.org/D3568
This commit is contained in:
Jason Unovitch 2015-09-04 16:25:11 +00:00
parent 3e3813619f
commit ea1f511a60
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=396109
3 changed files with 17 additions and 4 deletions

View File

@ -10,6 +10,8 @@ DISTNAME= OpenIPMI-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Complex IPMI management software
LICENSE= GPLv2
LIB_DEPENDS= libpopt.so:${PORTSDIR}/devel/popt
GNU_CONFIGURE= yes
@ -17,7 +19,7 @@ INSTALL_TARGET= install-strip
USES= execinfo gmake libtool pathfix pkgconfig
USE_LDCONFIG= yes
CPPFLAGS+= -I${LOCALBASE}/include
CPPFLAGS+= -I../include -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
OPTIONS_DEFINE= SSL SNMP PERL PYTHON TCL TKINTER GDBM

View File

@ -1,6 +1,6 @@
--- OpenIPMIpthread.pc.in.orig 2005-08-17 05:56:02.000000000 +0200
+++ OpenIPMIpthread.pc.in 2013-02-28 09:55:49.000000000 +0100
@@ -6,6 +6,6 @@
--- OpenIPMIpthread.pc.in.orig 2012-07-21 22:01:45 UTC
+++ OpenIPMIpthread.pc.in
@@ -6,6 +6,6 @@ includedir=@includedir@
Name: OpenIPMIpthread
Description: Pthread OS handler for OpenIPMI
Version: @VERSION@

View File

@ -0,0 +1,11 @@
--- lib/rakp.c.orig 2015-08-19 12:52:44 UTC
+++ lib/rakp.c
@@ -482,7 +482,7 @@
return EINVAL;
HMAC(rinfo->evp_md, p, rinfo->key_len, idata, 58+idata[57], integ_data, &ilen);
if (memcmp(data+40, integ_data, rinfo->key_len) != 0)
- return EKEYREJECTED;
+ return EAGAIN;
/* Now generate the SIK */
p = ipmi_rmcpp_auth_get_my_rand(info->ainfo, &plen);