Bug 18967

Summary: ypserv not linked with tcp wrappers
Product: Base System Reporter: Vivek Khera <khera>
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 3.4-STABLE   
Hardware: Any   
OS: Any   

Description Vivek Khera 2000-06-02 20:30:00 UTC
	
the ypserv man pages have lengthy discussion about why tcp wrappers
are not linked because they are not part of the base system, but they
are now, with recent FreeBSD.

Fix: 

Please update ypserv to link against the tcp wrappers and alter the
man pages accordingly.
How-To-Repeat: 
	
N/A
Comment 1 Jeroen Ruigrok van der Werven freebsd_committer freebsd_triage 2000-06-04 10:26:57 UTC
Responsible Changed
From-To: gnats-admin->freebsd-bugs

Fix botched PR> 

This shouldn't be too hard.  Probably sheldonh or green will fix this.
Comment 2 ashp freebsd_committer freebsd_triage 2002-02-09 19:57:24 UTC
State Changed
From-To: open->feedback

Does this patch work correctly for you?  If you have no problems, 
I can find someone to commit it.  (Note, this is my first time 
fiddling with the build system, I expect it's done wrongly.) 

diff -u ypserv.orig/Makefile ypserv/Makefile 
--- ypserv.orig/Makefile	Sat Feb  9 15:01:52 2002 
+++ ypserv/Makefile	Sat Feb  9 15:01:09 2002 
@@ -7,6 +7,7 @@ 
MAN=	ypserv.8 ypinit.8 

CFLAGS+= -I. -DDB_CACHE 
+LDADD= -lwrap 

CLEANFILES= yp_svc.c ypxfr_clnt.c yp.h 

diff -u ypserv.orig/ypserv.8 ypserv/ypserv.8 
--- ypserv.orig/ypserv.8	Sat Feb  9 15:01:58 2002 
+++ ypserv/ypserv.8	Sat Feb  9 15:04:14 2002 
@@ -273,18 +273,7 @@ 
.Nm 
program also has support for Wietse Venema's 
.Em tcpwrapper 
-package, though it is not compiled in by default since 
-the 
-.Em tcpwrapper 
-package is not distributed with 
-.Fx . 
-However, if you have 
-.Pa libwrap.a 
-and 
-.Pa tcpd.h , 
-you can easily recompile 
-.Nm 
-with them. 
+package. 
This allows the administrator to use the tcpwrapper 
configuration files 
.Pa ( /etc/hosts.allow
Comment 3 ashp freebsd_committer freebsd_triage 2002-02-09 20:31:48 UTC
State Changed
From-To: feedback->closed

Oh.  Bugger.  Mark beat me to it.