Contents of /trunk/deprecated/linux-wlan-ng/linux-wlan-ng-0.2.2-r1.smage2
Parent Directory | Revision Log
Revision 4746 -
(show annotations)
(download)
Sun Dec 27 16:55:56 2009 UTC (14 years, 9 months ago) by niro
File size: 2317 byte(s)
Sun Dec 27 16:55:56 2009 UTC (14 years, 9 months ago) by niro
File size: 2317 byte(s)
-moved to 'deprecated'
1 | # $Header: /magellan-cvs/smage/linux-wlan-ng/linux-wlan-ng-0.2.2-r1.smage2,v 1.3 2008/02/07 14:23:45 niro Exp $ |
2 | |
3 | PNAME="linux-wlan-ng" |
4 | PVER="0.2.2" |
5 | PBUILD="r1" |
6 | |
7 | PCATEGORIE="net-wlan" |
8 | STATE="testing" |
9 | |
10 | DESCRIPTION="linux-wlan-ng is a complete, standards based, wireless LAN system for GNU/Linux." |
11 | HOMEPAGE="http://linux-wlan.org/" |
12 | |
13 | DEPEND=">= dev-libs/openssl-0.9.7" |
14 | |
15 | SDEPEND=">= virtual/kernel-headers |
16 | >= virtual/kernel-sources |
17 | >= sys-apps/sed-4" |
18 | |
19 | SRCFILE="${PNAME}-${PVER}.tar.bz2" |
20 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
21 | |
22 | SRC_URI=( |
23 | mirror://${PNAME}/${SRCFILE} |
24 | mirror://${PNAME}/wlan.rc |
25 | ) |
26 | |
27 | # compile time: unkown (Athlon XP 1900+, 512mb DDR400) |
28 | |
29 | src_prepare() { |
30 | munpack ${SRCFILE} || die |
31 | cd ${SRCDIR} |
32 | |
33 | # setup proper default locations |
34 | sed -i -e "s:/usr/local/man/:/usr/share/man/:" man/Makefile || die |
35 | sed -i -e "s:/etc/wlan:/etc/conf.d:g" etc/wlan/Makefile || die |
36 | sed -i -e "s:/sbin/nwepgen:/sbin/keygen:" etc/wlan/wlancfg-DEFAULT || die |
37 | sed -i -e "s:/etc/wlan/wlan.conf:/etc/conf.d/wlan.conf:g" \ |
38 | -e "s:/etc/wlan/wlancfg:/etc/conf.d/wlancfg:g" \ |
39 | etc/wlan/shared || die |
40 | |
41 | # fix SUBDIRS to M (kernel spec) |
42 | sed -i 's:SUBDIRS=:M=:g' Makefile || die |
43 | } |
44 | |
45 | src_compile() { |
46 | cd ${SRCDIR} |
47 | |
48 | # setup linux-wlan-ng: |
49 | |
50 | # fix DESTDIR |
51 | sed -i -e 's:TARGET_ROOT_ON_HOST=:TARGET_ROOT_ON_HOST=${BINDIR}:' config.in || die |
52 | # build pci drivers |
53 | sed -i -e 's:PRISM2_PCI=n:PRISM2_PCI=y:' config.in || die |
54 | # do not build pcmcia drivers |
55 | sed -i -e 's:PRISM2_PCMCIA=y:PRISM2_PCMCIA=n:' config.in || die |
56 | # build usb dribers |
57 | sed -i -e 's:PRISM2_USB=n:PRISM2_USB=y:' config.in || die |
58 | # enable the configuration |
59 | cp config.in default.config || die |
60 | |
61 | # 2.6 needs ARCH unset since it uses it |
62 | local ARCH |
63 | # build the config Makefile |
64 | mmake default_config || die |
65 | # compile it |
66 | mmake all || die |
67 | |
68 | # compile add-on keygen program |
69 | cd ${SRCDIR}/add-ons/keygen |
70 | mmake || die |
71 | cd ${SRCDIR}/add-ons/lwepgen |
72 | mmake || die |
73 | } |
74 | |
75 | src_install() { |
76 | cd ${SRCDIR} |
77 | |
78 | # needed directories |
79 | install -d ${BINDIR}/etc/wlan || die |
80 | install -d ${BINDIR}/etc/rc.d/init.d || die |
81 | |
82 | # no DESTDIR ! we seded it into ;) |
83 | make install || die |
84 | |
85 | # fix some locations |
86 | mv ${BINDIR}/etc/conf.d/shared ${BINDIR}/etc/wlan/ || die |
87 | |
88 | # our initscript |
89 | install -m 0755 -o root -g root \ |
90 | ${SOURCEDIR}/${PNAME}/wlan.rc \ |
91 | ${BINDIR}/etc/rc.d/init.d/wlan || die |
92 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |