aboutsummaryrefslogtreecommitdiffstats
path: root/dns/nslint/Makefile
blob: ddd2b3d0a96ca53b23f4c9ac883f18ab9d279ab1 (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
# Created by: dglo@ssec.wisc.edu
# $FreeBSD$

PORTNAME=   nslint
PORTVERSION=    3.1
CATEGORIES= dns
MASTER_SITES=   ftp://ftp.ee.lbl.gov/ \
        LOCAL/ehaupt

MAINTAINER= ehaupt@FreeBSD.org
COMMENT=    Perform consistency checks on DNS zone files

GNU_CONFIGURE=  yes

ALL_TARGET= ${PORTNAME}

BOOTFILE?=  /etc/namedb/named.boot
CONFFILE?=  /etc/namedb/named.conf

PLIST_FILES=    bin/nslint man/man8/nslint.8.gz

post-patch:
    @${REINPLACE_CMD} -e '/^\ \{4\}V_CCOPT/d' ${WRKSRC}/configure
    @@${REINPLACE_CMD} -e 's|/etc/named.boot|${BOOTFILE}|; \
        s|/etc/named.conf|${CONFFILE}|' \
            ${WRKSRC}/${PORTNAME}.c \
            ${WRKSRC}/${PORTNAME}.8

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/nslint ${STAGEDIR}${PREFIX}/bin
    ${INSTALL_MAN} ${WRKSRC}/nslint.8 ${STAGEDIR}${PREFIX}/man/man8

.include <bsd.port.mk>