aboutsummaryrefslogtreecommitdiffstats
path: root/dns/autotrust/Makefile
blob: b2180ba878478a0c5ecf831612803d5e59fc6317 (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
# New ports collection makefile for:    autotrust
# Date created:     2010-01-09
# Whom:         Jaap Akkerhuis <jaap@nlnetlabs.nl>
#
# $FreeBSD$
#

PORTNAME=   autotrust
PORTVERSION=    0.3.1
PORTREVISION=   3
CATEGORIES= dns
MASTER_SITES=   http://www.nlnetlabs.nl/downloads/autotrust/

MAINTAINER= jaap@NLnetLabs.nl
COMMENT=    A tool to automatically update DNSSEC trust anchors

LIB_DEPENDS+=   ldns.1:${PORTSDIR}/dns/ldns \
        unbound.3:${PORTSDIR}/dns/unbound

GNU_CONFIGURE=  yes
CFLAGS=     -I${LOCALBASE}/include ${PTHREAD_CFLAGS}
LDFLAGS+=   -L${LOCALBASE}/lib ${PTHREAD_LIBS}

MAN8=       autotrust.8

PLIST_FILES=    sbin/autotrust \
        etc/autotrust/autotrust.conf.sample
PLIST_DIRS= etc/autotrust

do-patch:
    ${REINPLACE_CMD} \
        '45s!=!\?=!; \
        46s!^\(CFLAGS \)\(= -I.\) @CFLAGS@!\1+\2!' \
        ${WRKSRC}/Makefile.in

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/sbin
    ${MKDIR} ${ETCDIR}
    ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.conf.sample ${ETCDIR}
    ${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.8 ${PREFIX}/man/man8

.include <bsd.port.mk>