View | Details | Raw Unified | Return to bug 218044
Collapse All | Expand All

(-)/usr/wip/sysutils/slurm-wlm-16/Makefile (-4 / +32 lines)
Lines 3-8 Link Here
3
3
4
PORTNAME=	slurm
4
PORTNAME=	slurm
5
PORTVERSION=	16.05.9
5
PORTVERSION=	16.05.9
6
PORTREVISION=	1
6
CATEGORIES=	sysutils
7
CATEGORIES=	sysutils
7
MASTER_SITES=	http://www.schedmd.com/download/latest/ \
8
MASTER_SITES=	http://www.schedmd.com/download/latest/ \
8
		http://www.schedmd.com/download/archive/ \
9
		http://www.schedmd.com/download/archive/ \
Lines 17-23 Link Here
17
18
18
LIB_DEPENDS=	libjson-c.so:devel/json-c \
19
LIB_DEPENDS=	libjson-c.so:devel/json-c \
19
		libsysinfo.so:devel/libsysinfo \
20
		libsysinfo.so:devel/libsysinfo \
20
		libmunge.so:security/munge
21
		libmunge.so:security/munge \
22
		liblz4.so:archivers/liblz4
21
23
22
USERS=		slurm
24
USERS=		slurm
23
GROUPS=		${USERS}
25
GROUPS=		${USERS}
Lines 52-58 Link Here
52
GTK2_LIB_DEPENDS=	libfontconfig.so:x11-fonts/fontconfig \
54
GTK2_LIB_DEPENDS=	libfontconfig.so:x11-fonts/fontconfig \
53
			libfreetype.so:print/freetype2
55
			libfreetype.so:print/freetype2
54
GTK2_USES=		gettext
56
GTK2_USES=		gettext
55
GTK2_CONFIGURE_ENV_OFF=	ac_gtk_test=no
57
# Neither of these work.  See post-patch below.
58
#GTK2_CONFIGURE_ENV_OFF=	ac_gtk_test=no
59
#GTK2_CONFIGURE_OFF=	--disable-gtktest
56
60
57
HDF5_LIB_DEPENDS=	libhdf5.so:science/hdf5 \
61
HDF5_LIB_DEPENDS=	libhdf5.so:science/hdf5 \
58
			libsz.so:science/szip
62
			libsz.so:science/szip
Lines 66-71 Link Here
66
70
67
MYSQL_USES=		mysql
71
MYSQL_USES=		mysql
68
MYSQL_CONFIGURE_with=	mysql
72
MYSQL_CONFIGURE_with=	mysql
73
MYSQL_CONFIGURE_OFF=	--with-mysql_config=/nonexistent
69
74
70
RRD_LIB_DEPENDS=	librrd.so:databases/rrdtool
75
RRD_LIB_DEPENDS=	librrd.so:databases/rrdtool
71
RRD_CONFIGURE_WITH=	rrdtool
76
RRD_CONFIGURE_WITH=	rrdtool
Lines 77-85 Link Here
77
# #include <pty.h> with appropriate headers will therefore not work, so instead
82
# #include <pty.h> with appropriate headers will therefore not work, so instead
78
# add a pty.h for the build.
83
# add a pty.h for the build.
79
post-patch:
84
post-patch:
80
	${CP} ${FILESDIR}/pty.h ${WRKSRC}/slurm
85
	@${CP} ${FILESDIR}/pty.h ${WRKSRC}/slurm
86
	@${REINPLACE_CMD} -e 's|sched_setaffinity|cpuset_setaffinity|g' \
87
		${WRKSRC}/configure
88
	@${REINPLACE_CMD} -e 's|/bin/mail|/usr/bin/mail|g' \
89
		${WRKSRC}/src/common/read_config.h \
90
		${WRKSRC}/contribs/seff/smail.in \
91
		${WRKSRC}/doc/html/configurator.easy.html.in \
92
		${WRKSRC}/doc/html/configurator.html.in \
93
		${WRKSRC}/contribs/cray/slurm.conf.template \
94
		${WRKSRC}/doc/man/man1/strigger.1 \
95
		${WRKSRC}/doc/man/man5/slurm.conf.5
96
	@${REINPLACE_CMD} \
97
		-e 's|=linux|=FreeBSD|g' \
98
		-e 's|run/slurmctld.pid|run/slurm/slurmctld.pid|' \
99
		-e 's|run/slurmd.pid|run/slurm/slurd.pid|' \
100
		-e 's|SlurmdSpoolDir=.*|SlurmdSpoolDir=/var/spool/slurmd|' \
101
		-e 's|StateSaveLocation=.*|StateSaveLocation=/var/run/slurm|' \
102
		${WRKSRC}/etc/slurm.conf.example
103
104
# Hack around nonfunctional --disable-gtktest flag
105
post-patch-GTK2-off:
106
	@${REINPLACE_CMD} -e 's|min_gtk_version=.*|min_gtk_version=2000.0.0|' \
107
		${WRKSRC}/configure
81
108
82
post-install:
109
post-install:
83
	${INSTALL_DATA} ${FILESDIR}/slurm.conf.sample ${STAGEDIR}${PREFIX}/etc/
110
	${INSTALL_DATA} ${WRKSRC}/etc/slurm.conf.example \
111
		${STAGEDIR}${PREFIX}/etc/slurm.conf.sample
84
112
85
.include <bsd.port.mk>
113
.include <bsd.port.mk>
(-)/usr/wip/sysutils/slurm-wlm-16/files/slurm.conf.sample (-105 lines)
Lines 1-105 Link Here
1
# Example slurm.conf file.
2
#
3
# You can run configurator.html (included as part of the documentation) to build
4
# a configuration file customized for your environment.
5
#
6
# See the slurm.conf man page for more information.
7
#
8
9
# NOTE: The parent directories for Slurm's log files, process ID
10
# files, state save directories, etc. are not created by Slurm. They
11
# must be created and made writable by the slurm user as needed prior to
12
# starting Slurm daemons.
13
#
14
# If you keep the configuration directives below, you should create
15
# the directories /var/log/slurm/, /var/run/slurm/, and
16
# /var/spool/slurmd and make them owned and writable by the slurm user. 
17
18
AuthType=auth/munge
19
#BackupAddr=
20
#BackupController=
21
CacheGroups=0
22
ClusterName=FreeBSD
23
#ControlAddr=
24
ControlMachine=Master
25
#Epilog=
26
#FirstJobId=
27
#JobCredentialPrivateKey=
28
#JobCredentialPublicCertificate=
29
MailProg=/usr/bin/mail
30
#MaxJobCount=
31
MpiDefault=none
32
#PlugStackConfig=
33
#PluginDir=
34
ProctrackType=proctrack/pgid
35
#Prolog=
36
#PropagatePrioProcess=
37
#PropagateResourceLimits=
38
#PropagateResourceLimitsExcept=
39
ReturnToService=0
40
#SrunEpilog=
41
#SrunProlog=
42
SlurmUser=slurm
43
SlurmctldPidFile=/var/run/slurm/slurmctld.pid
44
SlurmctldPort=6817
45
SlurmdPidFile=/var/run/slurm/slurmd.pid
46
SlurmdPort=6818
47
SlurmdSpoolDir=/var/spool/slurmd
48
#SlurmdUser=root
49
StateSaveLocation=/var/run/slurm
50
SwitchType=switch/none
51
#TaskEpilog=
52
#TaskPlugin=
53
#TaskProlog=
54
#TmpFS=
55
#TrackWCKey=no
56
#TreeWidth=50
57
#UsePAM=
58
59
# TIMERS
60
InactiveLimit=0
61
KillWait=30
62
MinJobAge=300
63
SlurmctldTimeout=300
64
SlurmdTimeout=300
65
Waittime=0
66
67
# SCHEDULING
68
FastSchedule=1
69
#PriorityDecayHalfLife=14-0
70
#PriorityMaxAge=1-0
71
#PriorityType=priority/multifactor
72
#PriorityUsageResetPeriod=14-0
73
#PriorityWeightAge=1000
74
#PriorityWeightFairshare=100000
75
#PriorityWeightJobSize=1000
76
#PriorityWeightPartition=10000
77
#SchedulerAuth=
78
#SchedulerPort=
79
#SchedulerRootFilter=
80
SchedulerType=sched/backfill
81
SelectType=select/linear
82
83
# LOGGING
84
#JobCompLoc=
85
JobCompType=jobcomp/none
86
SlurmctldDebug=3
87
SlurmctldLogFile=/var/log/slurm/slurmctld.log
88
SlurmdDebug=3
89
SlurmdLogFile=/var/log/slurm/slurmd.log
90
91
# ACCOUNTING
92
#AccountingStorageHost=
93
#AccountingStorageLoc=
94
#AccountingStoragePass=
95
#AccountingStorageType=accounting_storage/slurmdbd
96
#AccountingStorageUser=
97
#JobAcctGatherFrequency=30
98
#JobAcctGatherType=jobacct_gather/none
99
100
# COMPUTE NODES
101
NodeName=slave[1-10]  Procs=48  State=UNKNOWN
102
NodeName=slave[11-20] Procs=16  State=UNKNOWN
103
104
# PARTITIONS
105
PartitionName=all Nodes=slave[1-20] Default=YES MaxTime=INFINITE State=UP
(-)/usr/wip/sysutils/slurm-wlm-16/pkg-plist (+2 lines)
Lines 227-232 Link Here
227
lib/slurm/switch_generic.so
227
lib/slurm/switch_generic.so
228
lib/slurm/switch_none.a
228
lib/slurm/switch_none.a
229
lib/slurm/switch_none.so
229
lib/slurm/switch_none.so
230
lib/slurm/task_affinity.a
231
lib/slurm/task_affinity.so
230
lib/slurm/task_cgroup.a
232
lib/slurm/task_cgroup.a
231
lib/slurm/task_cgroup.so
233
lib/slurm/task_cgroup.so
232
lib/slurm/task_cray.a
234
lib/slurm/task_cray.a

Return to bug 218044