Bug 146151 - New port sysutils/OpenIPMI
Summary: New port sysutils/OpenIPMI
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Boris Samorodov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-29 14:40 UTC by alex.deiter
Modified: 2010-05-14 09:50 UTC (History)
0 users

See Also:


Attachments
file.shar (15.32 KB, text/plain)
2010-04-29 14:40 UTC, alex.deiter
no flags Details
sysutils-OpenIPMI.shar.txt (15.32 KB, text/plain; charset=US-ASCII)
2010-05-05 06:09 UTC, alex.deiter
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description alex.deiter 2010-04-29 14:40:01 UTC
Hi,

Could you please add new port for OpenIPMI ?

http://openipmi.sourceforge.net/

OpenIPMI was designed to aid building "complex IPMI management software".
OpenIPMI library will connect with an IPMI controller, detect any
management controllers on the bus, get their SDRs, manage all the
entities in the system, manage the event log, and a host of other
things. OpenIPMI is also dynamic and event-driven. It will come up
and start discovering things in the managed system. As it discovers
things, it will report them to the software using it (assuming the
software has asked for this reporting).

Thanks a lot!

Fix: $ sh sysutils-OpenIPMI.shar.txt
c - sysutils/OpenIPMI
x - sysutils/OpenIPMI/distinfo
x - sysutils/OpenIPMI/Makefile
x - sysutils/OpenIPMI/pkg-plist
c - sysutils/OpenIPMI/files
x - sysutils/OpenIPMI/files/patch-Makefile.am
x - sysutils/OpenIPMI/pkg-descr

$ cd sysutils/OpenIPMI

$ portlint 
looks fine.

# make install



Patch attached with submission follows:
Comment 1 Martin Wilke freebsd_committer freebsd_triage 2010-05-02 10:14:05 UTC
State Changed
From-To: open->feedback

Hi, 


build fails for me 


Making all in .  gmake[4]: Entering directory 
`/usr/home/miwi/dev/ports/sysutils/sysutils/OpenIPMI/work/OpenIPMI-2.0.17/swig/python' 
if /bin/sh /usr/local/bin/libtool --tag=CC --mode=compile cc 
-DHAVE_CONFIG_H -I. -I. -I../..   -I/usr/local/include 
-I/usr/local/include/python2.6 -I ../.. -I ../../include -I 
../../include -I ../../swig/python -DPYTHON_HAS_POSIX_THREADS=1 -O2 
-pipe -fno-strict-aliasing -MT OpenIPMI_wrap.lo -MD -MP -MF 
".deps/OpenIPMI_wrap.Tpo" -c -o OpenIPMI_wrap.lo OpenIPMI_wrap.c;  
then mv -f ".deps/OpenIPMI_wrap.Tpo" ".deps/OpenIPMI_wrap.Plo"; 
else rm -f ".deps/OpenIPMI_wrap.Tpo"; exit 1; fi 
libtool: compile:  cc -DHAVE_CONFIG_H -I. -I. -I../.. 
-I/usr/local/include -I/usr/local/include/python2.6 -I ../.. -I 
../../include -I ../../include -I ../../swig/python 
-DPYTHON_HAS_POSIX_THREADS=1 -O2 -pipe -fno-strict-aliasing -MT 
OpenIPMI_wrap.lo -MD -MP -MF .deps/OpenIPMI_wrap.Tpo -c OpenIPMI_wrap.c 
-fPIC -DPIC -o .libs/OpenIPMI_wrap.o OpenIPMI_wrap.c: In function 
'_wrap_strconstarray_val_set': OpenIPMI_wrap.c:11811: warning: 
assignment from incompatible pointer type libtool: compile:  cc 
-DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/local/include 
-I/usr/local/include/python2.6 -I ../.. -I ../../include -I 
../../include -I ../../swig/python -DPYTHON_HAS_POSIX_THREADS=1 -O2 
-pipe -fno-strict-aliasing -MT OpenIPMI_wrap.lo -MD -MP -MF 
.deps/OpenIPMI_wrap.Tpo -c OpenIPMI_wrap.c -o OpenIPMI_wrap.o >/dev/null 
2>&1 /bin/sh /usr/local/bin/libtool --tag=CC --mode=link cc 
-I/usr/local/include/python2.6 -I ../.. -I ../../include -I 
../../include -I ../../swig/python -DPYTHON_HAS_POSIX_THREADS=1 -O2 
-pipe -fno-strict-aliasing  -L/usr/local/lib 
-rpath=/usr/lib:/usr/local/lib -o _OpenIPMI.la -rpath 
/usr/local/lib/python2.6/site-packages -module -avoid-version 
OpenIPMI_wrap.lo ../../unix/libOpenIPMIpthread.la 
../../lib/libOpenIPMI.la ../../utils/libOpenIPMIutils.la 
../../cmdlang/libOpenIPMIcmdlang.la ../../glib/libOpenIPMIglib.la 
../../tcl/libOpenIPMItcl.la ../../unix/libOpenIPMIpthread.la libtool: 
link: cc -shared  .libs/OpenIPMI_wrap.o   -Wl,-rpath 
-Wl,/usr/home/miwi/dev/ports/sysutils/sysutils/OpenIPMI/work/OpenIPMI-2.0.17/lib/.libs 
-Wl,-rpath 
-Wl,/usr/home/miwi/dev/ports/sysutils/sysutils/OpenIPMI/work/OpenIPMI-2.0.17/utils/.libs 
-Wl,-rpath 
-Wl,/usr/home/miwi/dev/ports/sysutils/sysutils/OpenIPMI/work/OpenIPMI-2.0.17/cmdlang/.libs 
-Wl,-rpath 
-Wl,/usr/home/miwi/dev/ports/sysutils/sysutils/OpenIPMI/work/OpenIPMI-2.0.17/glib/.libs 
-Wl,-rpath -Wl,/usr/local/lib -Wl,-rpath 
-Wl,/usr/home/miwi/dev/ports/sysutils/sysutils/OpenIPMI/work/OpenIPMI-2.0.17/tcl/.libs 
-Wl,-rpath 
-Wl,/usr/home/miwi/dev/ports/sysutils/sysutils/OpenIPMI/work/OpenIPMI-2.0.17/unix/.libs 
-Wl,-rpath -Wl,/usr/local/lib 
-L/usr/home/miwi/dev/ports/sysutils/sysutils/OpenIPMI/work/OpenIPMI-2.0.17/lib/.libs 
-L/usr/home/miwi/dev/ports/sysutils/sysutils/OpenIPMI/work/OpenIPMI-2.0.17/utils/.libs 
-L/usr/local/lib ../../lib/.libs/libOpenIPMI.so -L/usr/lib 
../../utils/.libs/libOpenIPMIutils.so 
../../cmdlang/.libs/libOpenIPMIcmdlang.so 
/usr/home/miwi/dev/ports/sysutils/sysutils/OpenIPMI/work/OpenIPMI-2.0.17/lib/.libs/libOpenIPMI.so 
-lm -lcrypto ../../glib/.libs/libOpenIPMIglib.so 
/usr/local/lib/libgthread-2.0.so -pthread /usr/local/lib/libglib-2.0.so 
/usr/local/lib/libintl.so /usr/local/lib/libiconv.so 
/usr/local/lib/libpcre.so ../../tcl/.libs/libOpenIPMItcl.so -ltcl84 
../../unix/.libs/libOpenIPMIpthread.so -lpthread 
/usr/local/lib/libgdbm.so 
/usr/home/miwi/dev/ports/sysutils/sysutils/OpenIPMI/work/OpenIPMI-2.0.17/utils/.libs/libOpenIPMIutils.so 
-pthread   -pthread -Wl,-soname -Wl,_OpenIPMI.so -o .libs/_OpenIPMI.so 
libtool: link: ar cru .libs/_OpenIPMI.a  OpenIPMI_wrap.o libtool: link: 
ranlib .libs/_OpenIPMI.a libtool: link: ( cd ".libs" && rm -f 
"_OpenIPMI.la" && ln -s "../_OpenIPMI.la" "_OpenIPMI.la" ) gmake[4]: 
Leaving directory 
`/usr/home/miwi/dev/ports/sysutils/sysutils/OpenIPMI/work/OpenIPMI-2.0.17/swig/python' 
Making all in openipmigui gmake[4]: Entering directory 
`/usr/home/miwi/dev/ports/sysutils/sysutils/OpenIPMI/work/OpenIPMI-2.0.17/swig/python/openipmigui' 
LD_PRELOAD=../../../unix/.libs/libOpenIPMIpthread.so:../../../lib/.libs/libOpenIPMI.so:../../../utils/.libs/libOpenIPMIutils.so:../../../cmdlang/.libs/libOpenIPMIcmdlang.so:../../../glib/.libs/libOpenIPMIglib.so:../../../tcl/.libs/libOpenIPMItcl.so:../../../swig/python/.libs/_OpenIPMI.so 
PYTHONPATH=../../../swig/python:../../../swig/python/.libs:. 
/usr/local/bin/python -c 'import _control' Traceback (most recent call 
last): 
File "<string>", line 1, in <module> File "_control.py", line 33, in 
<module> 
import OpenIPMI 
ImportError: No module named OpenIPMI gmake[4]: *** [_control.pyc] Error 
1 gmake[4]: Leaving directory 
`/usr/home/miwi/dev/ports/sysutils/sysutils/OpenIPMI/work/OpenIPMI-2.0.17/swig/python/openipmigui' 
gmake[3]: *** [all-recursive] Error 1 gmake[3]: Leaving directory 
`/usr/home/miwi/dev/ports/sysutils/sysutils/OpenIPMI/work/OpenIPMI-2.0.17/swig/python' 
gmake[2]: *** [all-recursive] Error 1 gmake[2]: Leaving directory 
`/usr/home/miwi/dev/ports/sysutils/sysutils/OpenIPMI/work/OpenIPMI-2.0.17/swig' 
gmake[1]: *** [all-recursive] Error 1 gmake[1]: Leaving directory 
`/usr/home/miwi/dev/ports/sysutils/sysutils/OpenIPMI/work/OpenIPMI-2.0.17' 
gmake: *** [all] Error 2 *** Error code 1 

Stop in /usr/home/miwi/dev/ports/sysutils/sysutils/OpenIPMI.  *** Error 
code 1 

Stop in /usr/home/miwi/dev/ports/sysutils/sysutils/OpenIPMI. 


FreeBSD miwi.homeunix.com 8.0-STABLE FreeBSD 8.0-STABLE #0: Thu Apr 29 
11:28:11 UTC 2010     root@miwi.homeunix.com:/usr/obj/usr/src/sys/GAME 
i386 

[17:15] root@miwi /usr/home/miwi/dev/ports/sysutils/sysutils/OpenIPMI# 
make showconfig ===> The following configuration options are available 
for OpenIPMI-2.0.17: 
SSL=on "IPMI 2.0 RMCP+ encryption and authentication" SNMP=off 
"SNMP trap support for the sample programs" PERL=on "Perl interface 
for OpenIPMI library" PYTHON=on "Python interface for OpenIPMI 
library" TCL=off "TCL interface for OpenIPMI library" TKINTER=on 
"GUI for OpenIPMI, written in Python" GDBM=on "Local SDR caching on 
startup" GLIB12=off "Simply OS handler for glib 1.2" GLIB20=on 
"Simply OS handler for glib 2.0" 
===> Use 'make config' to modify these settings
Comment 2 alex.deiter 2010-05-05 06:09:35 UTC
Hi,

Could you please try new attached port (updated from 2.017 up to 2.0.18)

2010-05-03 Corey Minyard <cminyard@mvista.com>

       * swig/python/Makefile.am, swig/perl/Makefile.am: The swig command
       could possibly get the wrong target, and the OpenIPMI_wrap.c file
       was being included in the distribution, which could cause the
       OpenIPMI.py and OpenIPMI.pm files to not be properly generated.
       Fix those problems.

       * configure.in: Move to version 2.0.18.

This is port successfully tested on FreeBSD 9.0-CURRENT amd64 (Feb 16
17:22:58 MSK 2010) with depends:

===>   OpenIPMI-2.0.18 depends on executable: gmake - found
===>   OpenIPMI-2.0.18 depends on executable: pkg-config - found
===>   OpenIPMI-2.0.18 depends on executable: swig - found
===>   OpenIPMI-2.0.18 depends on file: /usr/local/bin/autoconf-2.62 - found
===>   OpenIPMI-2.0.18 depends on file: /usr/local/bin/automake-1.10 - found
===>   OpenIPMI-2.0.18 depends on file: /usr/local/bin/perl5.10.1 - found
===>   OpenIPMI-2.0.18 depends on file: /usr/local/bin/python2.6 - found
===>   OpenIPMI-2.0.18 depends on file:
/usr/local/lib/gio/modules/libgiofam.so - found
===>   OpenIPMI-2.0.18 depends on file:
/usr/local/lib/python2.6/site-packages/_tkinter.so - found
===>   OpenIPMI-2.0.18 depends on file: /usr/local/lib/tix8.1/Tix.tcl - found
===>   OpenIPMI-2.0.18 depends on package: libtool>=2.2 - found
===>   OpenIPMI-2.0.18 depends on shared library: gdbm.3 - found
===>   OpenIPMI-2.0.18 depends on shared library: glib-2.0.0 - found
===>   OpenIPMI-2.0.18 depends on shared library: netsnmp - found
===>   OpenIPMI-2.0.18 depends on shared library: popt.0 - found
===>   OpenIPMI-2.0.18 depends on shared library: tcl84-threads - found

Also libOpenIPMI library from this port successfully tested with zabbix-server:

# diff -u net-mgmt/zabbix-server/Makefile.orig net-mgmt/zabbix-server/Makefile
--- net-mgmt/zabbix-server/Makefile.orig	2010-04-29 11:11:54.509380512 +0400
+++ net-mgmt/zabbix-server/Makefile	2010-05-05 09:14:14.966558602 +0400
@@ -60,6 +60,7 @@
 		SQLITE "Use SQLite backend" off \
 		IPV6 "Support for IPv6" on \
 		LDAP "Support for checking LDAP servers" on \
+		IPMI "Support for IPMI" off \
 		JABBER "Use jabber media type" on \
 		FPING "Use fping for pinging hosts" on \
 		SSH "Use libssh2 for SSH-based checks" off
@@ -87,6 +88,11 @@
 CONFIGURE_ARGS+=	--with-ldap
 .endif

+.ifndef WITHOUT_IPMI
+LIB_DEPENDS+=		OpenIPMI:${PORTSDIR}/sysutils/OpenIPMI
+CONFIGURE_ARGS+=	--with-openipmi
+.endif
+
 .ifndef WITHOUT_JABBER
 LIB_DEPENDS+=	iksemel:${PORTSDIR}/textproc/iksemel
 CONFIGURE_ARGS+=	--with-jabber


Thanks a lot!

--
Alex Deiter
Comment 3 Boris Samorodov freebsd_committer freebsd_triage 2010-05-14 09:35:18 UTC
Responsible Changed
From-To: freebsd-ports-bugs->bsam

Take.
Comment 4 dfilter service freebsd_committer freebsd_triage 2010-05-14 09:42:16 UTC
bsam        2010-05-14 08:42:00 UTC

  FreeBSD ports repository

  Modified files:
    sysutils             Makefile 
  Added files:
    sysutils/openipmi    Makefile distinfo pkg-descr pkg-plist 
    sysutils/openipmi/files patch-Makefile.am 
  Log:
  OpenIPMI was designed to aid building "complex IPMI management software".
  OpenIPMI library will connect with an IPMI controller, detect any
  management controllers on the bus, get their SDRs, manage all the
  entities in the system, manage the event log, and a host of other
  things. OpenIPMI is also dynamic and event-driven. It will come up
  and start discovering things in the managed system. As it discovers
  things, it will report them to the software using it (assuming the
  software has asked for this reporting).
  
  WWW: http://openipmi.sourceforge.net/
  
  PR:             ports/146151
  Submitted by:   Alex Deiter <alex.deiter at gmail.com>
  
  Revision  Changes    Path
  1.1192    +1 -0      ports/sysutils/Makefile
  1.1       +145 -0    ports/sysutils/openipmi/Makefile (new)
  1.1       +3 -0      ports/sysutils/openipmi/distinfo (new)
  1.1       +18 -0     ports/sysutils/openipmi/files/patch-Makefile.am (new)
  1.1       +10 -0     ports/sysutils/openipmi/pkg-descr (new)
  1.1       +214 -0    ports/sysutils/openipmi/pkg-plist (new)
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 5 Boris Samorodov freebsd_committer freebsd_triage 2010-05-14 09:44:34 UTC
State Changed
From-To: feedback->closed

Committed, thanks! 

I've done some changes: 
. portname in lowercases; 
. add USE_LDCONFIG=yes to Makefile (the port installs libraries). 

BTW, for new ports the command "portlint -aN" is recommended. ;-)