/[gentoo-x86]/sys-kernel/linux-extras/linux-extras-2.4.4-r5.ebuild
Gentoo

Contents of /sys-kernel/linux-extras/linux-extras-2.4.4-r5.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (hide annotations) (download)
Tue Jul 17 23:31:35 2001 UTC (18 years, 8 months ago) by drobbins
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +0 -0 lines
FILE REMOVED
removing old kernels

1 pete 1.1 # Copyright 1999-2000 Gentoo Technologies, Inc.
2     # Distributed under the terms of the GNU General Public License, v2 or later
3     # Author Daniel Robbins <drobbins@gentoo.org>
4     # /home/cvsroot/gentoo-x86/sys-kernel/linux/linux-2.4.4.3.ebuild,v 1.1 2001/05/02 14:31:06 achim Exp
5    
6     #OKV=original kernel version, KV=patched kernel version
7     OKV=2.4.4
8     KV=${OKV}
9     if [ "${PN}" = "linux-extras" ]
10     then
11     S=/usr/src/linux-${KV}
12     else
13     S=${WORKDIR}/linux-${KV}
14     fi
15    
16     # Versions of LVM
17     LVMV=0.9.1_beta7
18    
19     LVMVARC=0.9.1_beta7
20     # Versions of alsa
21     AV=0.5.11
22    
23     # Versionos of jfs
24     JFSV=0.2.1
25    
26     # Versions of lm_sensors
27     SENV=2.5.5
28    
29     # Versions of reiserfs
30     RV=20010327
31     KNV="6.g"
32     PIV="1.d"
33    
34     # Versions of xmlprocfs
35     XMLV=0.3
36    
37     # Versions of pcmcia-cs
38     PCV="3.1.25"
39    
40     # Version of XFS
41     XFSV=20010523
42    
43     [ "${PN}" = "linux" ] && DESCRIPTION="Linux kernel version ${KV}, including modules, binary tools, libraries and includes"
44     [ "${PN}" = "linux-sources" ] && DESCRIPTION="Linux kernel version ${KV} - full sources"
45     [ "${PN}" = "linux-extras" ] && DESCRIPTION="Linux kernel support tools and libraries"
46    
47     # We use build in /usr/src/linux in case of linux-extras
48     # so we need no sources
49     if [ "${PN}" != "linux-extras" ]
50     then
51     SRC_URI="http://www.kernel.org/pub/linux/kernel/v2.4/linux-${OKV}.tar.bz2
52     http://dice.mfa.kfki.hu/download/reiserfs-3.6.25-2.4.4/linux-2.4.4-knfsd-6.g.patch.gz
53     http://dice.mfa.kfki.hu/download/reiserfs-3.6.25-2.4.4/linux-2.4.4-procinfo-1.d.patch.gz
54     http://dice.mfa.kfki.hu/download/reiserfs-3.6.25-2.4.4/reiserfs-quota-2.4.4.dif.bz2"
55     # http://www.kernel.org/pub/linux/kernel/people/alan/2.4/patch-${KV}.bz2
56     # http://oss.software.ibm.com/developerworks/opensource/jfs/project/pub/jfs-${JFSV}-patch.tar.gz
57     # http://download.sourceforge.net/xmlprocfs/linux-2.4-xmlprocfs-${XMLV}.patch.gz
58     # ftp://ftp.reiserfs.com/pub/reiserfs-for-2.4/linux-${OKV}-reiserfs-${RV}.patch.gz
59    
60     if [ "`use lm_sensors`" ]
61     then
62     SRC_URI="${SRC_URI} http://www.netroedge.com/~lm78/archive/lm_sensors-${SENV}.tar.gz"
63     fi
64     if [ "`use lvm`" ]
65     then
66     SRC_URI="${SRC_URI} ftp://ftp.sistina.com/pub/LVM/0.9.1_beta/lvm_${LVMVARC}.tar.gz"
67     fi
68     if [ "`use alsa`" ]
69     then
70     SRC_URI="${SRC_URI} ftp://ftp.alsa-project.org/pub/driver/alsa-driver-${AV}.tar.bz2"
71     fi
72     if [ "`use pcmcia-cs`" ]
73     then
74     SRC_URI="${SRC_URI} http://prdownloads.sourceforge.net/pcmcia-cs/pcmcia-cs-${PCV}.tar.gz"
75     fi
76     if [ "`use xfs`" ]
77     then
78     SRC_URI="${SRC_URI} ftp://ftp.ibiblio.org/pub/Linux/distributions/gentoo/gentoo-sources/linux-${KV}-xfs-${XFSV}-gentoo.diff.gz"
79     fi
80     fi
81    
82     if [ "${PN}" = "linux-extras" ]
83     then
84     DEPEND=">=sys-kernel/linux-sources-${PVR}"
85     RDEPEND=""
86     if [ "`use xfs`" ]
87     then
88 pete 1.2 DEPEND="${DEPEND} >=sys-devel/autoconf-2.13"
89     fi
90     if [ "`use alsa`" ]
91     then
92     PROVIDE="virtual/alsa"
93 pete 1.1 fi
94     elif [ "${PN}" = "linux" ]
95     then
96     PROVIDE="virtual/kernel"
97     if [ "`use alsa`" ]
98     then
99     PROVIDE="${PROVIDE} virtual/alsa"
100     fi
101     RDEPEND=">=sys-apps/reiserfs-utils-3.6.25-r1"
102     DEPEND=">=sys-apps/modutils-2.4.2
103     >=sys-devel/flex-2.5.4a-r3
104     >=dev-util/yacc-1.9.1-r1"
105     fi
106    
107     HOMEPAGE="http://www.kernel.org/
108     http://www.netroedge.com/~lm78/
109     http://www.namesys.com
110     http://www.sistina.com/lvm/
111     http://www.alsa-project.org
112     http://pcmcia-cs.sourceforge.net
113     http://linux-xfs.sgi.com/projects/xfs/"
114    
115     # this is not pretty...
116     LINUX_HOSTCFLAGS="-Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -I${S}/include"
117    
118     src_unpack() {
119    
120     # We only need to unpack for linux and linux-sources
121    
122     if [ "${PN}" != "linux-extras" ]
123     then
124    
125     #unpack kernel and apply reiserfs-related patches
126     cd ${WORKDIR}
127     unpack linux-${OKV}.tar.bz2
128     try mv linux linux-${KV}
129     cd ${S}
130    
131     echo "Applying reiserfs-knfsd patch..."
132     try gzip -dc ${DISTDIR}/linux-${OKV}-knfsd-${KNV}.patch.gz | patch -p1
133     echo "Applying reiserfs-procinfo patch..."
134     try gzip -dc ${DISTDIR}/linux-${OKV}-procinfo-${PIV}.patch.gz | patch -p1
135     echo "Applying reiserfs-quota patch..."
136     try bzip2 -dc ${DISTDIR}/reiserfs-quota-${OKV}.dif.bz2 | patch -p1
137    
138     if [ "`use lvm`" ] || [ "`use alsa`" ] || [ "`use lm_sensors`" ] || [ "`use pcmcia-cs`" ]
139     then
140     mkdir -p ${S}/extras
141     fi
142    
143     if [ "`use xfs`" ]
144     then
145     cd ${S}
146     echo "Applying xfs patch..."
147     try gzip -dc ${DISTDIR}/linux-${KV}-xfs-${XFSV}-gentoo.diff.gz | patch -p1
148     fi
149    
150     if [ "`use lvm`" ]
151     then
152     #create and apply LVM patch. The tools get built later.
153     cd ${S}/extras
154     echo "Unpacking and applying LVM patch..."
155     unpack lvm_${LVMVARC}.tar.gz
156     try cd LVM/${LVMV}
157    
158     # I had to hack this in so that LVM will look in the current linux
159     # source directory instead of /usr/src/linux for stuff - pete
160     try CFLAGS=\""${CFLAGS} -I${S}/include"\" ./configure --prefix=/ --mandir=/usr/share/man --with-kernel_dir="${S}"
161    
162     cd PATCHES
163     try make KERNEL_VERSION=${KV} KERNEL_DIR=${S}
164     cd ${S}
165     # the -l option allows this patch to apply cleanly (ignore whitespace changes)
166     if [ "`use xfs`" ]
167     then
168     try patch -l -p1 < ${FILESDIR}/${PVR}/linux-${KV}-xfs-${XFSV}-pre-lvm-gentoo.diff
169     fi
170     try patch -l -p1 < ${S}/extras/LVM/${LVMV}/PATCHES/lvm-${LVMV}-${KV}.patch
171     cd ${S}/drivers/md
172     try patch -p0 < ${FILESDIR}/${PVR}/lvm.c.diff
173     fi
174    
175     if [ "`use alsa`" ]
176     then
177     #unpack alsa drivers
178     echo "Unpacking ALSA drivers..."
179     cd ${S}/extras
180     unpack alsa-driver-${AV}.tar.bz2
181     fi
182    
183     if [ "`use lm_sensors`" ]
184     then
185     #unpack and apply the lm_sensors patch
186     echo "Unpacking and applying lm_sensors patch..."
187     cd ${S}/extras
188     unpack lm_sensors-${SENV}.tar.gz
189     try cd lm_sensors-${SENV}
190     try mkpatch/mkpatch.pl . ${S} > ${S}/lm_sensors-patch
191     try rmdir src
192     try ln -s ../.. src
193     try cp -a Makefile Makefile.orig
194    
195     cd ${S}
196     try patch -p1 < lm_sensors-patch
197     fi
198    
199     if [ "`use xfs`" ]
200     then
201     echo "Applying xfs cleanup patch..."
202     try patch -p1 < ${FILESDIR}/${PVR}/linux-${KV}-xfs-${XFSV}-cleanup-gentoo.diff
203     fi
204    
205     if [ "`use pcmcia-cs`" ]
206     then
207     echo "Unpacking pcmcia-cs tools..."
208     cd ${S}/extras
209     unpack pcmcia-cs-${PCV}.tar.gz
210     patch -p0 < ${FILESDIR}/${PVR}/pcmcia-cs-${PCV}-gentoo.diff
211     fi
212     #get sources ready for compilation or for sitting at /usr/src/linux
213     echo "Preparing for compilation..."
214    
215     cd ${S}
216     #sometimes we have icky kernel symbols; this seems to get rid of them
217     try make mrproper
218 pete 1.2
219 pete 1.1 #fix silly permissions in tarball
220     cd ${WORKDIR}
221     chown -R 0.0 ${S}
222     chmod -R a+r-w+X,u+w ${S}
223     fi
224     }
225    
226     src_compile() {
227    
228     if [ "${PN}" != "linux-sources" ]
229     then
230 pete 1.2 if [ "${PN}" = "linux" ]
231     then
232     #this is the configuration for the default kernel
233     try cp ${FILESDIR}/${PVR}/config.bootcomp .config
234     try yes \"\" \| make oldconfig
235     echo "Ignore any errors from the yes command above."
236     try make include/linux/version.h
237     fi
238    
239 pete 1.1 if [ "$PN" = "linux" ]
240     then
241     try make symlinks
242     fi
243    
244     if [ "`use lvm`" ]
245     then
246     #LVM tools are included in the linux and linux-extras pakcages
247     cd ${S}/extras/LVM/${LVMV}
248    
249     # This is needed for linux-extras
250     if [ -f "Makefile" ]
251     then
252 pete 1.2 try make distclean
253 pete 1.1 fi
254     # I had to hack this in so that LVM will look in the current linux
255     # source directory instead of /usr/src/linux for stuff - pete
256     try CFLAGS=\""${CFLAGS} -I${S}/include"\" ./configure --prefix=/ --mandir=/usr/share/man --with-kernel_dir="${S}"
257    
258     try make
259     fi
260    
261     if [ "`use lm_sensors`" ]
262     then
263     cd ${S}/extras/lm_sensors-${SENV}
264     try sed -e \''s:^LINUX=.*:LINUX=src:'\' \
265     -e \''s/^COMPILE_KERNEL.*/COMPILE_KERNEL := 0/'\' \
266     -e \''s:^I2C_HEADERS.*:I2C_HEADERS=src/include:'\' \
267     -e \'"s#^DESTDIR.*#DESTDIR := ${D}#"\' \
268     -e \''s#^PREFIX.*#PREFIX := /usr#'\' \
269     -e \''s#^MANDIR.*#MANDIR := /usr/share/man#'\' \
270     Makefile.orig > Makefile
271    
272 pete 1.2 try make clean
273    
274 pete 1.1 try make
275     fi
276    
277     if [ "`use xfs`" ]
278     then
279     cd ${S}/extras/xfs-${XFSV}/acl
280 pete 1.2 try make distclean
281 pete 1.4 rm -f include/builddefs
282 pete 1.1 try make \
283     CPPFLAGS=\""-I${S}/include"\" \
284     configure
285     try make \
286     PKG_SBIN_DIR=/sbin \
287     PKG_INC_DIR=/usr/include/acl \
288     PKG_LIB_DIR=/usr/lib \
289     PKG_MAN_DIR=/usr/share/man \
290     CC=\""gcc -I${S}/include"\" \
291     OPTIMIZER=\""${CFLAGS}"\" \
292     DEBUG=\"\"
293    
294     cd ${S}/extras/xfs-${XFSV}/attr
295 pete 1.2 try make distclean
296 pete 1.4 rm -f include/builddefs
297 pete 1.1 try make \
298     CPPFLAGS=\""-I${S}/include"\" \
299     configure
300     try make \
301     PKG_SBIN_DIR=/bin \
302     PKG_INC_DIR=/usr/include/acl \
303     PKG_LIB_DIR=/usr/lib \
304     PKG_MAN_DIR=/usr/share/man \
305     CC=\""gcc -I${S}/include"\" \
306     OPTIMIZER=\""${CFLAGS}"\" \
307     DEBUG=\"\"
308    
309     cd ${S}/extras/xfs-${XFSV}/xfsprogs
310 pete 1.2 try make distclean
311 pete 1.4 rm -f include/builddefs
312 pete 1.1 try make \
313     CPPFLAGS=\""-I${S}/include"\" \
314     configure
315     try make \
316     PKG_SBIN_DIR=/sbin \
317     PKG_BIN_DIR=/usr/sbin \
318     PKG_INC_DIR=/usr/include/xfs \
319     PKG_LIB_DIR=/usr/lib \
320     PKG_MAN_DIR=/usr/share/man \
321     CC=\""gcc -I${S}/include"\" \
322     OPTIMIZER=\""${CFLAGS}"\" \
323     DEBUG=\"\"
324    
325     # dmapi and xfsdump must be built last, cuz they depend on libattr (in attr) and libxfs (in xfsprogs)
326     cd ${S}/extras/xfs-${XFSV}/dmapi
327     ln -sf ../../xfsprogs/include include/xfs
328 pete 1.2 try make distclean
329 pete 1.4 rm -f include/builddefs
330 pete 1.1 try make \
331     CPPFLAGS=\""-I${S}/include -I${S}/extras/xfs-${XFSV}/dmapi/include"\" \
332     configure
333     try make \
334     PKG_INC_DIR=/usr/include/dmapi \
335     PKG_LIB_DIR=/usr/lib \
336     PKG_MAN_DIR=/usr/share/man \
337     CC=\""gcc -I${S}/include"\" \
338     OPTIMIZER=\""${CFLAGS}"\" \
339     DEBUG=\"\"
340    
341     cd ${S}/extras/xfs-${XFSV}/xfsdump
342     ln -sf ../../xfsprogs/include include/xfs
343     ln -sf ../../attr/include include/attr
344 pete 1.2 try make distclean
345 pete 1.4 rm -f include/builddefs
346 pete 1.1 try make \
347     CPPFLAGS=\""-I${S}/include -I${S}/extras/xfs-${XFSV}/xfsdump/include -I${S}/extras/xfs-${XFSV}/xfsprogs/include -I${S}/extras/xfs-${XFSV}/attr/include"\" \
348     LDFLAGS=\""-L${S}/extras/xfs-${XFSV}/attr/libattr -L${S}/extras/xfs-${XFSV}/xfsprogs/libxfs -L${S}/extras/xfs-${XFSV}/xfsprogs/libhandle -lhandle"\" \
349     configure
350     try make \
351     PKG_BIN_DIR=/usr/sbin \
352     PKG_LIB_DIR=/usr/lib \
353     PKG_MAN_DIR=/usr/share/man \
354     CC=\""gcc -I${S}/include -I${S}/extras/xfs-${XFSV}/xfsprogs/include -I${S}/extras/xfs-${XFSV}/attr/include"\" \
355     OPTIMIZER=\""${CFLAGS}"\" \
356     DEBUG=\"\" \
357     LIBATTR=\""-L${S}/extras/xfs-${XFSV}/attr/libattr -lattr"\" \
358     LIBXFS=\""-L${S}/extras/xfs-${XFSV}/xfsprogs/libxfs -lxfs"\" \
359     LIBHANDLE=\""-L${S}/extras/xfs-${XFSV}/xfsprogs/libhandle -lhandle"\"
360    
361     fi
362    
363     cd ${S}
364    
365     if [ "${PN}" == "linux" ]
366     then
367     try make HOSTCFLAGS=\""${LINUX_HOSTCFLAGS}"\" dep
368     try make HOSTCFLAGS=\""${LINUX_HOSTCFLAGS}"\" LEX=\""flex -l"\" bzImage
369     #LEX=\""flex -l"\" bzImage
370     try make HOSTCFLAGS=\""${LINUX_HOSTCFLAGS}"\" LEX=\""flex -l"\" modules
371     #LEX=\""flex -l"\" modules
372 pete 1.2
373 pete 1.1 fi
374     # This must come after the kernel compilation in linux
375 pete 1.2 if [ "`use alsa`" ]
376     then
377     cd ${S}/extras/alsa-driver-${AV}
378 pete 1.1 # This is needed for linux-extras
379     if [ -f "Makefile.conf" ]
380     then
381 pete 1.4 try make mrproper
382 pete 1.1 fi
383     try ./configure --with-kernel=\"${S}\" --with-isapnp=yes --with-sequencer=yes --with-oss=yes --with-cards=all
384     try make
385     fi
386     if [ "`use pcmcia-cs`" ]
387     then
388     cd ${S}/extras/pcmcia-cs-${PCV}
389     # This is needed for linux-extras
390     if [ -f "Makefile" ]
391     then
392     try make clean
393     fi
394     try ./Configure -n --kernel=${S} --moddir=/lib/modules/${KV} \
395     --notrust --cardbus --nopnp --noapm --srctree --sysv --rcdir=/etc/rc.d/
396     try make all
397     fi
398     fi
399     }
400    
401     src_install() {
402    
403     # We install the alsa headers in all three packages
404     if [ "`use alsa`" ]
405     then
406     # get alsa includes
407     cd ${S}/extras/alsa-driver-${AV}
408     insinto /usr/src/linux-${KV}/include/linux
409     cd include
410     doins asound.h asoundid.h asequencer.h ainstr_*.h
411     fi
412    
413     if [ "${PN}" != "linux-sources" ]
414     then
415     dodir /usr/lib
416    
417     if [ "`use lvm`" ]
418     then
419     cd ${S}/extras/LVM/${LVMV}/tools
420    
421     try CFLAGS=\""${CFLAGS} -I${S}/include"\" make install -e prefix=${D} mandir=${D}/usr/share/man \
422     sbindir=${D}/sbin libdir=${D}/lib
423     #no need for a static library in /lib
424     mv ${D}/lib/*.a ${D}/usr/lib
425 pete 1.2
426 pete 1.3 cd ${S}/extras/LVM/${LVMV}
427 pete 1.2 docinto LVM-${LVMV}
428     dodoc ABSTRACT CHANGELOG CONTRIBUTORS COPYING COPYING.LIB FAQ KNOWN_BUGS LVM-HOWTO
429     dodoc README TODO WHATSNEW
430 pete 1.1 fi
431    
432     if [ "`use lm_sensors`" ]
433     then
434     echo "Install sensor tools..."
435     #install sensors tools
436     cd ${S}/extras/lm_sensors-${SENV}
437     make install
438 pete 1.2 docinto lm_sensors-${SENV}
439     dodoc BACKGROUND BUGS CHANGES CONTRIBUTORS COPYING INSTALL QUICKSTART README
440 pete 1.1 fi
441    
442     if [ "`use xfs`" ]
443     then
444     cd ${S}/extras/xfs-${XFSV}/acl
445 pete 1.3 chmod +x install-sh
446 pete 1.1 try make \
447     PKG_SBIN_DIR=${D}/sbin \
448     PKG_INC_DIR=${D}/usr/include/acl \
449     PKG_LIB_DIR=${D}/usr/lib \
450     PKG_MAN_DIR=${D}/usr/share/man \
451     install install-dev
452     rm -rf ${D}/usr/share/doc/acl
453     docinto xfs-${XFSV}/acl
454     dodoc README doc/CHANGES doc/COPYING doc/PORTING
455    
456     cd ${S}/extras/xfs-${XFSV}/attr
457 pete 1.3 chmod +x install-sh
458 pete 1.1 try make \
459     PKG_SBIN_DIR=${D}/bin \
460     PKG_INC_DIR=${D}/usr/include/acl \
461     PKG_LIB_DIR=${D}/usr/lib \
462     PKG_MAN_DIR=${D}/usr/share/man \
463     install install-dev
464     rm -rf ${D}/usr/share/doc/attr
465     docinto xfs-${XFSV}/attr
466     dodoc README doc/CHANGES doc/COPYING doc/PORTING
467    
468     cd ${S}/extras/xfs-${XFSV}/xfsprogs
469 pete 1.3 chmod +x install-sh
470 pete 1.1 try make \
471     PKG_SBIN_DIR=${D}/sbin \
472     PKG_BIN_DIR=${D}/usr/sbin \
473     PKG_INC_DIR=${D}/usr/include/xfs \
474     PKG_LIB_DIR=${D}/usr/lib \
475     PKG_MAN_DIR=${D}/usr/share/man \
476     install install-dev
477     rm -rf ${D}/usr/share/doc/xfsprogs
478     docinto xfs-${XFSV}/xfsprogs
479     dodoc README doc/CHANGES doc/COPYING docs/CREDITS doc/PORTING doc/README.LVM doc/README.quota
480    
481     cd ${S}/extras/xfs-${XFSV}/dmapi
482 pete 1.3 chmod +x install-sh
483 pete 1.1 try make \
484     PKG_INC_DIR=${D}/usr/include/dmapi \
485     PKG_LIB_DIR=${D}/usr/lib \
486     PKG_MAN_DIR=${D}/usr/share/man \
487     install install-dev
488     rm -rf ${D}/usr/share/doc/dmapi
489     docinto xfs-${XFSV}/dmapi
490     dodoc README doc/CHANGES doc/COPYING doc/PORTING
491    
492     cd ${S}/extras/xfs-${XFSV}/xfsdump
493 pete 1.3 chmod +x install-sh
494 pete 1.1 try make \
495     PKG_BIN_DIR=${D}/usr/sbin \
496     PKG_LIB_DIR=${D}/usr/lib \
497     PKG_MAN_DIR=${D}/usr/share/man \
498     install install-dev
499     rm -rf ${D}/usr/share/doc/xfsprogs
500 pete 1.2 docinto xfs-${XFSV}/xfsdump
501 pete 1.1 dodoc README doc/CHANGES doc/COPYING doc/PORTING doc/README.xfsdump
502     fi
503    
504     if [ "${PN}" = "linux" ]
505     then
506     dodir /usr/src
507    
508     dodir /usr/src/linux-${KV}
509     cd ${D}/usr/src
510     #grab includes and documentation only
511     echo ">>> Copying includes and documentation..."
512     cp -ax ${S}/include ${D}/usr/src/linux-${KV}
513     cp -ax ${S}/Documentation ${D}/usr/src/linux-${KV}
514    
515     #grab compiled kernel
516     dodir /boot/boot
517     insinto /boot/boot
518     cd ${S}
519     doins arch/i386/boot/bzImage
520    
521     #grab modules
522     # Do we have a bug in modutils ?
523     # Meanwhile we use this quick fix (achim)
524    
525     install -d ${D}/lib/modules/`uname -r`
526     try make INSTALL_MOD_PATH=${D} modules_install
527    
528     depmod -b ${D} -F ${S}/System.map ${KV}
529     # rm -rf ${D}/lib/modules/`uname -r`
530     #fix symlink
531     cd ${D}/lib/modules/${KV}
532     rm build
533     ln -sf /usr/src/linux-${KV} build
534     fi
535    
536     if [ "`use alsa`" ]
537     then
538     cd ${S}/extras/alsa-driver-${AV}
539 pete 1.2 docinto alsa-${AV}
540     dodoc COPYING INSTALL FAQ README WARNING
541     docinto alsa-${AV}/doc
542     dodoc doc/README.1st doc/SOUNDCARDS
543 pete 1.3 mkdir -p ${D}/lib/modules/${KV}/misc
544 pete 1.1 cp modules/*.o ${D}/lib/modules/${KV}/misc
545     fi
546     if [ "`use pcmcia-cs`" ]
547     then
548     #install PCMCIA modules and utilities
549     cd ${S}/extras/pcmcia-cs-${PCV}
550     try make PREFIX=${D} install
551     rm -rf ${D}/etc/rc.d
552     exeinto /etc/rc.d/init.d
553     doexe ${FILESDIR}/${PVR}/pcmcia
554 pete 1.2 docinto pcmcia-cs-${PCV}
555     dodoc BUGS CHANGES COPYING LICENSE MAINTAINERS README README-2.4 SUPPORTED.CARDS
556     cd doc ; docinto pcmcia-cs-${PCV}/doc
557     dodoc PCMCIA-HOWTO PCMCIA-HOWTO.ps PCMCIA-PROG PCMCIA-PROG.ps
558     fi
559 pete 1.1 else
560     dodir /usr/src
561    
562     cd ${S}
563     make mrproper
564 pete 1.2
565     if [ "`use lvm`" ]
566     then
567     cd ${S}/extras/LVM/${LVMV}
568     if [ -f Makefile ]
569     then
570     make distclean
571     fi
572     fi
573     if [ "`use lm_sensors`" ]
574     then
575     cd ${S}/extras/lm_sensors-${SENV}
576     make clean
577     fi
578    
579     rm -f ${S}/lm_sensors-patch
580 pete 1.1
581     echo ">>> Copying sources..."
582     cp -ax ${S} ${D}/usr/src
583    
584     #don't overwrite existing .config if present
585     cd ${D}/usr/src/linux-${KV}
586     if [ -e .config ]
587     then
588     cp -a .config .config.eg
589     fi
590     fi
591     }
592    
593     pkg_postinst() {
594     if [ "${PN}" != "linux-extras" ]
595     then
596     rm -f ${ROOT}/usr/src/linux
597     ln -sf linux-${KV} ${ROOT}/usr/src/linux
598     fi
599    
600     #copy over our .config if one isn't already present
601     cd ${ROOT}/usr/src/linux-${KV}
602     if [ "${PN}" = "linux-sources" ] && [ -e .config.eg ] && [ ! -e .config ]
603     then
604     cp -a .config.eg .config
605     fi
606     }

  ViewVC Help
Powered by ViewVC 1.1.20