aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/freeipmi/Makefile
blob: fdcfd5e0f1fc79eb441eaf12418f8e177b8091fd (plain) (blame)
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
# New ports collection makefile for:    freeipmi
# Date created:             20/Oct/2004
# Whom:                 Dmitry Frolov <frol@nov.net>
#
# $FreeBSD$
#

PORTNAME=   freeipmi
PORTVERSION=    0.3.1
CATEGORIES= sysutils
MASTER_SITES=   ftp://ftp.zresearch.com/pub/freeipmi/${PORTVERSION}/

MAINTAINER= frolov@riss-telecom.ru
COMMENT=    Library and tools to support IPMI-capable hardware

BUILD_DEPENDS+= ${LOCALBASE}/lib/libargp.a:${PORTSDIR}/devel/argp-standalone
LIB_DEPENDS+=   gcrypt:${PORTSDIR}/security/libgcrypt

USE_GMAKE=  yes
USE_GETOPT_LONG=    yes
GNU_CONFIGURE=  yes
CONFIGURE_TARGET=   --build=${ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
CONFIGURE_ARGS+=    --disable-init-scripts --disable-logrotate-config
USE_LDCONFIG=   yes
NOT_FOR_ARCHS=  ia64 sparc64 alpha
PLIST_SUB+= FREEIPMI_SHLIBVER=${FREEIPMI_SHLIBVER} \
    IPMICONSOLE_SHLIBVER=${IPMICONSOLE_SHLIBVER}
MAN5+=  ipmipower.conf.5 bmc-config.conf.5 ipmiconsole.conf.5
MAN8+=  bmc-watchdog.8 ipmipower.8 ipmi-raw.8 ipmi-sel.8 \
    ipmi-sensors.8 ipmi-locate.8 bmc-info.8 ipmiping.8 \
    rmcpping.8 bmc-autoconfig.8 bmc-config.8 ipmiconsole.8
INFO+=      freeipmi freeipmi-faq
PORTDOCS=   *

FREEIPMI_SHLIBVER=  3
IPMICONSOLE_SHLIBVER=   0
CPPFLAGS+=  -I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib

.include <bsd.port.pre.mk>

.if ${OSVERSION} < 500112
BROKEN= missing getpw*_r functions in this FreeBSD release
.endif

.if defined(WITH_IOPERM)
CPPFLAGS+=  -DUSE_IOPERM
.endif

post-install:
    @${CHMOD} 0700 ${DESTDIR}${PREFIX}/var/log/freeipmi \
        ${DESTDIR}${PREFIX}/var/lib/freeipmi

.include <bsd.port.post.mk>