wok-next annotate linux-libre/receipt @ rev 21357

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