From fa7d0f0b1e99ff332f5d11356ca5efee79d18dfb Mon Sep 17 00:00:00 2001 From: wilfried Date: Thu, 25 Oct 2007 18:17:02 +0000 Subject: [PATCH] import of freeipmi-0.4.6 FreeIPMI is a collection of Intelligent Platform Management IPMI system software. It provides in-band and out-of-band software and a development library conforming to the Intelligent Platform Management Interface (IPMI v1.5 and v2.0) standards. --- sysutils/freeipmi/Makefile | 49 +++++ sysutils/freeipmi/distinfo | 5 + .../patches/patch-bmc-config_Makefile_in | 12 ++ .../patches/patch-bmc-info_Makefile_in | 12 ++ .../patches/patch-common_src_ipmi-sdr-cache_c | 27 +++ .../patches/patch-common_src_pstdout_c | 110 +++++++++++ sysutils/freeipmi/patches/patch-configure | 22 +++ .../patches/patch-ipmi-chassis_Makefile_in | 12 ++ .../patches/patch-ipmi-fru_Makefile_in | 12 ++ .../patches/patch-ipmi-raw_Makefile_in | 12 ++ .../patches/patch-ipmi-sel_Makefile_in | 12 ++ .../patches/patch-ipmi-sensors_Makefile_in | 12 ++ .../patches/patch-ipmiping_src_Makefile_in | 25 +++ .../patches/patch-ipmipower_src_wrappers_c | 12 ++ .../patches/patch-libfreeipmi_src_Makefile_in | 12 ++ .../patch-libfreeipmi_src_ipmi-kcs-api_c | 27 +++ .../patch-libfreeipmi_src_ipmi-openipmi-api_c | 12 ++ .../patch-libfreeipmi_src_ipmi-semaphores_h | 12 ++ .../patch-libfreeipmi_src_ipmi-smic-api_c | 20 ++ .../patches/patch-pef-config_Makefile_in | 12 ++ .../patches/patch-rmcpping_src_Makefile_in | 25 +++ sysutils/freeipmi/pkg/DESCR | 29 +++ sysutils/freeipmi/pkg/PFRAG.shared | 4 + sysutils/freeipmi/pkg/PLIST | 180 ++++++++++++++++++ 24 files changed, 667 insertions(+) create mode 100644 sysutils/freeipmi/Makefile create mode 100644 sysutils/freeipmi/distinfo create mode 100644 sysutils/freeipmi/patches/patch-bmc-config_Makefile_in create mode 100644 sysutils/freeipmi/patches/patch-bmc-info_Makefile_in create mode 100644 sysutils/freeipmi/patches/patch-common_src_ipmi-sdr-cache_c create mode 100644 sysutils/freeipmi/patches/patch-common_src_pstdout_c create mode 100644 sysutils/freeipmi/patches/patch-configure create mode 100644 sysutils/freeipmi/patches/patch-ipmi-chassis_Makefile_in create mode 100644 sysutils/freeipmi/patches/patch-ipmi-fru_Makefile_in create mode 100644 sysutils/freeipmi/patches/patch-ipmi-raw_Makefile_in create mode 100644 sysutils/freeipmi/patches/patch-ipmi-sel_Makefile_in create mode 100644 sysutils/freeipmi/patches/patch-ipmi-sensors_Makefile_in create mode 100644 sysutils/freeipmi/patches/patch-ipmiping_src_Makefile_in create mode 100644 sysutils/freeipmi/patches/patch-ipmipower_src_wrappers_c create mode 100644 sysutils/freeipmi/patches/patch-libfreeipmi_src_Makefile_in create mode 100644 sysutils/freeipmi/patches/patch-libfreeipmi_src_ipmi-kcs-api_c create mode 100644 sysutils/freeipmi/patches/patch-libfreeipmi_src_ipmi-openipmi-api_c create mode 100644 sysutils/freeipmi/patches/patch-libfreeipmi_src_ipmi-semaphores_h create mode 100644 sysutils/freeipmi/patches/patch-libfreeipmi_src_ipmi-smic-api_c create mode 100644 sysutils/freeipmi/patches/patch-pef-config_Makefile_in create mode 100644 sysutils/freeipmi/patches/patch-rmcpping_src_Makefile_in create mode 100644 sysutils/freeipmi/pkg/DESCR create mode 100644 sysutils/freeipmi/pkg/PFRAG.shared create mode 100644 sysutils/freeipmi/pkg/PLIST diff --git a/sysutils/freeipmi/Makefile b/sysutils/freeipmi/Makefile new file mode 100644 index 00000000000..63280bd8d20 --- /dev/null +++ b/sysutils/freeipmi/Makefile @@ -0,0 +1,49 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2007/10/25 18:17:02 wilfried Exp $ + +COMMENT= FreeIPMI provides in-band and out-of-band IPMI software + +V= 0.4.6 +DISTNAME= freeipmi-${V} + +SHARED_LIBS += freeipmi 4.0 # .4.0 +SHARED_LIBS += ipmidetect 0.0 # .0.0 +SHARED_LIBS += freeipmi 4.0 # .4.0 +SHARED_LIBS += ipmiconsole 1.1 # .1.1 +SHARED_LIBS += ipmimonitoring 0.1 # .0.1 + +CATEGORIES= sysutils + +HOMEPAGE= http://www.gnu.org/software/freeipmi/ + +MAINTAINER= Peter Stromberg + +# GPL v2 +PERMIT_PACKAGE_CDROM= Yes +PERMIT_PACKAGE_FTP= Yes +PERMIT_DISTFILES_CDROM= Yes +PERMIT_DISTFILES_FTP= Yes + +WANTLIB += c gpg-error m pthread + +MASTER_SITES= ftp://ftp.zresearch.com/pub/freeipmi/${V}/ + +MODULES= devel/gettext +LIB_DEPENDS= gcrypt.>=12::security/libgcrypt \ + ::devel/argp-standalone + +SEPARATE_BUILD= concurrent +USE_GMAKE= Yes +USE_LIBTOOL= Yes +CONFIGURE_STYLE=gnu +CONFIGURE_ARGS+=${CONFIGURE_SHARED} +CONFIGURE_ARGS+=--disable-dependency-tracking +CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" LDFLAGS="-L${LOCALBASE}/lib" + +post-install: + ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/freeipmi + mv ${WRKINST}${SYSCONFDIR}/ipmi_monitoring_sensors.conf ${PREFIX}/share/examples/freeipmi + mv ${WRKINST}${SYSCONFDIR}/sysconfig ${PREFIX}/share/examples/freeipmi + rm -rf ${WRKINST}${SYSCONFDIR}/init.d + rm -rf ${WRKINST}${SYSCONFDIR}/logrotate.d + +.include diff --git a/sysutils/freeipmi/distinfo b/sysutils/freeipmi/distinfo new file mode 100644 index 00000000000..75ac114815b --- /dev/null +++ b/sysutils/freeipmi/distinfo @@ -0,0 +1,5 @@ +MD5 (freeipmi-0.4.6.tar.gz) = z38OpBO4M+d3dVAd/ZfUxQ== +RMD160 (freeipmi-0.4.6.tar.gz) = xGT5C9Goe0qvP9PfeWf7AL3tAQg= +SHA1 (freeipmi-0.4.6.tar.gz) = pojhqY4+ijuVORXx3jKBE+XMa3Y= +SHA256 (freeipmi-0.4.6.tar.gz) = 7BMeTG6uMSHWLEx+PtGl17SXwSEOho063X8L+x7Ny/o= +SIZE (freeipmi-0.4.6.tar.gz) = 1479077 diff --git a/sysutils/freeipmi/patches/patch-bmc-config_Makefile_in b/sysutils/freeipmi/patches/patch-bmc-config_Makefile_in new file mode 100644 index 00000000000..3fae75582ab --- /dev/null +++ b/sysutils/freeipmi/patches/patch-bmc-config_Makefile_in @@ -0,0 +1,12 @@ +$OpenBSD: patch-bmc-config_Makefile_in,v 1.1.1.1 2007/10/25 18:17:02 wilfried Exp $ +--- bmc-config/Makefile.in.orig Thu Oct 11 17:58:25 2007 ++++ bmc-config/Makefile.in Tue Oct 23 18:30:25 2007 +@@ -605,7 +605,7 @@ uninstall-man: uninstall-man5 uninstall-man8 + + + $(MANS_CPP): $(MANS_CPP:%=%.pre) +- cpp -P -I. -x c $@.pre -o $@ ++ cpp -P -I. -x c < $@.pre > $@ + # Tell versions [3.59,3.63) of GNU make to not export all variables. + # Otherwise a system limit (for SysV at least) may be exceeded. + .NOEXPORT: diff --git a/sysutils/freeipmi/patches/patch-bmc-info_Makefile_in b/sysutils/freeipmi/patches/patch-bmc-info_Makefile_in new file mode 100644 index 00000000000..9d5dbff94c6 --- /dev/null +++ b/sysutils/freeipmi/patches/patch-bmc-info_Makefile_in @@ -0,0 +1,12 @@ +$OpenBSD: patch-bmc-info_Makefile_in,v 1.1.1.1 2007/10/25 18:17:02 wilfried Exp $ +--- bmc-info/Makefile.in.orig Thu Oct 11 17:58:26 2007 ++++ bmc-info/Makefile.in Tue Oct 23 18:30:37 2007 +@@ -556,7 +556,7 @@ uninstall-man: uninstall-man8 + + + $(MANS_CPP): $(MANS_CPP:%=%.pre) +- cpp -P -I. -x c $@.pre -o $@ ++ cpp -P -I. -x c < $@.pre > $@ + # Tell versions [3.59,3.63) of GNU make to not export all variables. + # Otherwise a system limit (for SysV at least) may be exceeded. + .NOEXPORT: diff --git a/sysutils/freeipmi/patches/patch-common_src_ipmi-sdr-cache_c b/sysutils/freeipmi/patches/patch-common_src_ipmi-sdr-cache_c new file mode 100644 index 00000000000..6830133ce9a --- /dev/null +++ b/sysutils/freeipmi/patches/patch-common_src_ipmi-sdr-cache_c @@ -0,0 +1,27 @@ +$OpenBSD: patch-common_src_ipmi-sdr-cache_c,v 1.1.1.1 2007/10/25 18:17:02 wilfried Exp $ +--- common/src/ipmi-sdr-cache.c.orig Wed Oct 10 06:54:44 2007 ++++ common/src/ipmi-sdr-cache.c Tue Oct 23 17:21:22 2007 +@@ -173,7 +173,11 @@ _get_home_directory (sdr_cache_ctx_t ctx, + unsigned int homebuflen) + { + uid_t user_id; ++#ifdef HAVE_GETPWUID_R + struct passwd *user_passwd = alloca (sizeof (*user_passwd)); ++#else ++ struct passwd *user_passwd; ++#endif + long int buf_len; + char *buf; + int ret; +@@ -196,7 +200,11 @@ _get_home_directory (sdr_cache_ctx_t ctx, + } + + user_id = getuid (); ++#ifdef HAVE_GETPWUID_R + if (getpwuid_r (user_id, user_passwd, buf, buf_len, &user_passwd) != 0) ++#else ++ if ((user_passwd = getpwuid (user_id)) == 0) ++#endif + { + ctx->errnum = SDR_CACHE_CTX_ERR_INTERNAL; + return -1; diff --git a/sysutils/freeipmi/patches/patch-common_src_pstdout_c b/sysutils/freeipmi/patches/patch-common_src_pstdout_c new file mode 100644 index 00000000000..22fef5ffb80 --- /dev/null +++ b/sysutils/freeipmi/patches/patch-common_src_pstdout_c @@ -0,0 +1,110 @@ +$OpenBSD: patch-common_src_pstdout_c,v 1.1.1.1 2007/10/25 18:17:02 wilfried Exp $ +--- common/src/pstdout.c.orig Sat Apr 28 19:26:47 2007 ++++ common/src/pstdout.c Tue Oct 23 16:58:53 2007 +@@ -83,8 +83,8 @@ struct pstdout_thread_data { + struct pstdout_state { + uint32_t magic; + char *hostname; +- cbuf_t stdout; +- cbuf_t stderr; ++ cbuf_t my_stdout; ++ cbuf_t my_stderr; + char *buffer_stdout; + char *buffer_stderr; + unsigned int buffer_stdout_len; +@@ -495,8 +495,8 @@ _pstdout_print(pstdout_state_t pstate, + + assert(pstate); + assert(pstate->magic == PSTDOUT_STATE_MAGIC); +- assert(pstate->stdout); +- assert(pstate->stderr); ++ assert(pstate->my_stdout); ++ assert(pstate->my_stderr); + assert(stream); + assert(stream == stdout || stream == stderr); + assert(format); +@@ -504,7 +504,7 @@ _pstdout_print(pstdout_state_t pstate, + + if (stream == stdout) + { +- whichcbuf = pstate->stdout; ++ whichcbuf = pstate->my_stdout; + whichdefaultmask = PSTDOUT_OUTPUT_STDOUT_DEFAULT; + whichprependmask = PSTDOUT_OUTPUT_STDOUT_PREPEND_HOSTNAME; + whichbuffermask = PSTDOUT_OUTPUT_BUFFER_STDOUT; +@@ -514,7 +514,7 @@ _pstdout_print(pstdout_state_t pstate, + } + else + { +- whichcbuf = pstate->stderr; ++ whichcbuf = pstate->my_stderr; + whichdefaultmask = PSTDOUT_OUTPUT_STDERR_DEFAULT; + whichprependmask = PSTDOUT_OUTPUT_STDERR_PREPEND_HOSTNAME; + whichbuffermask = PSTDOUT_OUTPUT_BUFFER_STDERR; +@@ -796,14 +796,14 @@ _pstdout_state_init(pstdout_state_t pstate, char *host + pstate->magic = PSTDOUT_STATE_MAGIC; + pstate->hostname = hostname; + +- if (!(pstate->stdout = cbuf_create(PSTDOUT_STATE_CBUF_MIN, PSTDOUT_STATE_CBUF_MAX))) ++ if (!(pstate->my_stdout = cbuf_create(PSTDOUT_STATE_CBUF_MIN, PSTDOUT_STATE_CBUF_MAX))) + { + if (pstdout_debug_flags & PSTDOUT_DEBUG_STANDARD) + fprintf(stderr, "cbuf_create: %s\n", strerror(errno)); + pstdout_errnum = PSTDOUT_ERR_INTERNAL; + return -1; + } +- if (!(pstate->stderr = cbuf_create(PSTDOUT_STATE_CBUF_MIN, PSTDOUT_STATE_CBUF_MAX))) ++ if (!(pstate->my_stderr = cbuf_create(PSTDOUT_STATE_CBUF_MIN, PSTDOUT_STATE_CBUF_MAX))) + { + if (pstdout_debug_flags & PSTDOUT_DEBUG_STANDARD) + fprintf(stderr, "cbuf_create: %s\n", strerror(errno)); +@@ -839,8 +839,8 @@ _pstdout_output_buffer_data(pstdout_state_t pstate, + { + assert(pstate); + assert(pstate->magic == PSTDOUT_STATE_MAGIC); +- assert(pstate->stdout); +- assert(pstate->stderr); ++ assert(pstate->my_stdout); ++ assert(pstate->my_stderr); + assert(stream); + assert(stream == stdout || stream == stderr); + assert(whichbuffer); +@@ -942,8 +942,8 @@ _pstdout_output_finish(pstdout_state_t pstate) + + assert(pstate); + assert(pstate->magic == PSTDOUT_STATE_MAGIC); +- assert(pstate->stdout); +- assert(pstate->stderr); ++ assert(pstate->my_stdout); ++ assert(pstate->my_stderr); + + if ((rc = pthread_mutex_lock(&(pstate->mutex)))) + { +@@ -957,10 +957,10 @@ _pstdout_output_finish(pstdout_state_t pstate) + /* If there is remaining junk in the cbufs, write a "\n" to it so we + * finish off the line and get it flushed out. + */ +- if (!cbuf_is_empty(pstate->stdout)) ++ if (!cbuf_is_empty(pstate->my_stdout)) + _pstdout_print_wrapper(pstate, 1, stdout, "\n"); + +- if (!cbuf_is_empty(pstate->stderr)) ++ if (!cbuf_is_empty(pstate->my_stderr)) + _pstdout_print_wrapper(pstate, 1, stderr, "\n"); + + if (_pstdout_output_buffer_data(pstate, +@@ -1008,10 +1008,10 @@ _pstdout_state_cleanup(pstdout_state_t pstate) + assert(pstate); + assert(pstate->magic == PSTDOUT_STATE_MAGIC); + +- if (pstate->stdout) +- cbuf_destroy(pstate->stdout); +- if (pstate->stderr) +- cbuf_destroy(pstate->stderr); ++ if (pstate->my_stdout) ++ cbuf_destroy(pstate->my_stdout); ++ if (pstate->my_stderr) ++ cbuf_destroy(pstate->my_stderr); + if (pstate->buffer_stdout) + free(pstate->buffer_stdout); + if (pstate->buffer_stderr) diff --git a/sysutils/freeipmi/patches/patch-configure b/sysutils/freeipmi/patches/patch-configure new file mode 100644 index 00000000000..f9fc35a9f57 --- /dev/null +++ b/sysutils/freeipmi/patches/patch-configure @@ -0,0 +1,22 @@ +$OpenBSD: patch-configure,v 1.1.1.1 2007/10/25 18:17:02 wilfried Exp $ +--- configure.orig Thu Oct 11 17:58:33 2007 ++++ configure Tue Oct 23 18:52:24 2007 +@@ -3756,6 +3756,10 @@ nto-qnx*) + ;; + + openbsd*) ++ case $host_cpu in ++ i386) IOPL_LIBS="-li386";; ++ x86_64) IOPL_LIBS="-lamd64";; ++ esac + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' + else +@@ -23859,6 +23863,7 @@ s,@am__leading_dot@,$am__leading_dot,;t t + s,@AMTAR@,$AMTAR,;t t + s,@am__tar@,$am__tar,;t t + s,@am__untar@,$am__untar,;t t ++s,@IOPL_LIBS@,$IOPL_LIBS,;t t + s,@ISODATE@,$ISODATE,;t t + s,@LIBFREEIPMI_VERSION@,$LIBFREEIPMI_VERSION,;t t + s,@LIBFREEIPMI_VERSION_INFO@,$LIBFREEIPMI_VERSION_INFO,;t t diff --git a/sysutils/freeipmi/patches/patch-ipmi-chassis_Makefile_in b/sysutils/freeipmi/patches/patch-ipmi-chassis_Makefile_in new file mode 100644 index 00000000000..ca764a4efe8 --- /dev/null +++ b/sysutils/freeipmi/patches/patch-ipmi-chassis_Makefile_in @@ -0,0 +1,12 @@ +$OpenBSD: patch-ipmi-chassis_Makefile_in,v 1.1.1.1 2007/10/25 18:17:02 wilfried Exp $ +--- ipmi-chassis/Makefile.in.orig Thu Oct 11 17:58:27 2007 ++++ ipmi-chassis/Makefile.in Tue Oct 23 18:29:14 2007 +@@ -556,7 +556,7 @@ uninstall-man: uninstall-man8 + + + $(MANS_CPP): $(MANS_CPP:%=%.pre) +- cpp -P -I. -x c $@.pre -o $@ ++ cpp -P -I. -x c < $@.pre > $@ + # Tell versions [3.59,3.63) of GNU make to not export all variables. + # Otherwise a system limit (for SysV at least) may be exceeded. + .NOEXPORT: diff --git a/sysutils/freeipmi/patches/patch-ipmi-fru_Makefile_in b/sysutils/freeipmi/patches/patch-ipmi-fru_Makefile_in new file mode 100644 index 00000000000..aa1f5c563ce --- /dev/null +++ b/sysutils/freeipmi/patches/patch-ipmi-fru_Makefile_in @@ -0,0 +1,12 @@ +$OpenBSD: patch-ipmi-fru_Makefile_in,v 1.1.1.1 2007/10/25 18:17:02 wilfried Exp $ +--- ipmi-fru/Makefile.in.orig Thu Oct 11 17:58:27 2007 ++++ ipmi-fru/Makefile.in Tue Oct 23 18:25:33 2007 +@@ -556,7 +556,7 @@ uninstall-man: uninstall-man8 + + + $(MANS_CPP): $(MANS_CPP:%=%.pre) +- cpp -P -I. -x c $@.pre -o $@ ++ cpp -P -I. -x c < $@.pre > $@ + # Tell versions [3.59,3.63) of GNU make to not export all variables. + # Otherwise a system limit (for SysV at least) may be exceeded. + .NOEXPORT: diff --git a/sysutils/freeipmi/patches/patch-ipmi-raw_Makefile_in b/sysutils/freeipmi/patches/patch-ipmi-raw_Makefile_in new file mode 100644 index 00000000000..cd015bef978 --- /dev/null +++ b/sysutils/freeipmi/patches/patch-ipmi-raw_Makefile_in @@ -0,0 +1,12 @@ +$OpenBSD: patch-ipmi-raw_Makefile_in,v 1.1.1.1 2007/10/25 18:17:02 wilfried Exp $ +--- ipmi-raw/Makefile.in.orig Thu Oct 11 17:58:27 2007 ++++ ipmi-raw/Makefile.in Tue Oct 23 18:27:34 2007 +@@ -556,7 +556,7 @@ uninstall-man: uninstall-man8 + + + $(MANS_CPP): $(MANS_CPP:%=%.pre) +- cpp -P -I. -x c $@.pre -o $@ ++ cpp -P -I. -x c < $@.pre > $@ + # Tell versions [3.59,3.63) of GNU make to not export all variables. + # Otherwise a system limit (for SysV at least) may be exceeded. + .NOEXPORT: diff --git a/sysutils/freeipmi/patches/patch-ipmi-sel_Makefile_in b/sysutils/freeipmi/patches/patch-ipmi-sel_Makefile_in new file mode 100644 index 00000000000..a275c49d1b4 --- /dev/null +++ b/sysutils/freeipmi/patches/patch-ipmi-sel_Makefile_in @@ -0,0 +1,12 @@ +$OpenBSD: patch-ipmi-sel_Makefile_in,v 1.1.1.1 2007/10/25 18:17:02 wilfried Exp $ +--- ipmi-sel/Makefile.in.orig Thu Oct 11 17:58:28 2007 ++++ ipmi-sel/Makefile.in Tue Oct 23 18:29:34 2007 +@@ -556,7 +556,7 @@ uninstall-man: uninstall-man8 + + + $(MANS_CPP): $(MANS_CPP:%=%.pre) +- cpp -P -I. -x c $@.pre -o $@ ++ cpp -P -I. -x c < $@.pre > $@ + # Tell versions [3.59,3.63) of GNU make to not export all variables. + # Otherwise a system limit (for SysV at least) may be exceeded. + .NOEXPORT: diff --git a/sysutils/freeipmi/patches/patch-ipmi-sensors_Makefile_in b/sysutils/freeipmi/patches/patch-ipmi-sensors_Makefile_in new file mode 100644 index 00000000000..0a3a5608190 --- /dev/null +++ b/sysutils/freeipmi/patches/patch-ipmi-sensors_Makefile_in @@ -0,0 +1,12 @@ +$OpenBSD: patch-ipmi-sensors_Makefile_in,v 1.1.1.1 2007/10/25 18:17:02 wilfried Exp $ +--- ipmi-sensors/Makefile.in.orig Thu Oct 11 17:58:28 2007 ++++ ipmi-sensors/Makefile.in Tue Oct 23 18:28:03 2007 +@@ -556,7 +556,7 @@ uninstall-man: uninstall-man8 + + + $(MANS_CPP): $(MANS_CPP:%=%.pre) +- cpp -P -I. -x c $@.pre -o $@ ++ cpp -P -I. -x c < $@.pre > $@ + # Tell versions [3.59,3.63) of GNU make to not export all variables. + # Otherwise a system limit (for SysV at least) may be exceeded. + .NOEXPORT: diff --git a/sysutils/freeipmi/patches/patch-ipmiping_src_Makefile_in b/sysutils/freeipmi/patches/patch-ipmiping_src_Makefile_in new file mode 100644 index 00000000000..f3a5dc0cf97 --- /dev/null +++ b/sysutils/freeipmi/patches/patch-ipmiping_src_Makefile_in @@ -0,0 +1,25 @@ +$OpenBSD: patch-ipmiping_src_Makefile_in,v 1.1.1.1 2007/10/25 18:17:02 wilfried Exp $ +--- ipmiping/src/Makefile.in.orig Thu Oct 11 17:58:30 2007 ++++ ipmiping/src/Makefile.in Tue Oct 23 18:35:26 2007 +@@ -57,8 +57,8 @@ sbinPROGRAMS_INSTALL = $(INSTALL_PROGRAM) + PROGRAMS = $(sbin_PROGRAMS) + am_ipmiping_OBJECTS = ipmiping-ipmiping.$(OBJEXT) + ipmiping_OBJECTS = $(am_ipmiping_OBJECTS) +-ipmiping_DEPENDENCIES = ../../libfreeipmi/src/libfreeipmi.la \ +- ../../common/src/libipmiping.la ++ipmiping_DEPENDENCIES = ../../common/src/libipmiping.la \ ++ ../../libfreeipmi/src/libfreeipmi.la + DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir) + depcomp = $(SHELL) $(top_srcdir)/depcomp + am__depfiles_maybe = depfiles +@@ -196,8 +196,8 @@ sysconfdir = @sysconfdir@ + target_alias = @target_alias@ + ipmiping_SOURCES = ipmiping.c + ipmiping_LDADD = \ +- ../../libfreeipmi/src/libfreeipmi.la \ +- ../../common/src/libipmiping.la ++ ../../common/src/libipmiping.la \ ++ ../../libfreeipmi/src/libfreeipmi.la + + ipmiping_CPPFLAGS = \ + -I$(srcdir)/../../libfreeipmi/include \ diff --git a/sysutils/freeipmi/patches/patch-ipmipower_src_wrappers_c b/sysutils/freeipmi/patches/patch-ipmipower_src_wrappers_c new file mode 100644 index 00000000000..598dfcf19b5 --- /dev/null +++ b/sysutils/freeipmi/patches/patch-ipmipower_src_wrappers_c @@ -0,0 +1,12 @@ +$OpenBSD: patch-ipmipower_src_wrappers_c,v 1.1.1.1 2007/10/25 18:17:02 wilfried Exp $ +--- ipmipower/src/wrappers.c.orig Fri Dec 15 18:26:44 2006 ++++ ipmipower/src/wrappers.c Tue Oct 23 17:05:32 2007 +@@ -512,7 +512,7 @@ Regexec(const regex_t * preg, const char *string, + int n; + char buf[MAX_REG_BUF]; + +-#ifndef __FreeBSD__ ++#ifdef __LINUX__ + /* Review: undocumented, is it needed? */ + re_syntax_options = RE_SYNTAX_POSIX_EXTENDED; + #endif diff --git a/sysutils/freeipmi/patches/patch-libfreeipmi_src_Makefile_in b/sysutils/freeipmi/patches/patch-libfreeipmi_src_Makefile_in new file mode 100644 index 00000000000..5e54f233fba --- /dev/null +++ b/sysutils/freeipmi/patches/patch-libfreeipmi_src_Makefile_in @@ -0,0 +1,12 @@ +$OpenBSD: patch-libfreeipmi_src_Makefile_in,v 1.1.1.1 2007/10/25 18:17:02 wilfried Exp $ +--- libfreeipmi/src/Makefile.in.orig Thu Oct 11 17:58:32 2007 ++++ libfreeipmi/src/Makefile.in Tue Oct 23 18:09:55 2007 +@@ -186,7 +186,7 @@ LIBIPMICONSOLE_VERSION_INFO = @LIBIPMICONSOLE_VERSION_ + LIBIPMIDETECT_VERSION_INFO = @LIBIPMIDETECT_VERSION_INFO@ + LIBIPMIMONITORING_VERSION_INFO = @LIBIPMIMONITORING_VERSION_INFO@ + LIBOBJS = @LIBOBJS@ +-LIBS = @LIBS@ ++LIBS = @LIBS@ @PTHREAD_CFLAGS@ @IOPL_LIBS@ + LIBTOOL = @LIBTOOL@ + LN_S = @LN_S@ + LTLIBOBJS = @LTLIBOBJS@ diff --git a/sysutils/freeipmi/patches/patch-libfreeipmi_src_ipmi-kcs-api_c b/sysutils/freeipmi/patches/patch-libfreeipmi_src_ipmi-kcs-api_c new file mode 100644 index 00000000000..8a7ddbe0d35 --- /dev/null +++ b/sysutils/freeipmi/patches/patch-libfreeipmi_src_ipmi-kcs-api_c @@ -0,0 +1,27 @@ +$OpenBSD: patch-libfreeipmi_src_ipmi-kcs-api_c,v 1.1.1.1 2007/10/25 18:17:02 wilfried Exp $ +--- libfreeipmi/src/ipmi-kcs-api.c.orig Sat Jun 2 20:18:29 2007 ++++ libfreeipmi/src/ipmi-kcs-api.c Tue Oct 23 18:55:45 2007 +@@ -350,7 +350,22 @@ ipmi_kcs_ctx_io_init(ipmi_kcs_ctx_t ctx) + if (!(ctx && ctx->magic == IPMI_KCS_CTX_MAGIC)) + return (-1); + +-#ifdef __FreeBSD__ ++#ifdef __OpenBSD__ ++# if defined(__amd64__) ++ if (amd64_iopl (3) < 0) ++# elif defined(__i386__) ++ if (i386_iopl (3) < 0) ++# else ++ if (0) ++# endif ++ { ++ if (errno == EPERM || errno == EACCES) ++ ctx->errnum = IPMI_KCS_CTX_ERR_PERMISSION; ++ else ++ ERR_LOG(ctx->errnum = IPMI_KCS_CTX_ERR_INTERNAL); ++ return (-1); ++ } ++#elif __FreeBSD__ + #ifdef USE_IOPERM + /* i386_set_ioperm has known problems on FBSD 5.x (bus errors). */ + if (i386_set_ioperm (ctx->driver_address, 0x02, 0x01) != 0) diff --git a/sysutils/freeipmi/patches/patch-libfreeipmi_src_ipmi-openipmi-api_c b/sysutils/freeipmi/patches/patch-libfreeipmi_src_ipmi-openipmi-api_c new file mode 100644 index 00000000000..aacf67f8f15 --- /dev/null +++ b/sysutils/freeipmi/patches/patch-libfreeipmi_src_ipmi-openipmi-api_c @@ -0,0 +1,12 @@ +$OpenBSD: patch-libfreeipmi_src_ipmi-openipmi-api_c,v 1.1.1.1 2007/10/25 18:17:02 wilfried Exp $ +--- libfreeipmi/src/ipmi-openipmi-api.c.orig Sat Jun 2 20:18:29 2007 ++++ libfreeipmi/src/ipmi-openipmi-api.c Tue Oct 23 16:37:57 2007 +@@ -107,7 +107,7 @@ struct ipmi_recv + #define IPMI_IOC_MAGIC 'i' + #define IPMICTL_RECEIVE_MSG_TRUNC _IOWR(IPMI_IOC_MAGIC, 11, struct ipmi_recv) + #define IPMICTL_RECEIVE_MSG _IOWR(IPMI_IOC_MAGIC, 12, struct ipmi_recv) +-#if defined(__FreeBSD__) ++#ifndef __LINUX__ + #define IPMICTL_SEND_COMMAND _IOW(IPMI_IOC_MAGIC, 13, struct ipmi_req) + #define IPMICTL_SET_MY_ADDRESS_CMD _IOW(IPMI_IOC_MAGIC, 17, unsigned int) + #else diff --git a/sysutils/freeipmi/patches/patch-libfreeipmi_src_ipmi-semaphores_h b/sysutils/freeipmi/patches/patch-libfreeipmi_src_ipmi-semaphores_h new file mode 100644 index 00000000000..7f3965e3423 --- /dev/null +++ b/sysutils/freeipmi/patches/patch-libfreeipmi_src_ipmi-semaphores_h @@ -0,0 +1,12 @@ +$OpenBSD: patch-libfreeipmi_src_ipmi-semaphores_h,v 1.1.1.1 2007/10/25 18:17:02 wilfried Exp $ +--- libfreeipmi/src/ipmi-semaphores.h.orig Tue Jul 18 22:33:04 2006 ++++ libfreeipmi/src/ipmi-semaphores.h Tue Oct 23 16:36:02 2007 +@@ -77,7 +77,7 @@ do { \ + + #define IPMI_MUTEX_UP(semid) IPMI_MUTEX_UNLOCK (semid) + +-#if defined(__FreeBSD__) ++#ifndef __LINUX__ + /* union semun is defined by including */ + #else + /* according to X/OPEN we have to define it ourselves */ diff --git a/sysutils/freeipmi/patches/patch-libfreeipmi_src_ipmi-smic-api_c b/sysutils/freeipmi/patches/patch-libfreeipmi_src_ipmi-smic-api_c new file mode 100644 index 00000000000..1f6ec135c56 --- /dev/null +++ b/sysutils/freeipmi/patches/patch-libfreeipmi_src_ipmi-smic-api_c @@ -0,0 +1,20 @@ +$OpenBSD: patch-libfreeipmi_src_ipmi-smic-api_c,v 1.1.1.1 2007/10/25 18:17:02 wilfried Exp $ +--- libfreeipmi/src/ipmi-smic-api.c.orig Sat Jun 2 20:18:29 2007 ++++ libfreeipmi/src/ipmi-smic-api.c Tue Oct 23 17:56:48 2007 +@@ -135,7 +135,15 @@ ipmi_smic_io_init (uint8_t sms_io_base, unsigned long + { + smic_sleep_usecs = sleep_usecs; + +-#ifdef __FreeBSD__ ++#ifdef __OpenBSD__ ++# if defined(__amd64__) ++ return (amd64_iopl (3)); ++# elif defined(__i386__) ++ return (i386_iopl (3)); ++# else ++ return (-1); ++# endif ++#elif __FreeBSD__ + #ifdef USE_IOPERM + /* i386_set_ioperm has known problems on FBSD 5.x (bus errors). */ + return (i386_set_ioperm(sms_io_base, 0x02, 0x01)); diff --git a/sysutils/freeipmi/patches/patch-pef-config_Makefile_in b/sysutils/freeipmi/patches/patch-pef-config_Makefile_in new file mode 100644 index 00000000000..7dabbf2e601 --- /dev/null +++ b/sysutils/freeipmi/patches/patch-pef-config_Makefile_in @@ -0,0 +1,12 @@ +$OpenBSD: patch-pef-config_Makefile_in,v 1.1.1.1 2007/10/25 18:17:02 wilfried Exp $ +--- pef-config/Makefile.in.orig Thu Oct 11 17:58:32 2007 ++++ pef-config/Makefile.in Tue Oct 23 18:37:53 2007 +@@ -556,7 +556,7 @@ uninstall-man: uninstall-man8 + + + $(MANS_CPP): $(MANS_CPP:%=%.pre) +- cpp -P -I. -x c $@.pre -o $@ ++ cpp -P -I. -x c < $@.pre > $@ + # Tell versions [3.59,3.63) of GNU make to not export all variables. + # Otherwise a system limit (for SysV at least) may be exceeded. + .NOEXPORT: diff --git a/sysutils/freeipmi/patches/patch-rmcpping_src_Makefile_in b/sysutils/freeipmi/patches/patch-rmcpping_src_Makefile_in new file mode 100644 index 00000000000..96424a4565c --- /dev/null +++ b/sysutils/freeipmi/patches/patch-rmcpping_src_Makefile_in @@ -0,0 +1,25 @@ +$OpenBSD: patch-rmcpping_src_Makefile_in,v 1.1.1.1 2007/10/25 18:17:02 wilfried Exp $ +--- rmcpping/src/Makefile.in.orig Thu Oct 11 17:58:32 2007 ++++ rmcpping/src/Makefile.in Tue Oct 23 18:36:05 2007 +@@ -57,8 +57,8 @@ sbinPROGRAMS_INSTALL = $(INSTALL_PROGRAM) + PROGRAMS = $(sbin_PROGRAMS) + am_rmcpping_OBJECTS = rmcpping-rmcpping.$(OBJEXT) + rmcpping_OBJECTS = $(am_rmcpping_OBJECTS) +-rmcpping_DEPENDENCIES = ../../libfreeipmi/src/libfreeipmi.la \ +- ../../common/src/libipmiping.la ++rmcpping_DEPENDENCIES = ../../common/src/libipmiping.la \ ++ ../../libfreeipmi/src/libfreeipmi.la + DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir) + depcomp = $(SHELL) $(top_srcdir)/depcomp + am__depfiles_maybe = depfiles +@@ -196,8 +196,8 @@ sysconfdir = @sysconfdir@ + target_alias = @target_alias@ + rmcpping_SOURCES = rmcpping.c + rmcpping_LDADD = \ +- ../../libfreeipmi/src/libfreeipmi.la \ +- ../../common/src/libipmiping.la ++ ../../common/src/libipmiping.la \ ++ ../../libfreeipmi/src/libfreeipmi.la + + rmcpping_CPPFLAGS = \ + -I$(srcdir)/../../libfreeipmi/include \ diff --git a/sysutils/freeipmi/pkg/DESCR b/sysutils/freeipmi/pkg/DESCR new file mode 100644 index 00000000000..62ce6ec244f --- /dev/null +++ b/sysutils/freeipmi/pkg/DESCR @@ -0,0 +1,29 @@ +FreeIPMI is a collection of Intelligent Platform Management IPMI +system software. It provides in-band and out-of-band software and +a development library conforming to the Intelligent Platform +Management Interface (IPMI v1.5 and v2.0) standards. + +The FreeIPMI project currently includes: + +* Libfreeipmi - OpenIPMI, KCS, SMIC, SSIF, LAN drivers, and an IPMI + API in a C Library +* Bmc-info - A tool to read information about the local BMC. +* Bmc-config - A BMC configuration tool. +* Bmc-watchdog - A BMC Watchdog tool/daemon. +* Ipmi-chassis - An IPMI Chassis management tool. +* Ipmi-fru - A field replaceable unit (FRU) reading tool +* Ipmi-locate - A tool to probe for an IPMI BMC Device. +* Ipmi-raw - A raw interface for IPMI commands. +* Ipmi-sel - An IPMI System Event Log (SEL) reading tool. +* Ipmi-sensors - An IPMI sensor reading tool. +* Ipmiconsole - A Serial-over-Lan (SOL) console tool. +* Libipmiconsole - A library for Serial-over-Lan (SOL). +* Ipmidetect/Ipmidetectd/libipmidetect - A tool, daemon, and library + for IPMI node detection. +* Ipmimonitoring/Libipmimonitoring - A tool and library for sensor + monitoring. +* Ipmipower - An IPMI power control tool. +* Ipmiping - An IPMI ping tool for debugging. +* Rmcpping - An RMCP ping tool for debugging. +* Pef-config - An IPMI Platform Event Filtering (PEF) Configuration + tool. diff --git a/sysutils/freeipmi/pkg/PFRAG.shared b/sysutils/freeipmi/pkg/PFRAG.shared new file mode 100644 index 00000000000..14eec90c535 --- /dev/null +++ b/sysutils/freeipmi/pkg/PFRAG.shared @@ -0,0 +1,4 @@ +@comment $OpenBSD: PFRAG.shared,v 1.1.1.1 2007/10/25 18:17:02 wilfried Exp $ +@lib lib/libipmiconsole.so.${LIBipmiconsole_VERSION} +@lib lib/libipmidetect.so.${LIBipmidetect_VERSION} +@lib lib/libipmimonitoring.so.${LIBipmimonitoring_VERSION} diff --git a/sysutils/freeipmi/pkg/PLIST b/sysutils/freeipmi/pkg/PLIST new file mode 100644 index 00000000000..c1d90c910a3 --- /dev/null +++ b/sysutils/freeipmi/pkg/PLIST @@ -0,0 +1,180 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2007/10/25 18:17:02 wilfried Exp $ +%%SHARED%% +include/freeipmi/ +include/freeipmi/fiid.h +include/freeipmi/freeipmi.h +include/freeipmi/ipmi-authentication-type-spec.h +include/freeipmi/ipmi-bmc-watchdog-timer-cmds.h +include/freeipmi/ipmi-channel-spec.h +include/freeipmi/ipmi-chassis-boot-options-parameter-spec.h +include/freeipmi/ipmi-chassis-cmds.h +include/freeipmi/ipmi-cipher-suite-spec.h +include/freeipmi/ipmi-cmd-spec.h +include/freeipmi/ipmi-comp-code-spec.h +include/freeipmi/ipmi-crypt.h +include/freeipmi/ipmi-debug.h +include/freeipmi/ipmi-device-global-cmds.h +include/freeipmi/ipmi-error.h +include/freeipmi/ipmi-fru-information-storage-definition.h +include/freeipmi/ipmi-fru-inventory-device-cmds.h +include/freeipmi/ipmi-ipmb-interface.h +include/freeipmi/ipmi-kcs-api.h +include/freeipmi/ipmi-kcs.h +include/freeipmi/ipmi-lan-cmds.h +include/freeipmi/ipmi-lan-interface.h +include/freeipmi/ipmi-lan-parameter-spec.h +include/freeipmi/ipmi-lan-utils.h +include/freeipmi/ipmi-lan.h +include/freeipmi/ipmi-locate.h +include/freeipmi/ipmi-messaging-support-cmds.h +include/freeipmi/ipmi-netfn-spec.h +include/freeipmi/ipmi-openipmi-api.h +include/freeipmi/ipmi-pef-and-alerting-cmds.h +include/freeipmi/ipmi-pef-parameter-spec.h +include/freeipmi/ipmi-privilege-level-spec.h +include/freeipmi/ipmi-rmcpplus-interface.h +include/freeipmi/ipmi-rmcpplus-status-spec.h +include/freeipmi/ipmi-rmcpplus-support-and-payload-cmds.h +include/freeipmi/ipmi-rmcpplus-utils.h +include/freeipmi/ipmi-rmcpplus.h +include/freeipmi/ipmi-sdr-record-types.h +include/freeipmi/ipmi-sdr-repository-cmds.h +include/freeipmi/ipmi-sel-cmds.h +include/freeipmi/ipmi-sel-record-types.h +include/freeipmi/ipmi-sensor-and-event-code-tables.h +include/freeipmi/ipmi-sensor-cmds.h +include/freeipmi/ipmi-sensor-types-spec.h +include/freeipmi/ipmi-sensor-units-spec.h +include/freeipmi/ipmi-sensor-utils.h +include/freeipmi/ipmi-serial-modem-cmds.h +include/freeipmi/ipmi-serial-modem-parameter-spec.h +include/freeipmi/ipmi-slave-address-spec.h +include/freeipmi/ipmi-smic-api.h +include/freeipmi/ipmi-sol-cmds.h +include/freeipmi/ipmi-sol-parameter-spec.h +include/freeipmi/ipmi-ssif-api.h +include/freeipmi/ipmi-utils.h +include/freeipmi/rmcp-utils.h +include/freeipmi/rmcp.h +include/freeipmi/udm/ +include/freeipmi/udm/ipmi-chassis-cmds-udm.h +include/freeipmi/udm/ipmi-device-global-cmds-udm.h +include/freeipmi/udm/ipmi-fru-inventory-device-cmds-udm.h +include/freeipmi/udm/ipmi-kcs-api-udm.h +include/freeipmi/udm/ipmi-lan-cmds-udm.h +include/freeipmi/udm/ipmi-lan-interface-udm.h +include/freeipmi/udm/ipmi-messaging-support-cmds-udm.h +include/freeipmi/udm/ipmi-openipmi-api-udm.h +include/freeipmi/udm/ipmi-pef-and-alerting-cmds-udm.h +include/freeipmi/udm/ipmi-rmcpplus-support-and-payload-cmds-udm.h +include/freeipmi/udm/ipmi-sdr-repository-cmds-udm.h +include/freeipmi/udm/ipmi-sel-cmds-udm.h +include/freeipmi/udm/ipmi-sensor-cmds-udm.h +include/freeipmi/udm/ipmi-serial-modem-cmds-udm.h +include/freeipmi/udm/ipmi-sol-cmds-udm.h +include/freeipmi/udm/ipmi-ssif-api-udm.h +include/freeipmi/udm/ipmi-udm.h +include/freeipmi/udm/udm.h +include/ipmi_monitoring.h +include/ipmiconsole.h +include/ipmidetect.h +@info info/freeipmi-faq.info +lib/libfreeipmi.a +lib/libfreeipmi.la +lib/libipmiconsole.a +lib/libipmiconsole.la +lib/libipmidetect.a +lib/libipmidetect.la +lib/libipmimonitoring.a +lib/libipmimonitoring.la +@man man/man3/libipmiconsole.3 +@man man/man3/libipmidetect.3 +@man man/man3/libipmimonitoring.3 +@man man/man5/bmc-config.conf.5 +@man man/man5/ipmiconsole.conf.5 +@man man/man5/ipmidetect.conf.5 +@man man/man5/ipmidetectd.conf.5 +@man man/man5/ipmipower.conf.5 +@man man/man8/bmc-autoconfig.8 +@man man/man8/bmc-config.8 +@man man/man8/bmc-info.8 +@man man/man8/bmc-watchdog.8 +@man man/man8/ipmi-chassis.8 +@man man/man8/ipmi-fru.8 +@man man/man8/ipmi-locate.8 +@man man/man8/ipmi-raw.8 +@man man/man8/ipmi-sel.8 +@man man/man8/ipmi-sensors.8 +@man man/man8/ipmiconsole.8 +@man man/man8/ipmidetect.8 +@man man/man8/ipmidetectd.8 +@man man/man8/ipmimonitoring.8 +@man man/man8/ipmiping.8 +@man man/man8/ipmipower.8 +@man man/man8/pef-config.8 +@man man/man8/rmcpping.8 +sbin/bmc-autoconfig +sbin/bmc-config +sbin/bmc-info +sbin/bmc-watchdog +sbin/ipmi-chassis +sbin/ipmi-fru +sbin/ipmi-locate +sbin/ipmi-raw +sbin/ipmi-sel +sbin/ipmi-sensors +sbin/ipmiconsole +sbin/ipmidetect +sbin/ipmidetectd +sbin/ipmimonitoring +sbin/ipmiping +sbin/ipmipower +sbin/pef-config +sbin/rmcpping +share/doc/freeipmi/ +share/doc/freeipmi/AUTHORS +share/doc/freeipmi/COPYING +share/doc/freeipmi/COPYING.ZRESEARCH +share/doc/freeipmi/COPYING.bmc-watchdog +share/doc/freeipmi/COPYING.ipmi-fru +share/doc/freeipmi/COPYING.ipmiconsole +share/doc/freeipmi/COPYING.ipmidetect +share/doc/freeipmi/COPYING.ipmimonitoring +share/doc/freeipmi/COPYING.ipmiping +share/doc/freeipmi/COPYING.ipmipower +share/doc/freeipmi/COPYING.pstdout +share/doc/freeipmi/COPYING.rmcpping +share/doc/freeipmi/ChangeLog +share/doc/freeipmi/ChangeLog.0 +share/doc/freeipmi/DISCLAIMER.bmc-watchdog +share/doc/freeipmi/DISCLAIMER.ipmi-fru +share/doc/freeipmi/DISCLAIMER.ipmiconsole +share/doc/freeipmi/DISCLAIMER.ipmidetect +share/doc/freeipmi/DISCLAIMER.ipmimonitoring +share/doc/freeipmi/DISCLAIMER.ipmiping +share/doc/freeipmi/DISCLAIMER.ipmipower +share/doc/freeipmi/DISCLAIMER.pstdout +share/doc/freeipmi/DISCLAIMER.rmcpping +share/doc/freeipmi/INSTALL +share/doc/freeipmi/NEWS +share/doc/freeipmi/README +share/doc/freeipmi/TODO +share/doc/freeipmi/freeipmi-coding.txt +share/doc/freeipmi/freeipmi-hostrange.txt +share/doc/freeipmi/freeipmi-libraries.txt +share/examples/freeipmi/ +share/examples/freeipmi/ipmi_monitoring_sensors.conf +@sample ${SYSCONFDIR}/ipmi_monitoring_sensors.conf +share/examples/freeipmi/sysconfig/ +@sample ${SYSCONFDIR}/sysconfig/ +share/examples/freeipmi/sysconfig/freeipmi-bmc-watchdog +@sample ${SYSCONFDIR}/sysconfig/freeipmi-bmc-watchdog +@comment var/ +var/cache/ +var/cache/ipmimonitoringsdrcache/ +var/lib/ +var/lib/freeipmi/ +var/lib/freeipmi/bmc-config-template +var/lib/freeipmi/ipckey +@comment var/log/ +var/log/freeipmi/