mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
688 B

  1. # special adaptions for the epia target
  2. echo_status "Customizing for LiveCD Target ..."
  3. [ -e $confdir/$pkg.conf ] && . $confdir/$pkg.conf
  4. extract_squashfspatch() {
  5. my_ver=`echo ${vanilla_ver} | sed -e 's,^\(2\.[46]\.[0-9]*\)\(\..*\)$,\1,'`
  6. if [ "${my_ver:0:3}" == "2.4" ] ; then
  7. echo "SquashFS does no longer support 2.4.x Linux Kernels!"
  8. exit 1
  9. fi
  10. [ "${my_ver:0:3}" == "2.6" ] && my_ver=2.6.20
  11. tar --use-compress-program=bzip2 -xOf $base/download/mirror/s/squashfs3.2-r2.tar.bz2 \
  12. squashfs3.2-r2/kernel-patches/linux-${my_ver}/squashfs3.2-patch > $archdir/squashfs3.2.patch
  13. }
  14. hook_add prepatch 1 extract_squashfspatch
  15. var_append patchfiles " " "$archdir/squashfs3.2.patch"