Makefile 3.79 KB
Newer Older
1
# New ports collection makefile for: emulab-ops
2
3
# Date created:         15 June 2015
# Whom:                 testbed-ops@flux.utah.edu
4

5
.include "../emulab-boss/Makefile.emulab"
6

7
8
PORTNAME=	emulab-ops
PORTVERSION=	${EMULAB_PORTVERSION}
9
10
11
12
13
CATEGORIES=	misc
MASTER_SITES=	#none
DISTFILES=	#none
EXTRACT_ONLY=	#none

14
MAINTAINER=	testbed-ops@flux.utah.edu
15
COMMENT=	"Meta-port for an Emulab ops node"
16

17
#
18
# For PHP, specify that we want the Apache module.
Robert Ricci's avatar
Robert Ricci committed
19
#
20
WANT_PHP_MOD=	yes
21

22
#
23
24
# PHP modules to build.
# XXX based on current ops install.
25
#
26
27
28
USE_PHP=	bz2 ctype curl dom filter gd hash iconv json mcrypt mysql \
		openssl pdo phar posix session simplexml sockets tokenizer \
		xml xmlreader xmlrpc xmlwriter
29

30
#
31
# Various ports need to agree on what version of apache.
32
#
33
www_apache22_SET=	SUEXEC
34
35
.MAKEFLAGS+=	APACHE_PORT=www/apache22
.MAKEFLAGS+=	WITH_SUEXEC=yes
36
37

#
38
# This prevents any ports from trying to configure interactively.
39
#
40
BATCH=		yes
41
42
.MAKEFLAGS+=	-DBATCH

43
44
45
46
47
LIB_DEPENDS=	\
	libmhash.so:${PORTSDIR}/security/mhash \
	libmysqlclient.so:${PORTSDIR}/databases/mysql${MYSQL_VER}-client \
	libxmlrpc.so:${PORTSDIR}/net/xmlrpc-c \
	libpubsub.so:${PORTSDIR}/misc/emulab-pubsub
48

49
50
51
# We need the BUILD_DEPENDS above to wind up in the dependency list
RUN_DEPENDS:= ${BUILD_DEPENDS}

52
53
54
#
# Emulab-hacked versions of standard ports
#
55
RUN_DEPENDS+=	\
56
57
58
59
60
61
62
63
64
65
	${PYTHON_PKGNAMEPREFIX}m2crypto>0:${PORTSDIR}/misc/emulab-py-m2crypto

# compensate for incomplete dependencies (boehm-gc via git)
RUN_DEPENDS+=	\
	pkgconf:${PORTSDIR}/devel/pkgconf

# apps
RUN_DEPENDS+=	\
	autoconf:${PORTSDIR}/devel/autoconf \
	curl:${PORTSDIR}/ftp/curl \
66
	git:${PORTSDIR}/devel/git \
67
68
69
	gmake:${PORTSDIR}/devel/gmake \
	libtool:${PORTSDIR}/devel/libtool \
	otclsh:${PORTSDIR}/misc/otcl \
70
	rsync:${PORTSDIR}/net/rsync \
71
	sudo:${PORTSDIR}/security/sudo \
Leigh B Stoller's avatar
Leigh B Stoller committed
72
	wget:${PORTSDIR}/ftp/wget \
73
74
	${LOCALBASE}/bin/flex:${PORTSDIR}/textproc/flex \
	${LOCALBASE}/libexec/mysqld:${PORTSDIR}/databases/mysql${MYSQL_VER}-server
Robert Ricci's avatar
Robert Ricci committed
75

76
77
78
79
# perl packages
# XXX all the versions listed here are ones that are known to work
#     on a 10.0 system.
#
80
RUN_DEPENDS+=	\
81
	p5-BSD-Resource>=1.2907:${PORTSDIR}/devel/p5-BSD-Resource \
Mike Hibler's avatar
Mike Hibler committed
82
	p5-CGI>=4.13:${PORTSDIR}/www/p5-CGI \
83
84
85
86
87
88
89
90
91
	p5-CGI-Session>=4.48:${PORTSDIR}/www/p5-CGI-Session \
	p5-DBI>=1.630:${PORTSDIR}/databases/p5-DBI \
	p5-GD-Graph>=1.48:${PORTSDIR}/graphics/p5-GD-Graph \
	p5-HTML-Parser>=3.71:${PORTSDIR}/www/p5-HTML-Parser \
	p5-JSON>=2.61:${PORTSDIR}/converters/p5-JSON \
	p5-RPC-XML>=0.77:${PORTSDIR}/net/p5-RPC-XML \
	p5-Time-HiRes>=1.9726:${PORTSDIR}/devel/p5-Time-HiRes \
	p5-TimeDate>=2.30:${PORTSDIR}/devel/p5-TimeDate \
	p5-XML-Parser>=2.41:${PORTSDIR}/textproc/p5-XML-Parser \
Mike Hibler's avatar
Mike Hibler committed
92
93
94
	p5-XML-Simple>=2.20:${PORTSDIR}/textproc/p5-XML-Simple \
	p5-Digest-SHA1>=2.13:${PORTSDIR}/security/p5-Digest-SHA1 \
	p5-Digest-HMAC>=1.03:${PORTSDIR}/security/p5-Digest-HMAC
95
96

# python packages
97
RUN_DEPENDS+=	\
Mike Hibler's avatar
Mike Hibler committed
98
	${PYTHON_PKGNAMEPREFIX}MySQLdb>0:${PORTSDIR}/databases/py-MySQLdb \
99
	${PYTHON_PKGNAMEPREFIX}dateutil>0:${PORTSDIR}/devel/py-dateutil \
Mike Hibler's avatar
Mike Hibler committed
100
	${PYTHON_PKGNAMEPREFIX}lxml>0:${PORTSDIR}/devel/py-lxml
101

102
# apache related ports
103
RUN_DEPENDS+=	\
104
105
	${LOCALBASE}/libexec/apache22/mod_ssl.so:${PORTSDIR}/${APACHE_PORT} \
	${LOCALBASE}/libexec/apache22/mod_fastcgi.so:${PORTSDIR}/www/mod_fastcgi
106

107
# PHP packages
108
RUN_DEPENDS+= \
109
        ${LOCALBASE}/share/adodb/adodb.inc.php:${PORTSDIR}/databases/adodb
110

111
# Alternative shells that we allow users to select
112
RUN_DEPENDS+= \
113
114
115
116
117
118
119
120
121
122
        bash:${PORTSDIR}/shells/bash \
        zsh:${PORTSDIR}/shells/zsh

#.if ${OSMAJOR} >= 10
## include GCC for now to build Emulab SW (nsverify)
#RUN_DEPENDS+= \
#	${LOCALBASE}/bin/gcc46:${PORTSDIR}/lang/gcc46
#.endif

# For reasons lost in the mists of time, we install this
123
RUN_DEPENDS+=	\
124
	${LOCALBASE}/libdata/pkgconfig/x11.pc:${PORTSDIR}/x11/xorg-libraries
125

126
USE_PERL5=	yes
127
128
129
USES=		python:2.7

NO_BUILD=	yes
130
131
132
133

do-install:	# empty

.include <bsd.port.mk>