Makefile 1.5 KB
Newer Older
1 2 3 4 5
# New ports collection makefile for: emulab-fs
#

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

PORTNAME=	emulab-fs
Mike Hibler's avatar
Mike Hibler committed
9
.if ${OSMAJOR} > 6
10 11 12
.if ${OSMINOR} > 2
PORTVERSION=	3.1
.else
Mike Hibler's avatar
Mike Hibler committed
13
PORTVERSION=	3.0
14
.endif
Mike Hibler's avatar
Mike Hibler committed
15 16
.else
.if ${OSMAJOR} > 5
17 18 19
.if ${OSMINOR} >= 3
PORTVERSION=	2.1
.else
20
PORTVERSION=	2.0
21
.endif
22
.else
23
PORTVERSION=	1.4
24
.endif
Mike Hibler's avatar
Mike Hibler committed
25
.endif
26 27 28 29
CATEGORIES=	misc
MASTER_SITES=	#none
DISTFILES=	#none
EXTRACT_ONLY=	#none
30
COMMENT=	"Meta-port for an Emulab fs node"
31

32
MAINTAINER=	testbed-ops@flux.utah.edu
33 34

#
35 36
# Select PHP and Apache versions
# Fix up some port diffs
37
#
38 39 40 41 42
.if ${PORTVERSION} == "3.1"
PHP_VER=	5
.else
PHP_VER=	4
.endif
43 44 45 46 47

#
# We must make sure PERL is built with this.
#
.MAKEFLAGS+=	ENABLE_SUIDPERL=yes
48 49 50
.if ${PORTVERSION} == "3.1"
.MAKEFLAGS+=	PERL_VERSION=5.10.1 PERL_VER=5.10.1 PERL_ARCH=mach
.else
51 52 53
.if ${PORTVERSION} == "3.0"
.MAKEFLAGS+=	PERL_VERSION=5.10.0 PERL_VER=5.10.0 PERL_ARCH=mach
.endif
54 55 56 57 58 59
.endif

#
# For samba, so that it doesn't suck in everything under the sun
#
.MAKEFLAGS+=	-DWITHOUT_WINBIND -DWITHOUT_LDAP -DWITHOUT_POPT -DWITHOUT_CUPS
60 61 62 63 64 65 66 67 68

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

RUN_DEPENDS= gmake:${PORTSDIR}/devel/gmake \
	sudo:${PORTSDIR}/security/sudo \
69 70
	rsync:${PORTSDIR}/net/rsync \
	smbd:${PORTSDIR}/net/samba3
71

72 73 74 75 76
NO_BUILD=	yes

do-install:	# empty

.include <bsd.port.mk>