blob: f2f506152ea0f924156d28452134da6737a7afb3 (
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
|
# Created by: Jason Bacon <bacon4000@gmail.com>
# $FreeBSD$
PORTNAME= slurm
PORTVERSION= 15.08.11
CATEGORIES= sysutils
MASTER_SITES= http://www.schedmd.com/download/latest/ \
http://www.schedmd.com/download/archive/ \
http://www.schedmd.com/download/development/
PKGNAMESUFFIX= -wlm
MAINTAINER= jrm@ftfl.ca
COMMENT= Simple Linux Utility for Resource Management
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libsysinfo.so:devel/libsysinfo \
libhwloc.so:devel/hwloc \
libmunge.so:security/munge \
librrd.so:databases/rrdtool \
libhdf5.so: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 pkgconfig 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
# 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:
${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-install:
${INSTALL_DATA} ${FILESDIR}/slurm.conf.example ${STAGEDIR}${PREFIX}/etc/
.include <bsd.port.mk>
|