aboutsummaryrefslogtreecommitdiffstats
path: root/dns/pdnsd/Makefile
blob: 4360615c38b2b51fd3c152a7e52ee819121b6a71 (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
# New ports collection makefile for:    pdnsd
# Date Created:             27 Oct 2000
# Whom:                 Roman Shterenzon <roman@xpert.com>
#
# $FreeBSD$
#

PORTNAME=   pdnsd
PORTVERSION=    1.1.10
CATEGORIES= dns
MASTER_SITES=   http://www.phys.uu.nl/~rombouts/pdnsd/
DISTNAME=   ${PORTNAME}-${PORTVERSION}-par

MAINTAINER= roman@xpert.com
COMMENT=    Caching (permanently, writes to disk on exit) DNS proxy-server

GNU_CONFIGURE=  yes
USE_GMAKE=  yes
CONFIGURE_ARGS= --with-cachedir=${PDNSDB} \
        --enable-ipv6
WRKSRC=     ${WRKDIR}/${PORTNAME}-${PORTVERSION}

MAN8=       pdnsd-ctl.8

PDNSDB=     /var/db/pdnsd
DOCSRCDIR=  ${WRKSRC}/doc
DOC_FILES=  html/dl.html html/doc.html html/faq.html html/index.html
DOC_FILES+= txt/faq.txt txt/intro.txt txt/manual.txt

post-install:
    @${MKDIR} ${PREFIX}/etc/rc.d
    @${SED} "s|%%PREFIX%%|${PREFIX}|g" < ${FILESDIR}/pdnsd.sh > ${PREFIX}/etc/rc.d/pdnsd.sh
    @${CHMOD} 750 ${PREFIX}/etc/rc.d/pdnsd.sh
.if !defined(NOPORTDOCS)
    ${MKDIR} ${DOCSDIR}
    ${INSTALL_DATA} ${DOC_FILES:S@^@${DOCSRCDIR}/@} ${DOCSDIR}
.endif
    @${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>