pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/sysutils/openipmi



Module Name:    pkgsrc
Committed By:   otis
Date:           Tue Nov  3 20:55:34 UTC 2020

Added Files:
        pkgsrc/sysutils/openipmi: DESCR Makefile PLIST PLIST.Linux
            buildlink3.mk distinfo options.mk
        pkgsrc/sysutils/openipmi/patches: patch-configure
            patch-lanserv_extcmd.c patch-unix_selector.c

Log Message:
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).


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/sysutils/openipmi/DESCR \
    pkgsrc/sysutils/openipmi/Makefile pkgsrc/sysutils/openipmi/PLIST \
    pkgsrc/sysutils/openipmi/PLIST.Linux \
    pkgsrc/sysutils/openipmi/buildlink3.mk pkgsrc/sysutils/openipmi/distinfo \
    pkgsrc/sysutils/openipmi/options.mk
cvs rdiff -u -r0 -r1.1 pkgsrc/sysutils/openipmi/patches/patch-configure \
    pkgsrc/sysutils/openipmi/patches/patch-lanserv_extcmd.c \
    pkgsrc/sysutils/openipmi/patches/patch-unix_selector.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: pkgsrc/sysutils/openipmi/DESCR
diff -u /dev/null pkgsrc/sysutils/openipmi/DESCR:1.1
--- /dev/null   Tue Nov  3 20:55:35 2020
+++ pkgsrc/sysutils/openipmi/DESCR      Tue Nov  3 20:55:34 2020
@@ -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).
Index: pkgsrc/sysutils/openipmi/Makefile
diff -u /dev/null pkgsrc/sysutils/openipmi/Makefile:1.1
--- /dev/null   Tue Nov  3 20:55:35 2020
+++ pkgsrc/sysutils/openipmi/Makefile   Tue Nov  3 20:55:34 2020
@@ -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"
Index: pkgsrc/sysutils/openipmi/PLIST
diff -u /dev/null pkgsrc/sysutils/openipmi/PLIST:1.1
--- /dev/null   Tue Nov  3 20:55:35 2020
+++ pkgsrc/sysutils/openipmi/PLIST      Tue Nov  3 20:55:34 2020
@@ -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
Index: pkgsrc/sysutils/openipmi/PLIST.Linux
diff -u /dev/null pkgsrc/sysutils/openipmi/PLIST.Linux:1.1
--- /dev/null   Tue Nov  3 20:55:35 2020
+++ pkgsrc/sysutils/openipmi/PLIST.Linux        Tue Nov  3 20:55:34 2020
@@ -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
Index: pkgsrc/sysutils/openipmi/buildlink3.mk
diff -u /dev/null pkgsrc/sysutils/openipmi/buildlink3.mk:1.1
--- /dev/null   Tue Nov  3 20:55:35 2020
+++ pkgsrc/sysutils/openipmi/buildlink3.mk      Tue Nov  3 20:55:34 2020
@@ -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
Index: pkgsrc/sysutils/openipmi/distinfo
diff -u /dev/null pkgsrc/sysutils/openipmi/distinfo:1.1
--- /dev/null   Tue Nov  3 20:55:35 2020
+++ pkgsrc/sysutils/openipmi/distinfo   Tue Nov  3 20:55:34 2020
@@ -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
Index: pkgsrc/sysutils/openipmi/options.mk
diff -u /dev/null pkgsrc/sysutils/openipmi/options.mk:1.1
--- /dev/null   Tue Nov  3 20:55:35 2020
+++ pkgsrc/sysutils/openipmi/options.mk Tue Nov  3 20:55:34 2020
@@ -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

Index: pkgsrc/sysutils/openipmi/patches/patch-configure
diff -u /dev/null pkgsrc/sysutils/openipmi/patches/patch-configure:1.1
--- /dev/null   Tue Nov  3 20:55:35 2020
+++ pkgsrc/sysutils/openipmi/patches/patch-configure    Tue Nov  3 20:55:34 2020
@@ -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
Index: pkgsrc/sysutils/openipmi/patches/patch-lanserv_extcmd.c
diff -u /dev/null pkgsrc/sysutils/openipmi/patches/patch-lanserv_extcmd.c:1.1
--- /dev/null   Tue Nov  3 20:55:35 2020
+++ pkgsrc/sysutils/openipmi/patches/patch-lanserv_extcmd.c     Tue Nov  3 20:55:34 2020
@@ -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>
+ #include <string.h>
+ #include <errno.h>
+@@ -73,6 +79,53 @@
+ #include <OpenIPMI/serv.h>
+ #include <OpenIPMI/extcmd.h>
+ 
++/*
++ * These two functions (ether_aton_r() and ether_ntoa_r()
++ * were obtained from FreeBSD and modified for NetBSD
++ */
++
++#ifndef ether_aton_r
++/*
++ * Convert an ASCII representation of an ethernet address to binary form.
++ */
++struct ether_addr *
++ether_aton_r(const char *a, struct ether_addr *e)
++{
++        int i;
++        unsigned int o0, o1, o2, o3, o4, o5;
++
++        i = sscanf(a, "%x:%x:%x:%x:%x:%x", &o0, &o1, &o2, &o3, &o4, &o5);
++        if (i != 6)
++                return (NULL);
++        e->ether_addr_octet[0]=o0;
++        e->ether_addr_octet[1]=o1;
++        e->ether_addr_octet[2]=o2;
++        e->ether_addr_octet[3]=o3;
++        e->ether_addr_octet[4]=o4;
++        e->ether_addr_octet[5]=o5;
++        return (e);
++}
++#endif
++
++#ifndef ether_ntoa_r
++/*
++ * Convert a binary representation of an ethernet address to an ASCII string.
++ */
++char *
++ether_ntoa_r(const struct ether_addr *n, char *a)
++{
++        int i;
++
++        i = sprintf(a, "%02x:%02x:%02x:%02x:%02x:%02x", n->ether_addr_octet[0],
++            n->ether_addr_octet[1], n->ether_addr_octet[2],
++          n->ether_addr_octet[3], n->ether_addr_octet[4],
++          n->ether_addr_octet[5]);
++        if (i < 17)
++                return (NULL);
++        return (a);
++}
++#endif
++
+ static int
+ extcmd_getval(void *baseloc, extcmd_info_t *t, char *val)
+ {
Index: pkgsrc/sysutils/openipmi/patches/patch-unix_selector.c
diff -u /dev/null pkgsrc/sysutils/openipmi/patches/patch-unix_selector.c:1.1
--- /dev/null   Tue Nov  3 20:55:35 2020
+++ pkgsrc/sysutils/openipmi/patches/patch-unix_selector.c      Tue Nov  3 20:55:34 2020
@@ -0,0 +1,18 @@
+$NetBSD: patch-unix_selector.c,v 1.1 2020/11/03 20:55:34 otis Exp $
+
+Testy for EBADFD on respective platforms only.
+
+--- unix/selector.c.orig       2020-10-08 11:19:47.295098497 +0000
++++ unix/selector.c
+@@ -1030,7 +1030,11 @@ process_fds(struct selector_s       *sel,
+                 &tmp_except_set,
+                 &ts, &sigmask);
+     if (err < 0) {
++#if defined(EBADFD)
+       if (errno == EBADF || errno == EBADFD)
++#else
++      if (errno == EBADF)
++#endif
+           /* We raced, just retry it. */
+           goto retry;
+       goto out;



Home | Main Index | Thread Index | Old Index