blob: 2787ecdb99197413caa7141363cb836c2f88d8c6 (
plain)
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
56
57
58
59
60
61
|
# $NetBSD: Makefile,v 1.6 2011/03/17 21:29:20 zafer Exp $
#
DISTNAME= dnsdoctor-1.0.1
CATEGORIES= net
MASTER_SITES= http://www.dnsdoctor.org/download/
EXTRACT_SUFX= .tgz
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.dnsdoctor.org/
COMMENT= DNS zones misconfigurations or inconsistencies diagnostic tool
LICENSE= gnu-gpl-v2
DEPENDS+= ruby${RUBY_VER}-base>=${RUBY_REQD}:../../lang/ruby${RUBY_VER}-base
PKG_DESTDIR_SUPPORT= user-destdir
WRKSRC= ${WRKDIR}/dnsdoctor
# Config name conflict, need many changes.
RUBY_VERSION_SUPPORTED= 18
NO_BUILD= yes
DDOC_HTML_PATH?= /dnsdoctor
EGDIR= share/examples
DDOCEGDIR= ${EGDIR}/dnsdoctor
# No we don't want to use PKG_SYSCONFSUBDIR
DDOCCONFDIR= ${PKG_SYSCONFDIR}/dnsdoctor
OWN_DIRS= ${PKG_SYSCONFDIR}/dnsdoctor
RUBY_ENCODING_ARG= -Ku
REPLACE_RUBY+= contrib/dig.rb dnsdoctor/zc.rb
DDOC_INSTALLER_RB_ARGS+= -DRUBY=${RUBY:Q}
DDOC_INSTALLER_RB_ARGS+= -DPREFIX=${PREFIX:Q}
DDOC_INSTALLER_RB_ARGS+= -DEGDIR=${PREFIX:Q}/${EGDIR:Q}
DDOC_INSTALLER_RB_ARGS+= -DETCDIR=${PKG_SYSCONFDIR:Q}
DDOC_INSTALLER_RB_ARGS+= -DHTML_PATH=${DDOC_HTML_PATH:Q}
CONF_FILES+= ${DDOCEGDIR}/afnic.profile ${DDOCCONFDIR}/afnic.profile
CONF_FILES+= ${DDOCEGDIR}/de.profile ${DDOCCONFDIR}/de.profile
CONF_FILES+= ${DDOCEGDIR}/default.profile ${DDOCCONFDIR}/default.profile
CONF_FILES+= ${DDOCEGDIR}/reverse.profile ${DDOCCONFDIR}/reverse.profile
CONF_FILES+= ${DDOCEGDIR}/rootservers ${DDOCCONFDIR}/rootservers
CONF_FILES+= ${DDOCEGDIR}/dnsdoctor.conf ${DDOCCONFDIR}/dnsdoctor.conf
MAKE_ENV+= DESTDIR=${DESTDIR}
do-configure:
cd ${WRKSRC} && \
${RUBY} ./installer.rb ${DDOC_INSTALLER_RB_ARGS} configure configinfo
do-install:
${RUN} cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} \
${RUBY} ${RUBY_ENCODING_ARG} ./installer.rb \
${DDOC_INSTALLER_RB_ARGS} all
${INSTALL_DATA} ${WRKSRC}/www/dnsdoctor.conf \
${DESTDIR}${PREFIX}/${DDOCEGDIR}/httpd-dnsdoctor.conf
.include "../../lang/ruby/replace.mk"
.include "../../mk/bsd.pkg.mk"
|