blob: d0a2398b41ad006b71f03a294a2cf8b54d593fd8 (
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
|
# Created by: Jason Bacon <jwbacon@tds.net>
# $FreeBSD$
PORTNAME= slurm
PORTVERSION= 14.11.6
CATEGORIES= sysutils
MASTER_SITES= http://www.schedmd.com/download/latest/ \
http://www.schedmd.com/download/archive/ \
http://www.schedmd.com/download/development/
PKGNAMESUFFIX= -hpc
MAINTAINER= jrm@ftfl.ca
COMMENT= Simple Linux Utility for Resource Management
LICENSE= GPLv2
LIB_DEPENDS= libsysinfo.so:${PORTSDIR}/devel/libsysinfo \
libhwloc.so:${PORTSDIR}/devel/hwloc \
libmunge.so:${PORTSDIR}/security/munge \
librrd.so:${PORTSDIR}/databases/rrdtool \
libhdf5.so:${PORTSDIR}/science/hdf5
USERS= slurm
GROUPS= ${USERS}
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
USE_RC_SUBR= slurmctld slurmd
PLIST_SUB= PORTVERSION="${PORTVERSION}"
INSTALL_TARGET= install-strip
USES= gmake libtool perl5 python tar:bz2
GTK2_USE= GNOME=glib20,gtk20
MYSQL_USE= MYSQL=yes
CFLAGS+= -I${WRKSRC}/slurm -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib -lsysinfo -lkvm
OPTIONS_DEFINE= DOCS MYSQL GTK2
OPTIONS_SUB= yes
GTK2_DESC= Build GUI config tool sview
.include <bsd.port.options.mk>
# SLURM's configure enables interactive jobs if pty.h exists. Replacing
# #include <pty.h> with appropriate headers will therefore not work, so instead
# add a pty.h for the build.
post-patch:
.if ! ${PORT_OPTIONS:MGTK2}
${REINPLACE_CMD} \
-e 's|min_gtk_version=2.7.1|min_gtk_version=200.7.1|g' \
${WRKSRC}/configure
.endif
${CP} ${FILESDIR}/pty.h ${WRKSRC}/slurm
${REINPLACE_CMD} \
-e 's|/usr/bin/env python|${PYTHON_CMD}|g' \
${WRKSRC}/doc/html/shtml2html.py \
${WRKSRC}/doc/man/man2html.py
post-stage:
.if ! ${PORT_OPTIONS:MDOCS}
${RM} -rf ${STAGEDIR}${LOCALBASE}/share/doc/${PORTNAME}-${PORTVERSION}
.endif
${CP} ${FILESDIR}/slurm.conf.example ${STAGEDIR}${PREFIX}/etc/
.include <bsd.port.mk>
|