blob: 5b537c3d6c4a0ae0eb85f0c4abf0410c8afe0df2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
# Created by: Dmitry Frolov <frol@nov.net>
# $FreeBSD$
PORTNAME= freeipmi
PORTVERSION= 1.5.2
CATEGORIES= sysutils
MASTER_SITES= GNU/${PORTNAME} \
http://ftp.gluster.com/pub/${PORTNAME}/${PORTVERSION}/
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Library and tools to support IPMI-capable hardware
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libargp.so:devel/argp-standalone \
libgcrypt.so:security/libgcrypt
ONLY_FOR_ARCHS= i386 amd64
ONLY_FOR_ARCHS_REASON= invokes i386 asm
OPTIONS_DEFINE= DEBUG DOCS IOPERM
IOPERM_DESC= Use i386_set_ioperm
CONFIGURE_ARGS= --disable-init-scripts \
--sysconfdir=${ETCDIR} \
--with-ipmi-monitoring-sdr-cache-dir=${CACHE_DIR}/ipmimonitoringsdrcache \
--with-ipmiseld-cache-dir=${CACHE_DIR}/ipmiseld \
--with-pkgconfig-dir=${PREFIX}/libdata/pkgconfig
CONFIGURE_ENV= PTHREAD_LIBS=-lpthread ac_cv_path_CPP=${CPP}
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
USES= gmake libtool localbase shebangfix
INFO= freeipmi-faq
PLIST_SUB= CACHE_DIR=${CACHE_DIR}
PORTDOCS= *
CACHE_DIR?= /var/db/${PORTNAME}
SHEBANG_FILES= contrib/ganglia/ganglia_ipmi_sensors.pl \
contrib/nagios/nagios_ipmi_sensors.pl \
contrib/pet/check_rmcpping \
contrib/pet/petalert.pl
DEBUG_CONFIGURE_ARGS= --enable-debug --enable-trace
DEBUG_INSTALL_TARGET= install
DEBUG_INSTALL_TARGET_OFF= install-strip
IOPERM_CPPFLAGS= -DUSE_IOPERM
post-patch:
@${FIND} ${WRKSRC} -name '*.man' -o -name '*.pre.in' | ${XARGS} -I % ${REINPLACE_CMD} -e '/^\.\\\"/ s|$$|"|' %
@${REINPLACE_CMD} \
-e '/^FREEIPMI_SYSCONFDIR/ s|/freeipmi/$$||' \
-e '/FREEIPMI_CONFIG_FILE_DEFAULT_TMP1=/ s|freeipmi.conf|&.sample|' \
${WRKSRC}/configure
post-install:
${MKDIR} -m 0700 -p ${STAGEDIR}${CACHE_DIR}/ipmimonitoringsdrcache/ ${STAGEDIR}${CACHE_DIR}/ipmiseld/ ${STAGEDIR}/var/lib/freeipmi/ ${STAGEDIR}/var/run/freeipmi/
.include <bsd.port.mk>
|