blob: a3e558fbb5e6b014b1ef20599387ef8b38d5836a (
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
|
# Created by: Jason Bacon <jwbacon@tds.net>
# $FreeBSD$
PORTNAME= slurm
PORTVERSION= 2.6.4
CATEGORIES= sysutils
MASTER_SITES= http://www.schedmd.com/download/archive/ \
http://www.schedmd.com/download/latest/ \
http://www.schedmd.com/download/development/
PKGNAMESUFFIX= -hpc
MAINTAINER= jwbacon@tds.net
COMMENT= Simple Linux Utility for Resource Management
LICENSE= GPLv1
LIB_DEPENDS= libsysinfo.so:${PORTSDIR}/devel/libsysinfo \
libhwloc.so:${PORTSDIR}/devel/hwloc \
libmunge.so:${PORTSDIR}/security/munge \
librrd.so:${PORTSDIR}/databases/rrdtool
# Testing for hdf5.so is insufficient. It will accept hdf5 1.6 and
# slurm requires hdf5 1.8. h5copy is present only in 1.8.
BUILD_DEPENDS+= ${LOCALBASE}/bin/h5copy:${PORTSDIR}/science/hdf5-18
RUN_DEPENDS+= ${BUILD_DEPENDS}
USE_BZIP2= yes
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
USE_PYTHON= yes
USES= perl5 gmake
OPTIONS_DEFINE= DOCS MYSQL PGSQL GTK2
USERS= slurm
GROUPS= ${USERS}
USE_RC_SUBR= slurmctld slurmd
SUB_FILES+= slurm.conf
# This is a new and complex port. Allow debugging.
STRIP_CMD= # NONE
CFLAGS+= -I${LOCALBASE}/include -g -O1
LDFLAGS+= -L${LOCALBASE}/lib -lsysinfo -lkvm
post-install:
${INSTALL_DATA} ${WRKDIR}/slurm.conf ${STAGEDIR}${PREFIX}/etc/slurm.conf.sample
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MMYSQL}
USE_MYSQL= yes # Job accounting
PLIST_FILES+= lib/slurm/accounting_storage_mysql.a \
lib/slurm/accounting_storage_mysql.la \
lib/slurm/accounting_storage_mysql.so \
lib/slurm/jobcomp_mysql.a \
lib/slurm/jobcomp_mysql.la \
lib/slurm/jobcomp_mysql.so
.else
# Can't disable configure test, so make it fail
CONFIGURE_ARGS+=--with-mysql_config=/nomysql
.endif
.if ${PORT_OPTIONS:MPGSQL}
USE_PGSQL= yes # Job accounting
PLIST_FILES+= lib/slurm/accounting_storage_pgsql.a \
lib/slurm/accounting_storage_pgsql.la \
lib/slurm/accounting_storage_pgsql.so \
lib/slurm/jobcomp_pgsql.a \
lib/slurm/jobcomp_pgsql.la \
lib/slurm/jobcomp_pgsql.so
.else
# Can't disable configure test, so make it fail
CONFIGURE_ARGS+=--with-pg_config=/nopostgres
.endif
.if ${PORT_OPTIONS:MGTK2}
# Note: Configure could not find pcre when building with no ports
# preinstalled on 9.1-RELEASE. Worked fine on second try.
USE_GNOME= glib20 gtk20 # sview
PLIST_FILES+= bin/sview
.endif
post-patch:
# Can't disable configure test, so make it fail
.if ! ${PORT_OPTIONS:MGTK2}
${REINPLACE_CMD} -e 's|min_gtk_version=2.7.1|min_gtk_version=200.7.1|' \
${WRKSRC}/configure
.endif
@${REINPLACE_CMD} \
-e 's|/usr/bin/env python|${PYTHON_CMD}|g' \
${WRKSRC}/doc/html/shtml2html.py \
${WRKSRC}/doc/man/man2html.py
.include <bsd.port.mk>
|