blob: 583385f76f33c04f88bf9663d696acb9cb87ebac (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
# 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.2 2006/12/17 21:46:35 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"
# The daemon is binary only, is setXid, dyn linked,
# and using lazy bindings
RESTRICT="stricter"
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
# Give the ipw3945d access to the binary
fowners ipw3945d:root /sbin/ipw3945d
fperms 04450 /sbin/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 "The ipw3945 daemon is now started by udev. The daemon should be"
einfo "brought up automatically."
}
|