Makefile 1.29 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
9 10 11 12
.if ${OSMAJOR} > 6
PORTVERSION=	3.0
.else
.if ${OSMAJOR} > 5
13 14 15
.if ${OSMINOR} >= 3
PORTVERSION=	2.1
.else
16
PORTVERSION=	2.0
17
.endif
18
.else
19
PORTVERSION=	1.4
20
.endif
21
.endif
22 23 24 25 26 27 28 29 30 31 32
CATEGORIES=	misc
MASTER_SITES=	#none
DISTFILES=	#none
EXTRACT_ONLY=	#none
COMMENT=	"Meta-port for an emulab fs node"

MAINTAINER=	hibler@cs.utah.edu

#
# For samba, so that it doesn't suck in everything under the sun
#
33 34 35 36 37 38
.MAKEFLAGS+=	-DWITHOUT_WINBIND -DWITHOUT_LDAP -DWITHOUT_POPT -DWITHOUT_CUPS

#
# We must make sure PERL is built with this.
#
.MAKEFLAGS+=	ENABLE_SUIDPERL=yes
39 40 41 42 43 44 45 46 47

#
# 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 \
48
	rsync:${PORTSDIR}/net/rsync
49

50 51 52 53
.if ${OSMAJOR} >= 6
.else
RUN_DEPENDS+= smbd:${PORTSDIR}/net/samba3
.endif
54

55 56 57 58 59
.if ${PORTVERSION} == "2.1"
# not sure why we don't build this for 6.0-6.2...
RUN_DEPENDS+= smbd:${PORTSDIR}/net/samba3
.endif

60 61 62 63 64
NO_BUILD=	yes

do-install:	# empty

.include <bsd.port.mk>