aboutsummaryrefslogtreecommitdiff
path: root/sysutils/geomWatch/Makefile
blob: 4b75f20475723ec9051924d1693e2fa6faa86d90 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# New ports collection makefile for:	geomWatch
# Date created:				11 January 2010
# Whom:					Boris Kochergin <spawk@acm.poly.edu>
#
# $FreeBSD$
#

PORTNAME=	geomWatch
PORTVERSION=	1.3.0
PORTREVISION=	1
CATEGORIES=	sysutils
MASTER_SITES=	http://isis.poly.edu/~bk/${PORTNAME}/ \
		http://bk.macroblock.net/${PORTNAME}/
EXTRACT_SUFX=	.tbz

MAINTAINER=	spawk@acm.poly.edu
COMMENT=	Watches for and e-mails admins about GEOM/ZFS state changes

LIB_DEPENDS=	esmtp.7:${PORTSDIR}/mail/libesmtp

SUB_FILES=	pkg-message

USE_RC_SUBR=	${PORTNAME}

.include <bsd.port.pre.mk>

.if ${OSVERSION} < 700036
MAKE_ARGS+=	WITHOUT_ZFS=yes
.elif ${OSVERSION} < 702102 || \
	(${OSVERSION} >= 800000 && ${OSVERSION} < 800054)
MAKE_ARGS+=	WITH_ZFS=6
.elif (${OSVERSION} >= 702102 && ${OSVERSION} < 800000) || \
	(${OSVERSION} >= 800054 && ${OSVERSION} < 802506) || \
	(${OSVERSION} >= 900000 && ${OSVERSION} < 900033)
MAKE_ARGS+=	WITH_ZFS=13
.else
MAKE_ARGS+=	WITH_ZFS=28
.endif

post-install:
	@if [ ! -f ${PREFIX}/etc/${PORTNAME}.conf ]; then \
		${CP} -p ${PREFIX}/etc/${PORTNAME}.conf.sample \
		${PREFIX}/etc/${PORTNAME}.conf ; \
	fi
	@${CAT} ${PKGMESSAGE}

.include <bsd.port.post.mk>