Makefile 4.31 KB
Newer Older
1
2
3
4
# New ports collection makefile for: emulab-ops
# 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-ops
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
17
18
.else
PORTVERSION=	1.4
.endif
19
20
21
22
CATEGORIES=	misc
MASTER_SITES=	#none
DISTFILES=	#none
EXTRACT_ONLY=	#none
23
COMMENT=	"Meta-port for an emulab ops node"
24
25
26

MAINTAINER=	ricci@cs.utah.edu

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

#
# We must make sure PERL is built with this.
#
.MAKEFLAGS+=	ENABLE_SUIDPERL=yes

Robert Ricci's avatar
Robert Ricci committed
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.
Robert Ricci's avatar
Robert Ricci committed
40
#
41
42
43
.MAKEFLAGS+=	SWIG_LANGUAGES= 
.MAKEFLAGS+=    WANT_SWIG_PERL=yes WANT_SWIG_PYTHON=yes WANT_SWIG_TCL=yes

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

49
50
51
52
53
#
# 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.
#
.MAKEFLAGS+=	APACHE_PORT=www/apache13-modssl
Robert Ricci's avatar
Robert Ricci committed
54

55
56
57
#
# For samba, so that it doesn't suck in everything under the sun
#
58
.MAKEFLAGS+=	-DWITHOUT_WINBIND -DWITHOUT_LDAP -DWITHOUT_POPT -DWITHOUT_CUPS
59
60
61
62
63
64
65

#
# This prevents any ports from trying to run interactively - some, ask silly
# questions without this option.
#
.MAKEFLAGS+=	-DBATCH

66
LIB_DEPENDS= lthread.[23]:${PORTSDIR}/devel/linuxthreads \
67
	ulsshxmlrpcpp.0:${PORTSDIR}/misc/ulsshxmlrpcpp
68

69
70
71
72
73
74
75
.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

Kirk Webb's avatar
   
Kirk Webb committed
76
.if ${OSMAJOR} >= 6
77
LIB_DEPENDS+= mhash.2:${PORTSDIR}/security/mhash \
Kirk Webb's avatar
   
Kirk Webb committed
78
	mysqlclient.15:${PORTSDIR}/databases/mysql50-client
79
80
.endif

81
RUN_DEPENDS= gmake:${PORTSDIR}/devel/gmake \
82
	sudo:${PORTSDIR}/security/sudo \
83
	rsync:${PORTSDIR}/net/rsync \
84
	otclsh:${PORTSDIR}/lang/otcl \
85
	${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/BSD/Resource.pm:${PORTSDIR}/devel/p5-BSD-Resource \
86
	${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/Time/HiRes.pm:${PORTSDIR}/devel/p5-Time-HiRes \
87
	wget:${PORTSDIR}/ftp/wget \
88
89
90
91
92
	${PYTHON_SITELIBDIR}/M2Crypto/ASN1.py:${PORTSDIR}/security/py-m2crypto

.if defined(ELVIN_COMPAT)
RUN_DEPENDS+= ${LOCALBASE}/libexec/elvind:${PORTSDIR}/misc/elvind
.endif
Robert Ricci's avatar
Robert Ricci committed
93

Kirk Webb's avatar
   
Kirk Webb committed
94
.if ${OSMAJOR} >= 6
95
RUN_DEPENDS+= \
96
97
	${LOCALBASE}/etc/apache/ssl.crl:${PORTSDIR}/www/apache13-modssl \
	${LOCALBASE}/libexec/apache/libauth_mysql.so:${PORTSDIR}/www/mod_auth_mysql \
Kirk Webb's avatar
   
Kirk Webb committed
98
	${LOCALBASE}/libexec/mysqld:${PORTSDIR}/databases/mysql50-server \
99
100
	${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/DBI.pm:${PORTSDIR}/databases/p5-DBI \
	${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/XML/Parser:${PORTSDIR}/textproc/p5-XML-Parser \
Kirk Webb's avatar
   
Kirk Webb committed
101
102
	${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/XML/Simple.pm:${PORTSDIR}/textproc/p5-XML-Simple \
	${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/CGI/Session.pm:${PORTSDIR}/www/p5-CGI-Session \
Kirk Webb's avatar
   
Kirk Webb committed
103
	${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/GD/Graph.pm:${PORTSDIR}/graphics/p5-GD-Graph \
104
	${LOCALBASE}/sbin/cvsd:${PORTSDIR}/devel/cvsd \
Kirk Webb's avatar
   
Kirk Webb committed
105
106
107
108
        ${LOCALBASE}/share/adodb/adodb.inc.php:${PORTSDIR}/databases/adodb \
	${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/HTML/Parser.pm:${PORTSDIR}/www/p5-HTML-Parser \
	${PYTHON_SITELIBDIR}/MySQLdb/times.py:${PORTSDIR}/databases/py-MySQLdb \
        curl:${PORTSDIR}/ftp/curl \
109
        snort:${PORTSDIR}/security/snort \
Kirk Webb's avatar
   
Kirk Webb committed
110
	mysqlhotcopy:${PORTSDIR}/databases/mysql50-scripts
111
112
113
.else
RUN_DEPENDS+= smbd:${PORTSDIR}/net/samba3
.endif
114

115
.if ${PORTVERSION} == "2.1"
116
117
# not sure why this is just needed for 6.3
RUN_DEPENDS+= ${X11BASE}/libdata/xorg/libraries:${PORTSDIR}/x11/xorg-libraries
118
119
120
121
122
123
124
125
126
# not sure why we don't build this for 6.0-6.2...
RUN_DEPENDS+= smbd:${PORTSDIR}/net/samba3
RUN_DEPENDS+= \
	${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/DBD/mysql.pm:${PORTSDIR}/databases/p5-DBD-mysql50
.else
RUN_DEPENDS+= \
	${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/Mysql.pm:${PORTSDIR}/databases/p5-DBD-mysql50
.endif

127
NO_BUILD=	yes
Robert Ricci's avatar
Robert Ricci committed
128
USE_PYTHON=	yes
129
USE_PERL5=	yes
130
131
132
133

do-install:	# empty

.include <bsd.port.mk>
134