summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>2017-10-10 19:28:33 +0000
committerchristos <christos@NetBSD.org>2017-10-10 19:28:33 +0000
commit3f0dd567cbe97be9d4e30875fc074c1799929b82 (patch)
tree3aafaac0b48ffc9232fc56776677cf4c2e86f52a /lib
parent39933cf66c12c06cbed6f1245bcbdaa8e3810125 (diff)
Add a library for the rump resolver interception code so that it will become
easier to hide resolver internals later.
Diffstat (limited to 'lib')
-rw-r--r--lib/Makefile5
-rw-r--r--lib/librumpres/Makefile25
2 files changed, 28 insertions, 2 deletions
diff --git a/lib/Makefile b/lib/Makefile
index d0aeebe4cd5..985cae96c97 100644
--- a/lib/Makefile
+++ b/lib/Makefile
@@ -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")
diff --git a/lib/librumpres/Makefile b/lib/librumpres/Makefile
new file mode 100644
index 00000000000..3dc3680031e
--- /dev/null
+++ b/lib/librumpres/Makefile
@@ -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>