aboutsummaryrefslogtreecommitdiffstats
path: root/dns/doc/Makefile
blob: c7f622ed0b0cb18bf80879422839d2b876cbb711 (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
# New ports collection makefile for:    doc
# Date created:         28 November 1999
# Whom:             MIHIRA Yoshiro <sanpei@jp.FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   doc
PORTVERSION=    2.1.4
CATEGORIES= net
MASTER_SITES=   ${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= sanpei

MAINTAINER= sanpei@FreeBSD.org
COMMENT=    Diagnose unhealthy DNS domains

AUX_DIR=    lib/doc
AUX_FILES=  doc1.awk doc3.awk doc4.awk INFO RFC.XXXX

MAN8=       doc.8

do-build:
    @${MV} ${WRKSRC}/doc ${WRKSRC}/doc.org
    @${SED} -e 's|$${PREFIX}|${PREFIX}|g' -e 's|$${AUX_DIR}|${AUX_DIR}|g' ${WRKSRC}/doc.org \
    > ${WRKSRC}/doc

do-install:
    @${MKDIR} ${PREFIX}/${AUX_DIR}
    @${INSTALL_SCRIPT} ${WRKSRC}/doc ${PREFIX}/bin/doc
    @for file in ${AUX_FILES}; do \
        ${INSTALL_DATA} ${WRKSRC}/$$file ${PREFIX}/${AUX_DIR}/ ; \
    done
.if !defined(NOPORTDOCS)
    @${INSTALL_DATA} ${WRKSRC}/doc.8 ${PREFIX}/man/man8/doc.8
.endif

.include <bsd.port.mk>