aboutsummaryrefslogtreecommitdiffstats
path: root/dns/zonecheck/Makefile
blob: d9ea168210814382274c09e9f8f5fc51d6d401ae (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
# Created by: Janos.Mohacsi@bsd.hu
# $FreeBSD$

PORTNAME=   zonecheck
PORTVERSION=    3.0.5
PORTEPOCH=  1
CATEGORIES= dns ipv6 ruby
MASTER_SITES=   http://www.zonecheck.fr/download/ \
        ftp://ftp.nic.fr/pub/mirror/zonecheck/src/
EXTRACT_SUFX=   .tgz

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

LICENSE=    GPLv3
LICENSE_FILE=   ${WRKSRC}/GPL

RUN_DEPENDS=    rubygem-dnsruby>=1.47:${PORTSDIR}/dns/rubygem-dnsruby

USES=   gmake
USE_RUBY=   yes

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

DOCS=       BUGS CREDITS HISTORY INSTALL README TODO

OPTIONS_DEFINE=     CGI DOCS
OPTIONS_DEFAULT=
OPTIONS_SUB=

CGI_DESC=   Install with CGI support

.include <bsd.port.options.mk>

ZONECHECK_TARGET=   common cli

.if ${PORT_OPTIONS:MCGI}
ZONECHECK_TARGET+=  cgi
.endif

do-install:
    cd ${INSTALL_WRKSRC} && \
        ${SETENV} LANG=en_US.UTF-8 ${RUBY} ./installer.rb ${ZONECHECK_TARGET} \
        -DETCDIST='-dist' -DRUBY="${RUBY}" -DPREFIX="${PREFIX}" \
        -DWWWDIR="${PREFIX}/www/${PORTNAME}" -DCHROOT="${STAGEDIR}"

post-install:
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
    cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>