2004-12-23 11:55:45 +01:00
|
|
|
# New ports collection makefile for: freeipmi
|
|
|
|
# Date created: 20/Oct/2004
|
|
|
|
# Whom: Dmitry Frolov <frol@nov.net>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
2007-05-27 12:40:45 +02:00
|
|
|
# Available KNOBs:
|
|
|
|
#
|
|
|
|
# WITH_DEBUG - Build binaries suitable for debugging with gdb(1).
|
|
|
|
#
|
2004-12-23 11:55:45 +01:00
|
|
|
|
|
|
|
PORTNAME= freeipmi
|
2007-09-10 13:47:49 +02:00
|
|
|
PORTVERSION= 0.4.3
|
2004-12-23 11:55:45 +01:00
|
|
|
CATEGORIES= sysutils
|
2007-06-18 21:46:52 +02:00
|
|
|
MASTER_SITES= ftp://ftp.zresearch.com/pub/freeipmi/${PORTVERSION}/ \
|
|
|
|
ftp://ftp.riss-telecom.ru/pub/mirrors/ftp.zresearch.com/pub/freeipmi/${PORTVERSION}/
|
2004-12-23 11:55:45 +01:00
|
|
|
|
|
|
|
MAINTAINER= frolov@riss-telecom.ru
|
|
|
|
COMMENT= Library and tools to support IPMI-capable hardware
|
|
|
|
|
|
|
|
BUILD_DEPENDS+= ${LOCALBASE}/lib/libargp.a:${PORTSDIR}/devel/argp-standalone
|
2006-12-06 12:52:53 +01:00
|
|
|
LIB_DEPENDS+= gcrypt:${PORTSDIR}/security/libgcrypt
|
2006-09-09 14:14:50 +02:00
|
|
|
|
2007-02-01 03:42:05 +01:00
|
|
|
USE_AUTOTOOLS= libtool:15
|
2004-12-23 11:55:45 +01:00
|
|
|
USE_GMAKE= yes
|
|
|
|
GNU_CONFIGURE= yes
|
2006-09-09 14:14:50 +02:00
|
|
|
CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
|
2007-09-10 13:47:49 +02:00
|
|
|
CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" \
|
|
|
|
PTHREAD_LIBS=-pthread
|
|
|
|
CONFIGURE_ARGS+= --disable-init-scripts --disable-logrotate-config \
|
|
|
|
--localstatedir=/var \
|
|
|
|
--with-ipmipower-config-file=${PREFIX}/etc/ipmipower.conf \
|
|
|
|
--with-ipmi-monitoring-sdr-cache-dir=${CACHE_DIR}/ipmimonitoringsdrcache \
|
|
|
|
--with-ipmi-monitoring-sensor-config-file=${PREFIX}/etc/ipmi_monitoring_sensors.conf \
|
|
|
|
--with-ipmidetect-config-file=${PREFIX}/etc/ipmidetect.conf \
|
|
|
|
--with-ipmidetectd-config-file=${PREFIX}/etc/ipmidetectd.conf
|
2006-09-09 14:14:50 +02:00
|
|
|
USE_LDCONFIG= yes
|
2005-01-03 20:23:10 +01:00
|
|
|
NOT_FOR_ARCHS= ia64 sparc64 alpha
|
2006-12-06 12:52:53 +01:00
|
|
|
PLIST_SUB+= FREEIPMI_SHLIBVER=${FREEIPMI_SHLIBVER} \
|
2007-09-10 13:47:49 +02:00
|
|
|
IPMICONSOLE_SHLIBVER=${IPMICONSOLE_SHLIBVER} \
|
|
|
|
IPMIDETECT_SHLIBVER=${IPMIDETECT_SHLIBVER} \
|
|
|
|
IPMIMONITORING_SHLIBVER=${IPMIMONITORING_SHLIBVER} \
|
|
|
|
CACHE_DIR=${CACHE_DIR} LOG_DIR=${LOG_DIR} RUN_DIR=${RUN_DIR}
|
|
|
|
MAN3+= libipmiconsole.3 libipmimonitoring.3 libipmidetect.3
|
|
|
|
MAN5+= ipmipower.conf.5 bmc-config.conf.5 ipmiconsole.conf.5 \
|
|
|
|
ipmidetect.conf.5 ipmidetectd.conf.5
|
2006-12-06 12:52:53 +01:00
|
|
|
MAN8+= bmc-watchdog.8 ipmipower.8 ipmi-raw.8 ipmi-sel.8 \
|
|
|
|
ipmi-sensors.8 ipmi-locate.8 bmc-info.8 ipmiping.8 \
|
2007-09-10 13:47:49 +02:00
|
|
|
rmcpping.8 bmc-autoconfig.8 bmc-config.8 ipmiconsole.8 \
|
|
|
|
ipmi-fru.8 pef-config.8 ipmimonitoring.8 ipmi-chassis.8 \
|
|
|
|
ipmidetect.8 ipmidetectd.8
|
|
|
|
INFO+= freeipmi-faq
|
2004-12-23 11:55:45 +01:00
|
|
|
PORTDOCS= *
|
2007-09-10 13:47:49 +02:00
|
|
|
PORTEXAMPLES= *
|
2004-12-23 11:55:45 +01:00
|
|
|
|
2007-09-10 13:47:49 +02:00
|
|
|
CACHE_DIR?= /var/db/${PORTNAME}
|
|
|
|
LOG_DIR= /var/log/${PORTNAME}
|
|
|
|
RUN_DIR= /var/lib/${PORTNAME}
|
|
|
|
FREEIPMI_SHLIBVER= 4
|
|
|
|
IPMICONSOLE_SHLIBVER= 1
|
|
|
|
IPMIDETECT_SHLIBVER= 0
|
|
|
|
IPMIMONITORING_SHLIBVER= 0
|
2006-12-06 12:52:53 +01:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
2004-12-23 11:55:45 +01:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2006-12-06 12:52:53 +01:00
|
|
|
.if ${OSVERSION} < 500112
|
|
|
|
BROKEN= missing getpw*_r functions in this FreeBSD release
|
|
|
|
.endif
|
|
|
|
|
2007-05-27 12:40:45 +02:00
|
|
|
# Use i386_set_ioperm(2) instead of io(4) to gain access to I/O
|
|
|
|
# ports. Note: there is a bug in FreeBSD 5 before 5.5-RELEASE that
|
|
|
|
# causes SIGBUS to the process sometimes when i386_set_ioperm is used
|
|
|
|
# (PR 84842).
|
2007-09-10 13:47:49 +02:00
|
|
|
.if ${ARCH} == "i386" && defined(WITH_IOPERM)
|
2004-12-25 12:52:27 +01:00
|
|
|
CPPFLAGS+= -DUSE_IOPERM
|
2004-12-23 11:55:45 +01:00
|
|
|
.endif
|
|
|
|
|
2007-05-27 12:40:45 +02:00
|
|
|
.if defined(WITH_DEBUG)
|
2007-09-10 13:47:49 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-debug --enable-trace
|
2007-05-27 12:40:45 +02:00
|
|
|
STRIP= # empty
|
|
|
|
.endif
|
|
|
|
|
2004-12-23 11:55:45 +01:00
|
|
|
post-install:
|
2007-09-10 13:47:49 +02:00
|
|
|
@${MKDIR} ${LOG_DIR}
|
|
|
|
@${CHMOD} 0700 ${CACHE_DIR} ${LOG_DIR} ${RUN_DIR}
|
2004-12-23 11:55:45 +01:00
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|