had a problem as a user: i needed to run dhcp pools on two different interfaces. apparently ISC dhcpd doesn't support this. so i downloaded udhcp, the only other dhcp daemon apparently in portage. however, the default gentoo config made it a real pain to add support for my configuration. therefore i rewrote the init script to be more flexible - it autoloads configuration files from /etc/udhcpd, and handles multiple udhcpd instances gracefully. afaik this is the first multi-interface dhcp daemon support in portage.
Created attachment 93094 [details] new init script - /etc/init.d/udhcpd Tested and working, however as I am far from a shell scripting expert it may require cleanup to meet some sort of init script standards...
Created attachment 93096 [details] new /etc/udhcpd/sample.conf Attached is a suggested sample configuration file. The init script already automatically ignores config files in /etc/udhcpd that include 'sample' in their name.
Please, don't restrict bugs without any reason. Leave those checkboxes alone.
Why not multiplex the script (net.lo -> net.eth0, net.wlan) - see the openvpn init script for details on how todo this. That way you can start/stop each dhcp server instance. BTW, you can run isc's dhcpd on mulitple interfaces provided they both use different subnets.
Will do - I'll download the OpenVPN script and aim to upload a new, multiplexed udhcpd init script in the near future.
[32;01m*[0m Adding group 'dhcp' to your system ... [32;01m*[0m - Groupid: next available [32;01m*[0m Adding user 'dhcp' to your system ... [32;01m*[0m - Userid: 103 [32;01m*[0m - Shell: /sbin/nologin [32;01m*[0m - Home: /var/lib/dhcp [32;01m*[0m - Groups: dhcp [32;01m*[0m - Creating /var/lib/dhcp in / >>> Unpacking source... >>> Unpacking udhcp-0.9.9_pre20041216.tar.bz2 to /var/tmp/portage/net-misc/udhcp-0.9.9_pre20041216-r4/work [32;01m*[0m Applying udhcp-0.9.9_pre20041216-env.patch ... [A[72C [34;01m[ [32;01mok[34;01m ][0m >>> Source unpacked. >>> Compiling source in /var/tmp/portage/net-misc/udhcp-0.9.9_pre20041216-r4/work/udhcp ... i686-pc-linux-gnu-gcc -c -O2 -march=pentium2 -pipe -DCOMBINED_BINARY -DUDHCP_SYSLOG -W -Wall -Wstrict-prototypes -D_GNU_SOURCE -Os -fomit-frame-pointer dhcpd.c make: i686-pc-linux-gnu-gcc: Command not found make: *** [dhcpd.o] Error 127 !!! ERROR: net-misc/udhcp-0.9.9_pre20041216-r4 failed. Call stack: ebuild.sh, line 1615: Called dyn_compile ebuild.sh, line 972: Called qa_call 'src_compile' ebuild.sh, line 44: Called src_compile udhcp-0.9.9_pre20041216-r4.ebuild, line 41: Called die !!! (no error message) !!! If you need support, post the topmost build error, and the call stack if relevant. !!! A complete build log is located at '/var/tmp/portage/net-misc/udhcp-0.9.9_pre20041216-r4/temp/build.log'.
No longer interested in this feature, so don't wait for my input. Feel free to close the bug if you like.
This is getting out of portage.