Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 232249 - net-misc/ndisc6: new package request
Summary: net-misc/ndisc6: new package request
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Michael Weber (RETIRED)
URL: http://www.remlab.net/ndisc6/
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2008-07-18 20:46 UTC by Jens Weibler
Modified: 2010-08-28 14:55 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Working simple ebuild (ndisc6-0.9.8.ebuild,521 bytes, text/plain)
2008-07-18 20:48 UTC, Jens Weibler
Details
new ebuild version (ndisc6-0.9.8.ebuild,409 bytes, text/plain)
2008-07-19 06:59 UTC, Jens Weibler
Details
Updated ebuild (ndisc6-0.9.8.ebuild,706 bytes, text/plain)
2008-10-25 15:25 UTC, Benjamin Gaillard
Details
Init script (rdnssd.rc,460 bytes, text/plain)
2008-10-25 15:26 UTC, Benjamin Gaillard
Details
Init script configuration (rdnssd.conf,80 bytes, text/plain)
2008-10-25 15:26 UTC, Benjamin Gaillard
Details
Resolvconf/openresolv support (resolvconf,148 bytes, text/plain)
2008-10-25 15:27 UTC, Benjamin Gaillard
Details
patch init script for setups without resolvconf (rdnssd.rc,510 bytes, text/plain)
2009-07-25 14:11 UTC, Michael Weber (RETIRED)
Details
new upstream release, added some || die to src_install (ndisc6-0.9.9.ebuild,709 bytes, text/plain)
2010-03-16 14:53 UTC, Michael Weber (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
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.