aboutsummaryrefslogtreecommitdiff
path: root/dns/dnsdoctor/Makefile
blob: f6edf9d57ac93b7b45c31cec070ffff20d99d0ea (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
48
49
50
51
52
53
54
55
# New ports collection makefile for:	dnsdoctor
# Date created:		2004-09-10
# Whom:	      		Janos.Mohacsi@bsd.hu
#
# $FreeBSD$
#

PORTNAME=	dnsdoctor
PORTVERSION=	1.0.1
CATEGORIES=	dns ipv6 ruby
MASTER_SITES=	http://www.dnsdoctor.org/download/src/
EXTRACT_SUFX=	.tgz

MAINTAINER=	janos.mohacsi@bsd.hu
COMMENT=	Perform consistency checks on DNS zones

.if defined(WITH_X11)
RUN_DEPENDS=	${RUBY_SITEARCHLIBDIR}/gtk2.so:${PORTSDIR}/x11-toolkits/ruby-gtk2
.endif

USE_RUBY=	yes
RUBY_VER=	1.8
USE_RUBY_FEATURES=	ruby18

NO_BUILD=	yes
WRKSRC=		${WRKDIR}/${PORTNAME}

MAN1=		dnsdoctor.1
DOCS=		INSTALL README HISTORY doc/*.html doc/*.png

DNSDOCTOR_TARGET=	configure common cli

.if defined(WITH_DNSDOCTOR_CGI)
DNSDOCTOR_TARGET+=	cgi
PLIST_SUB+=	DNSDOCTOR_CGI=""
.else
PLIST_SUB+=	DNSDOCTOR_CGI="@comment "

pre-everything::
	@${ECHO_MSG} "Use WITH_DNSDOCTOR_CGI=yes to install with CGI support"
.endif

do-install:
	@cd ${INSTALL_WRKSRC} && \
		${RUBY} ./installer.rb ${DNSDOCTOR_TARGET} \
		-DETCDIST='-dist' -DRUBY="${RUBY}" -DPREFIX="${PREFIX}" \
		-DWWWDIR="${PREFIX}/www/${PORTNAME}"

.if !defined(NOPORTDOCS)
post-install:
	@${MKDIR} ${DOCSDIR}
	cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
.endif

.include <bsd.port.mk>