diff options
author | Christian Heim <phreak@gentoo.org> | 2006-12-17 19:52:19 +0000 |
---|---|---|
committer | Christian Heim <phreak@gentoo.org> | 2006-12-17 19:52:19 +0000 |
commit | eb839b354cdf516057e8d7adc274e0a141d53354 (patch) | |
tree | 08897e965bda02c930845220d1e3a5b1de5ac63f /net-wireless/ipw3945d/ipw3945d-1.7.22-r4.ebuild | |
parent | Remove pdf USE check to cairo (diff) | |
download | gentoo-2-eb839b354cdf516057e8d7adc274e0a141d53354.tar.gz gentoo-2-eb839b354cdf516057e8d7adc274e0a141d53354.tar.bz2 gentoo-2-eb839b354cdf516057e8d7adc274e0a141d53354.zip |
Revision bump, hopefully fixing some of the bugs introduced by ripping of Hendrik's modprobe.conf files.
(Portage version: 2.1.2_rc3-r6)
Diffstat (limited to 'net-wireless/ipw3945d/ipw3945d-1.7.22-r4.ebuild')
-rw-r--r-- | net-wireless/ipw3945d/ipw3945d-1.7.22-r4.ebuild | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/net-wireless/ipw3945d/ipw3945d-1.7.22-r4.ebuild b/net-wireless/ipw3945d/ipw3945d-1.7.22-r4.ebuild new file mode 100644 index 000000000000..0817c7efd690 --- /dev/null +++ b/net-wireless/ipw3945d/ipw3945d-1.7.22-r4.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-wireless/ipw3945d/ipw3945d-1.7.22-r4.ebuild,v 1.1 2006/12/17 19:52:19 phreak Exp $ + +inherit eutils + +DESCRIPTION="Regulatory daemon for the Intel PRO/Wireless 3945ABG miniPCI express adapter" +HOMEPAGE="http://www.bughost.org/ipw3945/" +SRC_URI="http://www.bughost.org/ipw3945/daemon/${P}.tgz" + +LICENSE="ipw3945" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +IUSE="" +DEPEND="" + +pkg_setup() { + # Create a user for the ipw3945d daemon + enewuser ipw3945d -1 +} + +src_install() { + into / + use x86 && dosbin x86/ipw3945d + use amd64 && dosbin x86_64/ipw3945d + + keepdir /var/run/ipw3945d + fowners ipw3945d:root /var/run/ipw3945d + + newconfd "${FILESDIR}/${PN}-conf.d" ${PN} + newinitd "${FILESDIR}/${PN}-init.d" ${PN} + + insinto /etc/modules.d + newins "${FILESDIR}/${P}-modprobe.conf" ${PN} + + dodoc README.${PN} +} + +pkg_postinst() { + # Update the modules.d cache + if [ -f "${ROOT}/etc/modules.d/${PN}" ] ; then + ${ROOT}/sbin/modules-update --force + fi + einfo + einfo "The ipw3945d is now started using an init script. To automatically have" + einfo "it started, you need to add it to the boot run level as shown below:" + einfo + einfo " # rc-update add ${PN} default" + einfo +} |