pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/sysutils/openipmi sysutils/openipmi: Import OpenIPMI 2...
details: https://anonhg.NetBSD.org/pkgsrc/rev/267bc7fe7af7
branches: trunk
changeset: 441425:267bc7fe7af7
user: otis <otis%pkgsrc.org@localhost>
date: Tue Nov 03 20:55:34 2020 +0000
description:
sysutils/openipmi: Import OpenIPMI 2.0.29
The Open IPMI project aims to develop an open code base to allow access to
platform information using Intelligent Platform Management Interface (IPMI).
diffstat:
sysutils/openipmi/DESCR | 2 +
sysutils/openipmi/Makefile | 50 +++++++++++
sysutils/openipmi/PLIST | 103 +++++++++++++++++++++++
sysutils/openipmi/PLIST.Linux | 5 +
sysutils/openipmi/buildlink3.mk | 14 +++
sysutils/openipmi/distinfo | 9 ++
sysutils/openipmi/options.mk | 40 ++++++++
sysutils/openipmi/patches/patch-configure | 15 +++
sysutils/openipmi/patches/patch-lanserv_extcmd.c | 82 ++++++++++++++++++
sysutils/openipmi/patches/patch-unix_selector.c | 18 ++++
10 files changed, 338 insertions(+), 0 deletions(-)
diffs (truncated from 378 to 300 lines):
diff -r 57eb880587fa -r 267bc7fe7af7 sysutils/openipmi/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/openipmi/DESCR Tue Nov 03 20:55:34 2020 +0000
@@ -0,0 +1,2 @@
+The Open IPMI project aims to develop an open code base to allow access to
+platform information using Intelligent Platform Management Interface (IPMI).
diff -r 57eb880587fa -r 267bc7fe7af7 sysutils/openipmi/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/openipmi/Makefile Tue Nov 03 20:55:34 2020 +0000
@@ -0,0 +1,50 @@
+# $NetBSD: Makefile,v 1.1 2020/11/03 20:55:34 otis Exp $
+
+PKGVERSION= 2.0.29
+PKGNAME= openipmi-${PKGVERSION}
+DISTNAME= OpenIPMI-${PKGVERSION_NOREV}
+CATEGORIES= sysutils
+MASTER_SITES= https://newcontinuum.dl.sourceforge.net/project/openipmi/OpenIPMI%202.0%20Library/
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= http://openipmi.sourceforge.net/
+COMMENT= User-level library that provides a higher-level abstraction of IPMI
+LICENSE= gnu-lgpl-v2
+
+GNU_CONFIGURE= yes
+USE_LIBTOOL= yes
+USE_TOOLS+= gmake perl pkg-config
+
+PKGCONFIG_OVERRIDE+= OpenIPMI.pc.in
+PKGCONFIG_OVERRIDE+= OpenIPMIcmdlang.pc.in
+PKGCONFIG_OVERRIDE+= OpenIPMIglib.pc.in
+PKGCONFIG_OVERRIDE+= OpenIPMIglib12.pc.in
+PKGCONFIG_OVERRIDE+= OpenIPMIposix.pc.in
+PKGCONFIG_OVERRIDE+= OpenIPMIpthread.pc.in
+PKGCONFIG_OVERRIDE+= OpenIPMItcl.pc.in
+PKGCONFIG_OVERRIDE+= OpenIPMIui.pc.in
+PKGCONFIG_OVERRIDE+= OpenIPMIutils.pc.in
+
+EGDIR= ${PREFIX}/share/examples/openipmi
+EGFILES= lan.conf ipmisim1.emu
+
+INSTALLATION_DIRS= share/examples/openipmi
+
+.include "../../mk/bsd.prefs.mk"
+
+.if ${OPSYS} == "NetBSD" || ${OPSYS} == "FreeBSD"
+LDFLAGS+= -lexecinfo
+BUILDLINK_TRANSFORM+= rm:-ldl
+.endif
+
+post-install:
+.for file in ${EGFILES}
+ ${MV} ${DESTDIR}${PREFIX}/etc/ipmi/${file} ${DESTDIR}${EGDIR}/${file}
+.endfor
+
+.include "options.mk"
+
+.include "../../devel/popt/buildlink3.mk"
+.include "../../mk/curses.buildlink3.mk"
+.include "../../mk/readline.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 57eb880587fa -r 267bc7fe7af7 sysutils/openipmi/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/openipmi/PLIST Tue Nov 03 20:55:34 2020 +0000
@@ -0,0 +1,103 @@
+@comment $NetBSD: PLIST,v 1.1 2020/11/03 20:55:34 otis Exp $
+bin/ipmi_sim
+bin/ipmi_ui
+bin/ipmicmd
+bin/ipmish
+bin/openipmicmd
+bin/openipmish
+bin/rmcp_ping
+bin/sdrcomp
+bin/solterm
+include/OpenIPMI/deprecator.h
+include/OpenIPMI/extcmd.h
+include/OpenIPMI/internal/ilist.h
+include/OpenIPMI/internal/ipmi_control.h
+include/OpenIPMI/internal/ipmi_domain.h
+include/OpenIPMI/internal/ipmi_entity.h
+include/OpenIPMI/internal/ipmi_event.h
+include/OpenIPMI/internal/ipmi_fru.h
+include/OpenIPMI/internal/ipmi_int.h
+include/OpenIPMI/internal/ipmi_locks.h
+include/OpenIPMI/internal/ipmi_malloc.h
+include/OpenIPMI/internal/ipmi_mc.h
+include/OpenIPMI/internal/ipmi_oem.h
+include/OpenIPMI/internal/ipmi_sel.h
+include/OpenIPMI/internal/ipmi_sensor.h
+include/OpenIPMI/internal/ipmi_utils.h
+include/OpenIPMI/internal/locked_list.h
+include/OpenIPMI/internal/md2.h
+include/OpenIPMI/internal/md5.h
+include/OpenIPMI/internal/opq.h
+include/OpenIPMI/ipmbserv.h
+include/OpenIPMI/ipmi_addr.h
+include/OpenIPMI/ipmi_auth.h
+include/OpenIPMI/ipmi_bits.h
+include/OpenIPMI/ipmi_cmdlang.h
+include/OpenIPMI/ipmi_conn.h
+include/OpenIPMI/ipmi_debug.h
+include/OpenIPMI/ipmi_err.h
+include/OpenIPMI/ipmi_fru.h
+include/OpenIPMI/ipmi_glib.h
+include/OpenIPMI/ipmi_lan.h
+include/OpenIPMI/ipmi_lanparm.h
+include/OpenIPMI/ipmi_log.h
+include/OpenIPMI/ipmi_mc.h
+include/OpenIPMI/ipmi_msgbits.h
+include/OpenIPMI/ipmi_pef.h
+include/OpenIPMI/ipmi_pet.h
+include/OpenIPMI/ipmi_picmg.h
+include/OpenIPMI/ipmi_posix.h
+include/OpenIPMI/ipmi_sdr.h
+include/OpenIPMI/ipmi_smi.h
+include/OpenIPMI/ipmi_sol.h
+include/OpenIPMI/ipmi_solparm.h
+include/OpenIPMI/ipmi_string.h
+include/OpenIPMI/ipmi_tcl.h
+include/OpenIPMI/ipmi_types.h
+include/OpenIPMI/ipmi_ui.h
+include/OpenIPMI/ipmi_user.h
+include/OpenIPMI/ipmiif.h
+include/OpenIPMI/lanserv.h
+include/OpenIPMI/mcserv.h
+include/OpenIPMI/msg.h
+include/OpenIPMI/mxp.h
+include/OpenIPMI/os_handler.h
+include/OpenIPMI/persist.h
+include/OpenIPMI/selector.h
+include/OpenIPMI/serserv.h
+include/OpenIPMI/serv.h
+lib/libIPMIlanserv.la
+lib/libOpenIPMI.la
+lib/libOpenIPMIcmdlang.la
+lib/libOpenIPMIposix.la
+lib/libOpenIPMIpthread.la
+lib/libOpenIPMIui.la
+lib/libOpenIPMIutils.la
+${PLIST.perl}${PERL5_SUB_INSTALLVENDORARCH}/OpenIPMI.pm
+${PLIST.perl}${PERL5_SUB_INSTALLVENDORARCH}/auto/OpenIPMI/OpenIPMI.so
+lib/pkgconfig/OpenIPMI.pc
+lib/pkgconfig/OpenIPMIcmdlang.pc
+lib/pkgconfig/OpenIPMIposix.pc
+lib/pkgconfig/OpenIPMIpthread.pc
+lib/pkgconfig/OpenIPMIui.pc
+lib/pkgconfig/OpenIPMIutils.pc
+${PLIST.python}${PYSITELIB}/OpenIPMI.py
+${PLIST.python}${PYSITELIB}/_OpenIPMI.la
+${PLIST.python}${PYSITELIB}/_OpenIPMI.a
+${PLIST.python}${PYSITELIB}/_OpenIPMI.so
+man/man1/ipmi_sim.1
+man/man1/ipmi_ui.1
+man/man1/openipmi_eventd.1
+man/man1/openipmicmd.1
+man/man1/openipmigui.1
+man/man1/openipmish.1
+man/man1/rmcp_ping.1
+man/man1/solterm.1
+man/man5/ipmi_lan.5
+man/man5/ipmi_sim_cmd.5
+man/man7/ipmi_cmdlang.7
+man/man7/openipmi_conparms.7
+share/examples/OpenIPMI/ipmisim1.emu
+share/examples/OpenIPMI/lan.conf
+@pkgdir man/man8
+@pkgdir etc/ipmi
diff -r 57eb880587fa -r 267bc7fe7af7 sysutils/openipmi/PLIST.Linux
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/openipmi/PLIST.Linux Tue Nov 03 20:55:34 2020 +0000
@@ -0,0 +1,5 @@
+@comment $NetBSD: PLIST.Linux,v 1.1 2020/11/03 20:55:34 otis Exp $
+bin/ipmilan
+bin/openipmi_eventd
+man/man8/ipmilan.8
+@pkgdir man/man8
diff -r 57eb880587fa -r 267bc7fe7af7 sysutils/openipmi/buildlink3.mk
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/openipmi/buildlink3.mk Tue Nov 03 20:55:34 2020 +0000
@@ -0,0 +1,14 @@
+# $NetBSD: buildlink3.mk,v 1.1 2020/11/03 20:55:34 otis Exp $
+
+BUILDLINK_TREE+= openipmi
+
+.if !defined(OPENIPMI_BUILDLINK3_MK)
+OPENIPMI_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.openipmi+= openipmi>=2.0.29
+BUILDLINK_PKGSRCDIR.openipmi?= ../../sysutils/openipmi
+
+.include "../../devel/popt/buildlink3.mk"
+.endif # OPENIPMI_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -openipmi
diff -r 57eb880587fa -r 267bc7fe7af7 sysutils/openipmi/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/openipmi/distinfo Tue Nov 03 20:55:34 2020 +0000
@@ -0,0 +1,9 @@
+$NetBSD: distinfo,v 1.1 2020/11/03 20:55:34 otis Exp $
+
+SHA1 (OpenIPMI-2.0.29.tar.gz) = a8dd1a9b877e94926af1da69421e8f2bd642c9c7
+RMD160 (OpenIPMI-2.0.29.tar.gz) = 1a82606dca2e585a5075eeb40e23aa10029724db
+SHA512 (OpenIPMI-2.0.29.tar.gz) = ff23aadfe4b9002574d1f06dda3d61f7a03ef1df2c61855516b7d67bd6d3272c53af74e3412e1045242dcb845f50b7c542083e918805c0efac424dd86e720a10
+Size (OpenIPMI-2.0.29.tar.gz) = 3119530 bytes
+SHA1 (patch-configure) = 644287934ea58b18aebad100cfe3f37c39eca3ff
+SHA1 (patch-lanserv_extcmd.c) = bb9d9b91343becc6a448efdf166b5095f5270eeb
+SHA1 (patch-unix_selector.c) = 45730697f0c4c110f4e34b4ff07a8dd9c4cc0a8b
diff -r 57eb880587fa -r 267bc7fe7af7 sysutils/openipmi/options.mk
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/openipmi/options.mk Tue Nov 03 20:55:34 2020 +0000
@@ -0,0 +1,40 @@
+# $NetBSD: options.mk,v 1.1 2020/11/03 20:55:34 otis Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.openipmi
+PKG_SUPPORTED_OPTIONS= perl python snmp swig
+PKG_SUGGESTED_OPTIONS= perl python snmp swig
+
+PLIST_VARS+= perl python
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mperl)
+CONFIGURE_ARGS+= --with-perl=${PERl5}
+.include "../../lang/perl5/buildlink3.mk"
+PLIST.perl= yes
+.else
+CONFIGURE_ARGS+= --with-perl=no
+.endif
+
+.if !empty(PKG_OPTIONS:Mpython)
+CONFIGURE_ARGS+= --with-python=${PYTHONBIN}
+.include "../../lang/python/pyversion.mk"
+PLIST.python= yes
+PLIST_SUBST+= PYSITELIB=${PYSITELIB}
+.else
+CONFIGURE_ARGS+= --with-python=no
+.endif
+
+.if !empty(PKG_OPTIONS:Msnmp)
+CONFIGURE_ARGS+= --with-ucdsnmp=${PREFIX}
+.include "../../net/net-snmp/buildlink3.mk"
+.else
+CONFIGURE_ARGS+= --with-ucdsnmp=no
+.endif
+
+.if !empty(PKG_OPTIONS:Mswig)
+CONFIGURE_ARGS+= --with-swig=${PREFIX}/bin/swig3.0
+.include "../../devel/swig3/buildlink3.mk"
+.else
+CONFIGURE_ARGS+= --with-swig=no
+.endif
diff -r 57eb880587fa -r 267bc7fe7af7 sysutils/openipmi/patches/patch-configure
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/openipmi/patches/patch-configure Tue Nov 03 20:55:34 2020 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-configure,v 1.1 2020/11/03 20:55:34 otis Exp $
+
+Fix bash-ism
+
+--- configure.orig 2020-06-12 14:14:25.000000000 +0000
++++ configure
+@@ -13061,7 +13061,7 @@ if test "x$ac_cv_header_tcl_tcl_h" = xye
+ fi
+
+
+- if test "x$FOUND_TCL_HEADER" == "xyes"; then
++ if test "x$FOUND_TCL_HEADER" = "xyes"; then
+ tclcflags="-I /usr/include/tcl$ver"
+ TCL_CFLAGS="$tclcflags"
+ fi
diff -r 57eb880587fa -r 267bc7fe7af7 sysutils/openipmi/patches/patch-lanserv_extcmd.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/openipmi/patches/patch-lanserv_extcmd.c Tue Nov 03 20:55:34 2020 +0000
@@ -0,0 +1,82 @@
+$NetBSD: patch-lanserv_extcmd.c,v 1.1 2020/11/03 20:55:34 otis Exp $
+
+Create compat functions.
+
+--- lanserv/extcmd.c.orig 2017-07-27 22:01:19.000000000 +0000
++++ lanserv/extcmd.c
+@@ -53,6 +53,7 @@
+ * written permission.
+ */
+ #include <config.h>
++#include <sys/types.h>
+ #include <sys/socket.h>
+ #include <netinet/in.h>
+ #include <arpa/inet.h>
+@@ -61,8 +62,13 @@
+ #elif defined(HAVE_SYS_ETHERNET_H)
+ #include <sys/ethernet.h>
+ #else
++#if defined (__NetBSD__)
++#include <net/if.h>
++#include <net/if_ether.h>
++#else
+ #error "either netinet/ether.h or sys/ethernet.h must exist."
+ #endif
++#endif
+ #include <ctype.h>
Home |
Main Index |
Thread Index |
Old Index