# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit python MY_P="${PN}_${PV}-src" DESCRIPTION="A wired and wireless network manager for Linux" HOMEPAGE="http://wicd.sourceforge.net/" SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.bz2" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86 ~amd64" IUSE="" DEPEND="" RDEPEND="dev-python/dbus-python dev-python/pygtk net-misc/dhcp net-wireless/wireless-tools net-wireless/wpa_supplicant sys-apps/ethtool" src_install() { insinto / rm ${WORKDIR}/opt/wicd/data/wicd.png \ ${WORKDIR}/opt/wicd/encryption/templates/wep \ ${WORKDIR}/opt/wicd/images/wicd.png || die "Failed to remove symlinks" doins -r opt etc usr || die "Install failed" dosym /opt/wicd/encryption/templates/wep-hex /opt/wicd/encryption/templates/wep dosym /opt/wicd/images/wicd-purple.png /opt/wicd/images/wicd.png dosym /opt/wicd/images/wicd.png /opt/wicd/data/wicd.png newinitd "${FILESDIR}/${P}-init.d" "wicd" } pkg_postinst() { python_mod_optimize /opt/wicd elog "Make sure dbus is in the same runlevel" elog "as the wicd initscript" elog elog "Start the WICD GUI using:" elog " /opt/wicd/gui.py" elog elog "Display the tray icon by running:" elog " /opt/wicd/tray.py" } pkg_postrm() { python_mod_cleanup /opt/wicd }