aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/openipmi
diff options
context:
space:
mode:
authorgarga <garga@FreeBSD.org>2018-08-24 20:46:07 +0800
committergarga <garga@FreeBSD.org>2018-08-24 20:46:07 +0800
commit5f73dbc9444948c5829aa77803df7f83b8d39acc (patch)
treecd90d1d3d0261786c7433fdf683946130be4d5a1 /sysutils/openipmi
parent86e5fac5ed7530f12add459eaebdabb0b957dd29 (diff)
downloadfreebsd-ports-gnome-5f73dbc9444948c5829aa77803df7f83b8d39acc.tar.gz
freebsd-ports-gnome-5f73dbc9444948c5829aa77803df7f83b8d39acc.tar.zst
freebsd-ports-gnome-5f73dbc9444948c5829aa77803df7f83b8d39acc.zip
sysutils/openipmi: Update to 2.0.25
Pass maintainership to submitter PR: 230052 Submitted by: Vinícius Zavam <egypcio@googlemail.com> Sponsored by: Rubicon Communications, LLC (Netgate)
Diffstat (limited to 'sysutils/openipmi')
-rw-r--r--sysutils/openipmi/Makefile44
-rw-r--r--sysutils/openipmi/distinfo5
-rw-r--r--sysutils/openipmi/files/extra-patch-glib_glib__os__hnd.c33
-rw-r--r--sysutils/openipmi/files/extra-patch-swig_perl_Makefile.in13
-rw-r--r--sysutils/openipmi/files/patch-OpenIPMIpthread.pc.in10
-rw-r--r--sysutils/openipmi/files/patch-configure13
-rw-r--r--sysutils/openipmi/files/patch-lanserv_extcmd.c12
-rw-r--r--sysutils/openipmi/files/patch-lib_rakp.c11
-rw-r--r--sysutils/openipmi/files/patch-swig_perl_Makefile.in11
-rw-r--r--sysutils/openipmi/pkg-plist33
10 files changed, 96 insertions, 89 deletions
diff --git a/sysutils/openipmi/Makefile b/sysutils/openipmi/Makefile
index e06fc7b1b173..58b6ff888bc4 100644
--- a/sysutils/openipmi/Makefile
+++ b/sysutils/openipmi/Makefile
@@ -2,27 +2,24 @@
# $FreeBSD$
PORTNAME= openipmi
-PORTVERSION= 2.0.21
-PORTREVISION= 1
+PORTVERSION= 2.0.25
CATEGORIES= sysutils
MASTER_SITES= SF/${PORTNAME}/OpenIPMI%202.0%20Library
DISTNAME= OpenIPMI-${PORTVERSION}
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= egypcio@googlemail.com
COMMENT= Complex IPMI management software
LICENSE= GPLv2
+LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libpopt.so:devel/popt
GNU_CONFIGURE= yes
INSTALL_TARGET= install-strip
-USES= gmake libtool ncurses pathfix pkgconfig
+USES= gmake libtool ncurses pathfix pkgconfig localbase:ldflags
USE_LDCONFIG= yes
-CPPFLAGS+= -I../include -I${LOCALBASE}/include
-LIBS+= -L${LOCALBASE}/lib
-
OPTIONS_DEFINE= SSL SNMP PERL PYTHON TCL TKINTER GDBM
OPTIONS_RADIO= GLIB
OPTIONS_RADIO_GLIB= GLIB12 GLIB20
@@ -58,8 +55,8 @@ CONFIGURE_ARGS+= --with-openssl=no
.endif
.if ${PORT_OPTIONS:MTKINTER}
-USES+= python
-WITH_PYTHON= yes
+USES+= python shebangfix
+SHEBANG_FILES= swig/python/openipmigui.py
BUILD_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}tkinter>0:x11-toolkits/py-tkinter@${PY_FLAVOR} \
${LOCALBASE}/lib/Tix8.4.3/Tix.tcl:x11-toolkits/tix
CONFIGURE_ARGS+= --with-tkinter
@@ -72,11 +69,14 @@ PLIST_SUB+= TKINTER="@comment "
.if ${PORT_OPTIONS:MPERL}
WITH_SWIG= yes
USES+= perl5
-CONFIGURE_ARGS+= --with-perl
-PLIST_SUB+= PERL=""
+CONFIGURE_ARGS+= --with-perl ac_cv_path_perlprog=${PERL}
+LDFLAGS+= -L${SITE_ARCH}
+LIBS+= -L${SITE_ARCH}
+PLIST_SUB+= OIPMIPERL=""
+EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-swig_perl_Makefile.in
.else
CONFIGURE_ARGS+= --with-perl=no
-PLIST_SUB+= PERL="@comment "
+PLIST_SUB+= OIPMIPERL="@comment "
.endif
.if ${PORT_OPTIONS:MPYTHON}
@@ -106,21 +106,23 @@ LIB_DEPENDS+= libgdbm.so:databases/gdbm
.endif
.if ${PORT_OPTIONS:MGLIB12}
-USE_GNOME+= glib12
-CONFIGURE_ARGS+= --with-glib12 --with-glibver=1.2
-PLIST_SUB+= GLIB12=""
+USE_GNOME= glib12
+CONFIGURE_ARGS+= --with-glib --with-glibver=1.2 \
+ --with-glibcflags=-I${LOCALBASE}/include/glib-1.2 \
+ --with-gliblibs="-L${LOCALBASE}/lib -lglib -lgthread"
+MAKE_ENV+= GLIB_MAJOR_VERSION=1
+EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-glib_glib__os__hnd.c
+PLIST_SUB+= GLIB=""
.else
-CONFIGURE_ARGS+= --with-glib12=no
-PLIST_SUB+= GLIB12="@comment "
+PLIST_SUB+= GLIB="@comment "
.endif
.if ${PORT_OPTIONS:MGLIB20}
-USE_GNOME+= glib20
+USE_GNOME= glib20
CONFIGURE_ARGS+= --with-glib --with-glibver=2.0
-PLIST_SUB+= GLIB20=""
+PLIST_SUB+= GLIB=""
.else
-CONFIGURE_ARGS+= --with-glib=no
-PLIST_SUB+= GLIB20="@comment "
+PLIST_SUB+= GLIB="@comment "
.endif
post-patch:
diff --git a/sysutils/openipmi/distinfo b/sysutils/openipmi/distinfo
index db90f37bc1ae..c7e184caa98d 100644
--- a/sysutils/openipmi/distinfo
+++ b/sysutils/openipmi/distinfo
@@ -1,2 +1,3 @@
-SHA256 (OpenIPMI-2.0.21.tar.gz) = 37b844d02119b94b31e2bb2bd8062ffdf6cd3eb4bc75fa6c47184e8b14fe95b8
-SIZE (OpenIPMI-2.0.21.tar.gz) = 3473323
+TIMESTAMP = 1532529450
+SHA256 (OpenIPMI-2.0.25.tar.gz) = f0f1a0ec732409930b7a31a6daa6cf39b585f52059b62a5f092b7ece21aa75a5
+SIZE (OpenIPMI-2.0.25.tar.gz) = 3212723
diff --git a/sysutils/openipmi/files/extra-patch-glib_glib__os__hnd.c b/sysutils/openipmi/files/extra-patch-glib_glib__os__hnd.c
new file mode 100644
index 000000000000..9908271e246d
--- /dev/null
+++ b/sysutils/openipmi/files/extra-patch-glib_glib__os__hnd.c
@@ -0,0 +1,33 @@
+--- glib/glib_os_hnd.c.orig 2015-06-25 22:51:39.000000000 +0000
++++ glib/glib_os_hnd.c 2018-07-30 13:30:17.799255000 +0000
+@@ -777,23 +777,21 @@
+ {
+ gint64 now;
+
+- now = g_get_monotonic_time();
+- tv->tv_sec = now / G_TIME_SPAN_SECOND;
+- tv->tv_usec = now % G_TIME_SPAN_SECOND;
++ g_get_current_time(&now);
++ tv->tv_sec = now / 1000000;
++ tv->tv_usec = now % 1000000;
+ return 0;
+ }
+
+ static int get_glib_time(os_handler_t *handler,
+ struct timeval *tv)
+ {
+- GDateTime *now;
++ GTimeVal now;
+ GTimeVal gtv;
+
+- now = g_date_time_new_now_utc();
+- g_date_time_to_timeval(now, &gtv);
+- g_date_time_unref(now);
+- tv->tv_sec = gtv.tv_sec;
+- tv->tv_usec = gtv.tv_usec;
++ g_get_current_time(&now);
++ tv->tv_sec = now.tv_sec;
++ tv->tv_usec = now.tv_usec;
+ return 0;
+ }
+
diff --git a/sysutils/openipmi/files/extra-patch-swig_perl_Makefile.in b/sysutils/openipmi/files/extra-patch-swig_perl_Makefile.in
new file mode 100644
index 000000000000..f9bb8b5697a9
--- /dev/null
+++ b/sysutils/openipmi/files/extra-patch-swig_perl_Makefile.in
@@ -0,0 +1,13 @@
+--- swig/perl/Makefile.in.orig 2018-08-23 20:18:14 UTC
++++ swig/perl/Makefile.in
+@@ -115,8 +115,8 @@
+ am__v_lt_1 =
+ libOpenIPMI_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \
+ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \
+- $(AM_CFLAGS) $(CFLAGS) $(libOpenIPMI_la_LDFLAGS) $(LDFLAGS) -o \
+- $@
++ $(AM_CFLAGS) $(CFLAGS) $(libOpenIPMI_la_LDFLAGS) $(LDFLAGS) \
++ `perl -MConfig -e 'print $$Config{lddlflags}'` -o $@
+ libdummystuff_la_LIBADD =
+ am_libdummystuff_la_OBJECTS = dummystuff.lo
+ libdummystuff_la_OBJECTS = $(am_libdummystuff_la_OBJECTS)
diff --git a/sysutils/openipmi/files/patch-OpenIPMIpthread.pc.in b/sysutils/openipmi/files/patch-OpenIPMIpthread.pc.in
deleted file mode 100644
index 4d5c483f002b..000000000000
--- a/sysutils/openipmi/files/patch-OpenIPMIpthread.pc.in
+++ /dev/null
@@ -1,10 +0,0 @@
---- 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@
--Requires: OpenIPMI pthread
-+Requires: OpenIPMI
- Libs: -L${libdir} -lOpenIPMIutils -lOpenIPMIpthread
- Cflags: -I${includedir}
diff --git a/sysutils/openipmi/files/patch-configure b/sysutils/openipmi/files/patch-configure
deleted file mode 100644
index 07e8d97ea8f2..000000000000
--- a/sysutils/openipmi/files/patch-configure
+++ /dev/null
@@ -1,13 +0,0 @@
---- configure.orig 2014-01-28 19:35:11 UTC
-+++ configure
-@@ -4206,6 +4206,10 @@ unknown)
- esac
-
-
-+OPENIPMI_VERSION_MAJOR=2
-+OPENIPMI_VERSION_MINOR=0
-+OPENIPMI_VERSION_RELEASE=21
-+OPENIPMI_VERSION_EXTRA=
-
-
- OPENIPMI_SMI=
diff --git a/sysutils/openipmi/files/patch-lanserv_extcmd.c b/sysutils/openipmi/files/patch-lanserv_extcmd.c
index 3fed0d33ab35..6b981c0c252a 100644
--- a/sysutils/openipmi/files/patch-lanserv_extcmd.c
+++ b/sysutils/openipmi/files/patch-lanserv_extcmd.c
@@ -1,14 +1,20 @@
---- lanserv/extcmd.c.orig 2015-07-30 03:31:16 UTC
+--- lanserv/extcmd.c.orig 2018-07-30 08:08:12 UTC
+++ lanserv/extcmd.c
-@@ -52,10 +52,11 @@
- * products derived from this software without specific prior
+@@ -53,16 +53,11 @@
* written permission.
*/
+ #include <config.h>
+#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
+-#ifdef HAVE_NETINET_ETHER_H
-#include <netinet/ether.h>
+-#elif defined(HAVE_SYS_ETHERNET_H)
+-#include <sys/ethernet.h>
+-#else
+-#error "either netinet/ether.h or sys/ethernet.h must exist."
+-#endif
+#include <net/ethernet.h>
#include <ctype.h>
#include <string.h>
diff --git a/sysutils/openipmi/files/patch-lib_rakp.c b/sysutils/openipmi/files/patch-lib_rakp.c
deleted file mode 100644
index d451e05f34dc..000000000000
--- a/sysutils/openipmi/files/patch-lib_rakp.c
+++ /dev/null
@@ -1,11 +0,0 @@
---- 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);
diff --git a/sysutils/openipmi/files/patch-swig_perl_Makefile.in b/sysutils/openipmi/files/patch-swig_perl_Makefile.in
deleted file mode 100644
index 7cfe352372f1..000000000000
--- a/sysutils/openipmi/files/patch-swig_perl_Makefile.in
+++ /dev/null
@@ -1,11 +0,0 @@
---- swig/perl/Makefile.in.orig 2014-12-04 17:01:40 UTC
-+++ swig/perl/Makefile.in
-@@ -533,7 +533,7 @@ uninstall-am: uninstall-local
- all: OpenIPMI.so
-
- OpenIPMI.so: $(OpenIPMI_OBJ)
-- $(LIBTOOL) --mode=link $(CC) -shared -module -avoid-version -o $(@:.so=.la) $^ $(OPENIPMI_SWIG_LIBS) $(PERL_POSIX_LIB) -rpath $(PERL_INSTALL_DIR)/auto/OpenIPMI
-+ $(LIBTOOL) --mode=link $(CC) -shared -module -avoid-version -o $(@:.so=.la) $^ $(OPENIPMI_SWIG_LIBS) $(PERL_POSIX_LIB) -rpath $(PERL_INSTALL_DIR)/auto/OpenIPMI `perl -MConfig -e 'print $$Config{lddlflags}'`
- rm -f OpenIPMI.so
- mv .libs/OpenIPMI.so .
- rm -rf .libs
diff --git a/sysutils/openipmi/pkg-plist b/sysutils/openipmi/pkg-plist
index e2f69095a01e..9193769950c0 100644
--- a/sysutils/openipmi/pkg-plist
+++ b/sysutils/openipmi/pkg-plist
@@ -2,7 +2,6 @@
bin/ipmi_sim
bin/ipmi_ui
bin/ipmicmd
-bin/ipmilan
bin/ipmish
bin/openipmicmd
bin/openipmish
@@ -11,6 +10,7 @@ bin/sdrcomp
bin/solterm
etc/ipmi/ipmisim1.emu
etc/ipmi/lan.conf
+include/OpenIPMI/deprecator.h
include/OpenIPMI/extcmd.h
include/OpenIPMI/internal/ilist.h
include/OpenIPMI/internal/ipmi_control.h
@@ -103,8 +103,8 @@ libdata/pkgconfig/OpenIPMIui.pc
libdata/pkgconfig/OpenIPMIutils.pc
man/man1/ipmi_sim.1.gz
man/man1/ipmi_ui.1.gz
+man/man1/openipmi_eventd.1.gz
man/man1/openipmicmd.1.gz
-man/man1/openipmigui.1.gz
man/man1/openipmish.1.gz
man/man1/rmcp_ping.1.gz
man/man1/solterm.1.gz
@@ -112,28 +112,21 @@ man/man5/ipmi_lan.5.gz
man/man5/ipmi_sim_cmd.5.gz
man/man7/ipmi_cmdlang.7.gz
man/man7/openipmi_conparms.7.gz
-man/man8/ipmilan.8.gz
-%%GLIB12%%@comment files list for GLIB12
-%%GLIB12%%lib/libOpenIPMIglib12.a
-%%GLIB12%%lib/libOpenIPMIglib12.so
-%%GLIB12%%lib/libOpenIPMIglib12.so.0
-%%GLIB12%%lib/libOpenIPMIglib12.so.0.0.1
-%%GLIB12%%libdata/pkgconfig/OpenIPMIglib12.pc
-%%GLIB20%%@comment files list for GLIB20
-%%GLIB20%%lib/libOpenIPMIglib.a
-%%GLIB20%%lib/libOpenIPMIglib.so
-%%GLIB20%%lib/libOpenIPMIglib.so.0
-%%GLIB20%%lib/libOpenIPMIglib.so.0.0.1
-%%GLIB20%%libdata/pkgconfig/OpenIPMIglib.pc
+%%GLIB%%@comment files list for GLIB12/GLIB20
+%%GLIB%%lib/libOpenIPMIglib.a
+%%GLIB%%lib/libOpenIPMIglib.so
+%%GLIB%%lib/libOpenIPMIglib.so.0
+%%GLIB%%lib/libOpenIPMIglib.so.0.0.1
+%%GLIB%%libdata/pkgconfig/OpenIPMIglib.pc
%%TCL%%@comment files list for TCL
%%TCL%%lib/libOpenIPMItcl.a
%%TCL%%lib/libOpenIPMItcl.so
%%TCL%%lib/libOpenIPMItcl.so.0
%%TCL%%lib/libOpenIPMItcl.so.0.0.1
%%TCL%%libdata/pkgconfig/OpenIPMItcl.pc
-%%PERL%%@comment files list for PERL
-%%PERL%%%%SITE_ARCH%%/OpenIPMI.pm
-%%PERL%%%%SITE_ARCH%%/auto/OpenIPMI/OpenIPMI.so
+%%OIPMIPERL%%@comment files list for PERL
+%%OIPMIPERL%%%%SITE_ARCH%%/OpenIPMI.pm
+%%OIPMIPERL%%%%SITE_ARCH%%/auto/OpenIPMI/OpenIPMI.so
%%PYTHON%%@comment files list for PYTHON
%%PYTHON%%%%PYTHON_SITELIBDIR%%/OpenIPMI.py
%%PYTHON%%%%PYTHON_SITELIBDIR%%/OpenIPMI.pyc
@@ -229,3 +222,7 @@ man/man8/ipmilan.8.gz
%%TKINTER%%%%PYTHON_SITELIBDIR%%/openipmigui/gui_treelist.py
%%TKINTER%%%%PYTHON_SITELIBDIR%%/openipmigui/gui_treelist.pyc
%%TKINTER%%%%PYTHON_SITELIBDIR%%/openipmigui/gui_treelist.pyo
+%%TKINTER%%%%PYTHON_SITELIBDIR%%/openipmigui/gui_winsys.py
+%%TKINTER%%%%PYTHON_SITELIBDIR%%/openipmigui/gui_winsys.pyc
+%%TKINTER%%%%PYTHON_SITELIBDIR%%/openipmigui/gui_winsys.pyo
+%%TKINTER%%man/man1/openipmigui.1.gz