Tweak dns/idnkit version 1.0_3
[dports.git] / dns / autotrust / Makefile
1 # Created by: Jaap Akkerhuis <jaap@nlnetlabs.nl>
2 # $FreeBSD$
3
4 PORTNAME=       autotrust
5 PORTVERSION=    0.3.1
6 PORTREVISION=   4
7 CATEGORIES=     dns
8 MASTER_SITES=   http://www.nlnetlabs.nl/downloads/autotrust/
9
10 MAINTAINER=     jaap@NLnetLabs.nl
11 COMMENT=        A tool to automatically update DNSSEC trust anchors
12
13 LIB_DEPENDS+=   libldns.so:${PORTSDIR}/dns/ldns \
14                 libunbound.so:${PORTSDIR}/dns/unbound
15
16 GNU_CONFIGURE=  yes
17 CFLAGS=         -I${LOCALBASE}/include
18 LDFLAGS+=       -L${LOCALBASE}/lib -pthread
19
20 PLIST_FILES=    sbin/autotrust man/man8/autotrust.8.gz \
21                 etc/autotrust/autotrust.conf.sample
22 PLIST_DIRS=     etc/autotrust
23
24 do-patch:
25         ${REINPLACE_CMD} \
26                 '45s!=!\?=!; \
27                 46s!^\(CFLAGS \)\(= -I.\) @CFLAGS@!\1+\2!' \
28                 ${WRKSRC}/Makefile.in
29
30 do-install:
31         ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/sbin
32         @${MKDIR} ${STAGEDIR}${ETCDIR}
33         ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.conf.sample ${STAGEDIR}${ETCDIR}
34         ${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.8 ${STAGEDIR}${MANPREFIX}/man/man8
35
36 .include <bsd.port.mk>