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

Bug 232249

Summary: net-misc/ndisc6: new package request
Product: Gentoo Linux Reporter: Jens Weibler <gentoo-bugzilla>
Component: New packagesAssignee: Michael Weber (RETIRED) <xmw>
Status: RESOLVED FIXED    
Severity: enhancement CC: lightoze, petr.pisar, prometheanfire, xmw
Priority: High Keywords: EBUILD
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://www.remlab.net/ndisc6/
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Working simple ebuild
new ebuild version
Updated ebuild
Init script
Init script configuration
Resolvconf/openresolv support
patch init script for setups without resolvconf
new upstream release, added some || die to src_install

Description Jens Weibler 2008-07-18 20:46:35 UTC
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:
Comment 1 Jens Weibler 2008-07-18 20:48:03 UTC
Created attachment 160763 [details]
Working simple ebuild

Someone should check this ebuild for USE-Flags, dependencies etc.
Comment 2 Carsten Lohrke (RETIRED) gentoo-dev 2008-07-18 22:49:12 UTC
- 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
Comment 3 Jens Weibler 2008-07-19 06:59:12 UTC
Created attachment 160797 [details]
new ebuild version

Changed ebuild according to carlo's advices.
Comment 4 Jens Weibler 2008-07-19 13:08:12 UTC
(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.
Comment 5 Benjamin Gaillard 2008-10-25 15:25:12 UTC
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.
Comment 6 Benjamin Gaillard 2008-10-25 15:26:15 UTC
Created attachment 169822 [details]
Init script
Comment 7 Benjamin Gaillard 2008-10-25 15:26:28 UTC
Created attachment 169824 [details]
Init script configuration
Comment 8 Benjamin Gaillard 2008-10-25 15:27:06 UTC
Created attachment 169826 [details]
Resolvconf/openresolv support
Comment 9 Vladimir Kulev 2009-01-22 15:00:59 UTC
Works for me.
Comment 10 Michael Weber (RETIRED) gentoo-dev 2009-04-11 23:00:32 UTC
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
Comment 11 Michael Weber (RETIRED) gentoo-dev 2009-07-25 14:11:40 UTC
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 $?
  }
Comment 12 Michael Weber (RETIRED) gentoo-dev 2010-03-16 14:53:33 UTC
Created attachment 223893 [details]
new upstream release, added some || die to src_install
Comment 13 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2010-05-07 00:59:43 UTC
What needs to be done to get it into tree?
Comment 14 Michael Weber (RETIRED) gentoo-dev 2010-05-07 01:16:47 UTC
(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
Comment 15 Michael Weber (RETIRED) gentoo-dev 2010-08-28 14:55:01 UTC
(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.