wok-undigest diff linux-module-headers/receipt @ rev 1099
libmate, libmatecomponent, libmatecomponentui, mate-vfs: update bdeps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Jan 08 17:36:39 2014 +0000 (2014-01-08) |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/linux-module-headers/receipt Wed Jan 08 17:36:39 2014 +0000 1.3 @@ -0,0 +1,137 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="linux-module-headers" 1.7 +VERSION="3.2.53" 1.8 +BASEVER="${VERSION:0:3}" 1.9 +CATEGORY="development" 1.10 +SHORT_DESC="Header files and scripts for building modules for linux kernel." 1.11 +MAINTAINER="devel@slitaz.org" 1.12 +LICENSE="GPL2" 1.13 +DEPENDS="slitaz-toolchain" 1.14 +WANTED="linux" 1.15 +WEB_SITE="http://kernel.org/" 1.16 +KVERSION=$BASEVER-slitaz 1.17 + 1.18 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.19 +genpkg_rules() 1.20 +{ 1.21 + local path 1.22 + _AUFSVER=`grep ^VERSION= $WOK/aufs/receipt | cut -d "=" -f2 | sed -e 's/"//g'` 1.23 + AUFSDIR="$WOK/$WANTED/aufs-${_AUFSVER}" 1.24 + path=usr/src/linux-$KVERSION 1.25 + mkdir -p $fs/lib/modules/$KVERSION 1.26 + ln -sf /$path $fs/lib/modules/$KVERSION/build 1.27 + install -D -m644 $src/Makefile \ 1.28 + $fs/$path/Makefile 1.29 + install -D -m644 $src/kernel/Makefile \ 1.30 + $fs/$path/kernel/Makefile 1.31 + install -D -m644 $src/.config \ 1.32 + $fs/$path/.config 1.33 + mkdir -p $fs/$path/include 1.34 + 1.35 + for i in acpi asm-generic config crypto drm generated linux math-emu \ 1.36 + media net pcmcia scsi sound trace video xen; do 1.37 + cp -a $src/include/$i $fs/$path/include/ 1.38 + done 1.39 + 1.40 + # copy arch includes for external modules 1.41 + mkdir -p $fs/$path/arch/x86 1.42 + cp -a $src/arch/x86/include $fs/$path/arch/x86/ 1.43 + 1.44 + # copy files necessary for later builds, like nvidia and vmware 1.45 + cp -a $src/Module.symvers-modules $fs/$path/Module.symvers 1.46 + cp -a $src/scripts $fs/$path 1.47 + # fix permissions on scripts dir 1.48 + chmod og-w -R $fs/$path/scripts 1.49 + mkdir -p $fs/$path/.tmp_versions 1.50 + 1.51 + mkdir -p $fs/$path/arch/x86/kernel 1.52 + cp -a $src/arch/x86/Makefile $fs/$path/arch/x86/ 1.53 + cp -a $src/arch/x86/Makefile_32.cpu $fs/$path/arch/x86/ 1.54 + cp -a $src/arch/x86/kernel/asm-offsets.s $fs/$path/arch/x86/kernel/ 1.55 + 1.56 + # add headers for lirc package 1.57 + mkdir -p $fs/$path/drivers/media/video 1.58 + cp -a $src/drivers/media/video/*.h $fs/$path/drivers/media/video/ 1.59 + 1.60 + for i in bt8xx cpia2 cx25840 cx88 em28xx et61x251 pwc saa7134 sn9c102 ; do 1.61 + mkdir -p $fs/$path/drivers/media/video/$i 1.62 + cp -a $src/drivers/media/video/$i/*.h $fs/$path/drivers/media/video/$i 1.63 + done 1.64 + 1.65 + # add docbook makefile 1.66 + install -D -m644 $src/Documentation/DocBook/Makefile \ 1.67 + $fs/$path/Documentation/DocBook/Makefile 1.68 + 1.69 + # add dm headers 1.70 + mkdir -p $fs/$path/drivers/md 1.71 + cp -a $src/drivers/md/*.h $fs/$path/drivers/md 1.72 + 1.73 + # add inotify.h 1.74 + mkdir -p $fs/$path/include/linux 1.75 + cp -a $src/include/linux/inotify.h $fs/$path/include/linux/ 1.76 + 1.77 + # add wireless headers 1.78 + mkdir -p $fs/$path/net/mac80211/ 1.79 + cp -a $src/net/mac80211/*.h $fs/$path/net/mac80211/ 1.80 + 1.81 + # add dvb headers for external modules 1.82 + # in reference to: 1.83 + # http://bugs.archlinux.org/task/9912 1.84 + mkdir -p $fs/$path/drivers/media/dvb/dvb-core 1.85 + cp -a $src/drivers/media/dvb/dvb-core/*.h $fs/$path/drivers/media/dvb/dvb-core/ 1.86 + 1.87 + # add dvb headers for external modules 1.88 + # in reference to: 1.89 + # http://bugs.archlinux.org/task/11194 1.90 + if [ -d $src/include/config/dvb/ ]; then 1.91 + mkdir -p $fs/$path/include/config/dvb/ 1.92 + cp $src/include/config/dvb/*.h $fs/$path/include/config/dvb/ 1.93 + fi 1.94 + 1.95 + # add dvb headers for http://mcentral.de/hg/~mrec/em28xx-new 1.96 + # in reference to: 1.97 + # http://bugs.archlinux.org/task/13146 1.98 + mkdir -p $fs/$path/drivers/media/dvb/frontends/ 1.99 + cp -a $src/drivers/media/dvb/frontends/lgdt330x.h $fs/$path/drivers/media/dvb/frontends/ 1.100 + cp -a $src/drivers/media/video/msp3400-driver.h $fs/$path/drivers/media/dvb/frontends/ 1.101 + 1.102 + # add dvb headers 1.103 + # in reference to: 1.104 + # http://bugs.archlinux.org/task/20402 1.105 + mkdir -p $fs/$path/drivers/media/dvb/dvb-usb 1.106 + cp -a $src/drivers/media/dvb/dvb-usb/*.h $fs/$path/drivers/media/dvb/dvb-usb/ 1.107 + mkdir -p $fs/$path/drivers/media/dvb/frontends 1.108 + cp -a $src/drivers/media/dvb/frontends/*.h $fs/$path/drivers/media/dvb/frontends/ 1.109 + mkdir -p $fs/$path/drivers/media/common/tuners 1.110 + cp -a $src/drivers/media/common/tuners/*.h $fs/$path/drivers/media/common/tuners/ 1.111 + 1.112 + # add xfs and shmem for aufs building 1.113 + mkdir -p $fs/$path/fs/xfs 1.114 + mkdir -p $fs/$path/mm 1.115 + cp -a $src/fs/xfs/xfs_sb.h $fs/$path/fs/xfs/xfs_sb.h 1.116 + 1.117 + # copy in Kconfig files 1.118 + for i in $(find . -name "Kconfig*"); do 1.119 + mkdir -p $fs/$path/$(echo $i | sed 's|/Kconfig.*||') 1.120 + cp -a $src/$i $fs/$path/$i 1.121 + done 1.122 + 1.123 + chown -R root.root $fs/$path 1.124 + find $fs/$path -type d -exec chmod 755 {} \; 1.125 + # remove unneeded architectures 1.126 + rm -rf $fs/$path/arch/{alpha,arm,arm26,avr32,blackfin,cris,frv,h8300,ia64,m32r,m68k,m68knommu,mips,microblaze,mn10300,parisc,powerpc,ppc,s390,sh,sh64,sparc,sparc64,um,v850,xtensa} 1.127 + 1.128 +} 1.129 + 1.130 +pre_remove() { 1.131 + if [ -e $1/usr/src/linux ]; then 1.132 + rm -rf $1/usr/src/linux 1.133 + fi 1.134 +} 1.135 + 1.136 +post_install() { 1.137 + # Added soft link to make it easier to point to kernel folder 1.138 + [ -L $1/usr/src/linux ] && rm -f $1/usr/src/linux 1.139 + ln -sf /usr/src/linux-$KVERSION $1/usr/src/linux 1.140 +}