summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNorikatsu Shigemura <nork@FreeBSD.org>2004-12-23 10:55:45 +0000
committerNorikatsu Shigemura <nork@FreeBSD.org>2004-12-23 10:55:45 +0000
commit880904876596fb411e373d3ba1810181656f719e (patch)
tree5e954393ca51c97b9e745525296fcae35a59ca61
parentUpdate to 1.2.6 (diff)
Add freeipmi 0.1.3, library and tools to support
IPMI-capable hardware. PR: ports/73249 Submitted by: Dmitry Frolov <frol@nov.net>
Notes
Notes: svn path=/head/; revision=124965
-rw-r--r--sysutils/Makefile1
-rw-r--r--sysutils/freeipmi/Makefile51
-rw-r--r--sysutils/freeipmi/distinfo4
-rw-r--r--sysutils/freeipmi/files/patch-Makefile.in11
-rw-r--r--sysutils/freeipmi/files/patch-bmc-watchdog-Makefile.in25
-rw-r--r--sysutils/freeipmi/files/patch-fish-Makefile.in13
-rw-r--r--sysutils/freeipmi/files/patch-fish-extensions-Makefile.in13
-rw-r--r--sysutils/freeipmi/pkg-descr4
-rw-r--r--sysutils/freeipmi/pkg-install27
-rw-r--r--sysutils/freeipmi/pkg-plist75
10 files changed, 224 insertions, 0 deletions
diff --git a/sysutils/Makefile b/sysutils/Makefile
index 487675424933..2bb53e253966 100644
--- a/sysutils/Makefile
+++ b/sysutils/Makefile
@@ -141,6 +141,7 @@
SUBDIR += freebsd-sha1
SUBDIR += freecolor
SUBDIR += freedt
+ SUBDIR += freeipmi
SUBDIR += freesbie
SUBDIR += ftrace
SUBDIR += fvcool
diff --git a/sysutils/freeipmi/Makefile b/sysutils/freeipmi/Makefile
new file mode 100644
index 000000000000..9928ecac537d
--- /dev/null
+++ b/sysutils/freeipmi/Makefile
@@ -0,0 +1,51 @@
+# New ports collection makefile for: freeipmi
+# Date created: 20/Oct/2004
+# Whom: Dmitry Frolov <frol@nov.net>
+#
+# $FreeBSD$
+#
+
+PORTNAME= freeipmi
+PORTVERSION= 0.1.3
+CATEGORIES= sysutils
+MASTER_SITES= ftp://ftp.californiadigital.com/pub/${PORTNAME}/download/${PORTVERSION}/
+
+PATCH_SITES= ftp://ftp.riss-telecom.ru/pub/patches/
+PATCHFILES= ${DISTNAME}-fbsd.diff
+
+MAINTAINER= frolov@riss-telecom.ru
+COMMENT= Library and tools to support IPMI-capable hardware
+
+LIB_DEPENDS+= guile:${PORTSDIR}/lang/guile
+BUILD_DEPENDS+= ${LOCALBASE}/lib/libargp.a:${PORTSDIR}/devel/argp-standalone
+
+USE_REINPLACE= yes
+USE_LIBTOOL_VER= 15
+USE_GMAKE= yes
+GNU_CONFIGURE= yes
+INSTALLS_SHLIB= yes
+PLIST_SUB+= SHLIBVER=${SHLIBVER} RUNDIR=${RUNDIR} LOGDIR=${LOGDIR}
+MAN1+= bmc-config.1 bmc-info.1 fish.1 sel.1 sensors.1
+MAN5+= ipmipower.conf.5
+MAN8+= bmc-watchdog.8 ipmipower.8 ipmiping.8 rmcpping.8
+INFO+= freeipmi
+PORTDOCS= *
+PKGDEINSTALL= ${PKGINSTALL}
+
+OPTIONS+= IOPERM "Use i386_set_ioperm(2) instead of io(4)" off
+
+SHLIBVER= 1
+
+.include <bsd.port.pre.mk>
+
+.if defined(WITH_IOPERM)
+MYDEFS+= -DUSE_IOPERM
+.endif
+CONFIGURE_ENV+= CFLAGS="-I${LOCALBASE}/include ${MYDEFS}" \
+ LDFLAGS="-L${LOCALBASE}/lib -largp"
+
+post-install:
+ @${SETENV} PKG_PREFIX=${PREFIX} \
+ ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
+
+.include <bsd.port.post.mk>
diff --git a/sysutils/freeipmi/distinfo b/sysutils/freeipmi/distinfo
new file mode 100644
index 000000000000..bcff45c00d2a
--- /dev/null
+++ b/sysutils/freeipmi/distinfo
@@ -0,0 +1,4 @@
+MD5 (freeipmi-0.1.3.tar.gz) = c4b088f806253971759c60263722e63d
+SIZE (freeipmi-0.1.3.tar.gz) = 888728
+MD5 (freeipmi-0.1.3-fbsd.diff) = 346f5a774eccce9f8e2451f37c447192
+SIZE (freeipmi-0.1.3-fbsd.diff) = 15746
diff --git a/sysutils/freeipmi/files/patch-Makefile.in b/sysutils/freeipmi/files/patch-Makefile.in
new file mode 100644
index 000000000000..173a8ad87bad
--- /dev/null
+++ b/sysutils/freeipmi/files/patch-Makefile.in
@@ -0,0 +1,11 @@
+--- Makefile.in.orig Sat Oct 9 11:24:48 2004
++++ Makefile.in Thu Oct 21 01:50:36 2004
+@@ -144,7 +144,7 @@
+ target_alias = @target_alias@
+ SUBDIRS = doc libfreeipmi fish bmc-watchdog ipmipower ipmiping rmcpping
+
+-EXTRA = ChangeLog AUTHORS COPYING INSTALL NEWS README TODO COPYING.bmc-watchdog DISCLAIMER.bmc-watchdog COPYING.ipmipower DISCLAIMER.ipmipower COPYING.ipmiping DISCLAIMER.ipmiping COPYING.rmcpping DISCLAIMER.rmcpping
++EXTRA = ChangeLog AUTHORS INSTALL NEWS README TODO DISCLAIMER.bmc-watchdog DISCLAIMER.ipmipower DISCLAIMER.ipmiping DISCLAIMER.rmcpping
+
+ docdir = $(datadir)/doc/$(PACKAGE)
+ doc_DATA = $(EXTRA)
diff --git a/sysutils/freeipmi/files/patch-bmc-watchdog-Makefile.in b/sysutils/freeipmi/files/patch-bmc-watchdog-Makefile.in
new file mode 100644
index 000000000000..ca24ed3a7aa3
--- /dev/null
+++ b/sysutils/freeipmi/files/patch-bmc-watchdog-Makefile.in
@@ -0,0 +1,25 @@
+--- bmc-watchdog/Makefile.in.orig Mon Oct 25 12:42:31 2004
++++ bmc-watchdog/Makefile.in Mon Oct 25 20:58:48 2004
+@@ -436,7 +436,8 @@
+ all-am: Makefile $(MANS) $(DATA)
+ installdirs: installdirs-recursive
+ installdirs-am:
+- $(mkinstalldirs) $(DESTDIR)$(man8dir) $(DESTDIR)$(DEFINITSCRIPTdir)
++ $(mkinstalldirs) $(DESTDIR)$(man8dir)
++# $(mkinstalldirs) $(DESTDIR)$(man8dir) $(DESTDIR)$(DEFINITSCRIPTdir)
+
+ install: install-recursive
+ install-exec: install-exec-recursive
+@@ -481,9 +482,10 @@
+
+ info-am:
+
+-install-data-am: install-DEFINITSCRIPTDATA install-man
++#install-data-am: install-DEFINITSCRIPTDATA install-man
++install-data-am: install-man
+ @$(NORMAL_INSTALL)
+- $(MAKE) $(AM_MAKEFLAGS) install-data-hook
++# $(MAKE) $(AM_MAKEFLAGS) install-data-hook
+
+ install-exec-am:
+
diff --git a/sysutils/freeipmi/files/patch-fish-Makefile.in b/sysutils/freeipmi/files/patch-fish-Makefile.in
new file mode 100644
index 000000000000..3548051fedc6
--- /dev/null
+++ b/sysutils/freeipmi/files/patch-fish-Makefile.in
@@ -0,0 +1,13 @@
+--- fish/Makefile.in.orig Sat Oct 9 11:24:50 2004
++++ fish/Makefile.in Thu Oct 21 02:02:55 2004
+@@ -198,8 +198,8 @@
+ @list='$(Defconf_DATA)'; for p in $$list; do \
+ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
+ f="`echo $$p | sed -e 's|^.*/||'`"; \
+- echo " $(DefconfDATA_INSTALL) $$d$$p $(DESTDIR)$(Defconfdir)/$$f"; \
+- $(DefconfDATA_INSTALL) $$d$$p $(DESTDIR)$(Defconfdir)/$$f; \
++ echo " $(DefconfDATA_INSTALL) $$d$$p $(DESTDIR)$(Defconfdir)/$$f-dist"; \
++ $(DefconfDATA_INSTALL) $$d$$p $(DESTDIR)$(Defconfdir)/$$f-dist; \
+ done
+
+ uninstall-DefconfDATA:
diff --git a/sysutils/freeipmi/files/patch-fish-extensions-Makefile.in b/sysutils/freeipmi/files/patch-fish-extensions-Makefile.in
new file mode 100644
index 000000000000..f53d793db69f
--- /dev/null
+++ b/sysutils/freeipmi/files/patch-fish-extensions-Makefile.in
@@ -0,0 +1,13 @@
+--- fish/extensions/Makefile.in.orig Sat Oct 9 11:24:50 2004
++++ fish/extensions/Makefile.in Thu Oct 21 02:06:48 2004
+@@ -212,8 +212,8 @@
+ @list='$(Extensionsconf_DATA)'; for p in $$list; do \
+ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
+ f="`echo $$p | sed -e 's|^.*/||'`"; \
+- echo " $(ExtensionsconfDATA_INSTALL) $$d$$p $(DESTDIR)$(Extensionsconfdir)/$$f"; \
+- $(ExtensionsconfDATA_INSTALL) $$d$$p $(DESTDIR)$(Extensionsconfdir)/$$f; \
++ echo " $(ExtensionsconfDATA_INSTALL) $$d$$p $(DESTDIR)$(Extensionsconfdir)/$$f-dist"; \
++ $(ExtensionsconfDATA_INSTALL) $$d$$p $(DESTDIR)$(Extensionsconfdir)/$$f-dist; \
+ done
+
+ uninstall-ExtensionsconfDATA:
diff --git a/sysutils/freeipmi/pkg-descr b/sysutils/freeipmi/pkg-descr
new file mode 100644
index 000000000000..13ab9668276c
--- /dev/null
+++ b/sysutils/freeipmi/pkg-descr
@@ -0,0 +1,4 @@
+FreeIPMI is a library and a set tools to control Intelligent Platform
+Management Interface (IPMI) capable hardware.
+
+WWW: http://www.gnu.org/software/freeipmi/
diff --git a/sysutils/freeipmi/pkg-install b/sysutils/freeipmi/pkg-install
new file mode 100644
index 000000000000..4a51e1843642
--- /dev/null
+++ b/sysutils/freeipmi/pkg-install
@@ -0,0 +1,27 @@
+#!/bin/sh
+
+conffiles="etc/fish/fish.scm etc/fish/sensors-conf.scm"
+rundir="/var/lib/freeipmi"
+logdir="/var/log/freeipmi"
+
+case "$2" in
+POST-INSTALL)
+ for file in $conffiles; do
+ [ -f "$PKG_PREFIX/$file" ] || \
+ cp "$PKG_PREFIX/$file-dist" "$PKG_PREFIX/$file"
+ done
+
+ mkdir -p "$rundir" "$logdir" && \
+ chmod 0700 "$rundir" "$logdir"
+ touch "$rundir/ipckey"
+ ;;
+DEINSTALL)
+ for file in etc/fish/fish.scm etc/fish/sensors-conf.scm; do
+ cmp -s "$PKG_PREFIX/$file" "$PKG_PREFIX/$file-dist" && \
+ rm -f $PKG_PREFIX/$file
+ done
+
+ rm -f "$rundir/ipckey"
+ rmdir "$rundir" "$logdir" 2>/dev/null || :
+ ;;
+esac
diff --git a/sysutils/freeipmi/pkg-plist b/sysutils/freeipmi/pkg-plist
new file mode 100644
index 000000000000..01af2ac34b7d
--- /dev/null
+++ b/sysutils/freeipmi/pkg-plist
@@ -0,0 +1,75 @@
+sbin/bmc-watchdog
+sbin/fish
+sbin/bmc-config
+sbin/bmc-info
+sbin/sel
+sbin/sensors
+sbin/ipmiping
+sbin/ipmipower
+sbin/rmcpping
+lib/libfreeipmi.so
+lib/libfreeipmi.so.%%SHLIBVER%%
+etc/fish/fish.scm-dist
+etc/fish/sensors-conf.scm-dist
+share/fish/extensions/init.scm
+share/fish/extensions/shell.scm
+share/fish/extensions/utils.scm
+share/fish/extensions/discovery.scm
+share/fish/extensions/sensors.scm
+share/fish/extensions/sensors-utils.scm
+share/fish/extensions/bmc-config.scm
+share/fish/extensions/sel.scm
+share/fish/extensions/bmc-info.scm
+share/fish/extensions/bc-common.scm
+share/fish/extensions/bc-user-section.scm
+share/fish/extensions/bc-lan-serial-channel-section.scm
+share/fish/extensions/bc-lan-conf-section.scm
+share/fish/extensions/bc-lan-conf-auth-section.scm
+share/fish/extensions/bc-lan-conf-misc-section.scm
+share/fish/extensions/bc-serial-conf-section.scm
+share/fish/extensions/bc-misc-section.scm
+share/fish/extensions/bc2.scm
+share/fish/extensions/bc-section.scm
+include/freeipmi/freeipmi.h
+include/freeipmi/fiid.h
+include/freeipmi/smbios.h
+include/freeipmi/bit-ops.h
+include/freeipmi/ipmi-cmd-spec.h
+include/freeipmi/ipmi-netfn-spec.h
+include/freeipmi/ipmi-semaphores.h
+include/freeipmi/ipmi-ipmb-interface.h
+include/freeipmi/ipmi-lan-interface.h
+include/freeipmi/ipmi-kcs-interface.h
+include/freeipmi/ipmi-smic-interface.h
+include/freeipmi/rmcp.h
+include/freeipmi/ipmi-sessions.h
+include/freeipmi/ipmi-utils.h
+include/freeipmi/ipmi-error.h
+include/freeipmi/ipmi-msg-support-cmds.h
+include/freeipmi/ipmi-chassis-cmds.h
+include/freeipmi/ipmi-dev-global-cmds.h
+include/freeipmi/ipmi-sel-cmds.h
+include/freeipmi/ipmi-sdr-record-types.h
+include/freeipmi/ipmi-sdr-repo-cmds.h
+include/freeipmi/ipmi-sensor-types.h
+include/freeipmi/ipmi-sensor-cmds.h
+include/freeipmi/ipmi-sel-record-types.h
+include/freeipmi/ipmi-lan-param-spec.h
+include/freeipmi/ipmi-lan-cmds.h
+include/freeipmi/ipmi-sol-cmds.h
+include/freeipmi/ipmi-md2.h
+include/freeipmi/ipmi-md5.h
+include/freeipmi/ipmi-serial-modem-param-spec.h
+include/freeipmi/ipmi-serial-cmds.h
+include/freeipmi/ipmi-sdr-repo-cache.h
+include/freeipmi/ipmi-sensor-utils.h
+include/freeipmi/ipmi-debug.h
+include/freeipmi/ipmi-watchdog.h
+include/freeipmi/ipmi-probe.h
+include/freeipmi/pcilocate.h
+include/freeipmi/ipmi-ping.h
+include/freeipmi/ipmi-msg-interface-desc.h
+@dirrm share/fish/extensions
+@dirrm share/fish
+@dirrm include/freeipmi
+@dirrm etc/fish