blob: 8964c90623563a844a70a1bfa5cc81b3ede3238b (
plain)
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
95
96
|
# $NetBSD: Makefile,v 1.20 2020/05/22 10:56:33 adam Exp $
DISTNAME= slurm-19.05.5
PKGNAME= ${DISTNAME:S/-/-wlm-/}
PKGREVISION= 4
CATEGORIES= parallel
MASTER_SITES= http://download.schedmd.com/slurm/
MASTER_SITES+= http://www.schedmd.com/download/latest/
EXTRACT_SUFX= .tar.bz2
MAINTAINER= bacon@NetBSD.org
HOMEPAGE= https://www.schedmd.com/
COMMENT= Simple Linux Utility for Resource Management
LICENSE= gnu-gpl-v2
BUILD_DEPENDS+= man2html-[0-9]*:../../textproc/man2html
GNU_CONFIGURE= yes
USE_LANGUAGES= c c++
USE_LIBTOOL= yes
USE_TOOLS+= bash perl pkg-config
CONFIG_SHELL= bash
CONFIGURE_ARGS+= --bindir=${PREFIX}/bin
CONFIGURE_ARGS+= --htmldir=${PREFIX}/share/doc/${PKGNAME_NOREV}/html
CONFIGURE_ARGS+= --with-munge=${BUILDLINK_PREFIX.munge}
CONFIGURE_ARGS+= --with-hwloc=${PREFIX}
CONFIGURE_ARGS+= --with-json=${PREFIX}
CONFIGURE_ARGS+= --with-libssh2=${PREFIX}
# Future: Enable task affinity code is fully patched for NetBSD
# CONFIGURE_ARGS.NetBSD+= ac_cv_func_sched_setaffinity=yes
REPLACE_PYTHON= doc/html/shtml2html.py
REPLACE_PYTHON+= doc/man/man2html.py
REPLACE_PYTHON+= testsuite/expect/regression.py
REPLACE_PYTHON+= testsuite/expect/driveregress.py
REPLACE_PYTHON+= contribs/cray/csm/slurmconfgen_smw.py
PKG_GROUPS= slurm
PKG_USERS= slurm:slurm
PKG_GECOS.slurm= SLURM user
PKG_SHELL.slurm= ${NOLOGIN}
RCD_SCRIPTS+= slurmd slurmctld
SUBST_CLASSES+= linuxinit
SUBST_STAGE.linuxinit= pre-configure
SUBST_FILES.linuxinit= etc/init.d.slurm.in
SUBST_SED.linuxinit= -e 's|^exec_prefix=|&${PREFIX}|'
SUBST_SED.linuxinit+= -e 's|^prefix=|&${PREFIX}|'
SUBST_SED.linuxinit+= -e 's|@bindir@|$${exec_prefix}/bin|'
SUBST_SED.linuxinit+= -e 's|@sbindir@|$${exec_prefix}/sbin|'
SUBST_SED.linuxinit+= -e 's|@libdir@|$${exec_prefix}/lib|'
SUBST_SED.linuxinit+= -e 's|@sysconfdir@|$${prefix}/etc|'
# Config flag for disabling gtk does not work, so set an impossible requirement
SUBST_CLASSES+= gtk
SUBST_STAGE.gtk= pre-configure
SUBST_SED.gtk= -e 's|min_gtk_version=.*|min_gtk_version=2000.0.0|'
SUBST_FILES.gtk= configure
SUBST_CLASSES+= prefix
SUBST_STAGE.prefix= pre-configure
SUBST_SED.prefix= -e 's|/usr/local|${PREFIX}|g'
SUBST_SED.prefix+= -e 's|/opt/local /sw||g'
SUBST_FILES.prefix= configure
SUBST_CLASSES+= make-ex
SUBST_STAGE.make-ex= post-install
SUBST_FILES.make-ex= etc/Makefile
SUBST_SED.make-ex= -e 's|${WRKDIR}|<build-prefix>|g'
INSTALLATION_DIRS+= share/examples/slurm
post-install:
${INSTALL_DATA} ${WRKSRC}/etc/* ${DESTDIR}${PREFIX}/share/examples/slurm
${RM} -f ${DESTDIR}${PREFIX}/share/examples/slurm/init.d.slurm.in.orig
.include "../../www/curl/buildlink3.mk"
.include "../../lang/python/tool.mk"
.include "../../security/munge/buildlink3.mk" # optional
.include "../../parallel/hwloc/buildlink3.mk"
.include "../../security/openssl/buildlink3.mk"
.include "../../devel/hdf5/buildlink3.mk"
.include "../../devel/readline/buildlink3.mk"
.include "../../archivers/lz4/buildlink3.mk"
.include "../../textproc/json-c/buildlink3.mk"
.include "../../security/libssh2/buildlink3.mk"
.include "../../lang/lua/buildlink3.mk"
.include "../../mk/mysql.buildlink3.mk"
.include "../../mk/dlopen.buildlink3.mk"
.include "../../mk/curses.buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|