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

Add descriptions to the GNOME games
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sun Jun 10 16:17:43 2018 +0300 (2018-06-10)
parents 6e60cb130afd
children d5aab818505e
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"
gokhlayeh@9257 7 MAINTAINER="gokhlayeh@slitaz.org"
pascal@14657 8 LICENSE="GPL2"
pascal@14201 9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
gokhlayeh@9257 10 WEB_SITE="http://www.fsfla.org/svnwiki/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@19772 14 SPLIT="linux-libre-acpi linux-libre-agp linux-libre-aoe linux-libre-appletalk \
al@19772 15 linux-libre-autofs linux-libre-bluetooth linux-libre-bridge linux-libre-btrfs \
al@19772 16 linux-libre-cifs linux-libre-coda linux-libre-configfs linux-libre-cpufreq \
al@19772 17 linux-libre-cramfs linux-libre-crypto linux-libre-cryptoloop \
al@19772 18 linux-libre-dialup linux-libre-dlm linux-libre-drm linux-libre-firewire \
al@19772 19 linux-libre-gfs2 linux-libre-hfs linux-libre-hfsplus linux-libre-hwmon \
al@19772 20 linux-libre-input-misc linux-libre-input-tablet linux-libre-input-touchscreen \
al@19772 21 linux-libre-ipv6 linux-libre-irda linux-libre-isdn linux-libre-jfs \
al@19772 22 linux-libre-joystick linux-libre-kvm linux-libre-logfs linux-libre-md \
al@19772 23 linux-libre-memstick linux-libre-minix linux-libre-mmc \
al@19772 24 linux-libre-module-headers linux-libre-mwave linux-libre-nbd linux-libre-ncpfs \
al@19772 25 linux-libre-netfilter linux-libre-nfsd linux-libre-reiserfs linux-libre-sched \
al@19772 26 linux-libre-scsi linux-libre-sound linux-libre-source linux-libre-speakup \
al@19772 27 linux-libre-squashfs linux-libre-toshiba linux-libre-udf linux-libre-usbdsl \
al@19772 28 linux-libre-usbip linux-libre-usb-misc linux-libre-uwb linux-libre-video \
al@20456 29 linux-libre-wimax linux-libre-wireless linux-libre-without-modules lguest-libre"
slaxemulator@10638 30
gokhlayeh@9257 31 # Rules to configure and make the package.
gokhlayeh@9257 32 compile_rules()
gokhlayeh@9257 33 {
gokhlayeh@9257 34 # this is code to help update the kernel version faster
pascal@14179 35 #for i in $(grep -l 'WANTED="linux-libre"' $WOK/*/receipt)
gokhlayeh@9257 36 #do
gokhlayeh@9257 37 # sed -i 's|VERSION="OLDVERSION"|VERSION="NEWVERSION"|g' $i
gokhlayeh@9257 38 #done
gokhlayeh@11396 39
slaxemulator@10638 40 # Check for Aufs and cook it if unbuilt.
slaxemulator@10638 41 echo "Checking for Aufs packages..."
gokhlayeh@9257 42 _AUFSVER=`grep ^VERSION= $WOK/aufs/receipt | cut -d "=" -f2 | sed -e 's/"//g'`
gokhlayeh@11396 43 if [ ! -d "$AUFSDIR" ] && [ -x /usr/bin/cook ]; then
slaxemulator@10638 44 # Give info an redirect to /dev/null since aufs got it own log.
slaxemulator@10638 45 AUFSDIR=$WOK/aufs/source/aufs-${_AUFSVER}
slaxemulator@10638 46 echo "Cook: aufs $_AUFSVER"
slaxemulator@10638 47 cook aufs > /dev/null
gokhlayeh@11396 48 elif [ ! -x /usr/bin/cook ]; then
gokhlayeh@11396 49 # We only need aufs source. Also cooking now is a bad idea since it
gokhlayeh@11396 50 # needs linux-module-headers.
slaxemulator@10638 51 AUFSDIR=$WOK/aufs/aufs-${_AUFSVER}
slaxemulator@10638 52 [ -d "$AUFSDIR" ] && rm -rf $AUFSDIR
pascal@19791 53 tazwok get-src aufs --target=$AUFSDIR || return 1
pankso@10630 54 fi
al@18741 55
slaxemulator@10638 56 echo "Copying Aufs files and patches..."
gokhlayeh@9257 57 cp -a $AUFSDIR/Documentation $AUFSDIR/fs $AUFSDIR/include $src
slaxemulator@10638 58 cp -a $AUFSDIR/*.patch $stuff
gokhlayeh@11396 59
gokhlayeh@9257 60 # SliTaz db
gokhlayeh@11396 61 rm -rf $WOK/$PACKAGE/slitaz && mkdir $WOK/$PACKAGE/slitaz
slaxemulator@9337 62 echo "$WGET_URL" > $WOK/$PACKAGE/slitaz/url
gokhlayeh@9257 63 cp $stuff/gztazmod.sh $stuff/list_modules.sh $WOK/$PACKAGE/slitaz
gokhlayeh@9257 64 cp $stuff/bootloader.sh $WOK/$PACKAGE/slitaz
slaxemulator@10638 65
gokhlayeh@9257 66 # Apply patches
gokhlayeh@11396 67 echo "Applying patches..."
gokhlayeh@9257 68 while read patch_file; do
gokhlayeh@9257 69 echo "$patch_file" >> $WOK/$PACKAGE/slitaz/patches
gokhlayeh@9257 70 cp $stuff/$patch_file $WOK/$PACKAGE/slitaz
gokhlayeh@9257 71 if [ -f done.$patch_file ]; then
gokhlayeh@9257 72 echo "Skipping $patch_file"
gokhlayeh@9257 73 continue
gokhlayeh@9257 74 fi
gokhlayeh@9257 75 echo "Apply $patch_file"
pascal@19791 76 patch -p1 < $WOK/$PACKAGE/slitaz/$patch_file || return 1
gokhlayeh@9257 77 touch done.$patch_file
gokhlayeh@9257 78 done <<EOT
gokhlayeh@9257 79 $PACKAGE-diff-$VERSION.u
gokhlayeh@9257 80 $PACKAGE-header-$VERSION.u
gokhlayeh@9257 81 $PACKAGE-freeinitrd-$VERSION.u
pascal@19792 82 linux-timeconst.pl.u
gokhlayeh@9257 83 aufs2-base.patch
gokhlayeh@9257 84 aufs2-standalone.patch
gokhlayeh@9257 85 001-squashfs-decompressors-add-xz-decompressor-module.patch
gokhlayeh@9257 86 002-squashfs-decompressors-add-boot-time-xz-support.patch
gokhlayeh@9257 87 003-squashfs-x86-support-xz-compressed-kernel.patch
gokhlayeh@9257 88 004-squashfs-add-xz-compression-support.patch
gokhlayeh@9257 89 005-squashfs-add-xz-compression-configuration-option.patch
gokhlayeh@9257 90 EOT
gokhlayeh@11396 91
pascal@19791 92 export LD_LIBRARY_PATH="/usr/libgcc3:$LD_LIBRARY_PATH"
pascal@19791 93 export MAKEFLAGS="$MAKEFLAGS CC=gcc-3 CXX=g++-3"
slaxemulator@10638 94
gokhlayeh@9257 95 make mrproper
gokhlayeh@9257 96 cd Documentation/lguest
pascal@19791 97 make $MAKEFLAGS lguest || return 1
gokhlayeh@9257 98 cd $src
gokhlayeh@9257 99
gokhlayeh@9257 100 # Build bzImage without modules first
gokhlayeh@9257 101 cp -f $stuff/$PACKAGE-$VERSION-slitaz.config .config
gokhlayeh@9257 102 sed -i 's/CONFIG_MODULES=y/# CONFIG_MODULES is not set/' .config
al@18741 103
gokhlayeh@9257 104 # We can't keep every driver in staging
gokhlayeh@9257 105 sed -i -e 's/^CONFIG_RTL8192/#&/' \
al@18741 106 -e 's/^CONFIG_R8187SE/#&/' \
al@18741 107 -e 's/^CONFIG_RT2870/#&/' .config
gokhlayeh@9257 108 yes '' | make oldconfig
pascal@19791 109 make $MAKEFLAGS bzImage || return 1
pascal@15602 110 [ -d $DESTDIR ] || mkdir -p $DESTDIR
pascal@15602 111 mv arch/x86/boot/bzImage $DESTDIR
gokhlayeh@9257 112 mv System.map System.map-without-modules
gokhlayeh@9257 113
gokhlayeh@9257 114 # Build bzImage with modules
gokhlayeh@9257 115 cp -f $stuff/$PACKAGE-$VERSION-slitaz.config .config
gokhlayeh@9257 116 make oldconfig
gokhlayeh@9257 117 ln .config $WOK/$PACKAGE/slitaz/config
gokhlayeh@11396 118 make $MAKEFLAGS bzImage &&
gokhlayeh@11396 119 make $MAKEFLAGS modules &&
pascal@15602 120 make INSTALL_MOD_PATH=$DESTDIR modules_install &&
pascal@15602 121 make INSTALL_HDR_PATH=$DESTDIR/usr headers_install &&
pascal@19791 122 [ -s arch/x86/boot/bzImage ] return 1
pascal@15602 123 mkdir -p $DESTDIR/boot 2> /dev/null
pascal@15602 124 mv arch/x86/boot/bzImage $DESTDIR/boot/vmlinuz-$VERSION-slitaz
al@18741 125
gokhlayeh@9257 126 # Compress all modules.
pascal@15602 127 $stuff/gztazmod.sh $DESTDIR/lib/modules/$VERSION-slitaz
gokhlayeh@9257 128 ln System.map System.map-modules
gokhlayeh@9257 129 ln Module.symvers Module.symvers-modules
gokhlayeh@9257 130 }
gokhlayeh@9257 131
gokhlayeh@9257 132 # Rules to gen a SliTaz package suitable for Tazpkg.
gokhlayeh@9257 133 genpkg_rules()
gokhlayeh@9257 134 {
al@19772 135 case $PACKAGE in
al@19772 136 linux-libre)
al@19772 137 local path
al@19772 138 cp -a $install/boot $fs
al@19772 139 # Compress all modules.
al@19772 140 #$stuff/gztazmod.sh $install/lib/modules/$VERSION-slitaz
al@19772 141 path=$fs/lib/modules/$VERSION-slitaz/kernel
al@19772 142 mkdir -p $path
al@19772 143 cp -a $install/lib/modules/$VERSION-slitaz/mo* \
al@19772 144 $fs/lib/modules/$VERSION-slitaz
al@19772 145 # Get the base modules
al@19772 146 export src
al@19772 147 export _pkg
al@19772 148 mkdir $WOK/$PACKAGE/tmp
al@19772 149 $stuff/list_modules.sh \
al@19772 150 $(cat stuff/modules-$VERSION.list) > $WOK/$PACKAGE/tmp/modules.list
al@19772 151 while read module; do
al@19772 152 dir=$(dirname $module)
al@19772 153 [ -d $path/$dir ] || mkdir -p $path/$dir
al@19772 154 cp -a $install/lib/modules/$VERSION-slitaz/kernel/$module $path/$dir
al@19772 155 done < $WOK/$PACKAGE/tmp/modules.list
al@19772 156 # Remove unresolved links
al@19772 157 rm -f $fs/lib/modules/$VERSION-slitaz/build
al@19772 158 rm -f $fs/lib/modules/$VERSION-slitaz/source
pascal@17733 159
al@19772 160 # Pack all packages with a kernel module
al@19772 161 for i in $(cd $WOK; grep -l '^WANTED="linux-libre"' */receipt); do
al@19772 162 [ ! -d "$install/lib/modules/$VERSION-slitaz" ] && return 1
al@19772 163 cook ${i%/receipt}
al@19772 164 done
al@18741 165
al@19772 166 # Check and echo any module in kernel .config that's not added to
al@19772 167 # one of linux-* pkgs
al@19772 168 export PACKAGE
al@19772 169 $stuff/check_modules.sh
al@19772 170 PROVIDE="linux"
al@19772 171 CONFIG_FILES="/lib/modules/$VERSION-slitaz/modules.dep"
al@19772 172 DEPENDS="depmod"
al@19772 173 ;;
al@19772 174 linux-libre-acpi)
al@19772 175 local path
al@19772 176 path=lib/modules/$VERSION-slitaz/kernel
al@19772 177 mkdir -p $fs/$path
al@19772 178 export src
al@19772 179 export _pkg
al@19772 180 $stuff/list_modules.sh drivers/acpi drivers/platform/x86/thinkpad_acpi.ko.gz \
al@19772 181 drivers/platform/x86/asus-laptop.ko.gz drivers/platform/x86/eeepc-wmi.ko.gz \
al@19772 182 drivers/platform/x86/msi-laptop.ko.gz drivers/platform/x86/panasonic-laptop.ko.gz \
al@19772 183 drivers/platform/x86/sony-laptop.ko.gz drivers/platform/x86/acer-wmi.ko.gz \
al@19772 184 drivers/platform/x86/hp-wmi.ko.gz drivers/platform/x86/wmi.ko.gz \
al@19772 185 drivers/platform/x86/classmate-laptop.ko.gz drivers/platform/x86/topstar-laptop.ko.gz | \
al@19772 186 while read module; do
al@19772 187 dir=$path/$(dirname $module)
al@19772 188 [ -d $fs/$dir ] || mkdir -p $fs/$dir
al@19772 189 cp -a $install/$path/$module $fs/$dir
al@19772 190 done
al@19772 191 for i in $(cat $stuff/modules-$VERSION.list); do
al@19772 192 if [ $fs/lib/modules/$VERSION-slitaz/kernel/$i ]; then
al@19772 193 rm -f $fs/lib/modules/$VERSION-slitaz/kernel/$i
al@19772 194 fi
al@19772 195 done
al@19772 196 CAT="base-system|acpi modules"
al@19772 197 PROVIDE="linux-acpi"
al@19772 198 ;;
al@19772 199 linux-libre-agp)
al@19772 200 local path
al@19772 201 path=lib/modules/$VERSION-slitaz/kernel
al@19772 202 mkdir -p $fs/$path
al@19772 203 export src
al@19772 204 export _pkg
al@19772 205 $stuff/list_modules.sh drivers/char/agp | while read module; do
al@19772 206 dir=$path/$(dirname $module)
al@19772 207 [ -d $fs/$dir ] || mkdir -p $fs/$dir
al@19772 208 cp -a $install/$path/$module $fs/$dir
al@19772 209 done
al@19772 210 for i in $(cat $stuff/modules-$VERSION.list); do
al@19772 211 if [ $fs/lib/modules/$VERSION-slitaz/kernel/$i ]; then
al@19772 212 rm -f $fs/lib/modules/$VERSION-slitaz/kernel/$i
al@19772 213 fi
al@19772 214 done
al@19772 215 CAT="base-system|AGP modules"
al@19772 216 PROVIDE="linux-agp"
al@19772 217 ;;
al@19772 218 linux-libre-aoe)
al@19772 219 local path
al@19772 220 path=lib/modules/$VERSION-slitaz/kernel
al@19772 221 mkdir -p $fs/$path
al@19772 222 export src
al@19772 223 export _pkg
al@19772 224 $stuff/list_modules.sh drivers/block/aoe/aoe.ko.gz | \
al@19772 225 while read module; do
al@19772 226 dir=$path/$(dirname $module)
al@19772 227 [ -d $fs/$dir ] || mkdir -p $fs/$dir
al@19772 228 cp -a $install/$path/$module $fs/$dir
al@19772 229 done
al@19772 230 CAT="base-system|ATA over Ethernet modules"
al@19772 231 PROVIDE="linux-aoe"
al@19772 232 ;;
al@19772 233 linux-libre-appletalk)
al@19772 234 local path
al@19772 235 path=lib/modules/$VERSION-slitaz/kernel
al@19772 236 mkdir -p $fs/$path
al@19772 237 export src
al@19772 238 export _pkg
al@19772 239 $stuff/list_modules.sh drivers/net/appletalk net/appletalk \
al@19772 240 net/802/p8022.ko.gz | while read module; do
al@19772 241 dir=$path/$(dirname $module)
al@19772 242 [ -d $fs/$dir ] || mkdir -p $fs/$dir
al@19772 243 cp -a $install/$path/$module $fs/$dir
al@19772 244 done
al@19772 245 for i in $(cat $stuff/modules-$VERSION.list); do
al@19772 246 if [ $fs/lib/modules/$VERSION-slitaz/kernel/$i ]; then
al@19772 247 rm -f $fs/lib/modules/$VERSION-slitaz/kernel/$i
al@19772 248 fi
al@19772 249 done
al@19772 250 CAT="base-system|appletalk modules"
al@19772 251 PROVIDE="linux-appletalk"
al@19772 252 ;;
al@19772 253 linux-libre-autofs)
al@19772 254 local path
al@19772 255 path=lib/modules/$VERSION-slitaz/kernel
al@19772 256 mkdir -p $fs/$path $fs/etc
al@19772 257 export src
al@19772 258 export _pkg
al@19772 259 $stuff/list_modules.sh fs/autofs4 | while read module; do
al@19772 260 dir=$path/$(dirname $module)
al@19772 261 [ -d $fs/$dir ] || mkdir -p $fs/$dir
al@19772 262 cp -a $install/$path/$module $fs/$dir
al@19772 263 done
al@19772 264 touch $fs/etc/filesystems
al@19772 265 CAT="base-system|automounter module"
al@19772 266 PROVIDE="linux-autofs"
al@19772 267 CONFIG_FILES="/etc/filesystems"
al@19772 268 ;;
al@19772 269 linux-libre-bluetooth)
al@19772 270 local path
al@19772 271 path=lib/modules/$VERSION-slitaz/kernel
al@19772 272 mkdir -p $fs/$path
al@19772 273 export src
al@19772 274 export _pkg
al@19772 275 $stuff/list_modules.sh drivers/bluetooth net/bluetooth | while read module; do
al@19772 276 dir=$path/$(dirname $module)
al@19772 277 [ -d $fs/$dir ] || mkdir -p $fs/$dir
al@19772 278 cp -a $install/$path/$module $fs/$dir
al@19772 279 done
al@19772 280 for i in $(cat $stuff/modules-$VERSION.list); do
al@19772 281 if [ $fs/lib/modules/$VERSION-slitaz/kernel/$i ]; then
al@19772 282 rm -f $fs/lib/modules/$VERSION-slitaz/kernel/$i
al@19772 283 fi
al@19772 284 done
al@19772 285 CAT="base-system|bluetooth modules"
al@19772 286 PROVIDE="linux-bluetooth"
al@19772 287 ;;
al@19772 288 linux-libre-bridge)
al@19772 289 local path
al@19772 290 path=lib/modules/$VERSION-slitaz/kernel
al@19772 291 mkdir -p $fs/$path
al@19772 292 export src
al@19772 293 export _pkg
al@19772 294 $stuff/list_modules.sh net/bridge | while read module; do
al@19772 295 dir=$path/$(dirname $module)
al@19772 296 [ -d $fs/$dir ] || mkdir -p $fs/$dir
al@19772 297 cp -a $install/$path/$module $fs/$dir
al@19772 298 done
al@19772 299 for i in $(cat $stuff/modules-$VERSION.list); do
al@19772 300 if [ $fs/lib/modules/$VERSION-slitaz/kernel/$i ]; then
al@19772 301 rm -f $fs/lib/modules/$VERSION-slitaz/kernel/$i
al@19772 302 fi
al@19772 303 done
al@19772 304 CAT="base-system|bridge modules"
al@19772 305 PROVIDE="linux-bridge"
al@19772 306 ;;
al@19772 307 linux-libre-btrfs)
al@19772 308 local path
al@19772 309 path=lib/modules/$VERSION-slitaz/kernel
al@19772 310 mkdir -p $fs/$path $fs/etc
al@19772 311 export src
al@19772 312 export _pkg
al@19772 313 $stuff/list_modules.sh fs/${PACKAGE##*-} | while read module; do
al@19772 314 dir=$path/$(dirname $module)
al@19772 315 [ -d $fs/$dir ] || mkdir -p $fs/$dir
al@19772 316 cp -a $install/$path/$module $fs/$dir
al@19772 317 done
al@19772 318 touch $fs/etc/filesystems
al@19772 319 for i in $(cat $stuff/modules-$VERSION.list); do
al@19772 320 if [ $fs/lib/modules/$VERSION-slitaz/kernel/$i ]; then
al@19772 321 rm -f $fs/lib/modules/$VERSION-slitaz/kernel/$i
al@19772 322 fi
al@19772 323 done
al@19772 324 CAT="base-system|btrfs module"
al@19772 325 PROVIDE="linux-btrfs"
al@19772 326 CONFIG_FILES="/etc/filesystems"
al@19772 327 ;;
al@19772 328 linux-libre-cifs)
al@19772 329 local path
al@19772 330 path=lib/modules/$VERSION-slitaz/kernel
al@19772 331 mkdir -p $fs/$path $fs/etc
al@19772 332 export src
al@19772 333 export _pkg
al@19772 334 $stuff/list_modules.sh fs/cifs | while read module; do
al@19772 335 dir=$path/$(dirname $module)
al@19772 336 [ -d $fs/$dir ] || mkdir -p $fs/$dir
al@19772 337 cp -a $install/$path/$module $fs/$dir
al@19772 338 done
al@19772 339 touch $fs/etc/filesystems
al@19772 340 CAT="base-system|cifs module"
al@19772 341 PROVIDE="linux-cifs"
al@19772 342 CONFIG_FILES="/etc/filesystems"
al@19772 343 ;;
al@19772 344 linux-libre-coda)
al@19772 345 local path
al@19772 346 path=lib/modules/$VERSION-slitaz/kernel
al@19772 347 mkdir -p $fs/$path $fs/etc
al@19772 348 export src
al@19772 349 export _pkg
al@19772 350 $stuff/list_modules.sh fs/coda | while read module; do
al@19772 351 dir=$path/$(dirname $module)
al@19772 352 [ -d $fs/$dir ] || mkdir -p $fs/$dir
al@19772 353 cp -a $install/$path/$module $fs/$dir
al@19772 354 done
al@19772 355 touch $fs/etc/filesystems
al@19772 356 CAT="base-system|coda module"
al@19772 357 PROVIDE="linux-coda"
al@19772 358 CONFIG_FILES="/etc/filesystems"
al@19772 359 ;;
al@19772 360 linux-libre-configfs)
al@19772 361 local path
al@19772 362 path=lib/modules/$VERSION-slitaz/kernel
al@19772 363 mkdir -p $fs/$path $fs/etc
al@19772 364 export src
al@19772 365 export _pkg
al@19772 366 $stuff/list_modules.sh fs/${PACKAGE##*-} | while read module; do
al@19772 367 dir=$path/$(dirname $module)
al@19772 368 [ -d $fs/$dir ] || mkdir -p $fs/$dir
al@19772 369 cp -a $install/$path/$module $fs/$dir
al@19772 370 done
al@19772 371 touch $fs/etc/filesystems
al@19772 372 CAT="base-system|configfs module"
al@19772 373 PROVIDE="linux-configfs"
al@19772 374 CONFIG_FILES="/etc/filesystems"
al@19772 375 ;;
al@19772 376 linux-libre-cpufreq)
al@19772 377 local path
al@19772 378 path=lib/modules/$VERSION-slitaz/kernel
al@19772 379 mkdir -p $fs/$path
al@19772 380 export src
al@19772 381 export _pkg
al@19772 382 $stuff/list_modules.sh arch/x86/kernel/cpu/cpufreq drivers/cpufreq | \
al@19772 383 while read module; do
al@19772 384 dir=$path/$(dirname $module)
al@19772 385 [ -d $fs/$dir ] || mkdir -p $fs/$dir
al@19772 386 cp -a $install/$path/$module $fs/$dir
al@19772 387 done
al@19772 388 CAT="base-system|cpufreq modules"
al@19772 389 PROVIDE="linux-cpufreq"
al@19772 390 ;;
al@19772 391 linux-libre-cramfs)
al@19772 392 local path
al@19772 393 path=lib/modules/$VERSION-slitaz/kernel
al@19772 394 mkdir -p $fs/$path $fs/etc
al@19772 395 export src
al@19772 396 export _pkg
al@19772 397 $stuff/list_modules.sh fs/cramfs | while read module; do
al@19772 398 dir=$path/$(dirname $module)
al@19772 399 [ -d $fs/$dir ] || mkdir -p $fs/$dir
al@19772 400 cp -a $install/$path/$module $fs/$dir
al@19772 401 done
al@19772 402 touch $fs/etc/filesystems
al@19772 403 CAT="base-system|cramfs module"
al@19772 404 PROVIDE="linux-cramfs"
al@19772 405 CONFIG_FILES="/etc/filesystems"
al@19772 406 ;;
al@19772 407 linux-libre-crypto)
al@19772 408 local path
al@19772 409 path=lib/modules/$VERSION-slitaz/kernel
al@19772 410 mkdir -p $fs/$path
al@19772 411 export src
al@19772 412 export _pkg
al@19772 413 $stuff/list_modules.sh arch/x86/crypto crypto drivers/crypto | \
al@19772 414 while read module; do
al@19772 415 dir=$path/$(dirname $module)
al@19772 416 [ -d $fs/$dir ] || mkdir -p $fs/$dir
al@19772 417 cp -a $install/$path/$module $fs/$dir
al@19772 418 done
al@19772 419 for i in $(cat $stuff/modules-$VERSION.list); do
al@19772 420 if [ $fs/lib/modules/$VERSION-slitaz/kernel/$i ]; then
al@19772 421 rm -f $fs/lib/modules/$VERSION-slitaz/kernel/$i
al@19772 422 fi
al@19772 423 done
al@19772 424 CAT="base-system|crypto modules"
al@19772 425 PROVIDE="linux-crypto"
al@19772 426 ;;
al@19772 427 linux-libre-cryptoloop)
al@19772 428 local path
al@19772 429 path=lib/modules/$VERSION-slitaz/kernel
al@19772 430 mkdir -p $fs/$path
al@19772 431 export src
al@19772 432 export _pkg
al@19772 433 $stuff/list_modules.sh drivers/block/cryptoloop.ko.gz | \
al@19772 434 while read module; do
al@19772 435 dir=$path/$(dirname $module)
al@19772 436 [ -d $fs/$dir ] || mkdir -p $fs/$dir
al@19772 437 cp -a $install/$path/$module $fs/$dir
al@19772 438 done
al@19772 439 CAT="base-system|cryptoloop modules"
al@19772 440 PROVIDE="linux-cryptoloop"
al@19772 441 DEPENDS="linux-libre-crypto"
al@19772 442 ;;
al@19772 443 linux-libre-dialup)
al@19772 444 local path
al@19772 445 path=lib/modules/$VERSION-slitaz/kernel
al@19772 446 mkdir -p $fs/$path
al@19772 447 export src
al@19772 448 export _pkg
al@19772 449 $stuff/list_modules.sh drivers/serial/serial_cs.ko.gz drivers/char/nozomi.ko.gz \
al@19772 450 drivers/usb/serial/option.ko.gz drivers/net/usb/hso.ko.gz | \
al@19772 451 while read module; do
al@19772 452 dir=$path/$(dirname $module)
al@19772 453 [ -d $fs/$dir ] || mkdir -p $fs/$dir
al@19772 454 cp -a $install/$path/$module $fs/$dir
al@19772 455 done
al@19772 456 for i in $(cat $stuff/modules-$VERSION.list); do
al@19772 457 if [ $fs/lib/modules/$VERSION-slitaz/kernel/$i ]; then
al@19772 458 rm -f $fs/lib/modules/$VERSION-slitaz/kernel/$i
al@19772 459 fi
al@19772 460 done
al@19772 461 CAT="base-system|dial-up modules"
al@19772 462 PROVIDE="linux-dialup"
al@19772 463 ;;
al@19772 464 linux-libre-dlm)
al@19772 465 # Modules paths and list
al@19772 466 MOD_PATH="lib/modules/$VERSION-slitaz/kernel"
al@19772 467 MODULES="fs/dlm/dlm.ko.gz"
al@19772 468 mkdir -p ${fs}${MOD_PATH} $fs/etc
al@19772 469 for module in $MODULES; do
al@19772 470 dir=$MOD_PATH/$(dirname $module)
al@19772 471 [ -d $fs/$dir ] || mkdir -p $fs/$dir
al@19772 472 cp -a $install/$MOD_PATH/$module $fs/$dir
al@19772 473 done
al@19772 474 touch $fs/etc/filesystems
al@19772 475 CAT="base-system|dlmfs module"
al@19772 476 PROVIDE="linux-dlm"
al@19772 477 CONFIG_FILES="/etc/filesystems"
al@19772 478 ;;
al@19772 479 linux-libre-drm)
al@19772 480 local path
al@19772 481 path=lib/modules/$VERSION-slitaz/kernel
al@19772 482 mkdir -p $fs/$path
al@19772 483 export src
al@19772 484 export _pkg
al@19772 485 $stuff/list_modules.sh drivers/gpu/drm | while read module; do
al@19772 486 dir=$path/$(dirname $module)
al@19772 487 [ -d $fs/$dir ] || mkdir -p $fs/$dir
al@19772 488 cp -a $install/$path/$module $fs/$dir
al@19772 489 done
al@19772 490 for i in $(cat $stuff/modules-$VERSION.list); do
al@19772 491 if [ $fs/lib/modules/$VERSION-slitaz/kernel/$i ]; then
al@19772 492 rm -f $fs/lib/modules/$VERSION-slitaz/kernel/$i
al@19772 493 fi
al@19772 494 done
al@19772 495 # remove drivers/char/agp kernel modules cause there in linux-agp package
al@19772 496 if [ -d $fs/lib/modules/$VERSION-slitaz/kernel/drivers/char/agp ]; then
al@19772 497 rm -rf $fs/lib/modules/$VERSION-slitaz/kernel/drivers/char/agp
al@19772 498 fi
al@19772 499 CAT="base-system|drm module"
al@19772 500 PROVIDE="linux-drm"
al@19772 501 DEPENDS="linux-libre-agp"
al@19772 502 ;;
al@19772 503 linux-libre-firewire)
al@19772 504 local path
al@19772 505 path=lib/modules/$VERSION-slitaz/kernel
al@19772 506 mkdir -p $fs/$path
al@19772 507 export src
al@19772 508 export _pkg
al@19772 509 $stuff/list_modules.sh drivers/firewire | while read module; do
al@19772 510 dir=$path/$(dirname $module)
al@19772 511 [ -d $fs/$dir ] || mkdir -p $fs/$dir
al@19772 512 cp -a $install/$path/$module $fs/$dir
al@19772 513 done
al@19772 514 CAT="base-system|firewire modules"
al@19772 515 PROVIDE="linux-firewire"
al@19772 516 ;;
al@19772 517 linux-libre-gfs2)
al@19772 518 local path
al@19772 519 path=lib/modules/$VERSION-slitaz/kernel
al@19772 520 mkdir -p $fs/$path $fs/etc
al@19772 521 export src
al@19772 522 export _pkg
al@19772 523 $stuff/list_modules.sh fs/gfs2 | while read module; do
al@19772 524 dir=$path/$(dirname $module)
al@19772 525 [ -d $fs/$dir ] || mkdir -p $fs/$dir
al@19772 526 cp -a $install/$path/$module $fs/$dir
al@19772 527 done
al@19772 528 touch $fs/etc/filesystems
al@19772 529 CAT="base-system|gfs2 module"
al@19772 530 PROVIDE="linux-gfs2"
al@19772 531 CONFIG_FILES="/etc/filesystems"
al@19772 532 ;;
al@19772 533 linux-libre-hfs)
al@19772 534 local path
al@19772 535 path=lib/modules/$VERSION-slitaz/kernel
al@19772 536 mkdir -p $fs/$path $fs/etc
al@19772 537 export src
al@19772 538 export _pkg
al@19772 539 $stuff/list_modules.sh fs/${PACKAGE##*-} | while read module; do
al@19772 540 dir=$path/$(dirname $module)
al@19772 541 [ -d $fs/$dir ] || mkdir -p $fs/$dir
al@19772 542 cp -a $install/$path/$module $fs/$dir
al@19772 543 done
al@19772 544 touch $fs/etc/filesystems
al@19772 545 CAT="base-system|hfs module"
al@19772 546 PROVIDE="linux-hfs"
al@19772 547 CONFIG_FILES="/etc/filesystems"
al@19772 548 ;;
al@19772 549 linux-libre-hfsplus)
al@19772 550 local path
al@19772 551 path=lib/modules/$VERSION-slitaz/kernel
al@19772 552 mkdir -p $fs/$path $fs/etc
al@19772 553 export src
al@19772 554 export _pkg
al@19772 555 $stuff/list_modules.sh fs/hfsplus | while read module; do
al@19772 556 dir=$path/$(dirname $module)
al@19772 557 [ -d $fs/$dir ] || mkdir -p $fs/$dir
al@19772 558 cp -a $install/$path/$module $fs/$dir
al@19772 559 done
al@19772 560 touch $fs/etc/filesystems
al@19772 561 CAT="base-system|hfsplus module"
al@19772 562 PROVIDE="linux-hfsplus"
al@19772 563 CONFIG_FILES="/etc/filesystems"
al@19772 564 ;;
al@19772 565 linux-libre-hwmon)
al@19772 566 local path
al@19772 567 path=lib/modules/$VERSION-slitaz/kernel
al@19772 568 mkdir -p $fs/$path
al@19772 569 export src
al@19772 570 export _pkg
al@19772 571 $stuff/list_modules.sh drivers/hwmon | while read module; do
al@19772 572 dir=$path/$(dirname $module)
al@19772 573 [ -d $fs/$dir ] || mkdir -p $fs/$dir
al@19772 574 cp -a $install/$path/$module $fs/$dir
al@19772 575 done
al@19772 576 for i in $(cat $stuff/modules-$VERSION.list); do
al@19772 577 if [ $fs/lib/modules/$VERSION-slitaz/kernel/$i ]; then
al@19772 578 rm -f $fs/lib/modules/$VERSION-slitaz/kernel/$i
al@19772 579 fi
al@19772 580 done
al@19772 581 CAT="base-system|hwmon modules"
al@19772 582 PROVIDE="linux-hwmon"
al@19772 583 ;;
al@19772 584 linux-libre-input-misc)
al@19772 585 local path
al@19772 586 path=lib/modules/$VERSION-slitaz/kernel
al@19772 587 mkdir -p $fs/$path
al@19772 588 export src
al@19772 589 export _pkg
al@19772 590 $stuff/list_modules.sh drivers/input/misc | while read module; do
al@19772 591 dir=$path/$(dirname $module)
al@19772 592 [ -d $fs/$dir ] || mkdir -p $fs/$dir
al@19772 593 cp -a $install/$path/$module $fs/$dir
al@19772 594 done
al@19772 595 for i in $(cat $stuff/modules-$VERSION.list); do
al@19772 596 if [ $fs/lib/modules/$VERSION-slitaz/kernel/$i ]; then
al@19772 597 rm -f $fs/lib/modules/$VERSION-slitaz/kernel/$i
al@19772 598 fi
al@19772 599 done
al@19772 600 CAT="base-system|misc. input drivers, including the ATI RemoteWonders"
al@19772 601 PROVIDE="linux-input-misc"
al@19772 602 ;;
al@19772 603 linux-libre-input-tablet)
al@19772 604 local path
al@19772 605 path=lib/modules/$VERSION-slitaz/kernel
al@19772 606 mkdir -p $fs/$path
al@19772 607 export src
al@19772 608 export _pkg
al@19772 609 $stuff/list_modules.sh drivers/input/tablet | while read module; do
al@19772 610 dir=$path/$(dirname $module)
al@19772 611 [ -d $fs/$dir ] || mkdir -p $fs/$dir
al@19772 612 cp -a $install/$path/$module $fs/$dir
al@19772 613 done
al@19772 614 CAT="base-system|tablet input drivers"
al@19772 615 PROVIDE="linux-input-tablet"
al@19772 616 ;;
al@19772 617 linux-libre-input-touchscreen)
al@19772 618 local path
al@19772 619 path=lib/modules/$VERSION-slitaz/kernel
al@19772 620 mkdir -p $fs/$path
al@19772 621 export src
al@19772 622 export _pkg
al@19772 623 $stuff/list_modules.sh drivers/input/touchscreen | \
al@19772 624 while read module; do
al@19772 625 dir=$path/$(dirname $module)
al@19772 626 [ -d $fs/$dir ] || mkdir -p $fs/$dir
al@19772 627 cp -a $install/$path/$module $fs/$dir
al@19772 628 done
al@19772 629 for i in $(cat $stuff/modules-$VERSION.list); do
al@19772 630 if [ $fs/lib/modules/$VERSION-slitaz/kernel/$i ]; then
al@19772 631 rm -f $fs/lib/modules/$VERSION-slitaz/kernel/$i
al@19772 632 fi
al@19772 633 done
al@19772 634 CAT="base-system|touchscreen input drivers"
al@19772 635 PROVIDE="linux-input-touchscreen"
al@19772 636 ;;
al@19772 637 linux-libre-ipv6)
al@19772 638 local path
al@19772 639 path=lib/modules/$VERSION-slitaz/kernel
al@19772 640 mkdir -p $fs/$path
al@19772 641 export src
al@19772 642 export _pkg
al@19772 643 $stuff/list_modules.sh net/ipv6 | while read module; do
al@19772 644 dir=$path/$(dirname $module)
al@19772 645 [ -d $fs/$dir ] || mkdir -p $fs/$dir
al@19772 646 cp -a $install/$path/$module $fs/$dir
al@19772 647 done
al@19772 648 for i in $(cat $stuff/modules-$VERSION.list); do
al@19772 649 if [ $fs/lib/modules/$VERSION-slitaz/kernel/$i ]; then
al@19772 650 rm -f $fs/lib/modules/$VERSION-slitaz/kernel/$i
al@19772 651 fi
al@19772 652 done
al@19772 653 CAT="base-system|ipv6 modules"
al@19772 654 PROVIDE="linux-ipv6"
al@19772 655 ;;
al@19772 656 linux-libre-irda)
al@19772 657 local path
al@19772 658 path=lib/modules/$VERSION-slitaz/kernel
al@19772 659 mkdir -p $fs/$path
al@19772 660 export src
al@19772 661 export _pkg
al@19772 662 $stuff/list_modules.sh drivers/net/irda net/irda | while read module; do
al@19772 663 dir=$path/$(dirname $module)
al@19772 664 [ -d $fs/$dir ] || mkdir -p $fs/$dir
al@19772 665 cp -a $install/$path/$module $fs/$dir
al@19772 666 done
al@19772 667 CAT="base-system|irda modules"
al@19772 668 PROVIDE="linux-irda"
al@19772 669 ;;
al@19772 670 linux-libre-isdn)
al@19772 671 local path
al@19772 672 path=lib/modules/$VERSION-slitaz/kernel
al@19772 673 mkdir -p $fs/$path
al@19772 674 export src
al@19772 675 export _pkg
al@19772 676 $stuff/list_modules.sh drivers/isdn | while read module; do
al@19772 677 dir=$path/$(dirname $module)
al@19772 678 [ -d $fs/$dir ] || mkdir -p $fs/$dir
al@19772 679 cp -a $install/$path/$module $fs/$dir
al@19772 680 done
al@19772 681 for i in $(cat $stuff/modules-$VERSION.list); do
al@19772 682 if [ $fs/lib/modules/$VERSION-slitaz/kernel/$i ]; then
al@19772 683 rm -f $fs/lib/modules/$VERSION-slitaz/kernel/$i
al@19772 684 fi
al@19772 685 done
al@19772 686 CAT="base-system|isdn modules"
al@19772 687 PROVIDE="linux-isdn"
al@19772 688 ;;
al@19772 689 linux-libre-jfs)
al@19772 690 local path
al@19772 691 path=lib/modules/$VERSION-slitaz/kernel
al@19772 692 mkdir -p $fs/$path $fs/etc
al@19772 693 export src
al@19772 694 export _pkg
al@19772 695 $stuff/list_modules.sh fs/jfs | while read module; do
al@19772 696 dir=$path/$(dirname $module)
al@19772 697 [ -d $fs/$dir ] || mkdir -p $fs/$dir
al@19772 698 cp -a $install/$path/$module $fs/$dir
al@19772 699 done
al@19772 700 touch $fs/etc/filesystems
al@19772 701 CAT="base-system|jfs module"
al@19772 702 PROVIDE="linux-jfs"
al@19772 703 CONFIG_FILES="/etc/filesystems"
al@19772 704 ;;
al@19772 705 linux-libre-joystick)
al@19772 706 local path
al@19772 707 path=lib/modules/$VERSION-slitaz/kernel
al@19772 708 mkdir -p $fs/$path
al@19772 709 export src
al@19772 710 export _pkg
al@19772 711 $stuff/list_modules.sh drivers/input/joystick drivers/input/gameport \
al@19772 712 drivers/input/input-polldev.ko.gz | \
al@19772 713 while read module; do
al@19772 714 dir=$path/$(dirname $module)
al@19772 715 [ -d $fs/$dir ] || mkdir -p $fs/$dir
al@19772 716 cp -a $install/$path/$module $fs/$dir
al@19772 717 done
al@19772 718 for i in $(cat $stuff/modules-$VERSION.list); do
al@19772 719 if [ $fs/lib/modules/$VERSION-slitaz/kernel/$i ]; then
al@19772 720 rm -f $fs/lib/modules/$VERSION-slitaz/kernel/$i
al@19772 721 fi
al@19772 722 done
al@19772 723 CAT="base-system|joystick modules"
al@19772 724 PROVIDE="linux-joystick"
al@19772 725 ;;
al@19772 726 linux-libre-kvm)
al@19772 727 local path
al@19772 728 path=lib/modules/$VERSION-slitaz/kernel
al@19772 729 mkdir -p $fs/$path
al@19772 730 export src
al@19772 731 export _pkg
al@19772 732 $stuff/list_modules.sh arch/x86/kvm drivers/virtio drivers/lguest \
al@19772 733 drivers/char/hw_random/virtio-rng.ko.gz \
al@19772 734 drivers/net/virtio_net.ko.gz drivers/block/virtio_blk.ko.gz | \
al@19772 735 while read module; do
al@19772 736 dir=$path/$(dirname $module)
al@19772 737 [ -d $fs/$dir ] || mkdir -p $fs/$dir
al@19772 738 cp -a $install/$path/$module $fs/$dir
al@19772 739 done
al@19772 740 CAT="base-system|kvm and virtio modules"
al@19772 741 PROVIDE="linux-kvm"
al@19772 742 ;;
al@19772 743 linux-libre-logfs)
al@19772 744 local path
al@19772 745 path=lib/modules/$VERSION-slitaz/kernel
al@19772 746 mkdir -p $fs/$path $fs/etc
al@19772 747 export src
al@19772 748 export _pkg
al@19772 749 $stuff/list_modules.sh fs/${PACKAGE##*-} | while read module; do
al@19772 750 dir=$path/$(dirname $module)
al@19772 751 [ -d $fs/$dir ] || mkdir -p $fs/$dir
al@19772 752 cp -a $install/$path/$module $fs/$dir
al@19772 753 done
al@19772 754 touch $fs/etc/filesystems
al@19772 755 CAT="base-system|logfs module"
al@19772 756 PROVIDE="linux-logfs"
al@19772 757 CONFIG_FILES="/etc/filesystems"
al@19772 758 ;;
al@19772 759 linux-libre-md)
al@19772 760 local path
al@19772 761 path=lib/modules/$VERSION-slitaz/kernel
al@19772 762 mkdir -p $fs/$path
al@19772 763 export src
al@19772 764 export _pkg
al@19772 765 $stuff/list_modules.sh drivers/md | while read module; do
al@19772 766 case "$module" in
al@19772 767 crypto/*) continue;;
al@19772 768 esac
al@19772 769 dir=$path/$(dirname $module)
al@19772 770 [ -d $fs/$dir ] || mkdir -p $fs/$dir
al@19772 771 cp -a $install/$path/$module $fs/$dir
al@19772 772 done
al@19772 773 for i in $(cat $stuff/modules-$VERSION.list); do
al@19772 774 if [ $fs/lib/modules/$VERSION-slitaz/kernel/$i ]; then
al@19772 775 rm -f $fs/lib/modules/$VERSION-slitaz/kernel/$i
al@19772 776 fi
al@19772 777 done
al@19772 778 CAT="base-system|md modules"
al@19772 779 PROVIDE="linux-md"
al@19772 780 DEPENDS="linux-libre-crypto"
al@19772 781 ;;
al@19772 782 linux-libre-memstick)
al@19772 783 local path
al@19772 784 path=lib/modules/$VERSION-slitaz/kernel
al@19772 785 mkdir -p $fs/$path
al@19772 786 export src
al@19772 787 export _pkg
al@19772 788 $stuff/list_modules.sh drivers/memstick | while read module; do
al@19772 789 dir=$path/$(dirname $module)
al@19772 790 [ -d $fs/$dir ] || mkdir -p $fs/$dir
al@19772 791 cp -a $install/$path/$module $fs/$dir
al@19772 792 done
al@19772 793 for i in $(cat $stuff/modules-$VERSION.list); do
al@19772 794 if [ $fs/lib/modules/$VERSION-slitaz/kernel/$i ]; then
al@19772 795 rm -f $fs/lib/modules/$VERSION-slitaz/kernel/$i
al@19772 796 fi
al@19772 797 done
al@19772 798 CAT="base-system|sony memory stick modules"
al@19772 799 PROVIDE="linux-memstick"
al@19772 800 ;;
al@19772 801 linux-libre-minix)
al@19772 802 local path
al@19772 803 path=lib/modules/$VERSION-slitaz/kernel
al@19772 804 mkdir -p $fs/$path $fs/etc
al@19772 805 export src
al@19772 806 export _pkg
al@19772 807 $stuff/list_modules.sh fs/${PACKAGE##*-} | while read module; do
al@19772 808 dir=$path/$(dirname $module)
al@19772 809 [ -d $fs/$dir ] || mkdir -p $fs/$dir
al@19772 810 cp -a $install/$path/$module $fs/$dir
al@19772 811 done
al@19772 812 touch $fs/etc/filesystems
al@19772 813 CAT="base-system|minix module"
al@19772 814 PROVIDE="linux-minix"
al@19772 815 CONFIG_FILES="/etc/filesystems"
al@19772 816 ;;
al@19772 817 linux-libre-mmc)
al@19772 818 local path
al@19772 819 path=lib/modules/$VERSION-slitaz/kernel
al@19772 820 mkdir -p $fs/$path
al@19772 821 export src
al@19772 822 export _pkg
al@19772 823 $stuff/list_modules.sh drivers/mmc drivers/misc/tifm_7xx1.ko.gz drivers/misc/iwmc3200top/iwmc3200top.ko.gz| \
al@19772 824 while read module; do
al@19772 825 dir=$path/$(dirname $module)
al@19772 826 [ -d $fs/$dir ] || mkdir -p $fs/$dir
al@19772 827 cp -a $install/$path/$module $fs/$dir
al@19772 828 done
al@19772 829 for i in $(cat $stuff/modules-$VERSION.list); do
al@19772 830 if [ $fs/lib/modules/$VERSION-slitaz/kernel/$i ]; then
al@19772 831 rm -f $fs/lib/modules/$VERSION-slitaz/kernel/$i
al@19772 832 fi
al@19772 833 done
al@19772 834 CAT="base-system|mmc modules - card reader"
al@19772 835 PROVIDE="linux-mmc"
al@19772 836 ;;
al@19772 837 linux-libre-module-headers)
al@19772 838 CAT="development|header files and scripts for building modules for Linux Libre kernel"
al@19772 839 PROVIDE="linux-module-headers"
al@19772 840 DEPENDS="slitaz-toolchain"
al@19772 841 KVERSION=$VERSION-slitaz
al@19772 842
al@19772 843 local path
al@19772 844 _AUFSVER=`grep ^VERSION= $WOK/aufs/receipt | cut -d "=" -f2 | sed -e 's/"//g'`
al@19772 845 AUFSDIR="$WOK/$WANTED/aufs-${_AUFSVER}"
al@19772 846 path=usr/src/linux-$KVERSION
al@19772 847 mkdir -p $fs/lib/modules/$KVERSION
al@19772 848 ln -sf /$path $fs/lib/modules/$KVERSION/build
al@19772 849 install -D -m644 $src/Makefile \
al@19772 850 $fs/$path/Makefile
al@19772 851 install -D -m644 $src/kernel/Makefile \
al@19772 852 $fs/$path/kernel/Makefile
al@19772 853 install -D -m644 $src/.config \
al@19772 854 $fs/$path/.config
al@19772 855 mkdir -p $fs/$path/include
al@19772 856
al@19772 857 for i in acpi asm-generic config generated linux math-emu media net pcmcia scsi sound trace video xen; do
al@19772 858 cp -a $src/include/$i $fs/$path/include/
al@19772 859 done
al@19772 860
al@19772 861 # copy arch includes for external modules
al@19772 862 mkdir -p $fs/$path/arch/x86
al@19772 863 cp -a $src/arch/x86/include $fs/$path/arch/x86/
al@19772 864
al@19772 865 # copy files necessary for later builds, like nvidia and vmware
al@19772 866 cp -a $src/Module.symvers-modules $fs/$path/Module.symvers
al@19772 867 cp -a $src/scripts $fs/$path
al@19772 868 # fix permissions on scripts dir
al@19772 869 chmod og-w -R $fs/$path/scripts
al@19772 870 mkdir -p $fs/$path/.tmp_versions
al@19772 871
al@19772 872 mkdir -p $fs/$path/arch/x86/kernel
al@19772 873 cp -a $src/arch/x86/Makefile $fs/$path/arch/x86/
al@19772 874 cp -a $src/arch/x86/Makefile_32.cpu $fs/$path/arch/x86/
al@19772 875 cp -a $src/arch/x86/kernel/asm-offsets.s $fs/$path/arch/x86/kernel/
al@19772 876
al@19772 877 # add headers for lirc package
al@19772 878 mkdir -p $fs/$path/drivers/media/video
al@19772 879 cp -a $src/drivers/media/video/*.h $fs/$path/drivers/media/video/
al@19772 880
al@19772 881 for i in bt8xx cpia2 cx25840 cx88 em28xx et61x251 pwc saa7134 sn9c102 usbvideo ; do
al@19772 882 mkdir -p $fs/$path/drivers/media/video/$i
al@19772 883 cp -a $src/drivers/media/video/$i/*.h $fs/$path/drivers/media/video/$i
al@19772 884 done
al@19772 885
al@19772 886 # add docbook makefile
al@19772 887 install -D -m644 $src/Documentation/DocBook/Makefile \
al@19772 888 $fs/$path/Documentation/DocBook/Makefile
al@19772 889
al@19772 890 # add dm headers
al@19772 891 mkdir -p $fs/$path/drivers/md
al@19772 892 cp -a $src/drivers/md/*.h $fs/$path/drivers/md
al@19772 893
al@19772 894 # add inotify.h
al@19772 895 mkdir -p $fs/$path/include/linux
al@19772 896 cp -a $src/include/linux/inotify.h $fs/$path/include/linux/
al@19772 897
al@19772 898 # add wireless headers
al@19772 899 mkdir -p $fs/$path/net/mac80211/
al@19772 900 cp -a $src/net/mac80211/*.h $fs/$path/net/mac80211/
al@19772 901
al@19772 902 # add dvb headers for external modules
al@19772 903 # in reference to:
al@19772 904 # http://bugs.archlinux.org/task/9912
al@19772 905 mkdir -p $fs/$path/drivers/media/dvb/dvb-core
al@19772 906 cp -a $src/drivers/media/dvb/dvb-core/*.h $fs/$path/drivers/media/dvb/dvb-core/
al@19772 907
al@19772 908 # add dvb headers for external modules
al@19772 909 # in reference to:
al@19772 910 # http://bugs.archlinux.org/task/11194
al@19772 911 if [ -d $src/include/config/dvb/ ]; then
al@19772 912 mkdir -p $fs/$path/include/config/dvb/
al@19772 913 cp $src/include/config/dvb/*.h $fs/$path/include/config/dvb/
al@19772 914 fi
al@19772 915
al@19772 916 # add dvb headers for http://mcentral.de/hg/~mrec/em28xx-new
al@19772 917 # in reference to:
al@19772 918 # http://bugs.archlinux.org/task/13146
al@19772 919 mkdir -p $fs/$path/drivers/media/dvb/frontends/
al@19772 920 cp -a $src/drivers/media/dvb/frontends/lgdt330x.h $fs/$path/drivers/media/dvb/frontends/
al@19772 921 cp -a $src/drivers/media/video/msp3400-driver.h $fs/$path/drivers/media/dvb/frontends/
al@19772 922
al@19772 923 # add dvb headers
al@19772 924 # in reference to:
al@19772 925 # http://bugs.archlinux.org/task/20402
al@19772 926 mkdir -p $fs/$path/drivers/media/dvb/dvb-usb
al@19772 927 cp -a $src/drivers/media/dvb/dvb-usb/*.h $fs/$path/drivers/media/dvb/dvb-usb/
al@19772 928 mkdir -p $fs/$path/drivers/media/dvb/frontends
al@19772 929 cp -a $src/drivers/media/dvb/frontends/*.h $fs/$path/drivers/media/dvb/frontends/
al@19772 930 mkdir -p $fs/$path/drivers/media/common/tuners
al@19772 931 cp -a $src/drivers/media/common/tuners/*.h $fs/$path/drivers/media/common/tuners/
al@19772 932
al@19772 933 # add xfs and shmem for aufs building
al@19772 934 mkdir -p $fs/$path/fs/xfs
al@19772 935 mkdir -p $fs/$path/mm
al@19772 936 cp -a $src/fs/xfs/xfs_sb.h $fs/$path/fs/xfs/xfs_sb.h
al@19772 937
al@19772 938 # add headers vor virtualbox
al@19772 939 # in reference to:
al@19772 940 # http://bugs.archlinux.org/task/14568
al@19772 941 cp -a $src/include/drm $fs/$path/include/
al@19772 942
al@19772 943 # add headers for broadcom wl
al@19772 944 # in reference to:
al@19772 945 # http://bugs.archlinux.org/task/14568
al@19772 946 cp -a $src/include/trace $fs/$path/include/
al@19772 947 # add headers for crypto modules
al@19772 948 # in reference to:
al@19772 949 # http://bugs.archlinux.org/task/22081
al@19772 950 cp -a $src/include/crypto $fs/$path/include/
al@19772 951 # copy in Kconfig files
al@19772 952 for i in $(find . -name "Kconfig*"); do
al@19772 953 mkdir -p $fs/$path/$(echo $i | sed 's|/Kconfig.*||')
al@19772 954 cp -a $src/$i $fs/$path/$i
al@19772 955 done
al@19772 956
al@19772 957 chown -R root.root $fs/$path
al@19772 958 find $fs/$path -type d -exec chmod 755 {} \;
al@19772 959 # remove unneeded architectures
al@19772 960 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 961 ;;
al@19772 962 linux-libre-mwave)
al@19772 963 local path
al@19772 964 path=lib/modules/$VERSION-slitaz/kernel
al@19772 965 mkdir -p $fs/$path
al@19772 966 export src
al@19772 967 export _pkg
al@19772 968 $stuff/list_modules.sh drivers/char/mwave | while read module; do
al@19772 969 dir=$path/$(dirname $module)
al@19772 970 [ -d $fs/$dir ] || mkdir -p $fs/$dir
al@19772 971 cp -a $install/$path/$module $fs/$dir
al@19772 972 done
al@19772 973 CAT="base-system|ACP Modem driver module - for IBM Thinkpad"
al@19772 974 PROVIDE="linux-mwave"
al@19772 975 ;;
al@19772 976 linux-libre-nbd)
al@19772 977 local path
al@19772 978 path=lib/modules/$VERSION-slitaz/kernel
al@19772 979 mkdir -p $fs/$path
al@19772 980 export src
al@19772 981 export _pkg
al@19772 982 $stuff/list_modules.sh drivers/block/nbd.ko.gz | \
al@19772 983 while read module; do
al@19772 984 dir=$path/$(dirname $module)
al@19772 985 [ -d $fs/$dir ] || mkdir -p $fs/$dir
al@19772 986 cp -a $install/$path/$module $fs/$dir
al@19772 987 done
al@19772 988 CAT="base-system|network block device modules"
al@19772 989 PROVIDE="linux-nbd"
al@19772 990 ;;
al@19772 991 linux-libre-ncpfs)
al@19772 992 local path
al@19772 993 path=lib/modules/$VERSION-slitaz/kernel
al@19772 994 mkdir -p $fs/$path $fs/etc
al@19772 995 export src
al@19772 996 export _pkg
al@19772 997 $stuff/list_modules.sh fs/ncpfs | while read module; do
al@19772 998 dir=$path/$(dirname $module)
al@19772 999 [ -d $fs/$dir ] || mkdir -p $fs/$dir
al@19772 1000 cp -a $install/$path/$module $fs/$dir
al@19772 1001 done
al@19772 1002 touch $fs/etc/filesystems
al@19772 1003 CAT="base-system|ncpfs module"
al@19772 1004 PROVIDE="linux-ncpfs"
al@19772 1005 CONFIG_FILES="/etc/filesystems"
al@19772 1006 ;;
al@19772 1007 linux-libre-netfilter)
al@19772 1008 local path
al@19772 1009 path=lib/modules/$VERSION-slitaz/kernel
al@19772 1010 mkdir -p $fs/$path
al@19772 1011 export src
al@19772 1012 export _pkg
al@19772 1013 $stuff/list_modules.sh net/netfilter net/ipv4/netfilter net/8021q | \
al@19772 1014 while read module; do
al@19772 1015 dir=$path/$(dirname $module)
al@19772 1016 [ -d $fs/$dir ] || mkdir -p $fs/$dir
al@19772 1017 cp -a $install/$path/$module $fs/$dir
al@19772 1018 done
al@19772 1019 rm -r $fs/$path/net/ipv6
al@19772 1020 for i in $(cat $stuff/modules-$VERSION.list); do
al@19772 1021 if [ $fs/lib/modules/$VERSION-slitaz/kernel/$i ]; then
al@19772 1022 rm -f $fs/lib/modules/$VERSION-slitaz/kernel/$i
al@19772 1023 fi
al@19772 1024 done
al@19772 1025 CAT="base-system|netfilter modules"
al@19772 1026 PROVIDE="linux-netfilter"
al@19772 1027 ;;
al@19772 1028 linux-libre-nfsd)
al@19772 1029 local path
al@19772 1030 path=lib/modules/$VERSION-slitaz/kernel
al@19772 1031 mkdir -p $fs/$path $fs/etc
al@19772 1032 export src
al@19772 1033 export _pkg
al@19772 1034 $stuff/list_modules.sh fs/nfsd | while read module; do
al@19772 1035 dir=$path/$(dirname $module)
al@19772 1036 [ -d $fs/$dir ] || mkdir -p $fs/$dir
al@19772 1037 cp -a $install/$path/$module $fs/$dir
al@19772 1038 done
al@19772 1039 touch $fs/etc/filesystems
al@19772 1040 CAT="base-system|NFS server module"
al@19772 1041 PROVIDE="linux-nfsd"
al@19772 1042 CONFIG_FILES="/etc/filesystems"
al@19772 1043 ;;
al@19772 1044 linux-libre-reiserfs)
al@19772 1045 local path
al@19772 1046 path=lib/modules/$VERSION-slitaz/kernel
al@19772 1047 mkdir -p $fs/$path $fs/etc
al@19772 1048 export src
al@19772 1049 export _pkg
al@19772 1050 $stuff/list_modules.sh fs/reiserfs | while read module; do
al@19772 1051 dir=$path/$(dirname $module)
al@19772 1052 [ -d $fs/$dir ] || mkdir -p $fs/$dir
al@19772 1053 cp -a $install/$path/$module $fs/$dir
al@19772 1054 done
al@19772 1055 touch $fs/etc/filesystems
al@19772 1056 CAT="base-system|reiserfs module"
al@19772 1057 PROVIDE="linux-reiserfs"
al@19772 1058 CONFIG_FILES="/etc/filesystems"
al@19772 1059 ;;
al@19772 1060 linux-libre-sched)
al@19772 1061 local path
al@19772 1062 path=lib/modules/$VERSION-slitaz/kernel
al@19772 1063 mkdir -p $fs/$path
al@19772 1064 export src
al@19772 1065 export _pkg
al@19772 1066 $stuff/list_modules.sh net/sched | while read module; do
al@19772 1067 dir=$path/$(dirname $module)
al@19772 1068 [ -d $fs/$dir ] || mkdir -p $fs/$dir
al@19772 1069 cp -a $install/$path/$module $fs/$dir
al@19772 1070 done
al@19772 1071 CAT="base-system|sched modules"
al@19772 1072 PROVIDE="linux-sched"
al@19772 1073 ;;
al@19772 1074 linux-libre-scsi)
al@19772 1075 local path
al@19772 1076 path=lib/modules/$VERSION-slitaz/kernel
al@19772 1077 mkdir -p $fs/$path
al@19772 1078 export src
al@19772 1079 export _pkg
al@19772 1080 $stuff/list_modules.sh drivers/scsi | while read module; do
al@19772 1081 dir=$path/$(dirname $module)
al@19772 1082 [ -d $fs/$dir ] || mkdir -p $fs/$dir
al@19772 1083 cp -a $install/$path/$module $fs/$dir
al@19772 1084 done
al@19772 1085 CAT="base-system|scsi modules"
al@19772 1086 PROVIDE="linux-scsi"
al@19772 1087 ;;
al@19772 1088 linux-libre-sound)
al@19772 1089 local path
al@19772 1090 path=lib/modules/$VERSION-slitaz/kernel
al@19772 1091 mkdir -p $fs/$path
al@19772 1092 export src
al@19772 1093 export _pkg
al@19772 1094 $stuff/list_modules.sh sound | while read module; do
al@19772 1095 dir=$path/$(dirname $module)
al@19772 1096 [ -d $fs/$dir ] || mkdir -p $fs/$dir
al@19772 1097 cp -a $install/$path/$module $fs/$dir
al@19772 1098 done
al@19772 1099 mkdir $fs/lib/firmware
al@19772 1100 # non-free firmware ?
al@19772 1101 #for i in ess korg sun yamaha; do
al@19772 1102 # cp -a $install/lib/firmware/$i $fs/lib/firmware
al@19772 1103 #done
al@19772 1104 for i in $(cat $stuff/modules-$VERSION.list); do
al@19772 1105 if [ $fs/lib/modules/$VERSION-slitaz/kernel/$i ]; then
al@19772 1106 rm -f $fs/lib/modules/$VERSION-slitaz/kernel/$i
al@19772 1107 fi
al@19772 1108 done
al@19772 1109 CAT="base-system|sound modules"
al@19772 1110 PROVIDE="linux-sound"
al@19772 1111 ;;
al@19772 1112 linux-libre-source)
al@19772 1113 local _AUFSVER=`grep ^VERSION= $WOK/aufs/receipt | cut -d "=" -f2 | sed -e 's/"//g'`
al@19772 1114 local AUFSDIR="aufs-${_AUFSVER}"
al@19772 1115 mkdir -p $fs/usr/src/kernel-patches \
al@19772 1116 $fs/lib/modules/$VERSION-slitaz \
al@19772 1117 $fs/usr/bin
al@19772 1118 cp -a $WOK/$WANTED/slitaz $fs/usr/src/kernel-patches
al@19772 1119 cp -a $stuff/source/buildtaz $fs/usr/src/kernel-patches/slitaz
al@19772 1120 cp -a $stuff/source/make-tazpkg.u $fs/usr/src/kernel-patches/slitaz
al@19772 1121 cp -a $stuff/source/get-linux-source $fs/usr/bin
al@19772 1122 sed -i "s|=XXX|=$VERSION|g" $fs/usr/bin/get-linux-source
al@19772 1123 # Copy Aufs2 source files
al@19772 1124 if [ -d $WOK/$WANTED/$AUFSDIR ]; then
al@19772 1125 mkdir $fs/usr/src/kernel-patches/slitaz/aufs2
al@19772 1126 cp -a $WOK/$WANTED/$AUFSDIR/Documentation \
al@19772 1127 $WOK/$WANTED/$AUFSDIR/fs $WOK/$WANTED/$AUFSDIR/include \
al@19772 1128 $fs/usr/src/kernel-patches/slitaz/aufs2
al@19772 1129 fi
al@19772 1130 ln -s /usr/src/linux-$VERSION \
al@19772 1131 $fs/lib/modules/$VERSION-slitaz/source
al@19772 1132 CAT="development|source files"
al@19772 1133 PROVIDE="linux-source"
al@19772 1134 DEPENDS="linux-libre slitaz-toolchain ncurses-dev perl"
al@19772 1135 ;;
al@19772 1136 linux-libre-speakup)
al@19772 1137 local path
al@19772 1138 path=lib/modules/$VERSION-slitaz/kernel
al@19772 1139 mkdir -p $fs/$path
al@19772 1140 export src
al@19772 1141 export _pkg
al@19772 1142 $stuff/list_modules.sh drivers/staging/speakup | while read module; do
al@19772 1143 dir=$path/$(dirname $module)
al@19772 1144 [ -d $fs/$dir ] || mkdir -p $fs/$dir
al@19772 1145 cp -a $install/$path/$module $fs/$dir
al@19772 1146 done
al@19772 1147 for i in $(cat $stuff/modules-$VERSION.list); do
al@19772 1148 if [ $fs/lib/modules/$VERSION-slitaz/kernel/$i ]; then
al@19772 1149 rm -f $fs/lib/modules/$VERSION-slitaz/kernel/$i
al@19772 1150 fi
al@19772 1151 done
al@19772 1152 CAT="base-system|Speakup modules"
al@19772 1153 PROVIDE="linux-speakup"
al@19772 1154 ;;
al@19772 1155 linux-libre-squashfs)
al@19772 1156 local path
al@19772 1157 path=lib/modules/$VERSION-slitaz/kernel
al@19772 1158 mkdir -p $fs/$path $fs/etc
al@19772 1159 export src
al@19772 1160 export _pkg
al@19772 1161 $stuff/list_modules.sh fs/squashfs | while read module; do
al@19772 1162 dir=$path/$(dirname $module)
al@19772 1163 [ -d $fs/$dir ] || mkdir -p $fs/$dir
al@19772 1164 cp -a $install/$path/$module $fs/$dir
al@19772 1165 done
al@19772 1166 touch $fs/etc/filesystems
al@19772 1167 CAT="base-system|squashfs module"
al@19772 1168 PROVIDE="linux-squashfs squashfs-module"
al@19772 1169 CONFIG_FILES="/etc/filesystems"
al@19772 1170 ;;
al@19772 1171 linux-libre-toshiba)
al@19772 1172 # Modules paths and list
al@19772 1173 MOD_PATH="lib/modules/$VERSION-slitaz/kernel"
al@19772 1174 MODULES="drivers/char/toshiba.ko.gz"
al@19772 1175 mkdir -p ${fs}${MOD_PATH}
al@19772 1176 for module in $MODULES; do
al@19772 1177 dir=$MOD_PATH/$(dirname $module)
al@19772 1178 [ -d $fs/$dir ] || mkdir -p $fs/$dir
al@19772 1179 cp -a $install/$MOD_PATH/$module $fs/$dir
al@19772 1180 done
al@19772 1181 CAT="base-system|toshiba module"
al@19772 1182 PROVIDE="linux-toshiba"
al@19772 1183 ;;
al@19772 1184 linux-libre-udf)
al@19772 1185 local path
al@19772 1186 path=lib/modules/$VERSION-slitaz/kernel
al@19772 1187 mkdir -p $fs/$path $fs/etc
al@19772 1188 export src
al@19772 1189 export _pkg
al@19772 1190 $stuff/list_modules.sh fs/udf | while read module; do
al@19772 1191 dir=$path/$(dirname $module)
al@19772 1192 [ -d $fs/$dir ] || mkdir -p $fs/$dir
al@19772 1193 cp -a $install/$path/$module $fs/$dir
al@19772 1194 done
al@19772 1195 touch $fs/etc/filesystems
al@19772 1196 for i in $(cat $stuff/modules-$VERSION.list); do
al@19772 1197 if [ $fs/lib/modules/$VERSION-slitaz/kernel/$i ]; then
al@19772 1198 rm -f $fs/lib/modules/$VERSION-slitaz/kernel/$i
al@19772 1199 fi
al@19772 1200 done
al@19772 1201 CAT="base-system|udf module"
al@19772 1202 PROVIDE="linux-udf"
al@19772 1203 CONFIG_FILES="/etc/filesystems"
al@19772 1204 ;;
al@19772 1205 linux-libre-usbdsl)
al@19772 1206 local path
al@19772 1207 path=lib/modules/$VERSION-slitaz/kernel
al@19772 1208 mkdir -p $fs/$path
al@19772 1209 export src
al@19772 1210 export _pkg
al@19772 1211 $stuff/list_modules.sh drivers/usb/atm net/atm | \
al@19772 1212 while read module; do
al@19772 1213 dir=$path/$(dirname $module)
al@19772 1214 [ -d $fs/$dir ] || mkdir -p $fs/$dir
al@19772 1215 cp -a $install/$path/$module $fs/$dir
al@19772 1216 done
al@19772 1217 CAT="base-system|usb dsl modem modules"
al@19772 1218 PROVIDE="linux-usbdsl"
al@19772 1219 ;;
al@19772 1220 linux-libre-usbip)
al@19772 1221 local path
al@19772 1222 path=lib/modules/$VERSION-slitaz/kernel
al@19772 1223 mkdir -p $fs/$path
al@19772 1224 export src
al@19772 1225 export _pkg
al@19772 1226 $stuff/list_modules.sh drivers/staging/usbip | while read module; do
al@19772 1227 dir=$path/$(dirname $module)
al@19772 1228 [ -d $fs/$dir ] || mkdir -p $fs/$dir
al@19772 1229 cp -a $install/$path/$module $fs/$dir
al@19772 1230 done
al@19772 1231 CAT="base-system|usbip module"
al@19772 1232 PROVIDE="linux-usbip usbip-module"
al@19772 1233 ;;
al@19772 1234 linux-libre-usb-misc)
al@19772 1235 local path
al@19772 1236 path=lib/modules/$VERSION-slitaz/kernel
al@19772 1237 mkdir -p $fs/$path
al@19772 1238 export src
al@19772 1239 export _pkg
al@19772 1240 $stuff/list_modules.sh drivers/usb/misc | while read module; do
al@19772 1241 dir=$path/$(dirname $module)
al@19772 1242 [ -d $fs/$dir ] || mkdir -p $fs/$dir
al@19772 1243 cp -a $install/$path/$module $fs/$dir
al@19772 1244 done
al@19772 1245 CAT="base-system|misc. USB drivers, including the Lego USB tower"
al@19772 1246 PROVIDE="linux-usb-misc"
al@19772 1247 ;;
al@19772 1248 linux-libre-uwb)
al@19772 1249 local path
al@19772 1250 path=lib/modules/$VERSION-slitaz/kernel
al@19772 1251 mkdir -p $fs/$path
al@19772 1252 export src
al@19772 1253 export _pkg
al@19772 1254 $stuff/list_modules.sh drivers/uwb drivers/usb/wusbcore \
al@19772 1255 drivers/usb/host/whci | while read module; do
al@19772 1256 dir=$path/$(dirname $module)
al@19772 1257 [ -d $fs/$dir ] || mkdir -p $fs/$dir
al@19772 1258 cp -a $install/$path/$module $fs/$dir
al@19772 1259 done
al@19772 1260 CAT="base-system|uwb modules"
al@19772 1261 PROVIDE="linux-uwb"
al@19772 1262 ;;
al@19772 1263 linux-libre-video)
al@19772 1264 # Modules paths and list
al@19772 1265 MOD_PATH="lib/modules/$VERSION-slitaz/kernel"
al@19772 1266 MODULES="drivers/video/backlight/lcd.ko.gz
al@19772 1267 drivers/video/backlight/generic_bl.ko.gz
al@19772 1268 drivers/gpio/bt8xxgpio.ko.gz"
al@19772 1269 mkdir -p ${fs}${MOD_PATH}
al@19772 1270 for module in $MODULES; do
al@19772 1271 dir=$MOD_PATH/$(dirname $module)
al@19772 1272 [ -d $fs/$dir ] || mkdir -p $fs/$dir
al@19772 1273 cp -a $install/$MOD_PATH/$module $fs/$dir
al@19772 1274 done
al@19772 1275 CAT="base-system|video modules"
al@19772 1276 PROVIDE="linux-video"
al@19772 1277 ;;
al@19772 1278 linux-libre-wimax)
al@19772 1279 local path
al@19772 1280 path=lib/modules/$VERSION-slitaz/kernel
al@19772 1281 mkdir -p $fs/$path
al@19772 1282 export src
al@19772 1283 export _pkg
al@19772 1284 $stuff/list_modules.sh drivers/net/wimax net/wimax | while read module; do
al@19772 1285 dir=$path/$(dirname $module)
al@19772 1286 [ -d $fs/$dir ] || mkdir -p $fs/$dir
al@19772 1287 cp -a $install/$path/$module $fs/$dir
al@19772 1288 done
al@19772 1289 for i in $(cat $stuff/modules-$VERSION.list); do
al@19772 1290 if [ $fs/lib/modules/$VERSION-slitaz/kernel/$i ]; then
al@19772 1291 rm -f $fs/lib/modules/$VERSION-slitaz/kernel/$i
al@19772 1292 fi
al@19772 1293 done
al@19772 1294 CAT="base-system|wimax modules"
al@19772 1295 PROVIDE="linux-wimax"
al@19772 1296 ;;
al@19772 1297 linux-libre-wireless)
al@19772 1298 local path
al@19772 1299 path=lib/modules/$VERSION-slitaz/kernel
al@19772 1300 mkdir -p $fs/$path
al@19772 1301 export src
al@19772 1302 export _pkg
al@19772 1303 $stuff/list_modules.sh drivers/net/wireless drivers/staging/wlan-ng \
al@19772 1304 drivers/staging/rt2860 drivers/staging/rt2870 drivers/staging/echo \
al@19772 1305 drivers/leds net/wireless net/mac80211 drivers/staging/rtl8192e/r8192e_pci.ko.gz \
al@19772 1306 drivers/staging/rtl8187se/r8187se.ko.gz \
al@19772 1307 drivers/staging/rtl8192u/r8192u_usb.ko.gz drivers/staging/crystalhd/crystalhd.ko.gz \
al@19772 1308 drivers/staging/sm7xx/sm7xx.ko.gz | while read module; do
al@19772 1309 dir=$path/$(dirname $module)
al@19772 1310 [ -d $fs/$dir ] || mkdir -p $fs/$dir
al@19772 1311 cp -a $install/$path/$module $fs/$dir
al@19772 1312 done
al@19772 1313 for i in $(cat $stuff/modules-$VERSION.list); do
al@19772 1314 if [ $fs/lib/modules/$VERSION-slitaz/kernel/$i ]; then
al@19772 1315 rm -f $fs/lib/modules/$VERSION-slitaz/kernel/$i
al@19772 1316 fi
al@19772 1317 done
al@19772 1318 CAT="base-system|wireless modules"
al@19772 1319 PROVIDE="linux-wireless"
al@19772 1320 DEPENDS="linux-libre-crypto wireless_tools"
al@19772 1321 ;;
al@19772 1322 linux-libre-without-modules)
al@19772 1323 mkdir -p $fs/boot
al@19772 1324 cp -a $install/bzImage $fs/boot/vmlinuz-$VERSION-slitaz-without-modules
al@19772 1325 CAT="base-system|without module support"
al@19772 1326 PROVIDE="linux-without-modules"
al@19772 1327 ;;
al@20456 1328 lguest-libre)
al@20456 1329 mkdir -p $fs/usr/sbin
al@20456 1330 cp $src/Documentation/lguest/lguest $fs/usr/sbin
al@20456 1331 CAT="base-system|paravirtualization tool"
al@20456 1332 PROVIDE="lguest"
al@20456 1333 ;;
al@19772 1334 esac
gokhlayeh@9257 1335 }
gokhlayeh@9257 1336
gokhlayeh@9257 1337 # Pre and post install commands for Tazpkg.
al@19772 1338 post_install_linux_libre()
gokhlayeh@9257 1339 {
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@18741 1343 root_dev=$(cat "$1/boot/grub/menu.lst" | grep root= | sed 's/.*root=\([^ ]*\).*/\1/' | head -n 1)
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 }