Magellan Linux

Contents of /trunk/core/crda/crda-3.18-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 27516 - (show annotations) (download)
Fri Mar 4 09:06:00 2016 UTC (8 years, 3 months ago) by niro
File size: 1633 byte(s)
auto added: ver bump to 3.18-r1
1 # $Id$
2
3 PNAME="crda"
4 PVER="3.18"
5 PBUILD="r1"
6
7 PCAT="net-wlan"
8
9 DESCRIPTION="Central Regulatory Domain Agent for wireless networks."
10 HOMEPAGE="http://wireless.kernel.org/en/developers/Regulatory/CRDA"
11
12 DEPEND=">= dev-libs/libnl3-3.2
13 >= app-crypt/libgcrypt-1.6
14 >= net-wlan/iw-4.1
15 >= net-wlan/wireless-regdb-2015"
16
17 SDEPEND=">= dev-python/m2crypto-0.22"
18
19 SRCFILE="${PNAME}-${PVER}.tar.xz"
20 SRCDIR="${BUILDDIR}/${PNAME}-${PVER/_pre*/}"
21
22 sminclude mbuild mtools udev
23
24 SRC_URI=(
25 https://www.kernel.org/pub/software/network/${PNAME}/${SRCFILE}
26 mirror://${PNAME}/${SRCFILE}
27 mirror://${PNAME}/${PNAME}-3.18-makefile-link-libreg.so-against-the-crypto-library.patch
28 mirror://${PNAME}/${PNAME}-3.18-makefile-don-t-run-ldconfig.patch
29 mirror://${PNAME}/set-wireless-regdom
30 )
31
32 UP2DATE="updatecmd https://www.kernel.org/pub/software/network/${PNAME}/ | highesttarball xz"
33
34 src_prepare()
35 {
36 munpack ${SRCFILE} || die
37 cd ${SRCDIR}
38
39 # makefile fixes
40 mpatch ${PNAME}-3.18-makefile-link-libreg.so-against-the-crypto-library.patch || die
41 mpatch ${PNAME}-3.18-makefile-don-t-run-ldconfig.patch || die
42 }
43
44 src_compile()
45 {
46 cd ${SRCDIR}
47 mmake || die
48 }
49
50 src_install()
51 {
52 cd ${SRCDIR}
53
54 # the final / in SBINDIR is required or the path results in /usr/sbincrda
55 mmake DESTDIR=${BINDIR} UDEV_RULE_DIR=$(mget-udev-rules-dir) SBINDIR=/usr/sbin/ install || die
56 minstallexec -s set-wireless-regdom || die
57 # append autoloading helper to udev rule
58 MCONFIG="$(mget-udev-rules-dir)/85-regulatory.rules"
59 maddconfig 'ACTION=="add" SUBSYSTEM=="module", DEVPATH=="/module/cfg80211", RUN+="/usr/bin/set-wireless-regdom"'
60
61 minstalldocs LICENSE README || die
62 }