Subject: Re: misc/36697: unexpanded variable in dhcpd.leases(5)
To: None <misc-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: John Nemeth <jnemeth@victoria.tc.ca>
List: netbsd-bugs
Date: 07/31/2007 03:45:05
The following reply was made to PR misc/36697; it has been noted by GNATS.

From: jnemeth@victoria.tc.ca (John Nemeth)
To: gnats-bugs@NetBSD.org, misc-bug-people@NetBSD.org,
	netbsd-bugs@NetBSD.org
Cc: 
Subject: Re: misc/36697: unexpanded variable in dhcpd.leases(5)
Date: Mon, 30 Jul 2007 20:42:59 -0700

 On Nov 13,  5:17am, ixel@gmx.de wrote:
 } >Description:
 } At the beginning of dhcpd.leases(5):
 } 
 } ...
 } To make the initial lease database, just create an empty file called
 } /var/db/dhcpd.leases. You can do this with:
 } 
 }             touch DBDIR/dhcpd.leases
 } 
 } In  order to prevent the lease database from growing without bound, 
 } ...
 } 
 } Clears the DBDIR after touch is not expanded, probably /var/db is meant.
 } >How-To-Repeat:
 } $ man dhcpd.leases
 
      dist/dhcp/server/Makefile.dist contains these lines to make the
 substitution:
 
 dhcpd.leases.cat5:      dhcpd.leases.man5
         nroff -man dhcpd.leases.man5 >dhcpd.leases.cat5
 
 dhcpd.leases.man5:      dhcpd.leases.5
         sed -e "s#ETCDIR#$(ETC)#g" -e "s#DBDIR#$(VARDB)#g" \
                 -e "s#RUNDIR#$(VARRUN)#g" < dhcpd.leases.5 >dhcpd.leases.man5
 
 However usr.sbin/dhcp/server/Makefile doesn't do any kind of special
 handling of the manpages.  The question is how to do the above in the
 context of a BSD makefile?
 
 }-- End of excerpt from ixel@gmx.de