Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 415957

Summary: net-misc/dhcp: add init.d script for IPv6 invocation of dhcrelay
Product: Gentoo Linux Reporter: Spooky Ghost <spookyghost>
Component: Current packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED FIXED    
Severity: enhancement    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: init script for ipv6 dhcrelay
conf.d for dhcrelay6

Description Spooky Ghost 2012-05-14 15:08:31 UTC
net-misc/dhcp does not include an init script for starting IPv6 dhcrelay agent.  I have modified and attached conf.d and init.d files for this purpose.

Reproducible: Always
Comment 1 Spooky Ghost 2012-05-14 15:18:52 UTC
Created attachment 311761 [details]
init script for ipv6 dhcrelay

Attach init script
Comment 2 Spooky Ghost 2012-05-14 15:20:50 UTC
Created attachment 311763 [details]
conf.d for dhcrelay6

conf.d for dhcrelay6
Comment 3 SpanKY gentoo-dev 2012-05-16 05:05:37 UTC
Comment on attachment 311761 [details]
init script for ipv6 dhcrelay

no need for a sep script considering it's the same binary
Comment 4 SpanKY gentoo-dev 2012-05-16 05:08:51 UTC
should be all set now in the tree; thanks for the report!

Commit message: Version bump, and add dhcrelay6 init.d support
http://sources.gentoo.org/net-misc/dhcp/dhcp-4.2.3_p2.ebuild?rev=1.1
http://sources.gentoo.org/net-misc/dhcp/files/dhcrelay6.conf?rev=1.1
http://sources.gentoo.org/net-misc/dhcp/files/dhcrelay.init3?rev=1.1
Comment 5 Spooky Ghost 2012-05-16 10:40:59 UTC
The syntax for the invocation of dhcrelay is very different depending on the requirement for -4 or -6 support hence the separate init script.  The -i that would still be there for dhcrelay6 for example is not valid.
Comment 6 SpanKY gentoo-dev 2012-05-16 15:57:07 UTC
i'm not a fan of adding dedicated variables that merely expand into command line options.  so i'm not adding a 2nd init script.

the excess -i is there regardless of ipv4 or ipv6, so that should be fixed independently.

http://sources.gentoo.org/net-misc/dhcp/files/dhcrelay.init3?r1=1.1&r2=1.2
http://sources.gentoo.org/net-misc/dhcp/files/dhcrelay6.conf?r1=1.1&r2=1.2