Skip to content

Commit

Permalink
unbound: Move config.h to lib directory.
Browse files Browse the repository at this point in the history
It was originally in contrib, and moved to usr.sbin in 6692aa8; I always thought lib would make more sense but never got around to moving it.

Reviewed by:	cy
Differential Revision:	https://reviews.freebsd.org/D41504
  • Loading branch information
dag-erling committed Aug 19, 2023
1 parent 64e881f commit 2ba1d49
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 6 deletions.
1 change: 1 addition & 0 deletions contrib/unbound/freebsd-configure.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,4 @@ cd $unbound
--with-conf-file=/var/unbound/unbound.conf \
--with-run-dir=/var/unbound \
--with-username=unbound
mv config.h ../../lib/libunbound
3 changes: 1 addition & 2 deletions lib/libunbound/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ LIB= unbound
PRIVATELIB=
PACKAGE= unbound

CFLAGS+= -I${UNBOUNDDIR} -I${LDNSDIR} -I${.OBJDIR}
CFLAGS+= -I${SRCTOP}/usr.sbin/unbound
CFLAGS+= -I${UNBOUNDDIR} -I${LDNSDIR} -I${.OBJDIR} -I${.CURDIR}
CFLAGS+= -DOPENSSL_API_COMPAT=0x10100000L

SRCS= alloc.c as112.c authzone.c autotrust.c cachedb.c config_file.c \
Expand Down
File renamed without changes.
3 changes: 2 additions & 1 deletion usr.sbin/unbound/anchor/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@
# Vendor sources and generated files
LDNSDIR= ${SRCTOP}/contrib/ldns
UNBOUNDDIR= ${SRCTOP}/contrib/unbound
LIBUNBOUNDDIR=${SRCTOP}/lib/libunbound
EXPATDIR= ${SRCTOP}/contrib/expat

.PATH: ${UNBOUNDDIR} ${UNBOUNDDIR}/smallapp ${UNBOUNDDIR}/doc

PROG= local-unbound-anchor
SRCS= unbound-anchor.c
CFLAGS+= -I${UNBOUNDDIR} -I${LDNSDIR} -I${EXPATDIR}/lib
CFLAGS+= -I${.CURDIR:H} -I${.CURDIR}
CFLAGS+= -I${LIBUNBOUNDDIR} -I${.CURDIR}
LIBADD= unbound bsdxml ssl crypto pthread
MAN= local-unbound-anchor.8

Expand Down
3 changes: 2 additions & 1 deletion usr.sbin/unbound/checkconf/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@
# Vendor sources and generated files
LDNSDIR= ${SRCTOP}/contrib/ldns
UNBOUNDDIR= ${SRCTOP}/contrib/unbound
LIBUNBOUNDDIR=${SRCTOP}/lib/libunbound

.PATH: ${UNBOUNDDIR} ${UNBOUNDDIR}/smallapp ${UNBOUNDDIR}/util ${UNBOUNDDIR}/doc

PROG= local-unbound-checkconf
SRCS= ub_event.c unbound-checkconf.c worker_cb.c
CFLAGS+= -I${UNBOUNDDIR} -I${LDNSDIR}
CFLAGS+= -I${.CURDIR:H} -I${.CURDIR}
CFLAGS+= -I${LIBUNBOUNDDIR} -I${.CURDIR}
LIBADD= unbound pthread
MAN= local-unbound-checkconf.8

Expand Down
3 changes: 2 additions & 1 deletion usr.sbin/unbound/control/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@
# Vendor sources and generated files
LDNSDIR= ${SRCTOP}/contrib/ldns
UNBOUNDDIR= ${SRCTOP}/contrib/unbound
LIBUNBOUNDDIR=${SRCTOP}/lib/libunbound

.PATH: ${UNBOUNDDIR} ${UNBOUNDDIR}/smallapp ${UNBOUNDDIR}/util ${UNBOUNDDIR}/doc

PROG= local-unbound-control
SRCS= ub_event.c unbound-control.c worker_cb.c
CFLAGS+= -I${UNBOUNDDIR} -I${LDNSDIR}
CFLAGS+= -I${.CURDIR:H} -I${.CURDIR}
CFLAGS+= -I${LIBUNBOUNDDIR} -I${.CURDIR}
LIBADD= unbound crypto ssl pthread
MAN= local-unbound-control.8

Expand Down
3 changes: 2 additions & 1 deletion usr.sbin/unbound/daemon/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@
# Vendor sources and generated files
LDNSDIR= ${SRCTOP}/contrib/ldns
UNBOUNDDIR= ${SRCTOP}/contrib/unbound
LIBUNBOUNDDIR=${SRCTOP}/lib/libunbound

.PATH: ${UNBOUNDDIR} ${UNBOUNDDIR}/daemon ${UNBOUNDDIR}/util ${UNBOUNDDIR}/util/shm_side ${UNBOUNDDIR}/doc

PROG= local-unbound
SRCS= acl_list.c cachedump.c daemon.c remote.c shm_main.c stats.c \
ub_event.c unbound.c worker.c
CFLAGS+= -I${UNBOUNDDIR} -I${LDNSDIR}
CFLAGS+= -I${.CURDIR:H} -I${.CURDIR}
CFLAGS+= -I${LIBUNBOUNDDIR} -I${.CURDIR}
LIBADD= unbound util ssl crypto pthread
MAN= local-unbound.8 local-unbound.conf.5

Expand Down

0 comments on commit 2ba1d49

Please sign in to comment.