blob: 30e1d2a11de1c249dcbcfd4e88b1471b729770c5 (
plain)
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
|
# From: Id: Makefile.inc,v 8.4 1996/03/03 17:42:43 vixie Exp
# $FreeBSD$
.ifndef (Mk.Inc)
Mk.Inc?=defined
BIND_DIR= ${.CURDIR}/../../contrib/bind
VER!= cat ${BIND_DIR}/Version
PS= ps
PIDDIR= /var/run
DESTETC= /etc/namedb
DESTEXEC= /usr/libexec
DESTRUN= /var/run
DESTSBIN= /usr/sbin
DESTHELP= /usr/share/misc
CFLAGS+= -I${BIND_DIR}/port/freebsd/include \
-I${.CURDIR}/../../contrib/bind/bin/named
# This is mostly for named and named-xfer
.if defined(USE_LIBBIND)
# Sadly, mkdep doesn't know about -idirafter, which would be ideal here.
#CFLAGS+= -I${.CURDIR}/../../include -I${BIND_DIR}/include
CFLAGS+= -I${BIND_DIR}/include
.if exists(${.OBJDIR}/../../lib/libbind)
LIBBINDDIR:= ${.OBJDIR}/../../lib/libbind
.else
LIBBINDDIR!= cd ${.CURDIR}/../../lib/libbind; make -V .OBJDIR
.endif
LIBBIND:= ${LIBBINDDIR}/libbind.a
DPADD+= ${LIBBIND}
LDADD+= ${LIBBIND}
CLEANFILES+= tmp_version.c pathnames.h
CFLAGS+= -I.
tmp_version.c: version.c ${BIND_DIR}/Version
(u=$${USER-root} d=`pwd` h=`hostname` t=`LC_ALL=C date`; \
sed -e "s|%WHEN%|$${t}|" -e "s|%VERSION%|"${VER}"|" \
-e "s|%WHOANDWHERE%|$${u}@$${h}:$${d}|" \
< ${BIND_DIR}/bin/named/version.c > tmp_version.c)
pathnames.h: ${BIND_DIR}/bin/named/pathtemplate.h \
${.CURDIR}/../../usr.sbin/named/Makefile.inc
rm -f pathnames.h
sed -e "s|%DESTSBIN%|${DESTSBIN}|" \
-e "s|%DESTEXEC%|${DESTEXEC}|" \
-e "s|%DESTETC%|${DESTETC}|" \
-e "s|%DESTRUN%|${DESTRUN}|" \
< ${BIND_DIR}/bin/named/pathtemplate.h > pathnames.h
.endif
.include "Makefile.maninc"
.endif
|