Annotation of /smage/trunk/core/crda/crda-3.18-r2.smage2
Parent Directory | Revision Log
Revision 8319 -
(hide annotations)
(download)
Thu Jan 14 16:20:10 2016 UTC (8 years, 3 months ago) by niro
File size: 1596 byte(s)
Thu Jan 14 16:20:10 2016 UTC (8 years, 3 months ago) by niro
File size: 1596 byte(s)
auto added: ver bump to 3.18-r2
1 | niro | 8319 | # $Id$ |
2 | |||
3 | PNAME="crda" | ||
4 | PVER="3.18" | ||
5 | PBUILD="r2" | ||
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/wireless-regdb-2015" | ||
15 | |||
16 | SDEPEND=">= dev-python/m2crypto-0.22 | ||
17 | >= dev-libs/libnl3-dev-3.2 | ||
18 | >= app-crypt/libgcrypt-dev-1.6" | ||
19 | |||
20 | SRCFILE="${PNAME}-${PVER}.tar.xz" | ||
21 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER/_pre*/}" | ||
22 | |||
23 | sminclude mbuild mtools udev | ||
24 | |||
25 | SRC_URI=( | ||
26 | https://www.kernel.org/pub/software/network/${PNAME}/${SRCFILE} | ||
27 | mirror://${PNAME}/${SRCFILE} | ||
28 | mirror://${PNAME}/${PNAME}-3.18-makefile-link-libreg.so-against-the-crypto-library.patch | ||
29 | mirror://${PNAME}/${PNAME}-3.18-makefile-don-t-run-ldconfig.patch | ||
30 | mirror://${PNAME}/set-wireless-regdom | ||
31 | ) | ||
32 | |||
33 | UP2DATE="updatecmd https://www.kernel.org/pub/software/network/${PNAME}/ | highesttarball xz" | ||
34 | |||
35 | src_prepare() | ||
36 | { | ||
37 | munpack ${SRCFILE} || die | ||
38 | cd ${SRCDIR} | ||
39 | |||
40 | # makefile fixes | ||
41 | mpatch ${PNAME}-3.18-makefile-link-libreg.so-against-the-crypto-library.patch || die | ||
42 | mpatch ${PNAME}-3.18-makefile-don-t-run-ldconfig.patch || die | ||
43 | } | ||
44 | |||
45 | src_compile() | ||
46 | { | ||
47 | cd ${SRCDIR} | ||
48 | mmake || die | ||
49 | } | ||
50 | |||
51 | src_install() | ||
52 | { | ||
53 | cd ${SRCDIR} | ||
54 | |||
55 | mmake DESTDIR=${BINDIR} UDEV_RULE_DIR=$(mget-udev-rules-dir) SBINDIR=/usr/sbin install || die | ||
56 | minstallexec -s set-wireles-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 | } |