[OE-core] [PATCH RFC v2] dhcp: package /var/lib/dhcp with dhcp-client rather than dhcp-server

Saul Wold sgw at linux.intel.com
Thu Jan 12 20:47:32 UTC 2012


On 01/11/2012 11:00 AM, Steve Sakoman wrote:
> On Sat, Jan 7, 2012 at 5:14 AM, Eric Bénard<eric at eukrea.com>  wrote:
>> Hi,
>>
>> Le Fri,  6 Jan 2012 20:51:54 -0800,
>> Steve Sakoman<steve at sakoman.com>  a écrit :
>>> -FILES_dhcp-server = "${sbindir}/dhcpd ${sysconfdir}/init.d/dhcp-server ${localstatedir}/lib/dhcp/"
>>> +FILES_dhcp-server = "${sbindir}/dhcpd ${sysconfdir}/init.d/dhcp-server"
>>
>> isn't this directory necessary for dhcp-server ?
>
> Sorry for the delay in responding!  I missed seeing your comment.
>
> Yes, both packages need this directory.  But the dhcp-server package
> init already creates it if it doesn't exist:
>
You can still have it in the dhcp-server Package as long as the 
attributes (ownership, perm, ...) are the same and it's not a symlink, 
so please include it with the FILES-dhcp-server.

Sau!

> case "$1" in
> 	start)
> 		echo -n "Starting DHCP server: "
> 		test -d /var/lib/dhcp/ || mkdir -p /var/lib/dhcp/
>
> So it should be no issue moving the /var/lib/dhcp FILE spec to the
> dhcp-client package.
>
> Steve
>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core at lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
>




More information about the Openembedded-core mailing list