blob: 3052b4ade11b0985a57c95af8702fc8db4b3023f (
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
# ex:ts=8
# Ports collection makefile for: mDNSResponder
# Date created: Tues Mar 2, 2004
# Whom: Alfred Perlstein <alfred@freebsd.org>
#
# $FreeBSD$
#
PORTNAME= mDNSResponder
PORTVERSION= 214.3.2
CATEGORIES= net dns
MASTER_SITES= http://opensource.apple.com/tarballs/mDNSResponder/
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Apple's mDNSResponder
LICENSE= ASL BSD
LICENSE_COMB= dual
CONFLICTS= avahi-libdns-[0-9]*
BUILD_WRKSRC= ${WRKSRC}/mDNSPosix
INSTALL_WRKSRC= ${WRKSRC}/mDNSPosix
MAKE_ARGS= os=freebsd LOCALBASE=${PREFIX} MANPATH=${MANPREFIX}/man
USE_BISON= build
USE_GMAKE= yes
USE_LDCONFIG= yes
USE_RC_SUBR= mdnsd
EXTRA_BIN= bin/mDNSClientPosix bin/mDNSIdentify bin/mDNSNetMonitor \
bin/mDNSProxyResponderPosix bin/mDNSResponderPosix
EXTRA_MAN8= dnsextd.8 mDNSResponderPosix.8
EXTRA_SBIN= sbin/dnsextd
MAN8= mdnsd.8 ${EXTRA_MAN8}
PLIST_FILES= bin/dns-sd ${EXTRA_BIN} \
include/dns_sd.h \
lib/libdns_sd.so lib/libdns_sd.so.1 \
sbin/mdnsd ${EXTRA_SBIN}
.include <bsd.port.pre.mk>
.if ${ARCH} == "alpha"
BROKEN= Does not compile on alpha
.endif
post-patch:
@${MV} ${WRKSRC}/mDNSShared/mDNSResponder.8 \
${WRKSRC}/mDNSShared/mDNSResponderPosix.8
pre-build:
@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' \
-e 's|mDNSResponder.8|mDNSResponderPosix.8|g' \
${WRKSRC}/mDNSPosix/Makefile
post-install:
@cd ${INSTALL_WRKSRC}/build/prod && \
${INSTALL_PROGRAM} ${EXTRA_BIN:T} ${PREFIX}/bin/ && \
${INSTALL_PROGRAM} ${EXTRA_SBIN:T} ${PREFIX}/sbin/
@cd ${WRKSRC}/mDNSShared/ && \
${INSTALL_MAN} ${EXTRA_MAN8} ${MAN8PREFIX}/man/man8/
.include <bsd.port.post.mk>
|