aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/condor/Makefile
blob: 838b09c03f41db046bf2644a7bceb19137650c87 (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
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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
# Created by: Andy Pavlo
# $FreeBSD$

PORTNAME=   condor
PORTVERSION=    7.8.7
CATEGORIES= sysutils net
MASTER_SITES=   # empty
DISTNAME=   condor_src-${PORTVERSION}-all-all

MAINTAINER= jwbacon@tds.net
COMMENT=    High-throughput distributed batch system

LIB_DEPENDS+=   krb5support:${PORTSDIR}/security/krb5 \
        pcre:${PORTSDIR}/devel/pcre \
        curl:${PORTSDIR}/ftp/curl

RESTRICTED= Requires manual distfile fetch
WRKSRC=     ${WRKDIR}/condor-${PORTVERSION}
USE_GMAKE=  yes
USE_LDCONFIG=   yes
USES=       cmake
USE_PERL5=  yes
USE_PGSQL=  server
CXXFLAGS+=  -I${LOCALBASE}/include
LDFLAGS+=   -rpath=${LOCALBASE}/lib:/usr/lib:/lib
CMAKE_ARGS+=    -DCMAKE_CXX_FLAGS:STRING=${CXXFLAGS} \
        -DCMAKE_EXE_LINKER_FLAGS:STRING=${LDFLAGS}

SUB_FILES=  condor_config condor_config.local pkg-message

USERS=      condor
GROUPS=     ${USERS}

USE_RC_SUBR=    condor

PORTEXAMPLES=   *
PORTDOCS=   *

MANCOMPRESSED=  yes

MAN1=   \
    cleanup_release.1 \
    condor_advertise.1 \
    condor_check_userlogs.1 \
    condor_checkpoint.1 \
    condor_chirp.1 \
    condor_cod.1 \
    condor_cold_start.1 \
    condor_cold_stop.1 \
    condor_compile.1 \
    condor_config_bind.1 \
    condor_config_val.1 \
    condor_configure.1 \
    condor_continue.1 \
    condor_dagman.1 \
    condor_fetchlog.1 \
    condor_findhost.1 \
    condor_gather_info.1 \
    condor_glidein.1 \
    condor_history.1 \
    condor_hold.1 \
    condor_load_history.1 \
    condor_master.1 \
    condor_off.1 \
    condor_on.1 \
    condor_power.1 \
    condor_preen.1 \
    condor_prio.1 \
    condor_procd.1 \
    condor_q.1 \
    condor_qedit.1 \
    condor_reconfig.1 \
    condor_release.1 \
    condor_reschedule.1 \
    condor_restart.1 \
    condor_rm.1 \
    condor_router_history.1 \
    condor_router_q.1 \
    condor_router_rm.1 \
    condor_run.1 \
    condor_set_shutdown.1 \
    condor_ssh_to_job.1 \
    condor_stats.1 \
    condor_status.1 \
    condor_store_cred.1 \
    condor_submit.1 \
    condor_submit_dag.1 \
    condor_suspend.1 \
    condor_transfer_data.1 \
    condor_updates_stats.1 \
    condor_userlog.1 \
    condor_userprio.1 \
    condor_vacate.1 \
    condor_vacate_job.1 \
    condor_version.1 \
    condor_wait.1 \
    filelock_midwife.1 \
    filelock_undertaker.1 \
    gidd_alloc.1 \
    install_release.1 \
    procd_ctl.1 \
    uniq_pid_midwife.1 \
    uniq_pid_undertaker.1

.include <bsd.port.pre.mk>

.if !exists(${DISTDIR}/${DISTNAME}${EXTRACT_SUFX})
IGNORE= requires that you go to http://research.cs.wisc.edu/condor/ to register and manually download the source distribution ${DISTNAME}${EXTRACT_SUFX}, place it in ${DISTDIR}, and then run make again
.endif

pre-everything::
    @( ${PRINTF} "\nWARNING: Condor needs approximately 3GB to build!"; \
       ${PRINTF} "         Please make sure your build environment has that much before continuing.\n" )

post-patch:
    @${REINPLACE_CMD} \
        -e 's,\(set( C_SHARE_EXAMPLES   \)share/condor,\1${EXAMPLESDIR_REL},' \
        ${WRKSRC}/build/cmake/CondorPackageConfig.cmake

post-install:
    ${INSTALL_DATA} ${WRKDIR}/condor_config ${ETCDIR}
    ${INSTALL_DATA} ${WRKDIR}/condor_config.local ${ETCDIR}
    ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
    @${CAT} ${PKGMESSAGE}

.include <bsd.port.post.mk>