diff --git a/net-misc/wicd/Manifest b/net-misc/wicd/Manifest index aad1a99..b0ca0f9 100644 --- a/net-misc/wicd/Manifest +++ b/net-misc/wicd/Manifest @@ -8,4 +8,5 @@ DIST Icone-Wicd-Lucid.tar.gz 9015 BLAKE2B 20c55968fe2be08a6dc5e2b3584f9c4294c69a DIST wicd-1.7.4.tar.gz 547393 BLAKE2B 045073781eb81a29754a238c0fded5d3225727497ea24c6cea58a1c72b83da76af6fc40a8e7345652c2dc9eb68ed24e0d97e421fd8c9e4d909a2c8f9460881ea SHA512 1e99a45daa858eba634e60e50c22aa2fab3fc4d643979a6741b6164bf500bd6db285d11c12ccd164ab6cf0792284e319e3c3447804088e74b4fc67bb6f431959 DIST wicd-mac4lin-icons.tar.xz 53136 BLAKE2B 5064546c2aebda92ce168847f2821ff11653939c21667f7f48263d3be0a9100dffa1322b9b2842cb92a2ca50dec39114b1246b057663ede8708db17271f16af3 SHA512 98ed3f92ec361aa8651c64efdb5128b8f73068f1cf2423640dafc4b46889ae32c1d1f56f509ad609b2bf98f634f8ada4c501f2294e3a64affd1befd4400498a8 EBUILD wicd-1.7.4-r3.ebuild 5063 BLAKE2B 64b0a6b00f68c554b240bfff6572e766d9ea88928896c68dccbcaac37d1bd56328ea032e6a6f4f554400bb301ed8362c735772540751edbbfedd2d2b4a51c2ca SHA512 defa56dc408a9175a0ca806c66056ed97d3972910284887a177e0dc312ec70b434b8b7ecbaf10cdac29b825796b2ca064892925b0f24f0dbd6a1e0e3485c9b7e +EBUILD wicd-9999.ebuild 2898 BLAKE2B 08a3935e58a417319e15d36805c64a96bc04f8aa64cd0172fdb363dbb3f8d31664c49e82d1c317c67359aff95c182163cbb6cac0c2accf361dcadff73407f594 SHA512 c1fcf27b2ef13cb1dbdce27969a433f7052302f02036d94821d5c3f2f6bb09960eb530c64d610c215b37dd3c88d3f1db3318f551db350acd1f8a0d6d27fef387 MISC metadata.xml 913 BLAKE2B 8e18aa7554e1bafb89f90f6fa27bfbfedf76d3cc63929311d2ad4c87cd13869dcc2cc90c126c9ef61ebba5ff765e59656a5516cb410fb365beaa97dc47d54e11 SHA512 2cc53e7e0f14169b88d26324b071b2078012cc57bd9ddae0b14f18efbe2d1bc1ef0b66122c178b0e3019a48bec2ba87fc09186b4d8a96e8e7d8e51a997c09d69 diff --git a/net-misc/wicd/wicd-9999.ebuild b/net-misc/wicd/wicd-9999.ebuild new file mode 100644 index 0000000..55598a0 --- /dev/null +++ b/net-misc/wicd/wicd-9999.ebuild @@ -0,0 +1,102 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python3_{7,8} ) +PYTHON_REQ_USE="ncurses?,xml" + +inherit eutils distutils-r1 linux-info readme.gentoo-r1 systemd git-r3 + +DESCRIPTION="A lightweight wired and wireless network manager for Linux" +HOMEPAGE="https://launchpad.net/wicd" +#EGIT_REPO_URI='https://git.launchpad.net/wicd' +#EGIT_COMMIT='63812468bec3ee94c2dd6c8268f9e7b341273be5' +EGIT_REPO_URI='https://github.com/gryf/wicd' + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~mips ~ppc ~ppc64 ~x86" +IUSE="doc libnotify ncurses nls +pm-utils" + +DEPEND="nls? ( dev-python/Babel[${PYTHON_USEDEP}] )" +RDEPEND="${PYTHON_DEPS} + dev-python/dbus-python[${PYTHON_USEDEP}] + || ( + net-misc/dhcpcd + net-misc/dhcp + net-misc/pump + ) + net-wireless/wireless-tools + net-wireless/wpa_supplicant + || ( + sys-apps/net-tools + sys-apps/ethtool + ) + libnotify? ( dev-python/notify-python[${PYTHON_USEDEP}] ) + ncurses? ( + dev-python/urwid[${PYTHON_USEDEP}] + dev-python/pygobject:2[${PYTHON_USEDEP}] + ) + pm-utils? ( sys-power/pm-utils ) + " + +src_prepare() { + CONFIG_CHECK="~CFG80211_WEXT" + local WARNING_CFG80211_WEXT="Wireless extensions have not been \ + configured in your kernel. Wicd will not work unless CFG80211_WEXT is set." + check_extra_config + + default + + if use nls; then + # Asturian is faulty with PyBabel + # (https://bugs.launchpad.net/wicd/+bug/928589) + rm po/ast.po + # zh_CN fails with newer PyBabel (Aug 2013) + rm po/zh_CN.po + else + # nuke translations + rm po/*.po + fi + + DOC_CONTENTS="To start wicd at boot with openRC, add + /etc/init.d/wicd to a runlevel and: (1) Remove all net.* + initscripts (except for net.lo) from all runlevels (2) Add these + scripts to the RC_PLUG_SERVICES line in /etc/rc.conf (For + example, rc_hotplug=\"!net.eth* !net.wlan*\")" +} + +src_configure() { + local myconf + use libnotify || myconf="${myconf} --no-use-notifications" + use ncurses || myconf="${myconf} --no-install-ncurses" + use pm-utils || myconf="${myconf} --no-install-pmutils" + python_setup + "${EPYTHON}" ./setup.py configure --no-install-docs \ + --resume=/usr/share/wicd/scripts/ \ + --suspend=/usr/share/wicd/scripts/ \ + --verbose ${myconf} +} + +src_install() { + distutils-r1_src_install + keepdir /var/lib/wicd/configurations + keepdir /etc/wicd/scripts/{postconnect,disconnect,preconnect} + keepdir /var/log/wicd + use nls || rm -rv "${D}"/usr/share/locale + systemd_dounit "${S}/other/wicd.service" + + readme.gentoo_create_doc +} + +pkg_postinst() { + # Maintainer's note: the consolekit use flag short circuits a dbus rule and + # allows the connection. Else, you need to be in the group. + if ! has_version sys-auth/consolekit; then + ewarn "Wicd-1.6 and newer requires your user to be in the 'users' group. If" + ewarn "you are not in that group, then modify /etc/dbus-1/system.d/wicd.conf" + fi + + readme.gentoo_print_elog +}