Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 106041 - Ebuild for sys-apps/netplug-1.2.9 doesn't install rc.netplugd into /etc/init.d
Summary: Ebuild for sys-apps/netplug-1.2.9 doesn't install rc.netplugd into /etc/init.d
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Roy Marples (RETIRED)
Depends on:
Reported: 2005-09-15 02:01 UTC by Wiktor Wandachowicz
Modified: 2005-09-15 02:10 UTC (History)
0 users

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


Note You need to log in before you can comment on or make changes to this bug.
Description Wiktor Wandachowicz 2005-09-15 02:01:56 UTC
I unmerged ifplugd and merged netplug-1.2.9. Alas, the latter doesn't have any
scripts in /etc/init.d. I checked "the source" and I've that there IS some
script (rc.netplugd), but it hasn't been installed.

Read: the ebuild is apparently missing something.

Reproducible: Always
Steps to Reproduce:
1. unmask netplug
2. emerge -av netplug
3. ls -al /etc/init.d
4. # go hmmmm...
5. ebuild /usr/portage/sys-apps/netplug/netplug-1.2.9.ebuild unpack
6. ls -al /var/tmp/portage/netplug-1.2.9/work/netplug-1.2.9/scripts

Actual Results:  
# ls -al /var/tmp/portage/netplug-1.2.9/work/netplug-1.2.9/scripts
razem 16
drwxrwxr-x  2 root root 4096 sty  8  2005 .
drwxrwxr-x  6 root root 4096 wrz 15 10:51 ..
-r-xr-xr-x  1 root root 1337 kwi 25  2004 netplug
-r-xr-xr-x  1 root root 1289 sty  8  2005 rc.netplugd

Expected Results:  
The ebuild should put a file called "netplugd" into /etc/init.d, so rc-update
could be used to add into default runlevel.

I thought that the netplug is the way to go (no hacks, works "Just Like That",
and so on). So I unmerged "ifplugd" in favor of "netplug" and bummer... Nothing
serious, really, but somewhat annoying.
Comment 1 Roy Marples (RETIRED) gentoo-dev 2005-09-15 02:06:00 UTC
netplug is controlled by the net.eth0 scripts in baselayout and as such does not
need an init script of it's own.

However, you do need baselayout-1.12.0_pre8-r2 to get it working. Even then
there is an issue where netplug may stop on the wrong interface when you stop
it, but that will be fixed in pre9
Comment 2 Wiktor Wandachowicz 2005-09-15 02:10:33 UTC
Well, it seems that I wouldn't be able right now to test "netplug"...
How unfortunate. :-(

I did the following:

# cd /var/tmp/portage/netplug-1.2.9/work/netplug-1.2.9/scripts
# cp -a rc.netplugd /etc/init.d/netplugd
# rc-update add netplugd default
# /etc/init.d/netplugd start
/etc/init.d/netplugd: line 15: /etc/rc.d/init.d/functions: No such file or directory

# qpkg -I -v baselayout
sys-apps/baselayout-1.11.13-r1 *

So, as I'm not going to test new baselayout (I've found that info myself :-),
netplugd goes off my list right now. Coming back to quickpkg'ed "ifplugd".
Thanks for the answer and good luck with enhancing "netplug"!