Changeset View
Changeset View
Standalone View
Standalone View
head/sysutils/slurm-wlm/Makefile
# Created by: Jason Bacon <bacon4000@gmail.com> | # Created by: Jason Bacon <bacon4000@gmail.com> | ||||
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME= slurm | PORTNAME= slurm | ||||
PORTVERSION= 16.05.5 | PORTVERSION= 16.05.6 | ||||
CATEGORIES= sysutils | CATEGORIES= sysutils | ||||
MASTER_SITES= http://www.schedmd.com/download/latest/ \ | MASTER_SITES= http://www.schedmd.com/download/latest/ \ | ||||
http://www.schedmd.com/download/archive/ \ | http://www.schedmd.com/download/archive/ \ | ||||
http://www.schedmd.com/download/development/ | http://www.schedmd.com/download/development/ | ||||
PKGNAMESUFFIX= -wlm | PKGNAMESUFFIX= -wlm | ||||
MAINTAINER= jrm@FreeBSD.org | MAINTAINER= jrm@FreeBSD.org | ||||
COMMENT= Simple Linux Utility for Resource Management | COMMENT= Simple Linux Utility for Resource Management | ||||
LICENSE= GPLv2+ | LICENSE= GPLv2+ | ||||
LICENSE_FILE= ${WRKSRC}/COPYING | LICENSE_FILE= ${WRKSRC}/COPYING | ||||
LIB_DEPENDS= libjson-c.so:devel/json-c \ | LIB_DEPENDS= libjson-c.so:devel/json-c \ | ||||
libsysinfo.so:devel/libsysinfo \ | libsysinfo.so:devel/libsysinfo \ | ||||
libmunge.so:security/munge | libmunge.so:security/munge | ||||
USERS= slurm | USERS= slurm | ||||
GROUPS= ${USERS} | GROUPS= ${USERS} | ||||
GNU_CONFIGURE= yes | GNU_CONFIGURE= yes | ||||
USE_LDCONFIG= yes | USE_LDCONFIG= yes | ||||
USE_RC_SUBR= slurmctld slurmd | USE_RC_SUBR= slurmctld slurmd | ||||
PLIST_SUB= PORTVERSION="${PORTVERSION}" | PLIST_SUB= PORTVERSION="${PORTVERSION}" | ||||
INSTALL_TARGET= install-strip | INSTALL_TARGET= install-strip | ||||
USES= gmake libtool pkgconfig python:build readline ssl tar:bz2 | USES= gmake libtool pkgconfig python:build readline shebangfix ssl \ | ||||
tar:bz2 | |||||
USE_PERL5= configure | USE_PERL5= configure | ||||
SHEBANG_FILES= doc/html/shtml2html.py doc/man/man2html.py | |||||
OPTIONS_DEFINE= CURL DOCS GTK2 HDF5 HWLOC IPMI MYSQL RRD | OPTIONS_DEFINE= CURL DOCS GTK2 HDF5 HWLOC IPMI MYSQL RRD | ||||
OPTIONS_DEFAULT=HDF5 HWLOC | OPTIONS_DEFAULT=HDF5 HWLOC | ||||
OPTIONS_SUB= yes | OPTIONS_SUB= yes | ||||
CURL_DESC= Require cURL for elasticsearch plugins | CURL_DESC= Require cURL for elasticsearch plugins | ||||
GTK2_DESC= Build sview GUI config tool | GTK2_DESC= Build sview GUI config tool | ||||
HDF5_DESC= Job profiling using HDF5 | HDF5_DESC= Job profiling using HDF5 | ||||
Show All 31 Lines | |||||
CFLAGS+= -I${WRKSRC}/slurm -I${LOCALBASE}/include | CFLAGS+= -I${WRKSRC}/slurm -I${LOCALBASE}/include | ||||
LDFLAGS+= -L${LOCALBASE}/lib -lsysinfo -lkvm | LDFLAGS+= -L${LOCALBASE}/lib -lsysinfo -lkvm | ||||
# SLURM's configure enables interactive jobs if pty.h exists. Replacing | # SLURM's configure enables interactive jobs if pty.h exists. Replacing | ||||
# #include <pty.h> with appropriate headers will therefore not work, so instead | # #include <pty.h> with appropriate headers will therefore not work, so instead | ||||
# add a pty.h for the build. | # add a pty.h for the build. | ||||
post-patch: | post-patch: | ||||
${CP} ${FILESDIR}/pty.h ${WRKSRC}/slurm | ${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: | post-install: | ||||
${INSTALL_DATA} ${FILESDIR}/slurm.conf.sample ${STAGEDIR}${PREFIX}/etc/ | ${INSTALL_DATA} ${FILESDIR}/slurm.conf.sample ${STAGEDIR}${PREFIX}/etc/ | ||||
.include <bsd.port.mk> | .include <bsd.port.mk> |