Magellan Linux

Contents of /smage/trunk/core/crda/crda-3.18-r5.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 10279 - (show annotations) (download)
Thu Aug 17 11:23:28 2017 UTC (6 years, 8 months ago) by niro
File size: 1770 byte(s)
auto added: ver bump to 3.18-r5
1 # $Id$
2
3 PNAME="crda"
4 PVER="3.18"
5 PBUILD="r5"
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 >= dev-libs/libnl3-dev-3.2
19 >= app-crypt/libgcrypt-dev-1.6"
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 sminclude mbuild mtools udev alx-split
26
27 SRC_URI=(
28 https://www.kernel.org/pub/software/network/${PNAME}/${SRCFILE}
29 mirror://${PNAME}/${SRCFILE}
30 mirror://${PNAME}/${PNAME}-3.18-makefile-link-libreg.so-against-the-crypto-library.patch
31 mirror://${PNAME}/${PNAME}-3.18-makefile-don-t-run-ldconfig.patch
32 mirror://${PNAME}/set-wireless-regdom
33 )
34
35 UP2DATE="updatecmd https://www.kernel.org/pub/software/network/${PNAME}/ | highesttarball xz"
36
37 src_prepare()
38 {
39 munpack ${SRCFILE} || die
40 cd ${SRCDIR}
41
42 # makefile fixes
43 mpatch ${PNAME}-3.18-makefile-link-libreg.so-against-the-crypto-library.patch || die
44 mpatch ${PNAME}-3.18-makefile-don-t-run-ldconfig.patch || die
45 }
46
47 src_compile()
48 {
49 cd ${SRCDIR}
50 mmake || die
51 }
52
53 alx_generic_src_install()
54 {
55 cd ${SRCDIR}
56
57 # the final / in SBINDIR is required or the path results in /usr/sbincrda
58 mmake DESTDIR=${BINDIR} UDEV_RULE_DIR=$(mget-udev-rules-dir) SBINDIR=/usr/sbin/ install || die
59 minstallexec -s set-wireless-regdom || die
60 # append autoloading helper to udev rule
61 MCONFIG="$(mget-udev-rules-dir)/85-regulatory.rules"
62 maddconfig 'ACTION=="add" SUBSYSTEM=="module", DEVPATH=="/module/cfg80211", RUN+="/usr/bin/set-wireless-regdom"'
63
64 minstalldocs LICENSE README || die
65 }