Makefile 3.73 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
7
# Need the major version number to figure out to do.
OSMAJOR!= /usr/bin/uname -r | /usr/bin/sed -e 's/\..*//'

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

MAINTAINER=	ricci@cs.utah.edu

22
23
24
25
26
27
28
29
30
31
#
# 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
32
33
#
# For SWIG, so that it doesn't feel the need to suck in php and apache
34
# XXX Something is broken on FreeBSD 6.X and SWIG_LANGUAGES='x y z' breaks.
Robert Ricci's avatar
Robert Ricci committed
35
#
36
37
38
39
40
41
42
43
.MAKEFLAGS+=	SWIG_LANGUAGES= 
.MAKEFLAGS+=    WANT_SWIG_PERL=yes WANT_SWIG_PYTHON=yes WANT_SWIG_TCL=yes

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

45
46
47
#
# For samba, so that it doesn't suck in everything under the sun
#
48
.MAKEFLAGS+=	-DWITHOUT_WINBIND -DWITHOUT_LDAP -DWITHOUT_POPT -DWITHOUT_CUPS
49
50
51
52
53
54
55

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

56
LIB_DEPENDS= lthread.[23]:${PORTSDIR}/devel/linuxthreads \
57
	ulsshxmlrpcpp.0:${PORTSDIR}/misc/ulsshxmlrpcpp
58

59
60
61
62
63
64
65
.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
66
.if ${OSMAJOR} >= 6
67
LIB_DEPENDS+= mhash.2:${PORTSDIR}/security/mhash \
Kirk Webb's avatar
   
Kirk Webb committed
68
	mysqlclient.15:${PORTSDIR}/databases/mysql50-client
69
70
.endif

71
RUN_DEPENDS= gmake:${PORTSDIR}/devel/gmake \
72
	sudo:${PORTSDIR}/security/sudo \
73
	rsync:${PORTSDIR}/net/rsync \
74
	otclsh:${PORTSDIR}/lang/otcl \
75
	${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/BSD/Resource.pm:${PORTSDIR}/devel/p5-BSD-Resource \
76
	${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/Time/HiRes.pm:${PORTSDIR}/devel/p5-Time-HiRes \
77
	wget:${PORTSDIR}/ftp/wget \
78
79
80
81
82
	${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
83

Kirk Webb's avatar
   
Kirk Webb committed
84
.if ${OSMAJOR} >= 6
85
RUN_DEPENDS+= \
86
87
	${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
88
	${LOCALBASE}/libexec/mysqld:${PORTSDIR}/databases/mysql50-server \
89
	${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/DBI.pm:${PORTSDIR}/databases/p5-DBI \
90
	${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/Mysql.pm:${PORTSDIR}/databases/p5-DBD-mysql50 \
91
	${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/XML/Parser:${PORTSDIR}/textproc/p5-XML-Parser \
Kirk Webb's avatar
   
Kirk Webb committed
92
93
	${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
94
	${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/GD/Graph.pm:${PORTSDIR}/graphics/p5-GD-Graph \
95
	${LOCALBASE}/sbin/cvsd:${PORTSDIR}/devel/cvsd \
Kirk Webb's avatar
   
Kirk Webb committed
96
97
98
99
        ${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 \
100
        snort:${PORTSDIR}/security/snort \
Kirk Webb's avatar
   
Kirk Webb committed
101
	mysqlhotcopy:${PORTSDIR}/databases/mysql50-scripts
102
103
104
.else
RUN_DEPENDS+= smbd:${PORTSDIR}/net/samba3
.endif
105
106

NO_BUILD=	yes
Robert Ricci's avatar
Robert Ricci committed
107
USE_PYTHON=	yes
108
USE_PERL5=	yes
109
110
111
112

do-install:	# empty

.include <bsd.port.mk>
113