summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Heim <phreak@gentoo.org>2006-09-05 19:37:59 +0000
committerChristian Heim <phreak@gentoo.org>2006-09-05 19:37:59 +0000
commit3672d218df7df390f501811a0224f2744d448bec (patch)
tree73f8c2f91134d0ec1c6b897280025583b8f3d876 /net-wireless
parentVersion bump. (diff)
downloadgentoo-2-3672d218df7df390f501811a0224f2744d448bec.tar.gz
gentoo-2-3672d218df7df390f501811a0224f2744d448bec.tar.bz2
gentoo-2-3672d218df7df390f501811a0224f2744d448bec.zip
Adding an updated ebuild, working around some obscure bugs (#140067; #143887).
(Portage version: 2.1.1_rc1-r4)
Diffstat (limited to 'net-wireless')
-rw-r--r--net-wireless/ipw3945d/ChangeLog9
-rw-r--r--net-wireless/ipw3945d/files/digest-ipw3945d-1.7.22-r23
-rw-r--r--net-wireless/ipw3945d/files/ipw3945d-conf.d5
-rw-r--r--net-wireless/ipw3945d/files/ipw3945d-init.d24
-rw-r--r--net-wireless/ipw3945d/ipw3945d-1.7.22-r2.ebuild53
5 files changed, 93 insertions, 1 deletions
diff --git a/net-wireless/ipw3945d/ChangeLog b/net-wireless/ipw3945d/ChangeLog
index a45faf532648..0e1c00331383 100644
--- a/net-wireless/ipw3945d/ChangeLog
+++ b/net-wireless/ipw3945d/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for net-wireless/ipw3945d
# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-wireless/ipw3945d/ChangeLog,v 1.4 2006/08/02 12:16:29 phreak Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-wireless/ipw3945d/ChangeLog,v 1.5 2006/09/05 19:37:59 phreak Exp $
+
+*ipw3945d-1.7.22-r2 (05 Sep 2006)
+
+ 05 Sep 2006; Christian Heim <phreak@gentoo.org> +files/ipw3945d-conf.d,
+ +files/ipw3945d-init.d, +ipw3945d-1.7.22-r2.ebuild:
+ Adding an updated ebuild, working some obscure bugs (SpankY's braindead
+ daemon #140067; ipw3945d causing an oops on shutdown #143887).
*ipw3945d-1.7.22-r1 (02 Aug 2006)
diff --git a/net-wireless/ipw3945d/files/digest-ipw3945d-1.7.22-r2 b/net-wireless/ipw3945d/files/digest-ipw3945d-1.7.22-r2
new file mode 100644
index 000000000000..92883c1f4f53
--- /dev/null
+++ b/net-wireless/ipw3945d/files/digest-ipw3945d-1.7.22-r2
@@ -0,0 +1,3 @@
+MD5 a8404cb63de7493d1405d5132ea02823 ipw3945d-1.7.22.tgz 59936
+RMD160 26c1e602f7f33f8eb8856256a35c59db308c8f17 ipw3945d-1.7.22.tgz 59936
+SHA256 d2cb513b8cedc1515a9c5a4a367aa7869bf2cc644019ebe0737cb13384ef9397 ipw3945d-1.7.22.tgz 59936
diff --git a/net-wireless/ipw3945d/files/ipw3945d-conf.d b/net-wireless/ipw3945d/files/ipw3945d-conf.d
new file mode 100644
index 000000000000..03cb1fcc79ce
--- /dev/null
+++ b/net-wireless/ipw3945d/files/ipw3945d-conf.d
@@ -0,0 +1,5 @@
+# /etc/conf.d/ipw3945d: config file for /etc/init.d/ipw3945d
+
+# Arguments to be passed to ipw3945d. See 'ipw3945d --help' for more
+# information.
+ARGS="--timeout=-1 --quiet"
diff --git a/net-wireless/ipw3945d/files/ipw3945d-init.d b/net-wireless/ipw3945d/files/ipw3945d-init.d
new file mode 100644
index 000000000000..a57583683fa5
--- /dev/null
+++ b/net-wireless/ipw3945d/files/ipw3945d-init.d
@@ -0,0 +1,24 @@
+#!/sbin/runscript
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-wireless/ipw3945d/files/ipw3945d-init.d,v 1.1 2006/09/05 19:37:59 phreak Exp $
+
+PIDFILE=/var/run/ipw3945d/ipw3945d.pid
+
+depend() {
+ before net
+}
+
+start() {
+ ebegin "Starting ipw3945d"
+ start-stop-daemon --start --exec /sbin/ipw3945d --chuid ipw3945d:ipw3945d \
+ --pidfile ${PIDFILE} -- \
+ --pid-file=${PIDFILE} ${ARGS}
+ eend ${?}
+}
+
+stop() {
+ ebegin "Stopping ipw3945d"
+ start-stop-daemon --stop --exec /sbin/ipw3945 --pidfile ${PIDFILE}
+ eend ${?}
+}
diff --git a/net-wireless/ipw3945d/ipw3945d-1.7.22-r2.ebuild b/net-wireless/ipw3945d/ipw3945d-1.7.22-r2.ebuild
new file mode 100644
index 000000000000..0ce2c3480708
--- /dev/null
+++ b/net-wireless/ipw3945d/ipw3945d-1.7.22-r2.ebuild
@@ -0,0 +1,53 @@
+# 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-r2.ebuild,v 1.1 2006/09/05 19:37:59 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="~x86"
+
+IUSE=""
+DEPEND=""
+
+pkg_setup() {
+ enewgroup ipw3945d
+ enewuser ipw3945d -1 -1 -1 ipw3945d
+}
+
+src_install() {
+ into /
+ use x86 && dosbin x86/ipw3945d
+ use amd64 && dosbin x86_64/ipw3945d
+
+ keepdir /var/run/${PN}
+ fowners ipw3945d:ipw3945d /var/run/${PN}
+
+ newconfd "${FILESDIR}"/${PN}-conf.d ${PN}
+ newinitd "${FILESDIR}"/${PN}-init.d ${PN}
+
+ dodoc README.${PN}
+}
+
+pkg_postinst() {
+ 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
+
+ if [[ -e "${ROOT}"/etc/modules.d/ipw3945d ]]; then
+ ewarn
+ ewarn "You need to manually delete the now obsolete modprobe entry and run"
+ ewarn "modules-update as shown below:"
+ ewarn
+ ewarn " # rm -f ${ROOT}/etc/modules.d/ipw3945d; modules-update --force"
+ ewarn
+ fi
+}