mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-18 03:46:03 +00:00
0de4600ea4
install the header files and libraries instead of the end-result command-line utilities, thus letting other developers make use of Prof. Bernstein's products without incorporating them in their own projects.
110 lines
3.2 KiB
Makefile
110 lines
3.2 KiB
Makefile
# New ports collection makefile for: dnscache
|
|
# Date created: 24 Jan 2000
|
|
# Whom: Neil Blakey-Milner
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME?= djbdns
|
|
PORTVERSION?= ${DJBDNS_VER}
|
|
PORTREVISION?= 4
|
|
CATEGORIES?= net
|
|
MASTER_SITES= http://cr.yp.to/djbdns/ \
|
|
ftp://cr.yp.to/djbdns/
|
|
DISTNAME= djbdns-${DJBDNS_VER}
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
|
|
|
|
.if !defined(WITHOUT_MAN) && !defined(LIBDJBDNS_ONLY)
|
|
MANDATE= -20021211
|
|
MASTER_SITES+= http://smarden.org/pape/djb/manpages/:1
|
|
DISTFILES+= ${DISTNAME}-man${MANDATE}.tar.gz:1
|
|
|
|
MAN1= dnsfilter.1 dnsip.1 dnsipq.1 dnsmx.1 dnsname.1 \
|
|
dnsq.1 dnsqr.1 dnstrace.1 dnstracesort.1 dnstxt.1 \
|
|
tinydns-get.1
|
|
MAN8= axfr-get.8 axfrdns.8 dnscache-conf.8 dnscache.8 \
|
|
pickdns-conf.8 pickdns-data.8 pickdns.8 rbldns-conf.8 \
|
|
rbldns-data.8 rbldns.8 tinydns-conf.8 tinydns-data.8 \
|
|
tinydns-edit.8 tinydns.8 walldns-conf.8 walldns.8
|
|
MANCOMPRESSED= no
|
|
.endif
|
|
|
|
.if defined(WITH_IPV6) && !defined(LIBDJBDNS_ONLY)
|
|
PKGNAMESUFFIX= -ipv6
|
|
PORTVERSION= ${DJBDNS_VER}.${DJBDNS_V6_VER:S/test/b/:S/diff//}
|
|
PATCH_SITES+= http://www.fefe.de/dns/
|
|
PATCHFILES+= ${PORTNAME}-${DJBDNS_VER}-${DJBDNS_V6_VER}.diff.bz2
|
|
PATCH_DIST_STRIP= -p1
|
|
.endif
|
|
|
|
.if defined(WITH_DNSCACHE_DUMPCACHE) && !defined(LIBDJBDNS_ONLY)
|
|
.if defined(WITH_IPV6)
|
|
BROKEN= The IPv6 and dnscache-dumpcache patches are currently in conflict.
|
|
.endif
|
|
PATCH_SITES+= http://mapage.noos.fr/efge/djbdns/
|
|
PATCHFILES+= patch-dnscache-dumpcache-v4.txt
|
|
PATCH_DIST_STRIP= -p1
|
|
CFLAGS+= -DDUMPCACHE
|
|
.endif
|
|
|
|
DJBDNS_VER= 1.05
|
|
DJBDNS_V6_VER= test14
|
|
|
|
MAINTAINER?= roam@FreeBSD.org
|
|
COMMENT?= A collection of secure and reliable DNS tools
|
|
|
|
.if !defined(LIBDJBDNS_ONLY)
|
|
RUN_DEPENDS= setuidgid:${PORTSDIR}/sysutils/daemontools \
|
|
tcpserver:${PORTSDIR}/sysutils/ucspi-tcp
|
|
.endif
|
|
|
|
.if !defined(LIBDJBDNS_ONLY)
|
|
ALL_TARGET= it
|
|
INSTALL_TARGET= setup check
|
|
.else
|
|
ALL_TARGET= it-lib
|
|
INSTALL_TARGET= setup-lib check-lib
|
|
PLIST= ${MASTERDIR}/pkg-plist.libdjbdns
|
|
DESCR= ${MASTERDIR}/pkg-descr.libdjbdns
|
|
PATCHFILES+= libdjbdns-${PORTVERSION}${LIBDJBDNS_REV}.patch
|
|
PATCH_SITES+= http://devel.ringlet.net/net/libdjbdns/
|
|
.endif
|
|
|
|
NO_PACKAGE= Forbidden - we have patches to the distribution.
|
|
|
|
|
|
.if defined(WITH_IPV6)
|
|
PLIST_SUB+= WITH_IPV6=""
|
|
.else
|
|
PLIST_SUB+= WITH_IPV6="@comment "
|
|
.endif
|
|
|
|
.if !defined(LIBDJBDNS_ONLY)
|
|
pre-fetch:
|
|
@${ECHO} "You can define the following variables to configure the djbdns build:"
|
|
@${ECHO} "- WITH_IPV6 - build with IPv6 support"
|
|
@${ECHO} " http://www.fefe.de/dns/"
|
|
@${ECHO} "- WITH_DNSCACHE_DUMPCACHE - build with the persistent cache patch for dnscache"
|
|
@${ECHO} " http://mapage.noos.fr/efge/djbdns/"
|
|
@${ECHO} "- WITHOUT_MAN - do NOT install Gerritt Pape's manual pages"
|
|
@${ECHO} " http://smarden.org/pape/djb/manpages/"
|
|
.endif
|
|
|
|
.if defined(LIBDJBDNS_ONLY)
|
|
pre-patch:
|
|
${CP} ${WRKSRC}/hier.c ${WRKSRC}/hier-lib.c
|
|
.endif
|
|
|
|
post-patch:
|
|
@echo "${CC} ${CFLAGS}" > ${WRKSRC}/conf-cc
|
|
@echo "${CC} ${STRIP}" > ${WRKSRC}/conf-ld
|
|
@echo "${PREFIX}" > ${WRKSRC}/conf-home
|
|
|
|
.if !defined(WITHOUT_MAN) && !defined(LIBDJBDNS_ONLY)
|
|
post-install:
|
|
@${INSTALL_MAN} ${WRKDIR}/djbdns-man/*.1 ${PREFIX}/man/man1/
|
|
@${INSTALL_MAN} ${WRKDIR}/djbdns-man/*.8 ${PREFIX}/man/man8/
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|