Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 453278 - sys-apps/netcfg: please port netcfg from Arch Linux for easier network configuration
Summary: sys-apps/netcfg: please port netcfg from Arch Linux for easier network config...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Mike Gilbert
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-21 06:02 UTC by Pavel Volkov
Modified: 2013-03-10 23:07 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pavel Volkov 2013-01-21 06:02:22 UTC
netcfg's homepage: https://www.archlinux.org/netcfg/

Reproducible: Always
Comment 1 Mike Gilbert gentoo-dev 2013-02-26 03:12:24 UTC
This is a pretty simple package.

I added an ebuild for this to my overlay if you would care to give it a spin.

https://bitbucket.org/floppym/floppym-overlay/src/default/net-misc/netcfg

Or just layman -a floppym.
Comment 2 Mike Gilbert gentoo-dev 2013-02-26 03:13:34 UTC
I will move it to the tree once it has been tested a bit; your feedback is appreciated.
Comment 3 Pavel Volkov 2013-02-26 06:30:48 UTC
This is actually working, awesome.
I've set up an Ethernet connection (IPv4 DHCP and IPv6 static) and another one (IPv6 static with SKIP_NOCARRIER="yes").
Comment 4 Pavel Volkov 2013-02-26 06:32:29 UTC
Also I think there should be USE flags for pulling dhcpcd, ppp etc. in the future.
Comment 5 Mike Gilbert gentoo-dev 2013-02-26 06:45:13 UTC
(In reply to comment #4)

I'm not a big fan of use flags for optional runtime dependencies. I will probably add a post install message.
Comment 6 William Hubbs gentoo-dev 2013-02-26 20:24:48 UTC
I also have an interest in this package, so after speaking with Mike, I
am signing on as a co-maintainer.
I also agree that we shouldn't add use flags for optional runtime
dependencies.
Comment 7 Pavel Volkov 2013-03-01 20:26:51 UTC
Since sys-power/upower won't depend on pm-utils in the next release (as said in bug 457706), pm-utils will probably get removed in some systems.
Then there's no need for netcfg to install /usr/lib/pm-utils/sleep.d/50netcfg (and I propose a USE flag for installing this file).
Comment 8 Pavel Volkov 2013-03-04 14:02:52 UTC
I should mention there's another tool called netctl aimed to replace netcfg:
https://wiki.archlinux.org/index.php/Netctl

I'd love to have it in Gentoo too, once it gets stable in Arch.
Comment 9 Pavel Volkov 2013-03-04 14:48:15 UTC
I was experimenting with network namespaces and found out that 'bridge' profile is broken:

netcfg scripts look for 'brctl' in /usr/sbin while in Gentoo it is in /sbin.
Comment 10 William Hubbs gentoo-dev 2013-03-04 16:42:23 UTC
(In reply to comment #8)
> I should mention there's another tool called netctl aimed to replace netcfg:
> https://wiki.archlinux.org/index.php/Netctl
> 
> I'd love to have it in Gentoo too, once it gets stable in Arch.
(In reply to comment #9)
> I was experimenting with network namespaces and found out that 'bridge'
> profile is broken:
> 
> netcfg scripts look for 'brctl' in /usr/sbin while in Gentoo it is in /sbin.

In that case, I would vote for removing netcfg and focusing on netctl.

@floppym:
What do you think? If you don't get to it, I can look into writing an ebuild for netctl, if not today, sometime tomorrow.
Comment 11 Mike Gilbert gentoo-dev 2013-03-04 17:46:14 UTC
Makes sense. Here is the info for netctl:

Tarballs (FTP):
ftp://ftp.archlinux.org/other/packages/netctl/

Git:
https://projects.archlinux.org/netctl.git
Comment 12 Mike Gilbert gentoo-dev 2013-03-10 23:07:35 UTC
net-misc/netctl has been added to the tree. I also fixed the brctl path issue in the netctl package.