Annotation of /smage/branches/alx07x-unstable/core/crda/crda-3.18-r8.smage2
Parent Directory | Revision Log
Revision 14727 -
(hide annotations)
(download)
Tue Aug 4 11:53:17 2020 UTC (3 years, 10 months ago) by niro
File size: 1925 byte(s)
Tue Aug 4 11:53:17 2020 UTC (3 years, 10 months ago) by niro
File size: 1925 byte(s)
-release branches/alx07x-unstable
1 | niro | 14056 | # $Id$ |
2 | |||
3 | PNAME="crda" | ||
4 | PVER="3.18" | ||
5 | PBUILD="r8" | ||
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.3 | ||
13 | >= app-crypt/libgcrypt-1.8 | ||
14 | >= net-wlan/iw-5 | ||
15 | >= net-wlan/wireless-regdb-2020" | ||
16 | |||
17 | SDEPEND=">= dev-python/python2-m2crypto-0.3 | ||
18 | >= dev-libs/libnl3-dev-3.3 | ||
19 | >= app-crypt/libgcrypt-dev-1.8" | ||
20 | |||
21 | SRCFILE="${PNAME}-${PVER}.tar.xz" | ||
22 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER/_pre*/}" | ||
23 | |||
24 | ALX_PKG_KEEP="usr/bin usr/sbin usr/$(mlibdir) usr/lib" | ||
25 | niro | 14057 | msetfeature "!check" |
26 | niro | 14056 | sminclude mbuild mtools udev alx-split |
27 | |||
28 | SRC_URI=( | ||
29 | https://www.kernel.org/pub/software/network/${PNAME}/${SRCFILE} | ||
30 | mirror://${PNAME}/${SRCFILE} | ||
31 | mirror://${PNAME}/${PNAME}-3.18-makefile-link-libreg.so-against-the-crypto-library.patch | ||
32 | mirror://${PNAME}/${PNAME}-3.18-makefile-don-t-run-ldconfig.patch | ||
33 | mirror://${PNAME}/${PNAME}-3.18-no-werror.patch | ||
34 | mirror://${PNAME}/set-wireless-regdom | ||
35 | ) | ||
36 | |||
37 | UP2DATE="updatecmd https://www.kernel.org/pub/software/network/${PNAME}/ | highesttarball xz" | ||
38 | |||
39 | src_prepare() | ||
40 | { | ||
41 | munpack ${SRCFILE} || die | ||
42 | cd ${SRCDIR} | ||
43 | |||
44 | # makefile fixes | ||
45 | mpatch ${PNAME}-3.18-makefile-link-libreg.so-against-the-crypto-library.patch || die | ||
46 | mpatch ${PNAME}-3.18-makefile-don-t-run-ldconfig.patch || die | ||
47 | # make werror conditional | ||
48 | mpatch ${PNAME}-3.18-no-werror.patch || die | ||
49 | } | ||
50 | |||
51 | src_compile() | ||
52 | { | ||
53 | cd ${SRCDIR} | ||
54 | mmake WERROR= || die | ||
55 | } | ||
56 | |||
57 | alx_generic_src_install() | ||
58 | { | ||
59 | cd ${SRCDIR} | ||
60 | |||
61 | # the final / in SBINDIR is required or the path results in /usr/sbincrda | ||
62 | mmake DESTDIR=${BINDIR} UDEV_RULE_DIR=$(mget-udev-rules-dir) SBINDIR=/usr/sbin/ install || die | ||
63 | minstallexec -s set-wireless-regdom || die | ||
64 | # append autoloading helper to udev rule | ||
65 | MCONFIG="$(mget-udev-rules-dir)/85-regulatory.rules" | ||
66 | maddconfig 'ACTION=="add" SUBSYSTEM=="module", DEVPATH=="/module/cfg80211", RUN+="/usr/bin/set-wireless-regdom"' | ||
67 | |||
68 | minstalldocs LICENSE README || die | ||
69 | } |