Magellan Linux

Contents of /branches/R11-unstable/core/crda/crda-3.18-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 32226 - (show annotations) (download)
Mon Apr 29 11:58:07 2019 UTC (5 years ago) by niro
File size: 1821 byte(s)
-release branches/R11-unstable
1 # $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.8
14 >= net-wlan/iw-4.1
15 >= net-wlan/wireless-regdb-2015"
16
17 SDEPEND=">= dev-python/python2-m2crypto-0.27"
18
19 SRCFILE="${PNAME}-${PVER}.tar.xz"
20 SRCDIR="${BUILDDIR}/${PNAME}-${PVER/_pre*/}"
21
22 msetfeature "!check" # no check target in Makefile
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}/${PNAME}-3.18-no-werror.patch
31 mirror://${PNAME}/set-wireless-regdom
32 )
33
34 UP2DATE="updatecmd https://www.kernel.org/pub/software/network/${PNAME}/ | highesttarball xz"
35
36 src_prepare()
37 {
38 munpack ${SRCFILE} || die
39 cd ${SRCDIR}
40
41 # makefile fixes
42 mpatch ${PNAME}-3.18-makefile-link-libreg.so-against-the-crypto-library.patch || die
43 mpatch ${PNAME}-3.18-makefile-don-t-run-ldconfig.patch || die
44 # make werror conditional
45 mpatch ${PNAME}-3.18-no-werror.patch || die
46 }
47
48 src_compile()
49 {
50 cd ${SRCDIR}
51 mmake WERROR= || die
52 }
53
54 src_install()
55 {
56 cd ${SRCDIR}
57
58 # the final / in SBINDIR is required or the path results in /usr/sbincrda
59 mmake DESTDIR=${BINDIR} UDEV_RULE_DIR=$(mget-udev-rules-dir) SBINDIR=/usr/sbin/ install || die
60 minstallexec -s set-wireless-regdom || die
61 # append autoloading helper to udev rule
62 MCONFIG="$(mget-udev-rules-dir)/85-regulatory.rules"
63 maddconfig 'ACTION=="add" SUBSYSTEM=="module", DEVPATH=="/module/cfg80211", RUN+="/usr/bin/set-wireless-regdom"'
64
65 minstalldocs LICENSE README || die
66 }