# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="Configuration to connect to the Pitt network and scripts to stay \ connected" HOMEPAGE="http://www.pitt.edu/~crp11/pittlinux/xsupplicant/" SRC_URI="http://www.pitt.edu/~crp11/pittlinux/xsupplicant/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~x86" DEPEND="net-wireless/wpa_supplicant" src_compile() { true } src_install() { cd "${S}" cp -a usr etc ${D} # Contains a password, so shouldn't be readable by anyone but root: fperms 0600 /etc/wpa_supplicant/wpa_supplicant.conf dodoc README } pkg_postinst() { ewarn "If this is your first install, you'll need to enter your username" ewarn "and password in /etc/wpa_supplicant/wpa_supplicant.conf now." einfo "" einfo "To run at startup, add beconnected and your net script to the" einfo "default runlevel:" einfo "# rc-update add net.eth0 default # adjust eth0 if appropriate" einfo "# rc-update add beconnected default" einfo "" einfo "Also, if you aren't using eth0, you'll need to modify" einfo "/etc/conf.d/beconnected to use the proper interface." }