wok-next view linux-libre/receipt @ rev 21441

rogue: reverted to 5.4.4
author Hans-G?nter Theisgen
date Tue May 05 16:11:30 2020 +0100 (2020-05-05)
parents d5aab818505e
children
line source
1 # SliTaz package receipt v2.
3 PACKAGE="linux-libre"
4 VERSION="2.6.37-gnu"
5 CATEGORY="base-system"
6 SHORT_DESC="The Linux Libre kernel"
7 MAINTAINER="devel@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="https://www.fsfla.org/ikiwiki/selibre/linux-libre/"
11 WGET_URL="http://www.fsfla.org/svnwiki/selibre/linux-libre/download/releases/$VERSION/$TARBALL"
13 BUILD_DEPENDS="slitaz-toolchain perl git lzma patch gcc3"
14 SPLIT="\
15 $PACKAGE-acpi $PACKAGE-agp $PACKAGE-aoe \
16 $PACKAGE-appletalk $PACKAGE-autofs $PACKAGE-bluetooth \
17 $PACKAGE-bridge $PACKAGE-btrfs $PACKAGE-cifs \
18 $PACKAGE-coda $PACKAGE-configfs $PACKAGE-cpufreq \
19 $PACKAGE-cramfs $PACKAGE-crypto $PACKAGE-cryptoloop \
20 $PACKAGE-dialup $PACKAGE-dlm $PACKAGE-drm \
21 $PACKAGE-firewire $PACKAGE-gfs2 $PACKAGE-hfs \
22 $PACKAGE-hfsplus $PACKAGE-hwmon $PACKAGE-input-misc \
23 $PACKAGE-input-tablet $PACKAGEe-input-touchscreen $PACKAGE-ipv6 \
24 $PACKAGE-irda $PACKAGE-isdn $PACKAGE-jfs \
25 $PACKAGE-joystick $PACKAGE-kvm $PACKAGE-logfs \
26 $PACKAGE-md $PACKAGE-memstick $PACKAGE-minix \
27 $PACKAGE-mmc $PACKAGE-module-headers $PACKAGE-mwave \
28 $PACKAGE-nbd $PACKAGE-ncpfs $PACKAGE-netfilter \
29 $PACKAGE-nfsd $PACKAGE-reiserfs $PACKAGE-sched \
30 $PACKAGE-scsi $PACKAGE-sound $PACKAGE-source \
31 $PACKAGE-speakup $PACKAGE-squashfs $PACKAGE-toshiba \
32 $PACKAGE-udf $PACKAGE-usbdsl $PACKAGE-usbip \
33 $PACKAGE-usb-misc $PACKAGE-uwb $PACKAGE-video \
34 $PACKAGE-wimax $PACKAGE-wireless $PACKAGE-without-modules \
35 lguest-libre"
37 compile_rules() {
38 # this is code to help update the kernel version faster
39 #for i in $(grep -l 'WANTED="linux-libre"' $WOK/*/receipt)
40 #do
41 # sed -i 's|VERSION="OLDVERSION"|VERSION="NEWVERSION"|g' $i
42 #done
44 # Check for Aufs and cook it if unbuilt.
45 echo "Checking for Aufs packages..."
46 _AUFSVER=`grep ^VERSION= $WOK/aufs/receipt | cut -d "=" -f2 | sed -e 's/"//g'`
47 if [ ! -d "$AUFSDIR" ] && [ -x /usr/bin/cook ]; then
48 # Give info an redirect to /dev/null since aufs got it own log.
49 AUFSDIR=$WOK/aufs/source/aufs-${_AUFSVER}
50 echo "Cook: aufs $_AUFSVER"
51 cook aufs > /dev/null
52 elif [ ! -x /usr/bin/cook ]; then
53 # We only need aufs source. Also cooking now is a bad idea since it
54 # needs linux-module-headers.
55 AUFSDIR=$WOK/aufs/aufs-${_AUFSVER}
56 [ -d "$AUFSDIR" ] && rm -rf $AUFSDIR
57 tazwok get-src aufs --target=$AUFSDIR || return 1
58 fi
60 echo "Copying Aufs files and patches..."
61 cp -a $AUFSDIR/Documentation $AUFSDIR/fs $AUFSDIR/include $src
62 cp -a $AUFSDIR/*.patch $stuff
64 # SliTaz db
65 rm -rf $WOK/$PACKAGE/slitaz && mkdir $WOK/$PACKAGE/slitaz
66 echo "$WGET_URL" > $WOK/$PACKAGE/slitaz/url
67 cp $stuff/gztazmod.sh $stuff/list_modules.sh $WOK/$PACKAGE/slitaz
68 cp $stuff/bootloader.sh $WOK/$PACKAGE/slitaz
70 # Apply patches
71 echo "Applying patches..."
72 while read patch_file; do
73 echo "$patch_file" >> $WOK/$PACKAGE/slitaz/patches
74 cp $stuff/$patch_file $WOK/$PACKAGE/slitaz
75 if [ -f done.$patch_file ]; then
76 echo "Skipping $patch_file"
77 continue
78 fi
79 echo "Apply $patch_file"
80 patch -p1 < $WOK/$PACKAGE/slitaz/$patch_file || return 1
81 touch done.$patch_file
82 done <<EOT
83 $PACKAGE-diff-$VERSION.u
84 $PACKAGE-header-$VERSION.u
85 $PACKAGE-freeinitrd-$VERSION.u
86 linux-timeconst.pl.u
87 aufs2-base.patch
88 aufs2-standalone.patch
89 001-squashfs-decompressors-add-xz-decompressor-module.patch
90 002-squashfs-decompressors-add-boot-time-xz-support.patch
91 003-squashfs-x86-support-xz-compressed-kernel.patch
92 004-squashfs-add-xz-compression-support.patch
93 005-squashfs-add-xz-compression-configuration-option.patch
94 EOT
96 export LD_LIBRARY_PATH="/usr/libgcc3:$LD_LIBRARY_PATH"
97 export MAKEFLAGS="$MAKEFLAGS CC=gcc-3 CXX=g++-3"
99 make mrproper
100 cd Documentation/lguest
101 make $MAKEFLAGS lguest || return 1
102 cd $src
104 # Build bzImage without modules first
105 cp -f $stuff/$PACKAGE-$VERSION-slitaz.config .config
106 sed -i 's/CONFIG_MODULES=y/# CONFIG_MODULES is not set/' .config
108 # We can't keep every driver in staging
109 sed -i -e 's/^CONFIG_RTL8192/#&/' \
110 -e 's/^CONFIG_R8187SE/#&/' \
111 -e 's/^CONFIG_RT2870/#&/' .config
112 yes '' | make oldconfig
113 make $MAKEFLAGS bzImage || return 1
114 [ -d $install ] || mkdir -p $install
115 mv arch/x86/boot/bzImage $install
116 mv System.map System.map-without-modules
118 # Build bzImage with modules
119 cp -f $stuff/$PACKAGE-$VERSION-slitaz.config .config
120 make oldconfig
121 ln .config $WOK/$PACKAGE/slitaz/config
122 make $MAKEFLAGS bzImage &&
123 make $MAKEFLAGS modules &&
124 make INSTALL_MOD_PATH=$install modules_install &&
125 make INSTALL_HDR_PATH=$install/usr headers_install &&
126 [ -s arch/x86/boot/bzImage ] return 1
127 mkdir -p $install/boot 2>/dev/null
128 mv arch/x86/boot/bzImage $install/boot/vmlinuz-$VERSION-slitaz
130 # Compress all modules.
131 $stuff/gztazmod.sh $install/lib/modules/$VERSION-slitaz
132 ln System.map System.map-modules
133 ln Module.symvers Module.symvers-modules
134 }
136 genpkg_rules() {
137 case $PACKAGE in
138 linux-libre)
139 local path
140 cp -a $install/boot $fs
141 # Compress all modules.
142 #$stuff/gztazmod.sh $install/lib/modules/$VERSION-slitaz
143 path=$fs/lib/modules/$VERSION-slitaz/kernel
144 mkdir -p $path
145 cp -a $install/lib/modules/$VERSION-slitaz/mo* \
146 $fs/lib/modules/$VERSION-slitaz
147 # Get the base modules
148 export src
149 export _pkg
150 mkdir $WOK/$PACKAGE/tmp
151 $stuff/list_modules.sh \
152 $(cat $stuff/modules-$VERSION.list) > $WOK/$PACKAGE/tmp/modules.list
153 while read module; do
154 dir=$(dirname $module)
155 [ -d $path/$dir ] || mkdir -p $path/$dir
156 cp -a $install/lib/modules/$VERSION-slitaz/kernel/$module $path/$dir
157 done < $WOK/$PACKAGE/tmp/modules.list
158 # Remove unresolved links
159 rm -f $fs/lib/modules/$VERSION-slitaz/build
160 rm -f $fs/lib/modules/$VERSION-slitaz/source
162 # Pack all packages with a kernel module
163 for i in $(cd $WOK; grep -l '^WANTED="linux-libre"' */receipt); do
164 [ ! -d "$install/lib/modules/$VERSION-slitaz" ] && return 1
165 cook ${i%/receipt}
166 done
168 # Check and echo any module in kernel .config that's not added to
169 # one of linux-* pkgs
170 export PACKAGE
171 $stuff/check_modules.sh
172 PROVIDE="linux"
173 CONFIG_FILES="/lib/modules/$VERSION-slitaz/modules.dep"
174 DEPENDS="depmod"
175 ;;
176 linux-libre-acpi)
177 local path
178 path=lib/modules/$VERSION-slitaz/kernel
179 mkdir -p $fs/$path
180 export src
181 export _pkg
182 $stuff/list_modules.sh drivers/acpi drivers/platform/x86/thinkpad_acpi.ko.gz \
183 drivers/platform/x86/asus-laptop.ko.gz drivers/platform/x86/eeepc-wmi.ko.gz \
184 drivers/platform/x86/msi-laptop.ko.gz drivers/platform/x86/panasonic-laptop.ko.gz \
185 drivers/platform/x86/sony-laptop.ko.gz drivers/platform/x86/acer-wmi.ko.gz \
186 drivers/platform/x86/hp-wmi.ko.gz drivers/platform/x86/wmi.ko.gz \
187 drivers/platform/x86/classmate-laptop.ko.gz drivers/platform/x86/topstar-laptop.ko.gz | \
188 while read module; do
189 dir=$path/$(dirname $module)
190 [ -d $fs/$dir ] || mkdir -p $fs/$dir
191 cp -a $install/$path/$module $fs/$dir
192 done
193 for i in $(cat $stuff/modules-$VERSION.list); do
194 if [ $fs/lib/modules/$VERSION-slitaz/kernel/$i ]; then
195 rm -f $fs/lib/modules/$VERSION-slitaz/kernel/$i
196 fi
197 done
198 CAT="base-system|acpi modules"
199 PROVIDE="linux-acpi"
200 ;;
201 linux-libre-agp)
202 local path
203 path=lib/modules/$VERSION-slitaz/kernel
204 mkdir -p $fs/$path
205 export src
206 export _pkg
207 $stuff/list_modules.sh drivers/char/agp | while read module; do
208 dir=$path/$(dirname $module)
209 [ -d $fs/$dir ] || mkdir -p $fs/$dir
210 cp -a $install/$path/$module $fs/$dir
211 done
212 for i in $(cat $stuff/modules-$VERSION.list); do
213 if [ $fs/lib/modules/$VERSION-slitaz/kernel/$i ]; then
214 rm -f $fs/lib/modules/$VERSION-slitaz/kernel/$i
215 fi
216 done
217 CAT="base-system|AGP modules"
218 PROVIDE="linux-agp"
219 ;;
220 linux-libre-aoe)
221 local path
222 path=lib/modules/$VERSION-slitaz/kernel
223 mkdir -p $fs/$path
224 export src
225 export _pkg
226 $stuff/list_modules.sh drivers/block/aoe/aoe.ko.gz | \
227 while read module; do
228 dir=$path/$(dirname $module)
229 [ -d $fs/$dir ] || mkdir -p $fs/$dir
230 cp -a $install/$path/$module $fs/$dir
231 done
232 CAT="base-system|ATA over Ethernet modules"
233 PROVIDE="linux-aoe"
234 ;;
235 linux-libre-appletalk)
236 local path
237 path=lib/modules/$VERSION-slitaz/kernel
238 mkdir -p $fs/$path
239 export src
240 export _pkg
241 $stuff/list_modules.sh drivers/net/appletalk net/appletalk \
242 net/802/p8022.ko.gz | while read module; do
243 dir=$path/$(dirname $module)
244 [ -d $fs/$dir ] || mkdir -p $fs/$dir
245 cp -a $install/$path/$module $fs/$dir
246 done
247 for i in $(cat $stuff/modules-$VERSION.list); do
248 if [ $fs/lib/modules/$VERSION-slitaz/kernel/$i ]; then
249 rm -f $fs/lib/modules/$VERSION-slitaz/kernel/$i
250 fi
251 done
252 CAT="base-system|appletalk modules"
253 PROVIDE="linux-appletalk"
254 ;;
255 linux-libre-autofs)
256 local path
257 path=lib/modules/$VERSION-slitaz/kernel
258 mkdir -p $fs/$path $fs/etc
259 export src
260 export _pkg
261 $stuff/list_modules.sh fs/autofs4 | while read module; do
262 dir=$path/$(dirname $module)
263 [ -d $fs/$dir ] || mkdir -p $fs/$dir
264 cp -a $install/$path/$module $fs/$dir
265 done
266 touch $fs/etc/filesystems
267 CAT="base-system|automounter module"
268 PROVIDE="linux-autofs"
269 CONFIG_FILES="/etc/filesystems"
270 ;;
271 linux-libre-bluetooth)
272 local path
273 path=lib/modules/$VERSION-slitaz/kernel
274 mkdir -p $fs/$path
275 export src
276 export _pkg
277 $stuff/list_modules.sh drivers/bluetooth net/bluetooth | while read module; do
278 dir=$path/$(dirname $module)
279 [ -d $fs/$dir ] || mkdir -p $fs/$dir
280 cp -a $install/$path/$module $fs/$dir
281 done
282 for i in $(cat $stuff/modules-$VERSION.list); do
283 if [ $fs/lib/modules/$VERSION-slitaz/kernel/$i ]; then
284 rm -f $fs/lib/modules/$VERSION-slitaz/kernel/$i
285 fi
286 done
287 CAT="base-system|bluetooth modules"
288 PROVIDE="linux-bluetooth"
289 ;;
290 linux-libre-bridge)
291 local path
292 path=lib/modules/$VERSION-slitaz/kernel
293 mkdir -p $fs/$path
294 export src
295 export _pkg
296 $stuff/list_modules.sh net/bridge | while read module; do
297 dir=$path/$(dirname $module)
298 [ -d $fs/$dir ] || mkdir -p $fs/$dir
299 cp -a $install/$path/$module $fs/$dir
300 done
301 for i in $(cat $stuff/modules-$VERSION.list); do
302 if [ $fs/lib/modules/$VERSION-slitaz/kernel/$i ]; then
303 rm -f $fs/lib/modules/$VERSION-slitaz/kernel/$i
304 fi
305 done
306 CAT="base-system|bridge modules"
307 PROVIDE="linux-bridge"
308 ;;
309 linux-libre-btrfs)
310 local path
311 path=lib/modules/$VERSION-slitaz/kernel
312 mkdir -p $fs/$path $fs/etc
313 export src
314 export _pkg
315 $stuff/list_modules.sh fs/${PACKAGE##*-} | while read module; do
316 dir=$path/$(dirname $module)
317 [ -d $fs/$dir ] || mkdir -p $fs/$dir
318 cp -a $install/$path/$module $fs/$dir
319 done
320 touch $fs/etc/filesystems
321 for i in $(cat $stuff/modules-$VERSION.list); do
322 if [ $fs/lib/modules/$VERSION-slitaz/kernel/$i ]; then
323 rm -f $fs/lib/modules/$VERSION-slitaz/kernel/$i
324 fi
325 done
326 CAT="base-system|btrfs module"
327 PROVIDE="linux-btrfs"
328 CONFIG_FILES="/etc/filesystems"
329 ;;
330 linux-libre-cifs)
331 local path
332 path=lib/modules/$VERSION-slitaz/kernel
333 mkdir -p $fs/$path $fs/etc
334 export src
335 export _pkg
336 $stuff/list_modules.sh fs/cifs | while read module; do
337 dir=$path/$(dirname $module)
338 [ -d $fs/$dir ] || mkdir -p $fs/$dir
339 cp -a $install/$path/$module $fs/$dir
340 done
341 touch $fs/etc/filesystems
342 CAT="base-system|cifs module"
343 PROVIDE="linux-cifs"
344 CONFIG_FILES="/etc/filesystems"
345 ;;
346 linux-libre-coda)
347 local path
348 path=lib/modules/$VERSION-slitaz/kernel
349 mkdir -p $fs/$path $fs/etc
350 export src
351 export _pkg
352 $stuff/list_modules.sh fs/coda | while read module; do
353 dir=$path/$(dirname $module)
354 [ -d $fs/$dir ] || mkdir -p $fs/$dir
355 cp -a $install/$path/$module $fs/$dir
356 done
357 touch $fs/etc/filesystems
358 CAT="base-system|coda module"
359 PROVIDE="linux-coda"
360 CONFIG_FILES="/etc/filesystems"
361 ;;
362 linux-libre-configfs)
363 local path
364 path=lib/modules/$VERSION-slitaz/kernel
365 mkdir -p $fs/$path $fs/etc
366 export src
367 export _pkg
368 $stuff/list_modules.sh fs/${PACKAGE##*-} | while read module; do
369 dir=$path/$(dirname $module)
370 [ -d $fs/$dir ] || mkdir -p $fs/$dir
371 cp -a $install/$path/$module $fs/$dir
372 done
373 touch $fs/etc/filesystems
374 CAT="base-system|configfs module"
375 PROVIDE="linux-configfs"
376 CONFIG_FILES="/etc/filesystems"
377 ;;
378 linux-libre-cpufreq)
379 local path
380 path=lib/modules/$VERSION-slitaz/kernel
381 mkdir -p $fs/$path
382 export src
383 export _pkg
384 $stuff/list_modules.sh arch/x86/kernel/cpu/cpufreq drivers/cpufreq | \
385 while read module; do
386 dir=$path/$(dirname $module)
387 [ -d $fs/$dir ] || mkdir -p $fs/$dir
388 cp -a $install/$path/$module $fs/$dir
389 done
390 CAT="base-system|cpufreq modules"
391 PROVIDE="linux-cpufreq"
392 ;;
393 linux-libre-cramfs)
394 local path
395 path=lib/modules/$VERSION-slitaz/kernel
396 mkdir -p $fs/$path $fs/etc
397 export src
398 export _pkg
399 $stuff/list_modules.sh fs/cramfs | while read module; do
400 dir=$path/$(dirname $module)
401 [ -d $fs/$dir ] || mkdir -p $fs/$dir
402 cp -a $install/$path/$module $fs/$dir
403 done
404 touch $fs/etc/filesystems
405 CAT="base-system|cramfs module"
406 PROVIDE="linux-cramfs"
407 CONFIG_FILES="/etc/filesystems"
408 ;;
409 linux-libre-crypto)
410 local path
411 path=lib/modules/$VERSION-slitaz/kernel
412 mkdir -p $fs/$path
413 export src
414 export _pkg
415 $stuff/list_modules.sh arch/x86/crypto crypto drivers/crypto | \
416 while read module; do
417 dir=$path/$(dirname $module)
418 [ -d $fs/$dir ] || mkdir -p $fs/$dir
419 cp -a $install/$path/$module $fs/$dir
420 done
421 for i in $(cat $stuff/modules-$VERSION.list); do
422 if [ $fs/lib/modules/$VERSION-slitaz/kernel/$i ]; then
423 rm -f $fs/lib/modules/$VERSION-slitaz/kernel/$i
424 fi
425 done
426 CAT="base-system|crypto modules"
427 PROVIDE="linux-crypto"
428 ;;
429 linux-libre-cryptoloop)
430 local path
431 path=lib/modules/$VERSION-slitaz/kernel
432 mkdir -p $fs/$path
433 export src
434 export _pkg
435 $stuff/list_modules.sh drivers/block/cryptoloop.ko.gz | \
436 while read module; do
437 dir=$path/$(dirname $module)
438 [ -d $fs/$dir ] || mkdir -p $fs/$dir
439 cp -a $install/$path/$module $fs/$dir
440 done
441 CAT="base-system|cryptoloop modules"
442 PROVIDE="linux-cryptoloop"
443 DEPENDS="linux-libre-crypto"
444 ;;
445 linux-libre-dialup)
446 local path
447 path=lib/modules/$VERSION-slitaz/kernel
448 mkdir -p $fs/$path
449 export src
450 export _pkg
451 $stuff/list_modules.sh drivers/serial/serial_cs.ko.gz drivers/char/nozomi.ko.gz \
452 drivers/usb/serial/option.ko.gz drivers/net/usb/hso.ko.gz | \
453 while read module; do
454 dir=$path/$(dirname $module)
455 [ -d $fs/$dir ] || mkdir -p $fs/$dir
456 cp -a $install/$path/$module $fs/$dir
457 done
458 for i in $(cat $stuff/modules-$VERSION.list); do
459 if [ $fs/lib/modules/$VERSION-slitaz/kernel/$i ]; then
460 rm -f $fs/lib/modules/$VERSION-slitaz/kernel/$i
461 fi
462 done
463 CAT="base-system|dial-up modules"
464 PROVIDE="linux-dialup"
465 ;;
466 linux-libre-dlm)
467 # Modules paths and list
468 MOD_PATH="lib/modules/$VERSION-slitaz/kernel"
469 MODULES="fs/dlm/dlm.ko.gz"
470 mkdir -p $fs${MOD_PATH} $fs/etc
471 for module in $MODULES; do
472 dir=$MOD_PATH/$(dirname $module)
473 [ -d $fs/$dir ] || mkdir -p $fs/$dir
474 cp -a $install/$MOD_PATH/$module $fs/$dir
475 done
476 touch $fs/etc/filesystems
477 CAT="base-system|dlmfs module"
478 PROVIDE="linux-dlm"
479 CONFIG_FILES="/etc/filesystems"
480 ;;
481 linux-libre-drm)
482 local path
483 path=lib/modules/$VERSION-slitaz/kernel
484 mkdir -p $fs/$path
485 export src
486 export _pkg
487 $stuff/list_modules.sh drivers/gpu/drm | while read module; do
488 dir=$path/$(dirname $module)
489 [ -d $fs/$dir ] || mkdir -p $fs/$dir
490 cp -a $install/$path/$module $fs/$dir
491 done
492 for i in $(cat $stuff/modules-$VERSION.list); do
493 if [ $fs/lib/modules/$VERSION-slitaz/kernel/$i ]; then
494 rm -f $fs/lib/modules/$VERSION-slitaz/kernel/$i
495 fi
496 done
497 # remove drivers/char/agp kernel modules cause there in linux-agp package
498 if [ -d $fs/lib/modules/$VERSION-slitaz/kernel/drivers/char/agp ]; then
499 rm -rf $fs/lib/modules/$VERSION-slitaz/kernel/drivers/char/agp
500 fi
501 CAT="base-system|drm module"
502 PROVIDE="linux-drm"
503 DEPENDS="linux-libre-agp"
504 ;;
505 linux-libre-firewire)
506 local path
507 path=lib/modules/$VERSION-slitaz/kernel
508 mkdir -p $fs/$path
509 export src
510 export _pkg
511 $stuff/list_modules.sh drivers/firewire | while read module; do
512 dir=$path/$(dirname $module)
513 [ -d $fs/$dir ] || mkdir -p $fs/$dir
514 cp -a $install/$path/$module $fs/$dir
515 done
516 CAT="base-system|firewire modules"
517 PROVIDE="linux-firewire"
518 ;;
519 linux-libre-gfs2)
520 local path
521 path=lib/modules/$VERSION-slitaz/kernel
522 mkdir -p $fs/$path $fs/etc
523 export src
524 export _pkg
525 $stuff/list_modules.sh fs/gfs2 | while read module; do
526 dir=$path/$(dirname $module)
527 [ -d $fs/$dir ] || mkdir -p $fs/$dir
528 cp -a $install/$path/$module $fs/$dir
529 done
530 touch $fs/etc/filesystems
531 CAT="base-system|gfs2 module"
532 PROVIDE="linux-gfs2"
533 CONFIG_FILES="/etc/filesystems"
534 ;;
535 linux-libre-hfs)
536 local path
537 path=lib/modules/$VERSION-slitaz/kernel
538 mkdir -p $fs/$path $fs/etc
539 export src
540 export _pkg
541 $stuff/list_modules.sh fs/${PACKAGE##*-} | while read module; do
542 dir=$path/$(dirname $module)
543 [ -d $fs/$dir ] || mkdir -p $fs/$dir
544 cp -a $install/$path/$module $fs/$dir
545 done
546 touch $fs/etc/filesystems
547 CAT="base-system|hfs module"
548 PROVIDE="linux-hfs"
549 CONFIG_FILES="/etc/filesystems"
550 ;;
551 linux-libre-hfsplus)
552 local path
553 path=lib/modules/$VERSION-slitaz/kernel
554 mkdir -p $fs/$path $fs/etc
555 export src
556 export _pkg
557 $stuff/list_modules.sh fs/hfsplus | while read module; do
558 dir=$path/$(dirname $module)
559 [ -d $fs/$dir ] || mkdir -p $fs/$dir
560 cp -a $install/$path/$module $fs/$dir
561 done
562 touch $fs/etc/filesystems
563 CAT="base-system|hfsplus module"
564 PROVIDE="linux-hfsplus"
565 CONFIG_FILES="/etc/filesystems"
566 ;;
567 linux-libre-hwmon)
568 local path
569 path=lib/modules/$VERSION-slitaz/kernel
570 mkdir -p $fs/$path
571 export src
572 export _pkg
573 $stuff/list_modules.sh drivers/hwmon | while read module; do
574 dir=$path/$(dirname $module)
575 [ -d $fs/$dir ] || mkdir -p $fs/$dir
576 cp -a $install/$path/$module $fs/$dir
577 done
578 for i in $(cat $stuff/modules-$VERSION.list); do
579 if [ $fs/lib/modules/$VERSION-slitaz/kernel/$i ]; then
580 rm -f $fs/lib/modules/$VERSION-slitaz/kernel/$i
581 fi
582 done
583 CAT="base-system|hwmon modules"
584 PROVIDE="linux-hwmon"
585 ;;
586 linux-libre-input-misc)
587 local path
588 path=lib/modules/$VERSION-slitaz/kernel
589 mkdir -p $fs/$path
590 export src
591 export _pkg
592 $stuff/list_modules.sh drivers/input/misc | while read module; do
593 dir=$path/$(dirname $module)
594 [ -d $fs/$dir ] || mkdir -p $fs/$dir
595 cp -a $install/$path/$module $fs/$dir
596 done
597 for i in $(cat $stuff/modules-$VERSION.list); do
598 if [ $fs/lib/modules/$VERSION-slitaz/kernel/$i ]; then
599 rm -f $fs/lib/modules/$VERSION-slitaz/kernel/$i
600 fi
601 done
602 CAT="base-system|misc. input drivers, including the ATI RemoteWonders"
603 PROVIDE="linux-input-misc"
604 ;;
605 linux-libre-input-tablet)
606 local path
607 path=lib/modules/$VERSION-slitaz/kernel
608 mkdir -p $fs/$path
609 export src
610 export _pkg
611 $stuff/list_modules.sh drivers/input/tablet | while read module; do
612 dir=$path/$(dirname $module)
613 [ -d $fs/$dir ] || mkdir -p $fs/$dir
614 cp -a $install/$path/$module $fs/$dir
615 done
616 CAT="base-system|tablet input drivers"
617 PROVIDE="linux-input-tablet"
618 ;;
619 linux-libre-input-touchscreen)
620 local path
621 path=lib/modules/$VERSION-slitaz/kernel
622 mkdir -p $fs/$path
623 export src
624 export _pkg
625 $stuff/list_modules.sh drivers/input/touchscreen | \
626 while read module; do
627 dir=$path/$(dirname $module)
628 [ -d $fs/$dir ] || mkdir -p $fs/$dir
629 cp -a $install/$path/$module $fs/$dir
630 done
631 for i in $(cat $stuff/modules-$VERSION.list); do
632 if [ $fs/lib/modules/$VERSION-slitaz/kernel/$i ]; then
633 rm -f $fs/lib/modules/$VERSION-slitaz/kernel/$i
634 fi
635 done
636 CAT="base-system|touchscreen input drivers"
637 PROVIDE="linux-input-touchscreen"
638 ;;
639 linux-libre-ipv6)
640 local path
641 path=lib/modules/$VERSION-slitaz/kernel
642 mkdir -p $fs/$path
643 export src
644 export _pkg
645 $stuff/list_modules.sh net/ipv6 | while read module; do
646 dir=$path/$(dirname $module)
647 [ -d $fs/$dir ] || mkdir -p $fs/$dir
648 cp -a $install/$path/$module $fs/$dir
649 done
650 for i in $(cat $stuff/modules-$VERSION.list); do
651 if [ $fs/lib/modules/$VERSION-slitaz/kernel/$i ]; then
652 rm -f $fs/lib/modules/$VERSION-slitaz/kernel/$i
653 fi
654 done
655 CAT="base-system|ipv6 modules"
656 PROVIDE="linux-ipv6"
657 ;;
658 linux-libre-irda)
659 local path
660 path=lib/modules/$VERSION-slitaz/kernel
661 mkdir -p $fs/$path
662 export src
663 export _pkg
664 $stuff/list_modules.sh drivers/net/irda net/irda | while read module; do
665 dir=$path/$(dirname $module)
666 [ -d $fs/$dir ] || mkdir -p $fs/$dir
667 cp -a $install/$path/$module $fs/$dir
668 done
669 CAT="base-system|irda modules"
670 PROVIDE="linux-irda"
671 ;;
672 linux-libre-isdn)
673 local path
674 path=lib/modules/$VERSION-slitaz/kernel
675 mkdir -p $fs/$path
676 export src
677 export _pkg
678 $stuff/list_modules.sh drivers/isdn | while read module; do
679 dir=$path/$(dirname $module)
680 [ -d $fs/$dir ] || mkdir -p $fs/$dir
681 cp -a $install/$path/$module $fs/$dir
682 done
683 for i in $(cat $stuff/modules-$VERSION.list); do
684 if [ $fs/lib/modules/$VERSION-slitaz/kernel/$i ]; then
685 rm -f $fs/lib/modules/$VERSION-slitaz/kernel/$i
686 fi
687 done
688 CAT="base-system|isdn modules"
689 PROVIDE="linux-isdn"
690 ;;
691 linux-libre-jfs)
692 local path
693 path=lib/modules/$VERSION-slitaz/kernel
694 mkdir -p $fs/$path $fs/etc
695 export src
696 export _pkg
697 $stuff/list_modules.sh fs/jfs | while read module; do
698 dir=$path/$(dirname $module)
699 [ -d $fs/$dir ] || mkdir -p $fs/$dir
700 cp -a $install/$path/$module $fs/$dir
701 done
702 touch $fs/etc/filesystems
703 CAT="base-system|jfs module"
704 PROVIDE="linux-jfs"
705 CONFIG_FILES="/etc/filesystems"
706 ;;
707 linux-libre-joystick)
708 local path
709 path=lib/modules/$VERSION-slitaz/kernel
710 mkdir -p $fs/$path
711 export src
712 export _pkg
713 $stuff/list_modules.sh drivers/input/joystick drivers/input/gameport \
714 drivers/input/input-polldev.ko.gz | \
715 while read module; do
716 dir=$path/$(dirname $module)
717 [ -d $fs/$dir ] || mkdir -p $fs/$dir
718 cp -a $install/$path/$module $fs/$dir
719 done
720 for i in $(cat $stuff/modules-$VERSION.list); do
721 if [ $fs/lib/modules/$VERSION-slitaz/kernel/$i ]; then
722 rm -f $fs/lib/modules/$VERSION-slitaz/kernel/$i
723 fi
724 done
725 CAT="base-system|joystick modules"
726 PROVIDE="linux-joystick"
727 ;;
728 linux-libre-kvm)
729 local path
730 path=lib/modules/$VERSION-slitaz/kernel
731 mkdir -p $fs/$path
732 export src
733 export _pkg
734 $stuff/list_modules.sh arch/x86/kvm drivers/virtio drivers/lguest \
735 drivers/char/hw_random/virtio-rng.ko.gz \
736 drivers/net/virtio_net.ko.gz drivers/block/virtio_blk.ko.gz | \
737 while read module; do
738 dir=$path/$(dirname $module)
739 [ -d $fs/$dir ] || mkdir -p $fs/$dir
740 cp -a $install/$path/$module $fs/$dir
741 done
742 CAT="base-system|kvm and virtio modules"
743 PROVIDE="linux-kvm"
744 ;;
745 linux-libre-logfs)
746 local path
747 path=lib/modules/$VERSION-slitaz/kernel
748 mkdir -p $fs/$path $fs/etc
749 export src
750 export _pkg
751 $stuff/list_modules.sh fs/${PACKAGE##*-} | while read module; do
752 dir=$path/$(dirname $module)
753 [ -d $fs/$dir ] || mkdir -p $fs/$dir
754 cp -a $install/$path/$module $fs/$dir
755 done
756 touch $fs/etc/filesystems
757 CAT="base-system|logfs module"
758 PROVIDE="linux-logfs"
759 CONFIG_FILES="/etc/filesystems"
760 ;;
761 linux-libre-md)
762 local path
763 path=lib/modules/$VERSION-slitaz/kernel
764 mkdir -p $fs/$path
765 export src
766 export _pkg
767 $stuff/list_modules.sh drivers/md | while read module; do
768 case "$module" in
769 crypto/*) continue;;
770 esac
771 dir=$path/$(dirname $module)
772 [ -d $fs/$dir ] || mkdir -p $fs/$dir
773 cp -a $install/$path/$module $fs/$dir
774 done
775 for i in $(cat $stuff/modules-$VERSION.list); do
776 if [ $fs/lib/modules/$VERSION-slitaz/kernel/$i ]; then
777 rm -f $fs/lib/modules/$VERSION-slitaz/kernel/$i
778 fi
779 done
780 CAT="base-system|md modules"
781 PROVIDE="linux-md"
782 DEPENDS="linux-libre-crypto"
783 ;;
784 linux-libre-memstick)
785 local path
786 path=lib/modules/$VERSION-slitaz/kernel
787 mkdir -p $fs/$path
788 export src
789 export _pkg
790 $stuff/list_modules.sh drivers/memstick | while read module; do
791 dir=$path/$(dirname $module)
792 [ -d $fs/$dir ] || mkdir -p $fs/$dir
793 cp -a $install/$path/$module $fs/$dir
794 done
795 for i in $(cat $stuff/modules-$VERSION.list); do
796 if [ $fs/lib/modules/$VERSION-slitaz/kernel/$i ]; then
797 rm -f $fs/lib/modules/$VERSION-slitaz/kernel/$i
798 fi
799 done
800 CAT="base-system|sony memory stick modules"
801 PROVIDE="linux-memstick"
802 ;;
803 linux-libre-minix)
804 local path
805 path=lib/modules/$VERSION-slitaz/kernel
806 mkdir -p $fs/$path $fs/etc
807 export src
808 export _pkg
809 $stuff/list_modules.sh fs/${PACKAGE##*-} | while read module; do
810 dir=$path/$(dirname $module)
811 [ -d $fs/$dir ] || mkdir -p $fs/$dir
812 cp -a $install/$path/$module $fs/$dir
813 done
814 touch $fs/etc/filesystems
815 CAT="base-system|minix module"
816 PROVIDE="linux-minix"
817 CONFIG_FILES="/etc/filesystems"
818 ;;
819 linux-libre-mmc)
820 local path
821 path=lib/modules/$VERSION-slitaz/kernel
822 mkdir -p $fs/$path
823 export src
824 export _pkg
825 $stuff/list_modules.sh drivers/mmc drivers/misc/tifm_7xx1.ko.gz drivers/misc/iwmc3200top/iwmc3200top.ko.gz| \
826 while read module; do
827 dir=$path/$(dirname $module)
828 [ -d $fs/$dir ] || mkdir -p $fs/$dir
829 cp -a $install/$path/$module $fs/$dir
830 done
831 for i in $(cat $stuff/modules-$VERSION.list); do
832 if [ $fs/lib/modules/$VERSION-slitaz/kernel/$i ]; then
833 rm -f $fs/lib/modules/$VERSION-slitaz/kernel/$i
834 fi
835 done
836 CAT="base-system|mmc modules - card reader"
837 PROVIDE="linux-mmc"
838 ;;
839 linux-libre-module-headers)
840 CAT="development|header files and scripts for building modules for Linux Libre kernel"
841 PROVIDE="linux-module-headers"
842 DEPENDS="slitaz-toolchain"
843 KVERSION=$VERSION-slitaz
845 local path
846 _AUFSVER=`grep ^VERSION= $WOK/aufs/receipt | cut -d "=" -f2 | sed -e 's/"//g'`
847 AUFSDIR="$WOK/$WANTED/aufs-${_AUFSVER}"
848 path=usr/src/linux-$KVERSION
849 mkdir -p $fs/lib/modules/$KVERSION
850 ln -sf /$path $fs/lib/modules/$KVERSION/build
851 install -D -m644 $src/Makefile \
852 $fs/$path/Makefile
853 install -D -m644 $src/kernel/Makefile \
854 $fs/$path/kernel/Makefile
855 install -D -m644 $src/.config \
856 $fs/$path/.config
857 mkdir -p $fs/$path/include
859 for i in acpi asm-generic config generated linux math-emu media net pcmcia scsi sound trace video xen; do
860 cp -a $src/include/$i $fs/$path/include/
861 done
863 # copy arch includes for external modules
864 mkdir -p $fs/$path/arch/x86
865 cp -a $src/arch/x86/include $fs/$path/arch/x86/
867 # copy files necessary for later builds, like nvidia and vmware
868 cp -a $src/Module.symvers-modules $fs/$path/Module.symvers
869 cp -a $src/scripts $fs/$path
870 # fix permissions on scripts dir
871 chmod og-w -R $fs/$path/scripts
872 mkdir -p $fs/$path/.tmp_versions
874 mkdir -p $fs/$path/arch/x86/kernel
875 cp -a $src/arch/x86/Makefile $fs/$path/arch/x86/
876 cp -a $src/arch/x86/Makefile_32.cpu $fs/$path/arch/x86/
877 cp -a $src/arch/x86/kernel/asm-offsets.s $fs/$path/arch/x86/kernel/
879 # add headers for lirc package
880 mkdir -p $fs/$path/drivers/media/video
881 cp -a $src/drivers/media/video/*.h $fs/$path/drivers/media/video/
883 for i in bt8xx cpia2 cx25840 cx88 em28xx et61x251 pwc saa7134 sn9c102 usbvideo; do
884 mkdir -p $fs/$path/drivers/media/video/$i
885 cp -a $src/drivers/media/video/$i/*.h $fs/$path/drivers/media/video/$i
886 done
888 # add docbook makefile
889 install -D -m644 $src/Documentation/DocBook/Makefile \
890 $fs/$path/Documentation/DocBook/Makefile
892 # add dm headers
893 mkdir -p $fs/$path/drivers/md
894 cp -a $src/drivers/md/*.h $fs/$path/drivers/md
896 # add inotify.h
897 mkdir -p $fs/$path/include/linux
898 cp -a $src/include/linux/inotify.h $fs/$path/include/linux/
900 # add wireless headers
901 mkdir -p $fs/$path/net/mac80211/
902 cp -a $src/net/mac80211/*.h $fs/$path/net/mac80211/
904 # add dvb headers for external modules
905 # in reference to:
906 # http://bugs.archlinux.org/task/9912
907 mkdir -p $fs/$path/drivers/media/dvb/dvb-core
908 cp -a $src/drivers/media/dvb/dvb-core/*.h $fs/$path/drivers/media/dvb/dvb-core/
910 # add dvb headers for external modules
911 # in reference to:
912 # http://bugs.archlinux.org/task/11194
913 if [ -d $src/include/config/dvb/ ]; then
914 mkdir -p $fs/$path/include/config/dvb/
915 cp $src/include/config/dvb/*.h $fs/$path/include/config/dvb/
916 fi
918 # add dvb headers for http://mcentral.de/hg/~mrec/em28xx-new
919 # in reference to:
920 # http://bugs.archlinux.org/task/13146
921 mkdir -p $fs/$path/drivers/media/dvb/frontends/
922 cp -a $src/drivers/media/dvb/frontends/lgdt330x.h $fs/$path/drivers/media/dvb/frontends/
923 cp -a $src/drivers/media/video/msp3400-driver.h $fs/$path/drivers/media/dvb/frontends/
925 # add dvb headers
926 # in reference to:
927 # http://bugs.archlinux.org/task/20402
928 mkdir -p $fs/$path/drivers/media/dvb/dvb-usb
929 cp -a $src/drivers/media/dvb/dvb-usb/*.h $fs/$path/drivers/media/dvb/dvb-usb/
930 mkdir -p $fs/$path/drivers/media/dvb/frontends
931 cp -a $src/drivers/media/dvb/frontends/*.h $fs/$path/drivers/media/dvb/frontends/
932 mkdir -p $fs/$path/drivers/media/common/tuners
933 cp -a $src/drivers/media/common/tuners/*.h $fs/$path/drivers/media/common/tuners/
935 # add xfs and shmem for aufs building
936 mkdir -p $fs/$path/fs/xfs
937 mkdir -p $fs/$path/mm
938 cp -a $src/fs/xfs/xfs_sb.h $fs/$path/fs/xfs/xfs_sb.h
940 # add headers vor virtualbox
941 # in reference to:
942 # http://bugs.archlinux.org/task/14568
943 cp -a $src/include/drm $fs/$path/include/
945 # add headers for broadcom wl
946 # in reference to:
947 # http://bugs.archlinux.org/task/14568
948 cp -a $src/include/trace $fs/$path/include/
949 # add headers for crypto modules
950 # in reference to:
951 # http://bugs.archlinux.org/task/22081
952 cp -a $src/include/crypto $fs/$path/include/
953 # copy in Kconfig files
954 for i in $(find . -name "Kconfig*"); do
955 mkdir -p $fs/$path/$(echo $i | sed 's|/Kconfig.*||')
956 cp -a $src/$i $fs/$path/$i
957 done
959 chown -R root.root $fs/$path
960 find $fs/$path -type d -exec chmod 755 {} \;
961 # remove unneeded architectures
962 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}
963 ;;
964 linux-libre-mwave)
965 local path
966 path=lib/modules/$VERSION-slitaz/kernel
967 mkdir -p $fs/$path
968 export src
969 export _pkg
970 $stuff/list_modules.sh drivers/char/mwave | while read module; do
971 dir=$path/$(dirname $module)
972 [ -d $fs/$dir ] || mkdir -p $fs/$dir
973 cp -a $install/$path/$module $fs/$dir
974 done
975 CAT="base-system|ACP Modem driver module - for IBM Thinkpad"
976 PROVIDE="linux-mwave"
977 ;;
978 linux-libre-nbd)
979 local path
980 path=lib/modules/$VERSION-slitaz/kernel
981 mkdir -p $fs/$path
982 export src
983 export _pkg
984 $stuff/list_modules.sh drivers/block/nbd.ko.gz | \
985 while read module; do
986 dir=$path/$(dirname $module)
987 [ -d $fs/$dir ] || mkdir -p $fs/$dir
988 cp -a $install/$path/$module $fs/$dir
989 done
990 CAT="base-system|network block device modules"
991 PROVIDE="linux-nbd"
992 ;;
993 linux-libre-ncpfs)
994 local path
995 path=lib/modules/$VERSION-slitaz/kernel
996 mkdir -p $fs/$path $fs/etc
997 export src
998 export _pkg
999 $stuff/list_modules.sh fs/ncpfs | while read module; do
1000 dir=$path/$(dirname $module)
1001 [ -d $fs/$dir ] || mkdir -p $fs/$dir
1002 cp -a $install/$path/$module $fs/$dir
1003 done
1004 touch $fs/etc/filesystems
1005 CAT="base-system|ncpfs module"
1006 PROVIDE="linux-ncpfs"
1007 CONFIG_FILES="/etc/filesystems"
1008 ;;
1009 linux-libre-netfilter)
1010 local path
1011 path=lib/modules/$VERSION-slitaz/kernel
1012 mkdir -p $fs/$path
1013 export src
1014 export _pkg
1015 $stuff/list_modules.sh net/netfilter net/ipv4/netfilter net/8021q | \
1016 while read module; do
1017 dir=$path/$(dirname $module)
1018 [ -d $fs/$dir ] || mkdir -p $fs/$dir
1019 cp -a $install/$path/$module $fs/$dir
1020 done
1021 rm -r $fs/$path/net/ipv6
1022 for i in $(cat $stuff/modules-$VERSION.list); do
1023 if [ $fs/lib/modules/$VERSION-slitaz/kernel/$i ]; then
1024 rm -f $fs/lib/modules/$VERSION-slitaz/kernel/$i
1025 fi
1026 done
1027 CAT="base-system|netfilter modules"
1028 PROVIDE="linux-netfilter"
1029 ;;
1030 linux-libre-nfsd)
1031 local path
1032 path=lib/modules/$VERSION-slitaz/kernel
1033 mkdir -p $fs/$path $fs/etc
1034 export src
1035 export _pkg
1036 $stuff/list_modules.sh fs/nfsd | while read module; do
1037 dir=$path/$(dirname $module)
1038 [ -d $fs/$dir ] || mkdir -p $fs/$dir
1039 cp -a $install/$path/$module $fs/$dir
1040 done
1041 touch $fs/etc/filesystems
1042 CAT="base-system|NFS server module"
1043 PROVIDE="linux-nfsd"
1044 CONFIG_FILES="/etc/filesystems"
1045 ;;
1046 linux-libre-reiserfs)
1047 local path
1048 path=lib/modules/$VERSION-slitaz/kernel
1049 mkdir -p $fs/$path $fs/etc
1050 export src
1051 export _pkg
1052 $stuff/list_modules.sh fs/reiserfs | while read module; do
1053 dir=$path/$(dirname $module)
1054 [ -d $fs/$dir ] || mkdir -p $fs/$dir
1055 cp -a $install/$path/$module $fs/$dir
1056 done
1057 touch $fs/etc/filesystems
1058 CAT="base-system|reiserfs module"
1059 PROVIDE="linux-reiserfs"
1060 CONFIG_FILES="/etc/filesystems"
1061 ;;
1062 linux-libre-sched)
1063 local path
1064 path=lib/modules/$VERSION-slitaz/kernel
1065 mkdir -p $fs/$path
1066 export src
1067 export _pkg
1068 $stuff/list_modules.sh net/sched | while read module; do
1069 dir=$path/$(dirname $module)
1070 [ -d $fs/$dir ] || mkdir -p $fs/$dir
1071 cp -a $install/$path/$module $fs/$dir
1072 done
1073 CAT="base-system|sched modules"
1074 PROVIDE="linux-sched"
1075 ;;
1076 linux-libre-scsi)
1077 local path
1078 path=lib/modules/$VERSION-slitaz/kernel
1079 mkdir -p $fs/$path
1080 export src
1081 export _pkg
1082 $stuff/list_modules.sh drivers/scsi | while read module; do
1083 dir=$path/$(dirname $module)
1084 [ -d $fs/$dir ] || mkdir -p $fs/$dir
1085 cp -a $install/$path/$module $fs/$dir
1086 done
1087 CAT="base-system|scsi modules"
1088 PROVIDE="linux-scsi"
1089 ;;
1090 linux-libre-sound)
1091 local path
1092 path=lib/modules/$VERSION-slitaz/kernel
1093 mkdir -p $fs/$path
1094 export src
1095 export _pkg
1096 $stuff/list_modules.sh sound | while read module; do
1097 dir=$path/$(dirname $module)
1098 [ -d $fs/$dir ] || mkdir -p $fs/$dir
1099 cp -a $install/$path/$module $fs/$dir
1100 done
1101 mkdir $fs/lib/firmware
1102 # non-free firmware ?
1103 #for i in ess korg sun yamaha; do
1104 # cp -a $install/lib/firmware/$i $fs/lib/firmware
1105 #done
1106 for i in $(cat $stuff/modules-$VERSION.list); do
1107 if [ $fs/lib/modules/$VERSION-slitaz/kernel/$i ]; then
1108 rm -f $fs/lib/modules/$VERSION-slitaz/kernel/$i
1109 fi
1110 done
1111 CAT="base-system|sound modules"
1112 PROVIDE="linux-sound"
1113 ;;
1114 linux-libre-source)
1115 local _AUFSVER=`grep ^VERSION= $WOK/aufs/receipt | cut -d "=" -f2 | sed -e 's/"//g'`
1116 local AUFSDIR="aufs-${_AUFSVER}"
1117 mkdir -p $fs/usr/src/kernel-patches \
1118 $fs/lib/modules/$VERSION-slitaz \
1119 $fs/usr/bin
1120 cp -a $WOK/$WANTED/slitaz $fs/usr/src/kernel-patches
1121 cp -a $stuff/source/buildtaz $fs/usr/src/kernel-patches/slitaz
1122 cp -a $stuff/source/make-tazpkg.u $fs/usr/src/kernel-patches/slitaz
1123 cp -a $stuff/source/get-linux-source $fs/usr/bin
1124 sed -i "s|=XXX|=$VERSION|g" $fs/usr/bin/get-linux-source
1125 # Copy Aufs2 source files
1126 if [ -d $WOK/$WANTED/$AUFSDIR ]; then
1127 mkdir $fs/usr/src/kernel-patches/slitaz/aufs2
1128 cp -a $WOK/$WANTED/$AUFSDIR/Documentation \
1129 $WOK/$WANTED/$AUFSDIR/fs $WOK/$WANTED/$AUFSDIR/include \
1130 $fs/usr/src/kernel-patches/slitaz/aufs2
1131 fi
1132 ln -s /usr/src/linux-$VERSION \
1133 $fs/lib/modules/$VERSION-slitaz/source
1134 CAT="development|source files"
1135 PROVIDE="linux-source"
1136 DEPENDS="linux-libre slitaz-toolchain ncurses-dev perl"
1137 ;;
1138 linux-libre-speakup)
1139 local path
1140 path=lib/modules/$VERSION-slitaz/kernel
1141 mkdir -p $fs/$path
1142 export src
1143 export _pkg
1144 $stuff/list_modules.sh drivers/staging/speakup | while read module; do
1145 dir=$path/$(dirname $module)
1146 [ -d $fs/$dir ] || mkdir -p $fs/$dir
1147 cp -a $install/$path/$module $fs/$dir
1148 done
1149 for i in $(cat $stuff/modules-$VERSION.list); do
1150 if [ $fs/lib/modules/$VERSION-slitaz/kernel/$i ]; then
1151 rm -f $fs/lib/modules/$VERSION-slitaz/kernel/$i
1152 fi
1153 done
1154 CAT="base-system|Speakup modules"
1155 PROVIDE="linux-speakup"
1156 ;;
1157 linux-libre-squashfs)
1158 local path
1159 path=lib/modules/$VERSION-slitaz/kernel
1160 mkdir -p $fs/$path $fs/etc
1161 export src
1162 export _pkg
1163 $stuff/list_modules.sh fs/squashfs | while read module; do
1164 dir=$path/$(dirname $module)
1165 [ -d $fs/$dir ] || mkdir -p $fs/$dir
1166 cp -a $install/$path/$module $fs/$dir
1167 done
1168 touch $fs/etc/filesystems
1169 CAT="base-system|squashfs module"
1170 PROVIDE="linux-squashfs squashfs-module"
1171 CONFIG_FILES="/etc/filesystems"
1172 ;;
1173 linux-libre-toshiba)
1174 # Modules paths and list
1175 MOD_PATH="lib/modules/$VERSION-slitaz/kernel"
1176 MODULES="drivers/char/toshiba.ko.gz"
1177 mkdir -p $fs${MOD_PATH}
1178 for module in $MODULES; do
1179 dir=$MOD_PATH/$(dirname $module)
1180 [ -d $fs/$dir ] || mkdir -p $fs/$dir
1181 cp -a $install/$MOD_PATH/$module $fs/$dir
1182 done
1183 CAT="base-system|toshiba module"
1184 PROVIDE="linux-toshiba"
1185 ;;
1186 linux-libre-udf)
1187 local path
1188 path=lib/modules/$VERSION-slitaz/kernel
1189 mkdir -p $fs/$path $fs/etc
1190 export src
1191 export _pkg
1192 $stuff/list_modules.sh fs/udf | while read module; do
1193 dir=$path/$(dirname $module)
1194 [ -d $fs/$dir ] || mkdir -p $fs/$dir
1195 cp -a $install/$path/$module $fs/$dir
1196 done
1197 touch $fs/etc/filesystems
1198 for i in $(cat $stuff/modules-$VERSION.list); do
1199 if [ $fs/lib/modules/$VERSION-slitaz/kernel/$i ]; then
1200 rm -f $fs/lib/modules/$VERSION-slitaz/kernel/$i
1201 fi
1202 done
1203 CAT="base-system|udf module"
1204 PROVIDE="linux-udf"
1205 CONFIG_FILES="/etc/filesystems"
1206 ;;
1207 linux-libre-usbdsl)
1208 local path
1209 path=lib/modules/$VERSION-slitaz/kernel
1210 mkdir -p $fs/$path
1211 export src
1212 export _pkg
1213 $stuff/list_modules.sh drivers/usb/atm net/atm | \
1214 while read module; do
1215 dir=$path/$(dirname $module)
1216 [ -d $fs/$dir ] || mkdir -p $fs/$dir
1217 cp -a $install/$path/$module $fs/$dir
1218 done
1219 CAT="base-system|usb dsl modem modules"
1220 PROVIDE="linux-usbdsl"
1221 ;;
1222 linux-libre-usbip)
1223 local path
1224 path=lib/modules/$VERSION-slitaz/kernel
1225 mkdir -p $fs/$path
1226 export src
1227 export _pkg
1228 $stuff/list_modules.sh drivers/staging/usbip | while read module; do
1229 dir=$path/$(dirname $module)
1230 [ -d $fs/$dir ] || mkdir -p $fs/$dir
1231 cp -a $install/$path/$module $fs/$dir
1232 done
1233 CAT="base-system|usbip module"
1234 PROVIDE="linux-usbip usbip-module"
1235 ;;
1236 linux-libre-usb-misc)
1237 local path
1238 path=lib/modules/$VERSION-slitaz/kernel
1239 mkdir -p $fs/$path
1240 export src
1241 export _pkg
1242 $stuff/list_modules.sh drivers/usb/misc | while read module; do
1243 dir=$path/$(dirname $module)
1244 [ -d $fs/$dir ] || mkdir -p $fs/$dir
1245 cp -a $install/$path/$module $fs/$dir
1246 done
1247 CAT="base-system|misc. USB drivers, including the Lego USB tower"
1248 PROVIDE="linux-usb-misc"
1249 ;;
1250 linux-libre-uwb)
1251 local path
1252 path=lib/modules/$VERSION-slitaz/kernel
1253 mkdir -p $fs/$path
1254 export src
1255 export _pkg
1256 $stuff/list_modules.sh drivers/uwb drivers/usb/wusbcore \
1257 drivers/usb/host/whci | while read module; do
1258 dir=$path/$(dirname $module)
1259 [ -d $fs/$dir ] || mkdir -p $fs/$dir
1260 cp -a $install/$path/$module $fs/$dir
1261 done
1262 CAT="base-system|uwb modules"
1263 PROVIDE="linux-uwb"
1264 ;;
1265 linux-libre-video)
1266 # Modules paths and list
1267 MOD_PATH="lib/modules/$VERSION-slitaz/kernel"
1268 MODULES="drivers/video/backlight/lcd.ko.gz
1269 drivers/video/backlight/generic_bl.ko.gz
1270 drivers/gpio/bt8xxgpio.ko.gz"
1271 mkdir -p $fs${MOD_PATH}
1272 for module in $MODULES; do
1273 dir=$MOD_PATH/$(dirname $module)
1274 [ -d $fs/$dir ] || mkdir -p $fs/$dir
1275 cp -a $install/$MOD_PATH/$module $fs/$dir
1276 done
1277 CAT="base-system|video modules"
1278 PROVIDE="linux-video"
1279 ;;
1280 linux-libre-wimax)
1281 local path
1282 path=lib/modules/$VERSION-slitaz/kernel
1283 mkdir -p $fs/$path
1284 export src
1285 export _pkg
1286 $stuff/list_modules.sh drivers/net/wimax net/wimax | while read module; do
1287 dir=$path/$(dirname $module)
1288 [ -d $fs/$dir ] || mkdir -p $fs/$dir
1289 cp -a $install/$path/$module $fs/$dir
1290 done
1291 for i in $(cat $stuff/modules-$VERSION.list); do
1292 if [ $fs/lib/modules/$VERSION-slitaz/kernel/$i ]; then
1293 rm -f $fs/lib/modules/$VERSION-slitaz/kernel/$i
1294 fi
1295 done
1296 CAT="base-system|wimax modules"
1297 PROVIDE="linux-wimax"
1298 ;;
1299 linux-libre-wireless)
1300 local path
1301 path=lib/modules/$VERSION-slitaz/kernel
1302 mkdir -p $fs/$path
1303 export src
1304 export _pkg
1305 $stuff/list_modules.sh drivers/net/wireless drivers/staging/wlan-ng \
1306 drivers/staging/rt2860 drivers/staging/rt2870 drivers/staging/echo \
1307 drivers/leds net/wireless net/mac80211 drivers/staging/rtl8192e/r8192e_pci.ko.gz \
1308 drivers/staging/rtl8187se/r8187se.ko.gz \
1309 drivers/staging/rtl8192u/r8192u_usb.ko.gz drivers/staging/crystalhd/crystalhd.ko.gz \
1310 drivers/staging/sm7xx/sm7xx.ko.gz | while read module; do
1311 dir=$path/$(dirname $module)
1312 [ -d $fs/$dir ] || mkdir -p $fs/$dir
1313 cp -a $install/$path/$module $fs/$dir
1314 done
1315 for i in $(cat $stuff/modules-$VERSION.list); do
1316 if [ $fs/lib/modules/$VERSION-slitaz/kernel/$i ]; then
1317 rm -f $fs/lib/modules/$VERSION-slitaz/kernel/$i
1318 fi
1319 done
1320 CAT="base-system|wireless modules"
1321 PROVIDE="linux-wireless"
1322 DEPENDS="linux-libre-crypto wireless_tools"
1323 ;;
1324 linux-libre-without-modules)
1325 mkdir -p $fs/boot
1326 cp -a $install/bzImage $fs/boot/vmlinuz-$VERSION-slitaz-without-modules
1327 CAT="base-system|without module support"
1328 PROVIDE="linux-without-modules"
1329 ;;
1330 lguest-libre)
1331 mkdir -p $fs/usr/sbin
1332 cp $src/Documentation/lguest/lguest $fs/usr/sbin
1333 CAT="base-system|paravirtualization tool"
1334 PROVIDE="lguest"
1335 ;;
1336 esac
1339 post_install_linux_libre() {
1340 chroot "$1/" depmod -a $VERSION-slitaz
1341 # GRUB stuff.
1342 if [ -f "$1/boot/grub/menu.lst" ]; then
1343 root_dev=$(cat "$1/boot/grub/menu.lst" | grep root= | sed 's/.*root=\([^ ]*\).*/\1/' | head -n 1) #'MC
1344 grub_dev=$(cat "$1/boot/grub/menu.lst" | grep "root (" | head -n 1)
1345 # Add new kernel entry in case of upgrade for installed system.
1346 if ! grep -q $PACKAGE-$VERSION-slitaz "$1/boot/grub/menu.lst"; then
1347 cat >> "$1/boot/grub/menu.lst" <<EOT
1349 title SliTaz GNU/Linux (Kernel $VERSION-slitaz)
1350 $grub_dev
1351 kernel /boot/vmlinuz-$VERSION-slitaz root=$root_dev
1352 EOT
1353 fi
1354 # Display information message.
1355 cat <<EOT
1356 ----
1357 GRUB is installed, these tree lines must be in your /boot/grub/menu.lst:
1359 title SliTaz GNU/Linux (Kernel $VERSION-slitaz)
1360 $grub_dev
1361 kernel /boot/vmlinuz-$VERSION-slitaz root=$root_dev
1362 ----
1363 EOT
1364 fi
1365 true
1368 post_install_linux_libre_acpi() {
1369 chroot "$1/" depmod -a $VERSION-slitaz
1371 post_remove_linux_libre_acpi() {
1372 chroot "$1/" depmod -a $VERSION-slitaz
1374 post_install_linux_libre_agp() {
1375 chroot "$1/" depmod -a $VERSION-slitaz
1377 post_remove_linux_libre_agp() {
1378 chroot "$1/" depmod -a $VERSION-slitaz
1380 post_install_linux_libre_aoe() {
1381 chroot "$1/" depmod -a $VERSION-slitaz
1383 post_remove_linux_libre_aoe() {
1384 chroot "$1/" depmod -a $VERSION-slitaz
1386 post_install_linux_libre_appletalk() {
1387 chroot "$1/" depmod -a $VERSION-slitaz
1389 post_remove_linux_libre_appletalk() {
1390 chroot "$1/" depmod -a $VERSION-slitaz
1392 post_install_linux_libre_autofs() {
1393 grep -qs ^${PACKAGE##*-}$ "$1/etc/filesystems" || \
1394 echo "${PACKAGE##*-}" >> "$1/etc/filesystems"
1395 chroot "$1/" depmod -a $VERSION-slitaz
1397 post_remove_linux_libre_autofs() {
1398 sed -i "/^${PACKAGE##*-}\$/d" "$1/etc/filesystems"
1399 chroot "$1/" depmod -a $VERSION-slitaz
1401 post_install_linux_libre_bluetooth() {
1402 chroot "$1/" depmod -a $VERSION-slitaz
1404 post_remove_linux_libre_bluetooth() {
1405 chroot "$1/" depmod -a $VERSION-slitaz
1407 post_install_linux_libre_bridge() {
1408 chroot "$1/" depmod -a $VERSION-slitaz
1410 post_remove_linux_libre_bridge() {
1411 chroot "$1/" depmod -a $VERSION-slitaz
1413 post_install_linux_libre_btrfs() {
1414 grep -qs ^${PACKAGE##*-}$ "$1/etc/filesystems" || \
1415 echo "${PACKAGE##*-}" >> "$1/etc/filesystems"
1416 chroot "$1/" depmod -a $VERSION-slitaz
1418 post_remove_linux_libre_btrfs() {
1419 sed -i "/^${PACKAGE##*-}\$/d" "$1/etc/filesystems"
1420 chroot "$1/" depmod -a $VERSION-slitaz
1422 post_install_linux_libre_cifs() {
1423 grep -qs ^${PACKAGE##*-}$ "$1/etc/filesystems" || \
1424 echo "${PACKAGE##*-}" >> "$1/etc/filesystems"
1425 chroot "$1/" depmod -a $VERSION-slitaz
1427 post_remove_linux_libre_cifs() {
1428 sed -i "/^${PACKAGE##*-}\$/d" "$1/etc/filesystems"
1429 chroot "$1/" depmod -a $VERSION-slitaz
1431 post_install_linux_libre_coda() {
1432 grep -qs ^${PACKAGE##*-}$ "$1/etc/filesystems" || \
1433 echo "${PACKAGE##*-}" >> "$1/etc/filesystems"
1434 chroot "$1/" depmod -a $VERSION-slitaz
1436 post_remove_linux_libre_coda() {
1437 sed -i "/^${PACKAGE##*-}\$/d" "$1/etc/filesystems"
1438 chroot "$1/" depmod -a $VERSION-slitaz
1440 post_install_linux_libre_configfs() {
1441 grep -qs ^${PACKAGE##*-}$ "$1/etc/filesystems" || \
1442 echo "${PACKAGE##*-}" >> "$1/etc/filesystems"
1443 chroot "$1/" depmod -a $VERSION-slitaz
1445 post_remove_linux_libre_configfs() {
1446 sed -i "/^${PACKAGE##*-}\$/d" "$1/etc/filesystems"
1447 chroot "$1/" depmod -a $VERSION-slitaz
1449 post_install_linux_libre_cpufreq() {
1450 chroot "$1/" depmod -a $VERSION-slitaz
1452 post_remove_linux_libre_cpufreq() {
1453 chroot "$1/" depmod -a $VERSION-slitaz
1455 post_install_linux_libre_cramfs() {
1456 grep -qs ^${PACKAGE##*-}$ "$1/etc/filesystems" || \
1457 echo "${PACKAGE##*-}" >> "$1/etc/filesystems"
1458 chroot "$1/" depmod -a $VERSION-slitaz
1460 post_remove_linux_libre_cramfs() {
1461 sed -i "/^${PACKAGE##*-}\$/d" "$1/etc/filesystems"
1462 chroot "$1/" depmod -a $VERSION-slitaz
1464 post_install_linux_libre_crypto() {
1465 chroot "$1/" depmod -a $VERSION-slitaz
1467 post_remove_linux_libre_crypto() {
1468 chroot "$1/" depmod -a $VERSION-slitaz
1470 post_install_linux_libre_cryptoloop() {
1471 chroot "$1/" depmod -a $VERSION-slitaz
1473 post_remove_linux_libre_cryptoloop() {
1474 chroot "$1/" depmod -a $VERSION-slitaz
1476 post_install_linux_libre_dialup() {
1477 chroot "$1/" depmod -a $VERSION-slitaz
1479 post_remove_linux_libre_dialup() {
1480 chroot "$1/" depmod -a $VERSION-slitaz
1482 post_install_linux_libre_dlm() {
1483 grep -qs ^${PACKAGE##*-}$ "$1/etc/filesystems" || \
1484 echo "${PACKAGE##*-}" >> "$1/etc/filesystems"
1485 chroot "$1/" depmod -a $VERSION-slitaz
1487 post_remove_linux_libre_dlm() {
1488 sed -i "/^${PACKAGE##*-}\$/d" "$1/etc/filesystems"
1489 chroot "$1/" depmod -a $VERSION-slitaz
1491 post_install_linux_libre_drm() {
1492 chroot "$1/" depmod -a $VERSION-slitaz
1494 post_remove_linux_libre_drm() {
1495 chroot "$1/" depmod -a $VERSION-slitaz
1497 post_install_linux_libre_firewire() {
1498 chroot "$1/" depmod -a $VERSION-slitaz
1500 post_remove_linux_libre_firewire() {
1501 chroot "$1/" depmod -a $VERSION-slitaz
1503 post_install_linux_libre_gfs2() {
1504 grep -qs ^${PACKAGE##*-}$ "$1/etc/filesystems" || \
1505 echo "${PACKAGE##*-}" >> "$1/etc/filesystems"
1506 chroot "$1/" depmod -a $VERSION-slitaz
1508 post_remove_linux_libre_gfs2() {
1509 sed -i "/^${PACKAGE##*-}\$/d" "$1/etc/filesystems"
1510 chroot "$1/" depmod -a $VERSION-slitaz
1512 post_install_linux_libre_hfs() {
1513 grep -qs ^${PACKAGE##*-}$ "$1/etc/filesystems" || \
1514 echo "${PACKAGE##*-}" >> "$1/etc/filesystems"
1515 chroot "$1/" depmod -a $VERSION-slitaz
1517 post_remove_linux_libre_hfs() {
1518 sed -i "/^${PACKAGE##*-}\$/d" "$1/etc/filesystems"
1519 chroot "$1/" depmod -a $VERSION-slitaz
1521 post_install_linux_libre_hfsplus() {
1522 grep -qs ^${PACKAGE##*-}$ "$1/etc/filesystems" || \
1523 echo "${PACKAGE##*-}" >> "$1/etc/filesystems"
1524 chroot "$1/" depmod -a $VERSION-slitaz
1526 post_remove_linux_libre_hfsplus() {
1527 sed -i "/^${PACKAGE##*-}\$/d" "$1/etc/filesystems"
1528 chroot "$1/" depmod -a $VERSION-slitaz
1530 post_install_linux_libre_hwmon() {
1531 chroot "$1/" depmod -a $VERSION-slitaz
1533 post_remove_linux_libre_hwmon() {
1534 chroot "$1/" depmod -a $VERSION-slitaz
1536 post_install_linux_libre_input_misc() {
1537 chroot "$1/" depmod -a $VERSION-slitaz
1539 post_remove_linux_libre_input_misc() {
1540 chroot "$1/" depmod -a $VERSION-slitaz
1542 post_install_linux_libre_input_tablet() {
1543 chroot "$1/" depmod -a $VERSION-slitaz
1545 post_remove_linux_libre_input_tablet() {
1546 chroot "$1/" depmod -a $VERSION-slitaz
1548 post_install_linux_libre_input_touchscreen() {
1549 chroot "$1/" depmod -a $VERSION-slitaz
1551 post_remove_linux_libre_input_touchscreen() {
1552 chroot "$1/" depmod -a $VERSION-slitaz
1554 post_install_linux_libre_ipv6() {
1555 chroot "$1/" depmod -a $VERSION-slitaz
1557 post_remove_linux_libre_ipv6() {
1558 chroot "$1/" depmod -a $VERSION-slitaz
1560 post_install_linux_libre_irda() {
1561 chroot "$1/" depmod -a $VERSION-slitaz
1563 post_remove_linux_libre_irda() {
1564 chroot "$1/" depmod -a $VERSION-slitaz
1566 post_install_linux_libre_isdn() {
1567 chroot "$1/" depmod -a $VERSION-slitaz
1569 post_remove_linux_libre_isdn() {
1570 chroot "$1/" depmod -a $VERSION-slitaz
1572 post_install_linux_libre_jfs() {
1573 grep -qs ^${PACKAGE##*-}$ "$1/etc/filesystems" || \
1574 echo "${PACKAGE##*-}" >> "$1/etc/filesystems"
1575 chroot "$1/" depmod -a $VERSION-slitaz
1577 post_remove_linux_libre_jfs() {
1578 sed -i "/^${PACKAGE##*-}\$/d" "$1/etc/filesystems"
1579 chroot "$1/" depmod -a $VERSION-slitaz
1581 post_install_linux_libre_joystick() {
1582 chroot "$1/" depmod -a $VERSION-slitaz
1584 post_remove_linux_libre_joystick() {
1585 chroot "$1/" depmod -a $VERSION-slitaz
1587 post_install_linux_libre_kvm() {
1588 chroot "$1/" depmod -a $VERSION-slitaz
1590 post_remove_linux_libre_kvm() {
1591 chroot "$1/" depmod -a $VERSION-slitaz
1593 post_install_linux_libre_logfs() {
1594 grep -qs ^${PACKAGE##*-}$ "$1/etc/filesystems" || \
1595 echo "${PACKAGE##*-}" >> "$1/etc/filesystems"
1596 chroot "$1/" depmod -a $VERSION-slitaz
1598 post_remove_linux_libre_logfs() {
1599 sed -i "/^${PACKAGE##*-}\$/d" "$1/etc/filesystems"
1600 chroot "$1/" depmod -a $VERSION-slitaz
1602 post_install_linux_libre_md() {
1603 chroot "$1/" depmod -a $VERSION-slitaz
1605 post_remove_linux_libre_md() {
1606 chroot "$1/" depmod -a $VERSION-slitaz
1608 post_install_linux_libre_memstick() {
1609 chroot "$1/" depmod -a $VERSION-slitaz
1611 post_remove_linux_libre_memstick() {
1612 chroot "$1/" depmod -a $VERSION-slitaz
1614 post_install_linux_libre_minix() {
1615 grep -qs ^${PACKAGE##*-}$ "$1/etc/filesystems" || \
1616 echo "${PACKAGE##*-}" >> "$1/etc/filesystems"
1617 chroot "$1/" depmod -a $VERSION-slitaz
1619 post_remove_linux_libre_minix() {
1620 sed -i "/^${PACKAGE##*-}\$/d" "$1/etc/filesystems"
1621 chroot "$1/" depmod -a $VERSION-slitaz
1623 post_install_linux_libre_mmc() {
1624 chroot "$1/" depmod -a $VERSION-slitaz
1626 post_remove_linux_libre_mmc() {
1627 chroot "$1/" depmod -a $VERSION-slitaz
1629 pre_remove_linux_libre_module_headers() {
1630 if [ -e "$1/usr/src/linux" ]; then
1631 rm -rf "$1/usr/src/linux"
1632 fi
1634 post_install_linux_libre_module_headers() {
1635 KVERSION=$VERSION-slitaz
1636 # Added soft link to make it easier to point to kernel folder
1637 [ -L "$1/usr/src/linux" ] && rm -f "$1/usr/src/linux"
1638 ln -sf /usr/src/linux-$KVERSION "$1/usr/src/linux"
1640 post_install_linux_libre_mwave() {
1641 chroot "$1/" depmod -a $VERSION-slitaz
1643 post_remove_linux_libre_mwave() {
1644 chroot "$1/" depmod -a $VERSION-slitaz
1646 post_install_linux_libre_nbd() {
1647 chroot "$1/" depmod -a $VERSION-slitaz
1649 post_remove_linux_libre_nbd() {
1650 chroot "$1/" depmod -a $VERSION-slitaz
1652 post_install_linux_libre_ncpfs() {
1653 grep -qs ^${PACKAGE##*-}$ "$1/etc/filesystems" || \
1654 echo "${PACKAGE##*-}" >> "$1/etc/filesystems"
1655 chroot "$1/" depmod -a $VERSION-slitaz
1657 post_remove_linux_libre_ncpfs() {
1658 sed -i "/^${PACKAGE##*-}\$/d" "$1/etc/filesystems"
1659 chroot "$1/" depmod -a $VERSION-slitaz
1661 post_install_linux_libre_netfilter() {
1662 chroot "$1/" depmod -a $VERSION-slitaz
1664 post_remove_linux_libre_netfilter() {
1665 chroot "$1/" depmod -a $VERSION-slitaz
1667 post_install_linux_libre_nfsd() {
1668 grep -qs ^${PACKAGE##*-}$ "$1/etc/filesystems" || \
1669 echo "${PACKAGE##*-}" >> "$1/etc/filesystems"
1670 chroot "$1/" depmod -a $VERSION-slitaz
1672 post_remove_linux_libre_nfsd() {
1673 sed -i "/^${PACKAGE##*-}\$/d" "$1/etc/filesystems"
1674 chroot "$1/" depmod -a $VERSION-slitaz
1676 post_install_linux_libre_reiserfs() {
1677 grep -qs ^${PACKAGE##*-}$ "$1/etc/filesystems" || \
1678 echo "${PACKAGE##*-}" >> "$1/etc/filesystems"
1679 chroot "$1/" depmod -a $VERSION-slitaz
1681 post_remove_linux_libre_reiserfs() {
1682 sed -i "/^${PACKAGE##*-}\$/d" "$1/etc/filesystems"
1683 chroot "$1/" depmod -a $VERSION-slitaz
1685 post_install_linux_libre_sched() {
1686 chroot "$1/" depmod -a $VERSION-slitaz
1688 post_remove_linux_libre_sched() {
1689 chroot "$1/" depmod -a $VERSION-slitaz
1691 post_install_linux_libre_scsi() {
1692 chroot "$1/" depmod -a $VERSION-slitaz
1694 post_remove_linux_libre_scsi() {
1695 chroot "$1/" depmod -a $VERSION-slitaz
1697 post_install_linux_libre_sound() {
1698 chroot "$1/" depmod -a $VERSION-slitaz
1700 post_remove_linux_libre_sound() {
1701 chroot "$1/" depmod -a $VERSION-slitaz
1703 post_install_linux_libre_speakup() {
1704 chroot "$1/" depmod -a $VERSION-slitaz
1706 post_remove_linux_libre_speakup() {
1707 chroot "$1/" depmod -a $VERSION-slitaz
1709 post_install_linux_libre_squashfs() {
1710 grep -qs ^${PACKAGE##*-}$ "$1/etc/filesystems" || \
1711 echo "${PACKAGE##*-}" >> "$1/etc/filesystems"
1712 chroot "$1/" depmod -a $VERSION-slitaz
1714 post_remove_linux_libre_squashfs() {
1715 sed -i "/^${PACKAGE##*-}\$/d" "$1/etc/filesystems"
1716 chroot "$1/" depmod -a $VERSION-slitaz
1718 post_install_linux_libre_toshiba() {
1719 chroot "$1/" depmod -a $VERSION-slitaz
1721 post_remove_linux_libre_toshiba() {
1722 chroot "$1/" depmod -a $VERSION-slitaz
1724 post_install_linux_libre_udf() {
1725 grep -qs ^${PACKAGE##*-}$ "$1/etc/filesystems" || \
1726 echo "${PACKAGE##*-}" >> "$1/etc/filesystems"
1727 chroot "$1/" depmod -a $VERSION-slitaz
1729 post_remove_linux_libre_udf() {
1730 sed -i "/^${PACKAGE##*-}\$/d" "$1/etc/filesystems"
1731 chroot "$1/" depmod -a $VERSION-slitaz
1733 post_install_linux_libre_usbdsl() {
1734 chroot "$1/" depmod -a $VERSION-slitaz
1736 post_remove_linux_libre_usbdsl() {
1737 chroot "$1/" depmod -a $VERSION-slitaz
1739 post_install_linux_libre_usbip() {
1740 grep -qs ^${PACKAGE##*-}$ "$1/etc/filesystems" || \
1741 echo "${PACKAGE##*-}" >> "$1/etc/filesystems"
1742 chroot "$1/" depmod -a $VERSION-slitaz
1744 post_remove_linux_libre_usbip() {
1745 sed -i "/^${PACKAGE##*-}\$/d" "$1/etc/filesystems"
1746 chroot "$1/" depmod -a $VERSION-slitaz
1748 post_install_linux_libre_usb_misc() {
1749 chroot "$1/" depmod -a $VERSION-slitaz
1751 post_remove_linux_libre_usb_misc() {
1752 chroot "$1/" depmod -a $VERSION-slitaz
1754 post_install_linux_libre_uwb() {
1755 chroot "$1/" depmod -a $VERSION-slitaz
1757 post_remove_linux_libre_uwb() {
1758 chroot "$1/" depmod -a $VERSION-slitaz
1760 post_install_linux_libre_video() {
1761 chroot "$1/" depmod -a $VERSION-slitaz
1763 post_remove_linux_libre_video() {
1764 chroot "$1/" depmod -a $VERSION-slitaz
1766 post_install_linux_libre_wimax() {
1767 chroot "$1/" depmod -a $VERSION-slitaz
1769 post_remove_linux_libre_wimax() {
1770 chroot "$1/" depmod -a $VERSION-slitaz
1772 post_install_linux_libre_wireless() {
1773 chroot "$1/" depmod -a $VERSION-slitaz
1775 post_remove_linux_libre_wireless() {
1776 chroot "$1/" depmod -a $VERSION-slitaz