Makefile 5.46 KB
Newer Older
1
2
3
4
# New ports collection makefile for: emulab-boss
# Date created:         28 January 2003
# Whom:                 ricci@cs.utah.edu

5
6
# Need the major version number to figure out to do.
OSMAJOR!= /usr/bin/uname -r | /usr/bin/sed -e 's/\..*//'
7
OSMINOR!= /usr/bin/uname -r | /usr/bin/sed -e 's/[0-9][0-9]*\.\([0-9][0-9]*\).*/\1/'
8

9
PORTNAME=	emulab-boss
Kirk Webb's avatar
   
Kirk Webb committed
10
.if ${OSMAJOR} >= 6
11
12
13
.if ${OSMINOR} >= 3
PORTVERSION=	2.1
.else
14
PORTVERSION=	2.0
15
.endif
16
.else
17
PORTVERSION=	1.7
18
.endif
19
20
21
22
CATEGORIES=	misc
MASTER_SITES=	#none
DISTFILES=	#none
EXTRACT_ONLY=	#none
23
COMMENT=	"Meta-port for an emulab boss node"
24

25
26
MAINTAINER=	ricci@cs.utah.edu

27
28
29
#
# We set this so that the mysql server port doesn't do name resolution
#
30
.MAKEFLAGS+=	-DSKIP_DNS_CHECK
31

32
#
33
# We must make sure PERL is built with this.
34
#
35
.MAKEFLAGS+=	ENABLE_SUIDPERL=yes
36
37
38

#
# For SWIG, so that it doesn't feel the need to suck in php and apache
39
# XXX Something is broken on FreeBSD 6.X and SWIG_LANGUAGES='x y z' breaks.
40
#
41
42
.MAKEFLAGS+=	SWIG_LANGUAGES= 
.MAKEFLAGS+=    WANT_SWIG_PERL=yes WANT_SWIG_PYTHON=yes WANT_SWIG_TCL=yes
43

44
45
46
47
48
#
# Have not taken the plunge to PHP5
#
.MAKEFLAGS+=	PHP_VER=4

49
#
50
51
# Various ports need to agree on what version of apache. Make sure this
# agrees with what is in the emulab-ops and emulab-php4 metaports.
52
53
54
#
.MAKEFLAGS+=	APACHE_PORT=www/apache13-modssl

55
56
57
58
59
#
# This prevents any ports from trying to run interactively - some, like the
# net-snmp port, ask silly questions without this option.
#
.MAKEFLAGS+=	-DBATCH
60

61
62
63
64
65
66
67
68
69
70
71
72
#
# XXX not really a build dependency, but needs to get installed before
# any attempt to install mysql50-* ports
#
.if ${PORTVERSION} == "2.1"
BUILD_DEPENDS=	\
	${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/Mysql.pm:${PORTSDIR}/misc/p5-DBD-mysql50-old
.else
BUILD_DEPENDS=	\
	${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/Mysql.pm:${PORTSDIR}/databases/p5-DBD-mysql50
.endif

73
LIB_DEPENDS= gd.4:${PORTSDIR}/graphics/gd \
74
	lthread.[23]:${PORTSDIR}/devel/linuxthreads \
75
	mhash.2:${PORTSDIR}/security/mhash \
Kirk Webb's avatar
   
Kirk Webb committed
76
	mysqlclient.15:${PORTSDIR}/databases/mysql50-client \
77
	snmp.4:${PORTSDIR}/net-mgmt/net-snmp4 \
78
	ulsshxmlrpcpp.0:${PORTSDIR}/misc/ulsshxmlrpcpp
79

80
81
82
83
84
85
86
87
88
89
90
91
92
#
# Until/unless the pubsub Makefile is changed, we must include libelvin.
# This is because the pubsub libraries have to be built with ELVIN_COMPAT
# to talk to pubsub on ops, and building with compat means that the gateway
# will be built.  Building that requires elvin libraries...
#
.if defined(ELVIN_COMPAT)
LIB_DEPENDS+= vin4.2:${PORTSDIR}/misc/libelvin \
	pubsub.1:${PORTSDIR}/misc/emulab-pubsub-elvincompat
.else
LIB_DEPENDS+= pubsub.1:${PORTSDIR}/misc/emulab-pubsub
.endif

93
94
RUN_DEPENDS=	\
	${LOCALBASE}/etc/apache/ssl.crl:${PORTSDIR}/www/apache13-modssl \
95
	${LOCALBASE}/libexec/apache/libauth_mysql.so:${PORTSDIR}/www/mod_auth_mysql \
96
	fping:${PORTSDIR}/net/fping \
97
	rsync:${PORTSDIR}/net/rsync \
98
	neato:${PORTSDIR}/graphics/graphviz \
99
        swish-e:${PORTSDIR}/www/swish-e \
Kirk Webb's avatar
   
Kirk Webb committed
100
	${LOCALBASE}/libexec/mysqld:${PORTSDIR}/databases/mysql50-server \
101
	anytopnm:${PORTSDIR}/graphics/netpbm \
Kirk Webb's avatar
   
Kirk Webb committed
102
	tclsh8.4:${PORTSDIR}/lang/tcl84 \
103
104
	otclsh:${PORTSDIR}/lang/otcl \
	${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/GD.pm:${PORTSDIR}/misc/p5-GD-old \
105
	${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/SNMP.pm:${PORTSDIR}/net-mgmt/p5-SNMP \
106
	${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/SNMP_Session.pm:${PORTSDIR}/net-mgmt/p5-SNMP_Session \
107
	${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/BSD/Resource.pm:${PORTSDIR}/devel/p5-BSD-Resource \
108
	${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/Time/HiRes.pm:${PORTSDIR}/devel/p5-Time-HiRes \
109
	${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/MD5.pm:${PORTSDIR}/security/p5-MD5 \
110
	rpm:${PORTSDIR}/archivers/rpm \
111
	xvcg:${PORTSDIR}/graphics/vcg \
112
	${LOCALBASE}/libexec/tftpd:${PORTSDIR}/misc/emulab-tftp-hpa \
113
	sudo:${PORTSDIR}/security/sudo \
Kirk Webb's avatar
   
Kirk Webb committed
114
	dhcpd:${PORTSDIR}/net/isc-dhcp3-server \
115
	wget:${PORTSDIR}/ftp/wget \
116
	${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/XML/Parser:${PORTSDIR}/textproc/p5-XML-Parser \
117
	${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/RPC/XML.pm:${PORTSDIR}/net/p5-RPC-XML \
118
119
	${PYTHON_SITELIBDIR}/M2Crypto/ASN1.py:${PORTSDIR}/security/py-m2crypto \
	${LOCALBASE}/include/boost:${PORTSDIR}/devel/boost \
120
	gmake:${PORTSDIR}/devel/gmake \
121
	kmetis:${PORTSDIR}/math/metis \
122
        curl:${PORTSDIR}/ftp/curl \
Kirk Webb's avatar
   
Kirk Webb committed
123
124
	${PYTHON_SITELIBDIR}/MySQLdb/times.py:${PORTSDIR}/databases/py-MySQLdb \
	mysqlhotcopy:${PORTSDIR}/databases/mysql50-scripts
125

126
.if ${PORTVERSION} == "2.1"
127
128
129
# not sure why this is just needed for 6.3
RUN_DEPENDS+=	\
	${X11BASE}/libdata/xorg/libraries:${PORTSDIR}/x11/xorg-libraries
130
131
.endif

Kirk Webb's avatar
   
Kirk Webb committed
132
.if ${OSMAJOR} >= 6
133
RUN_DEPENDS+= \
134
	${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/DBI.pm:${PORTSDIR}/databases/p5-DBI \
Kirk Webb's avatar
   
Kirk Webb committed
135
	${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/XML/Simple.pm:${PORTSDIR}/textproc/p5-XML-Simple \
Leigh B. Stoller's avatar
Leigh B. Stoller committed
136
137
	swig:${PORTSDIR}/devel/swig13 \
	${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/Date/Parse.pm:${PORTSDIR}/devel/p5-TimeDate
138
139
140
141
142
143
.else
RUN_DEPENDS+= cvsup:${PORTSDIR}/net/cvsup-without-gui \
	${LOCALBASE}/libexec/apache/libphp4.so:${PORTSDIR}/www/mod_php4 \
	${LOCALBASE}/include/php/ext/openssl/php_openssl.h:${PORTSDIR}/lang/php4-extensions \
	${LOCALBASE}/lib/tcl8.4/sql1.0/libTclMySQL.so.1:${PORTSDIR}/databases/tcl-Mysql \
	${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/DBI.pm:${PORTSDIR}/databases/p5-DBI-137 \
Kirk Webb's avatar
   
Kirk Webb committed
144
145
	swig1.1:${PORTSDIR}/devel/swig11 \
	${LOCALBASE}/sbin/named:${PORTSDIR}/dns/bind9
146
.endif
147
148

USE_PERL5=	yes
149
USE_PYTHON=	yes
150
151
152
153
154
155

NO_BUILD=	yes

do-install:	# empty

.include <bsd.port.mk>