Add a library for the rump resolver interception code so that it will become

easier to hide resolver internals later.
This commit is contained in:
christos 2017-10-10 19:28:33 +00:00
parent 6e97188311
commit 219944fb44
2 changed files with 28 additions and 2 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.252 2017/08/22 08:21:36 mrg Exp $
# $NetBSD: Makefile,v 1.253 2017/10/10 19:28:33 christos Exp $
# from: @(#)Makefile 5.25.1.1 (Berkeley) 5/7/91
.include <bsd.own.mk>
@ -124,8 +124,9 @@ SUBDIR+= libquota # depends on libprop and librpcsvc
SUBDIR+= librefuse # depends on libpuffs
SUBDIR+= libisns # depends on libpthread
.if (${MKRUMP} != "no")
SUBDIR+= librumpuser # depends on libpthread
SUBDIR+= librumphijack # depends on librumpclient and libpthread
SUBDIR+= librumpres # depends on librumpclient
SUBDIR+= librumpuser # depends on libpthread
.endif
.if (${MKNPF} != "no")

25
lib/librumpres/Makefile Normal file
View File

@ -0,0 +1,25 @@
# $NetBSD: Makefile,v 1.1 2017/10/10 19:28:33 christos Exp $
USE_FORT?= yes
USE_SHLIBDIR= yes
.include <bsd.own.mk>
LIB= rumpres
SHLIB_MAJOR=0
SHLIB_MINOR=0
LIBDPLIBS+= rumpclient ${.CURDIR}/../librumpclient
.if ${USE_INET6} != "no"
CPPFLAGS+= -DINET6
.endif
.PATH: ${.CURDIR}/../libc/net
SRCS= getaddrinfo.c getifaddrs.c getnameinfo.c
SRCS+= if_indextoname.c if_nametoindex.c
#SRCS+= gethnamaddr.c sethostent.c
CPPFLAGS+= -DRUMP_ACTION
.include <bsd.lib.mk>