summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2015-09-09 15:33:19 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2015-09-09 15:33:19 +0000
commita735cf56e7d9c4bc40eb151c490f994f44dae78d (patch)
tree0f916fb11a2f53d760af9b078cd2d893e7ef5b9b /usr.sbin
parent3174858e978879a9200a6f2cd8bd68cdd8f08d5e (diff)
Hide YP-specific xdr_* functions, and have the YP tools link -lrpcsvc
as needed. ok miod guenther
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/ypbind/Makefile5
-rw-r--r--usr.sbin/ypldap/Makefile6
-rw-r--r--usr.sbin/yppoll/Makefile5
-rw-r--r--usr.sbin/ypset/Makefile5
4 files changed, 15 insertions, 6 deletions
diff --git a/usr.sbin/ypbind/Makefile b/usr.sbin/ypbind/Makefile
index 9aaef63843e..adeaf2ff27e 100644
--- a/usr.sbin/ypbind/Makefile
+++ b/usr.sbin/ypbind/Makefile
@@ -1,7 +1,10 @@
-# $OpenBSD: Makefile,v 1.4 1997/09/21 11:44:36 deraadt Exp $
+# $OpenBSD: Makefile,v 1.5 2015/09/09 15:33:18 deraadt Exp $
PROG= ypbind
MAN= ypbind.8
CFLAGS+=-DDAEMON -DHEURISTIC
+LDADD=-lrpcsvc
+DPADD=${LIBRPCSVC}
+
.include <bsd.prog.mk>
diff --git a/usr.sbin/ypldap/Makefile b/usr.sbin/ypldap/Makefile
index b2afa30d412..6339334c159 100644
--- a/usr.sbin/ypldap/Makefile
+++ b/usr.sbin/ypldap/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.7 2014/01/18 05:54:52 martynas Exp $
+# $OpenBSD: Makefile,v 1.8 2015/09/09 15:33:18 deraadt Exp $
PROG= ypldap
SRCS= parse.y ypldap.c log.c \
@@ -8,8 +8,8 @@ SRCS= parse.y ypldap.c log.c \
MAN= ypldap.8 ypldap.conf.5
-DPADD= ${LIBEVENT} ${LIBUTIL}
-LDADD= -levent -lutil
+DPADD= ${LIBEVENT} ${LIBUTIL} ${LIBRPCSVC}
+LDADD= -levent -lutil -lrpcsvc
CFLAGS+= -I${.CURDIR}
CFLAGS+= -Wall
CFLAGS+= -Wstrict-prototypes -Wmissing-prototypes
diff --git a/usr.sbin/yppoll/Makefile b/usr.sbin/yppoll/Makefile
index 07e0912c4c5..313b949a9c1 100644
--- a/usr.sbin/yppoll/Makefile
+++ b/usr.sbin/yppoll/Makefile
@@ -1,6 +1,9 @@
-# $OpenBSD: Makefile,v 1.2 1997/09/21 11:44:37 deraadt Exp $
+# $OpenBSD: Makefile,v 1.3 2015/09/09 15:33:18 deraadt Exp $
PROG= yppoll
MAN= yppoll.8
+LDADD=-lrpcsvc
+DPADD=${LIBRPCSVC}
+
.include <bsd.prog.mk>
diff --git a/usr.sbin/ypset/Makefile b/usr.sbin/ypset/Makefile
index 2c6e1b3eaca..6077aaa4126 100644
--- a/usr.sbin/ypset/Makefile
+++ b/usr.sbin/ypset/Makefile
@@ -1,6 +1,9 @@
-# $OpenBSD: Makefile,v 1.2 1997/09/21 11:44:40 deraadt Exp $
+# $OpenBSD: Makefile,v 1.3 2015/09/09 15:33:18 deraadt Exp $
PROG= ypset
MAN= ypset.8
+LDADD=-lrpcsvc
+DPADD=${LIBRPCSVC}
+
.include <bsd.prog.mk>