ndisc6 has some needed programs for IPv6 networks. E.g. ndisc6 for discovering rogue ipv6 routers or rdnssd for RFC 5006 Reproducible: Always Steps to Reproduce:
Created attachment 160763 [details] Working simple ebuild Someone should check this ebuild for USE-Flags, dependencies etc.
- The ebuild header is invalid¹ - You inherit eclasses you never use. - Replace ndisc6-${PV} with ${P} - Remove S=${WORKDIR}/${PN}-${PV}, ${PN}-${PV} == ${P} and this is the default of $S. - Invalid license, see /usr/portage/licenses - You can remove all src_* functions. Portage is doing so by default. [1] http://www.gentoo.org/proj/en/devrel/handbook/handbook.xml?part=2&chap=3
Created attachment 160797 [details] new ebuild version Changed ebuild according to carlo's advices.
(In reply to comment #3) > Created an attachment (id=160797) [edit] > new ebuild version > > Changed ebuild according to carlo's advices. > mmh, it's not working without the following lines: src_install() { emake DESTDIR="${D}" install } Without them no files were installed.
Created attachment 169820 [details] Updated ebuild Here is an updated ebuild that provides an init script for rdnssd (which gets DNS servers from IPv6 Router Advertisements) and resolvconf support. Additional files are following.
Created attachment 169822 [details] Init script
Created attachment 169824 [details] Init script configuration
Created attachment 169826 [details] Resolvconf/openresolv support
Works for me.
works for me, too! (amd64 and x86 at runlevel boot) For setups without resolvconf there should be a test for resolvconf in the stop section culann init.d # diff -r rdnssd.orig rdnssd 21c21,23 < /sbin/resolvconf -f -d rdnssd --- > if [ -x /sbin/resolvconf ]; then > /sbin/resolvconf -f -d rdnssd || true > fi thx
Created attachment 199133 [details] patch init script for setups without resolvconf *** attachment.cgi?id=169822 2009-07-25 16:10:15.000000000 +0200 --- rdnssd.rc 2009-06-02 03:16:28.000000000 +0200 *************** start() { *** 18,23 **** stop() { ebegin "Stopping rdnssd" start-stop-daemon --stop --quiet --pidfile /var/run/rdnssd.pid ! /sbin/resolvconf -f -d rdnssd eend $? } --- 18,25 ---- stop() { ebegin "Stopping rdnssd" start-stop-daemon --stop --quiet --pidfile /var/run/rdnssd.pid ! if [ -x /sbin/resolvconf ]; then ! /sbin/resolvconf -f -d rdnssd || true ! fi eend $? }
Created attachment 223893 [details] new upstream release, added some || die to src_install
What needs to be done to get it into tree?
(In reply to comment #13) > What needs to be done to get it into tree? Hi, I've just mentioned a modenized version of this ebuild ( http://dpaste.com/191746/ ) in #gentoo-sunrise on freenode to submit it into sunrise overlay ( http://www.gentoo.org/proj/en/sunrise/ ). If there's a dev, who's willing to maintain it, it could be copied into tree. Michael
(In reply to comment #13) > What needs to be done to get it into tree? done +*ndisc6-0.9.9 (28 Aug 2010) + + 28 Aug 2010; Michael Weber <xmw@gentoo.org> +ndisc6-0.9.9.ebuild, + +files/rdnssd.conf, +files/rdnssd.rc, +files/resolvconf, +metadata.xml: + Initial commit for ndisc6. Fixes bug #232249, thanks to Jens Weibler and + Benjamin Gaillard for the initial ebuild and /etc files.