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> |