LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1102|回复: 5

aufs2-standalone.patch到哪里找呀

[复制链接]
发表于 2009-5-11 08:55:30 | 显示全部楼层 |阅读模式
  1. patching file virt/kvm/ioapic.c
  2. patching file virt/kvm/irq_comm.c
  3. patching file virt/kvm/kvm_main.c
  4. patch: **** Can't open patch file /home/summer/share/aur/kernel26-archlive-2.6.29.3-1/src/aufs2-standalone/aufs2-standalone.patch : No such file or directory
复制代码
发表于 2009-5-11 09:15:28 | 显示全部楼层
git clone http://git.c3sl.ufpr.br/pub/scm/aufs/aufs2-standalone.git
  cd aufs2-standalone
  git checkout origin/aufs2-29

就得到src/aufs2-standalone/aufs2-standalone.patch


你那里无法连http://git.c3sl.ufpr.br/pub/scm/aufs/aufs2-standalone.git么?

俺的PKGBUILD详情:
  1. # Maintainer: carbonjiao <http://archlive-pkg.googlecode.com> <http://archlive.googlecode.com>
  2. pkgname=kernel26-archlive
  3. _realpkgname=kernel26
  4. # pkgname=kernel26-custom # Build kernel with a different name
  5. _kernelname=${_realpkgname#kernel26}
  6. _basekernel=2.6.29
  7. pkgver=${_basekernel}.3
  8. pkgrel=1
  9. _patchname="patch-${pkgver}-1-ARCH"
  10. pkgdesc="Archlive内核及模块,加入了kernel官方补丁、gentoo官方补丁、UTF-8中文补丁、reiser4补丁、aircrack-ng补丁及tuxonice-3.0.1补丁."
  11. #pkgdesc="Kernel configs for Archlive, with Gentoo patch set, fbcondecor patch, Chinese fonts patch, \
  12. #           and reiser4 patch, aufs2 patch, aircrack-ng patch, also with tuxonice-3.0 patch set."
  13. arch=(i686 x86_64)
  14. license=('GPL2')
  15. provides=('kernel26=2.6.29')
  16. groups=('base' 'archlive-pkg')
  17. url="http://www.kernel.org"
  18. backup=(etc/mkinitcpio.d/${_realpkgname}.preset)
  19. depends=('coreutils' 'kernel26-firmware>=2.6.29' 'module-init-tools' 'mkinitcpio>=0.5.20')
  20. # pwc, ieee80211 and hostap-driver26 modules are included in kernel26 now
  21. # nforce package support was abandoned by nvidia, kernel modules should cover everything now.
  22. # kernel24 support is dropped since glibc24
  23. conflicts=('aufs')
  24. replaces=('kernel24' 'kernel24-scsi' 'kernel26-scsi' 'kernel26'
  25.           'alsa-driver' 'ieee80211' 'hostap-driver26'
  26.           'pwc' 'nforce' 'squashfs' 'unionfs' 'ivtv'
  27.           'zd1211' 'kvm-modules' 'iwlwifi' 'rt2x00-cvs'
  28.           'gspcav1' 'atl2' 'wlan-ng26' 'aufs')
  29. install=kernel26.install
  30. source=(
  31. http://www.cn.kernel.org/pub/linux/kernel/v2.6/linux-$_basekernel.tar.bz2
  32. #http://www.kernel.org/pub/linux/kernel/v2.6/linux-$_basekernel.tar.bz2
  33.         ### kernel 官方补丁
  34. #http://www.cn.kernel.org/pub/linux/kernel/v2.6/patch-${pkgver}.bz2
  35. http://www.kernel.org/pub/linux/kernel/v2.6/patch-${pkgver}.bz2
  36.        ### Arch 官方补丁
  37. #ftp://ftp.archlinux.org/other/kernel26/${_patchname}.bz2
  38.        ### tuxonice patch
  39. http://www.tuxonice.net/downloads/all/tuxonice-3.0.1-for-2.6.29.patch.bz2
  40.        ### gentoo patches
  41. #http://dev.gentoo.org/~dsd/genpatches/trunk/${_basekernel}/4100_dm-bbr.patch
  42. #http://dev.gentoo.org/~dsd/genpatches/trunk/${_basekernel}/4200_fbcondecor-0.9.4.patch
  43. #http://dev.gentoo.org/~dsd/genpatches/trunk/${_basekernel}/4400_alpha-sysctl-uac.patch  
  44. 4100_dm-bbr.patch  4200_fbcondecor-0.9.4.patch 4400_alpha-sysctl-uac.patch
  45.         ### sidux补丁
  46. http://svn.berlios.de/svnroot/repos/fullstory/linux-sidux-2.6/tags/2.6.29-7/debian/patches/bugfix/ext4-flush-on-close.patch
  47. #http://svn.berlios.de/svnroot/repos/fullstory/linux-sidux-2.6/tags/2.6.29-7/debian/patches/features/aufs2-20090322.diff
  48.   http://svn.berlios.de/svnroot/repos/fullstory/linux-sidux-2.6/tags/2.6.29-9/debian/patches/bugfix/ath5k_fix-off-by-one-in-gpio-checks.diff
  49.   http://svn.berlios.de/svnroot/repos/fullstory/linux-sidux-2.6/tags/2.6.29-9/debian/patches/bugfix/ath5k_protect-reset-sequence-by-a-spinlock.diff
  50.         ### reiser4 补丁
  51. http://www.kernel.org/pub/linux/kernel/people/edward/reiser4/reiser4-for-2.6/reiser4-for-2.6.29.patch.gz
  52.         ### unionfs补丁
  53. #http://download.filesystems.org/unionfs/unionfs-2.x/unionfs-2.5.1_for_2.6.29-rc2.diff.gz
  54. squashfs3.4-include.patch
  55. http://nchc.dl.sourceforge.net/sourceforge/ibm-acpi/thinkpad-acpi-0.22-20090318-BETA_v2.6.29.patch.gz
  56.      ### aircrack-ng patches
  57. #http://patches.aircrack-ng.org/mac80211_2.6.28-rc4-wl_frag+ack_v3.patch
  58. #http://patches.aircrack-ng.org/ath5k-injection-2.6.27-rc2.patch
  59. #http://patches.aircrack-ng.org/ath5k-frequency-chaos-2.6.28.patch
  60. #http://patches.aircrack-ng.org/ieee80211_inject-2.6.22.patch
  61. #http://patches.aircrack-ng.org/rtl8187-mac80211-injection-speed-2.6.28-wl.patch
  62. #http://patches.aircrack-ng.org/rtl8187_hw_signal_backport_2.6.28.patch
  63. #http://patches.aircrack-ng.org/zd1211rw_inject_2.6.26.patch
  64. #http://patches.aircrack-ng.org/hostap-kernel-2.6.18.patch
  65. mac80211_2.6.29-2.6.28-rc8-wl_frag+ack_radiotap.patch
  66. ath5k-injection-2.6.27-rc2.patch  ath5k-frequency-chaos-2.6.28.patch
  67. #ath5k-pass-failed-crc.patch  #ath5k-radiotap-fragfix-2.6.29.patch
  68. b43-injection-2.6.29-wl.patch  #ieee80211_inject-2.6.22.patch  
  69. rtl8187-mac80211-injection-speed-2.6.28-wl.patch  
  70. #rtl8187_hw_signal_backport_2.6.28.patch
  71. zd1211rw_inject_2.6.26.patch      hostap-kernel-2.6.18.patch
  72. ### Fastboot 提供的补丁
  73.   0001-kernel-trace-open.patch
  74. ### Archpwn 提供的补丁
  75. openlog.patch    ecryptfs.patch
  76. ### 孙海勇 大侠的 内核中文补丁  http://youbest.cublog.cn/
  77. http://zdbr.net.cn/download/utf8-kernel-2.6.29-core-1.patch.bz2
  78. http://zdbr.net.cn/download/utf8-kernel-2.6-fonts-2.patch.bz2
  79. http://zdbr.net.cn/download/utf8-kernel-2.6.28-fbcondecor-1.patch.bz2
  80. # the main kernel config files
  81. config config.x86_64
  82. # standard config files for mkinitcpio ramdisk
  83. kernel26.preset)
  84. optdepends=('crda: to set the correct wireless channels of your country')
  85. md5sums=('64921b5ff5cdadbccfcd3820f03be7d8'
  86.          '61b2c96aa87dce6075f228bd29151041'
  87.          #'ea3999b363734e65e49eb15680f6f2d7'
  88.          #'0eb27c7c58530293ca9fc1fd364741fa'
  89.          #'25584700a0a679542929c4bed31433b6'
  90.           )
  91. build() {
  92.   KARCH=x86
  93.   cd "${srcdir}"
  94.   git clone http://git.c3sl.ufpr.br/pub/scm/aufs/aufs2-standalone.git
  95.   cd aufs2-standalone
  96.   git checkout origin/aufs2-29
  97.   cd ${srcdir}/linux-$_basekernel
  98.   # Add -ARCH patches
  99.   # See http://projects.archlinux.org/git/?p=linux-2.6-ARCH.git;a=summary
  100.   #patch -Np1 -i ${srcdir}/${_patchname} || return 1
  101.   # Applying official patch
  102.   patch -Np1 -i ${srcdir}/patch-$pkgver #|| return 1
  103.   # patch aufs & sqlzma3.4
  104.   patch -Np1 -i "${srcdir}"/aufs2-standalone/aufs2-standalone.patch || return 1
  105.   cp -R "${srcdir}"/aufs2-standalone/{Documentation,include,fs,config.mk} .
  106.   echo "fix for sqlzma 3.4"
  107.   patch -Np1 -i "${srcdir}"/squashfs3.4-include.patch || return 1
  108.   # Applying gentoo patches
  109.   for i in $(ls ../[1-9][0-9][0-9][0-9]*);do
  110.       patch -Np1 -i ../$i
  111.   done
  112.   patch -Np1 -i ${srcdir}/0001-kernel-trace-open.patch #|| return 1
  113.   # Add kernel utf-8 characters patch
  114.   patch -Np1 -i ${srcdir}/utf8-kernel-2.6.29-core-1.patch || return 1
  115.   patch -Np1 -i ${srcdir}/utf8-kernel-2.6.28-fbcondecor-1.patch || return 1
  116.   patch -Np1 -i ${srcdir}/utf8-kernel-2.6-fonts-2.patch || return 1
  117.   patch -Np1 -i ${srcdir}/tuxonice-3.0.1-for-2.6.29.patch #|| return 1
  118.   
  119.   # applying ext4 patch
  120.   patch -Np1 -i ${srcdir}/ext4-flush-on-close.patch #|| return 1
  121.   # applying ath5k patch
  122.   patch -Np1 -i ${srcdir}/ath5k_fix-off-by-one-in-gpio-checks.diff #|| return 1
  123.   patch -Np1 -i ${srcdir}/ath5k_protect-reset-sequence-by-a-spinlock.diff #|| return 1
  124.   # applying reiserfs4 patch
  125.   patch -Np1 -i ${srcdir}/reiser4-for-2.6.29.patch #|| return 1
  126.   # applying unionfs patch
  127.   #patch -Np1 -i ${srcdir}/unionfs-2.5.1_for_2.6.29-rc2.diff #|| return 1
  128.   # add aircrack-ng injection support
  129.   patch -Np0 -i "${srcdir}"/zd1211rw_inject_2.6.26.patch #|| return 1
  130.   patch -Np1 -i "${srcdir}"/mac80211_2.6.29-2.6.28-rc8-wl_frag+ack_radiotap.patch #|| return 1
  131.   patch -Np1 -i "${srcdir}"/ath5k-injection-2.6.27-rc2.patch #|| return 1
  132.   patch -Np1 -i "${srcdir}"/ath5k-frequency-chaos-2.6.28.patch #|| return 1
  133.   #patch -Np1 -i "${srcdir}"/ath5k-pass-failed-crc.patch #|| return 1
  134.   #patch -Np1 -i "${srcdir}"/ath5k-radiotap-fragfix-2.6.29.patch #|| return 1
  135.   patch -Np1 -i "${srcdir}"/b43-injection-2.6.29-wl.patch #|| return 1
  136.   #patch -Np1 -i "${srcdir}"/ieee80211_inject-2.6.22.patch #|| return 1
  137.   patch -Np1 -i "${srcdir}"/rtl8187-mac80211-injection-speed-2.6.28-wl.patch #|| return 1
  138.   #patch -Np1 -i "${srcdir}"/rtl8187_hw_signal_backport_2.6.28.patch #|| return 1
  139.   patch -Np1 -i "${srcdir}"/hostap-kernel-2.6.18.patch #|| return 1
  140.   # add openlog patch
  141.   patch -Np0 -i "${srcdir}"/openlog.patch #|| return 1
  142.   # applying thinkpad-acpi patch
  143.   patch -Np1 -i ${srcdir}/thinkpad-acpi-0.22-20090318-BETA_v2.6.29.patch #|| return 1
  144.   # remove extraversion
  145.   sed -i 's|^EXTRAVERSION = .*$|EXTRAVERSION =|g' Makefile
  146.   if [ "$CARCH" = "x86_64" ]; then
  147.     cat ../config.x86_64 >./.config
  148.   else
  149.     cat ../config >./.config
  150.   fi
  151.   if [ "${_kernelname}" != "" ]; then
  152.     sed -i "s|CONFIG_LOCALVERSION=.*|CONFIG_LOCALVERSION="${_kernelname}"|g" ./.config
  153.   fi
  154.    
  155.   source ./.config
  156.   _kernver="$_basekernel${CONFIG_LOCALVERSION}"
  157.   # load configuration
  158.   # Configure the kernel. Replace the line below with one of your choice.
  159.   #make menuconfig # CLI menu for configuration
  160.   #make xconfig # X-based configuration
  161.   #make oldconfig # using old config from previous kernel version
  162.   # ... or manually edit .config
  163.   ####################
  164.   # stop here
  165.   # this is useful to configure the kernel
  166.   #msg "Stopping build"
  167.   #return 1
  168.   ####################
  169.   yes "" | make config
  170.   # build!
  171.   make bzImage modules || return 1
  172.   mkdir -p ${pkgdir}/{lib/modules,boot}
  173.   make INSTALL_MOD_PATH=${pkgdir} modules_install || return 1
  174.   cp System.map ${pkgdir}/boot/System.map26${_kernelname}
  175.   cp arch/$KARCH/boot/bzImage ${pkgdir}/boot/vmlinuz26${_kernelname}
  176.   install -D -m644 Makefile \
  177.     ${pkgdir}/usr/src/linux-${_kernver}/Makefile
  178.   install -D -m644 kernel/Makefile \
  179.     ${pkgdir}/usr/src/linux-${_kernver}/kernel/Makefile
  180.   install -D -m644 .config \
  181.     ${pkgdir}/usr/src/linux-${_kernver}/.config
  182.   mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/include
  183.   for i in acpi asm-{generic,x86} config linux math-emu media net pcmcia scsi sound video; do
  184.     cp -a include/$i ${pkgdir}/usr/src/linux-${_kernver}/include/
  185.   done
  186.   # copy arch includes for external modules
  187.   mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/arch/x86
  188.   cp -a arch/x86/include ${pkgdir}/usr/src/linux-${_kernver}/arch/x86/
  189.   # copy files necessary for later builds, like nvidia and vmware
  190.   cp Module.symvers ${pkgdir}/usr/src/linux-${_kernver}
  191.   cp -a scripts ${pkgdir}/usr/src/linux-${_kernver}
  192.   # fix permissions on scripts dir
  193.   chmod og-w -R ${pkgdir}/usr/src/linux-${_kernver}/scripts
  194.   #mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/.tmp_versions
  195.   mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/arch/$KARCH/kernel
  196.   cp arch/$KARCH/Makefile ${pkgdir}/usr/src/linux-${_kernver}/arch/$KARCH/
  197.   if [ "$CARCH" = "i686" ]; then
  198.     cp arch/$KARCH/Makefile_32.cpu ${pkgdir}/usr/src/linux-${_kernver}/arch/$KARCH/
  199.   fi
  200.   cp arch/$KARCH/kernel/asm-offsets.s ${pkgdir}/usr/src/linux-${_kernver}/arch/$KARCH/kernel/
  201.   # add headers for lirc package
  202.   mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/video
  203.   cp drivers/media/video/*.h  ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/video/
  204.   for i in bt8xx cpia2 cx25840 cx88 em28xx et61x251 pwc saa7134 sn9c102 usbvideo zc0301; do
  205.    mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/video/$i
  206.    cp -a drivers/media/video/$i/*.h ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/video/$i
  207.   done
  208.   # add dm headers
  209.   mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/drivers/md
  210.   cp drivers/md/*.h  ${pkgdir}/usr/src/linux-${_kernver}/drivers/md
  211.   # add inotify.h
  212.   mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/include/linux
  213.   cp include/linux/inotify.h ${pkgdir}/usr/src/linux-${_kernver}/include/linux/
  214.   # add CLUSTERIP file for iptables
  215.   mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/net/ipv4/netfilter/
  216.   # add wireless headers
  217.   mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/net/mac80211/
  218.   cp net/mac80211/*.h ${pkgdir}/usr/src/linux-${_kernver}/net/mac80211/
  219.   # add dvb headers for external modules
  220.   # in reference to:
  221.   # http://bugs.archlinux.org/task/9912
  222.   mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/dvb-core
  223.   cp drivers/media/dvb/dvb-core/*.h ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/dvb-core/
  224.   # add dvb headers for external modules
  225.   # in reference to:
  226.   # http://bugs.archlinux.org/task/11194
  227.   mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/include/config/dvb/
  228.   cp include/config/dvb/*.h ${pkgdir}/usr/src/linux-${_kernver}/include/config/dvb/
  229.   # add dvb headers for http://mcentral.de/hg/~mrec/em28xx-new
  230.   # in reference to:
  231.   # http://bugs.archlinux.org/task/13146
  232.   mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/frontends/
  233.   cp drivers/media/dvb/frontends/lgdt330x.h ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/frontends/
  234.   cp drivers/media/video/msp3400-driver.h ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/frontends/
  235.   # add xfs and shmem for aufs building
  236.   mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/fs/xfs
  237.   mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/mm
  238.   cp fs/xfs/xfs_sb.h ${pkgdir}/usr/src/linux-${_kernver}/fs/xfs/xfs_sb.h
  239.   # add vmlinux
  240.   cp vmlinux ${pkgdir}/usr/src/linux-${_kernver}
  241.   # copy in Kconfig files
  242.   for i in `find . -name "Kconfig*"`; do
  243.     mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/`echo $i | sed 's|/Kconfig.*||'`
  244.     cp $i ${pkgdir}/usr/src/linux-${_kernver}/$i
  245.   done
  246.   cd ${pkgdir}/usr/src/linux-${_kernver}/include && ln -s asm-$KARCH asm
  247.   chown -R root.root ${pkgdir}/usr/src/linux-${_kernver}
  248.   find ${pkgdir}/usr/src/linux-${_kernver} -type d -exec chmod 755 {} \;
  249.   cd ${pkgdir}/lib/modules/${_kernver} && \
  250.     (rm -f source build; ln -sf ../../../usr/src/linux-${_kernver} build)
  251.   # install fallback mkinitcpio.conf file and preset file for kernel
  252.   install -m644 -D ${srcdir}/kernel26.preset ${pkgdir}/etc/mkinitcpio.d/${_realpkgname}.preset || return 1
  253.   # set correct depmod command for install
  254.   sed \
  255.     -e  "s/KERNEL_NAME=.*/KERNEL_NAME=${_kernelname}/g" \
  256.     -e  "s/KERNEL_VERSION=.*/KERNEL_VERSION=${_kernver}/g" \
  257.     -i $startdir/kernel26.install
  258.   sed \
  259.     -e "s|source .*|source /etc/mkinitcpio.d/kernel26${_kernelname}.kver|g" \
  260.     -e "s|default_image=.*|default_image="/boot/${_realpkgname}.img"|g" \
  261.     -e "s|fallback_image=.*|fallback_image="/boot/${_realpkgname}-fallback.img"|g" \
  262.     -i ${pkgdir}/etc/mkinitcpio.d/${_realpkgname}.preset
  263.   echo -e "# DO NOT EDIT THIS FILE\nALL_kver='${_kernver}'" > ${startdir}/pkg/etc/mkinitcpio.d/${_realpkgname}.kver
  264.   # remove unneeded architectures
  265.   rm -rf ${pkgdir}/usr/src/linux-${_kernver}/arch/{alpha,arm,arm26,avr32,blackfin,cris,frv,h8300,ia64,m32r,m68k,m68knommu,mips,mn10300,parisc,powerpc,ppc,s390,sh,sh64,sparc,sparc64,um,v850,xtensa}
  266.   # remove the firmware
  267.   rm -rf ${pkgdir}/lib/firmware
  268. }
复制代码
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-5-11 09:40:30 | 显示全部楼层
不好意思,俺没装git.
感谢carbonjiao提醒
各位拿起酱油瓶走开了
回复 支持 反对

使用道具 举报

发表于 2009-5-11 09:58:04 | 显示全部楼层
Post by ahao;1985878
http://git.c3sl.ufpr.br/pub/scm/aufs/aufs2-standalone.git/
我可以联上,但是里面没这文件啊。


那你系统有没有装git?
如果没有自然就无法checkout了。。。

现在传一个aufs2-standalone.git的包到googlecode,如果无法连接或者不想用git的朋友需要将PKGBUILD文件修改为:


  1. # Maintainer: carbonjiao <http://archlive-pkg.googlecode.com> <http://archlive.googlecode.com>

  2. pkgname=kernel26-archlive
  3. _realpkgname=kernel26
  4. # pkgname=kernel26-custom # Build kernel with a different name
  5. _kernelname=${_realpkgname#kernel26}
  6. _basekernel=2.6.29
  7. pkgver=${_basekernel}.3
  8. pkgrel=1
  9. _patchname="patch-${pkgver}-1-ARCH"
  10. pkgdesc="Archlive内核及模块,加入了kernel官方补丁、gentoo官方补丁、UTF-8中文补丁、reiser4补丁、aircrack-ng补丁及tuxonice-3.0.1补丁."
  11. #pkgdesc="Kernel configs for Archlive, with Gentoo patch set, fbcondecor patch, Chinese fonts patch, \
  12. #           and reiser4 patch, aufs2 patch, aircrack-ng patch, also with tuxonice-3.0 patch set."
  13. arch=(i686 x86_64)
  14. license=('GPL2')
  15. provides=('kernel26=2.6.29')
  16. groups=('base' 'archlive-pkg')
  17. url="http://www.kernel.org"
  18. backup=(etc/mkinitcpio.d/${_realpkgname}.preset)
  19. depends=('coreutils' 'kernel26-firmware>=2.6.29' 'module-init-tools' 'mkinitcpio>=0.5.20')
  20. # pwc, ieee80211 and hostap-driver26 modules are included in kernel26 now
  21. # nforce package support was abandoned by nvidia, kernel modules should cover everything now.
  22. # kernel24 support is dropped since glibc24
  23. conflicts=('aufs')
  24. replaces=('kernel24' 'kernel24-scsi' 'kernel26-scsi' 'kernel26'
  25.           'alsa-driver' 'ieee80211' 'hostap-driver26'
  26.           'pwc' 'nforce' 'squashfs' 'unionfs' 'ivtv'
  27.           'zd1211' 'kvm-modules' 'iwlwifi' 'rt2x00-cvs'
  28.           'gspcav1' 'atl2' 'wlan-ng26' 'aufs')
  29. install=kernel26.install
  30. source=(
  31. http://www.cn.kernel.org/pub/linux/kernel/v2.6/linux-$_basekernel.tar.bz2
  32. #http://www.kernel.org/pub/linux/kernel/v2.6/linux-$_basekernel.tar.bz2
  33.         ### kernel 官方补丁
  34. #http://www.cn.kernel.org/pub/linux/kernel/v2.6/patch-${pkgver}.bz2
  35. http://www.kernel.org/pub/linux/kernel/v2.6/patch-${pkgver}.bz2
  36.        ### Arch 官方补丁
  37. #ftp://ftp.archlinux.org/other/kernel26/${_patchname}.bz2
  38.        ### tuxonice patch
  39. http://www.tuxonice.net/downloads/all/tuxonice-3.0.1-for-2.6.29.patch.bz2
  40.        ### gentoo patches
  41. #http://dev.gentoo.org/~dsd/genpatches/trunk/${_basekernel}/4100_dm-bbr.patch
  42. #http://dev.gentoo.org/~dsd/genpatches/trunk/${_basekernel}/4200_fbcondecor-0.9.4.patch
  43. #http://dev.gentoo.org/~dsd/genpatches/trunk/${_basekernel}/4400_alpha-sysctl-uac.patch  
  44. 4100_dm-bbr.patch  4200_fbcondecor-0.9.4.patch 4400_alpha-sysctl-uac.patch
  45.         ### sidux补丁
  46. http://svn.berlios.de/svnroot/repos/fullstory/linux-sidux-2.6/tags/2.6.29-7/debian/patches/bugfix/ext4-flush-on-close.patch
  47. #http://svn.berlios.de/svnroot/repos/fullstory/linux-sidux-2.6/tags/2.6.29-7/debian/patches/features/aufs2-20090322.diff
  48.   http://svn.berlios.de/svnroot/repos/fullstory/linux-sidux-2.6/tags/2.6.29-9/debian/patches/bugfix/ath5k_fix-off-by-one-in-gpio-checks.diff
  49.   http://svn.berlios.de/svnroot/repos/fullstory/linux-sidux-2.6/tags/2.6.29-9/debian/patches/bugfix/ath5k_protect-reset-sequence-by-a-spinlock.diff
  50.         ### reiser4 补丁
  51. http://www.kernel.org/pub/linux/kernel/people/edward/reiser4/reiser4-for-2.6/reiser4-for-2.6.29.patch.gz
  52.         ### unionfs补丁
  53. #http://download.filesystems.org/unionfs/unionfs-2.x/unionfs-2.5.1_for_2.6.29-rc2.diff.gz
  54. squashfs3.4-include.patch
  55. ### aufs2-standalone.git补丁
  56. http://archlive-pkg.googlecode.com/files/aufs2-standalone.tar.gz
  57. http://nchc.dl.sourceforge.net/sourceforge/ibm-acpi/thinkpad-acpi-0.22-20090318-BETA_v2.6.29.patch.gz
  58.      ### aircrack-ng patches
  59. #http://patches.aircrack-ng.org/mac80211_2.6.28-rc4-wl_frag+ack_v3.patch
  60. #http://patches.aircrack-ng.org/ath5k-injection-2.6.27-rc2.patch
  61. #http://patches.aircrack-ng.org/ath5k-frequency-chaos-2.6.28.patch
  62. #http://patches.aircrack-ng.org/ieee80211_inject-2.6.22.patch
  63. #http://patches.aircrack-ng.org/rtl8187-mac80211-injection-speed-2.6.28-wl.patch
  64. #http://patches.aircrack-ng.org/rtl8187_hw_signal_backport_2.6.28.patch
  65. #http://patches.aircrack-ng.org/zd1211rw_inject_2.6.26.patch
  66. #http://patches.aircrack-ng.org/hostap-kernel-2.6.18.patch
  67. mac80211_2.6.29-2.6.28-rc8-wl_frag+ack_radiotap.patch
  68. ath5k-injection-2.6.27-rc2.patch  ath5k-frequency-chaos-2.6.28.patch
  69. #ath5k-pass-failed-crc.patch  #ath5k-radiotap-fragfix-2.6.29.patch
  70. b43-injection-2.6.29-wl.patch  #ieee80211_inject-2.6.22.patch  
  71. rtl8187-mac80211-injection-speed-2.6.28-wl.patch  
  72. #rtl8187_hw_signal_backport_2.6.28.patch
  73. zd1211rw_inject_2.6.26.patch      hostap-kernel-2.6.18.patch
  74. ### Fastboot 提供的补丁
  75.   0001-kernel-trace-open.patch
  76. ### Archpwn 提供的补丁
  77. openlog.patch    ecryptfs.patch
  78. ### 孙海勇 大侠的 内核中文补丁  http://youbest.cublog.cn/
  79. http://zdbr.net.cn/download/utf8-kernel-2.6.29-core-1.patch.bz2
  80. http://zdbr.net.cn/download/utf8-kernel-2.6-fonts-2.patch.bz2
  81. http://zdbr.net.cn/download/utf8-kernel-2.6.28-fbcondecor-1.patch.bz2
  82. # the main kernel config files
  83. config config.x86_64
  84. # standard config files for mkinitcpio ramdisk
  85. kernel26.preset)
  86. optdepends=('crda: to set the correct wireless channels of your country')
  87. md5sums=('64921b5ff5cdadbccfcd3820f03be7d8'
  88.          '61b2c96aa87dce6075f228bd29151041'
  89.          #'ea3999b363734e65e49eb15680f6f2d7'
  90.          #'0eb27c7c58530293ca9fc1fd364741fa'
  91.          #'25584700a0a679542929c4bed31433b6'
  92.           )

  93. build() {

  94.   KARCH=x86

  95.   #cd "${srcdir}"
  96.   #git clone http://git.c3sl.ufpr.br/pub/scm/aufs/aufs2-standalone.git
  97.   #cd aufs2-standalone
  98.   #git checkout origin/aufs2-29

  99.   cd ${srcdir}/linux-$_basekernel
  100.   
  101.   # Add -ARCH patches
  102.   # See http://projects.archlinux.org/git/?p=linux-2.6-ARCH.git;a=summary
  103.   #patch -Np1 -i ${srcdir}/${_patchname} || return 1

  104.   # Applying official patch
  105.   patch -Np1 -i ${srcdir}/patch-$pkgver #|| return 1

  106.   # patch aufs & sqlzma3.4
  107.   patch -Np1 -i "${srcdir}"/aufs2-standalone/aufs2-standalone.patch || return 1
  108.   cp -R "${srcdir}"/aufs2-standalone/{Documentation,include,fs,config.mk} .
  109.   echo "fix for sqlzma 3.4"
  110.   patch -Np1 -i "${srcdir}"/squashfs3.4-include.patch || return 1

  111.   # Applying gentoo patches
  112.   for i in $(ls ../[1-9][0-9][0-9][0-9]*);do
  113.       patch -Np1 -i ../$i
  114.   done

  115.   patch -Np1 -i ${srcdir}/0001-kernel-trace-open.patch #|| return 1

  116.   # Add kernel utf-8 characters patch
  117.   patch -Np1 -i ${srcdir}/utf8-kernel-2.6.29-core-1.patch || return 1
  118.   patch -Np1 -i ${srcdir}/utf8-kernel-2.6.28-fbcondecor-1.patch || return 1
  119.   patch -Np1 -i ${srcdir}/utf8-kernel-2.6-fonts-2.patch || return 1

  120.   patch -Np1 -i ${srcdir}/tuxonice-3.0.1-for-2.6.29.patch #|| return 1
  121.   
  122.   # applying ext4 patch
  123.   patch -Np1 -i ${srcdir}/ext4-flush-on-close.patch #|| return 1

  124.   # applying ath5k patch
  125.   patch -Np1 -i ${srcdir}/ath5k_fix-off-by-one-in-gpio-checks.diff #|| return 1
  126.   patch -Np1 -i ${srcdir}/ath5k_protect-reset-sequence-by-a-spinlock.diff #|| return 1

  127.   # applying reiserfs4 patch
  128.   patch -Np1 -i ${srcdir}/reiser4-for-2.6.29.patch #|| return 1

  129.   # applying unionfs patch
  130.   #patch -Np1 -i ${srcdir}/unionfs-2.5.1_for_2.6.29-rc2.diff #|| return 1

  131.   # add aircrack-ng injection support
  132.   patch -Np0 -i "${srcdir}"/zd1211rw_inject_2.6.26.patch #|| return 1
  133.   patch -Np1 -i "${srcdir}"/mac80211_2.6.29-2.6.28-rc8-wl_frag+ack_radiotap.patch #|| return 1
  134.   patch -Np1 -i "${srcdir}"/ath5k-injection-2.6.27-rc2.patch #|| return 1
  135.   patch -Np1 -i "${srcdir}"/ath5k-frequency-chaos-2.6.28.patch #|| return 1
  136.   #patch -Np1 -i "${srcdir}"/ath5k-pass-failed-crc.patch #|| return 1
  137.   #patch -Np1 -i "${srcdir}"/ath5k-radiotap-fragfix-2.6.29.patch #|| return 1
  138.   patch -Np1 -i "${srcdir}"/b43-injection-2.6.29-wl.patch #|| return 1
  139.   #patch -Np1 -i "${srcdir}"/ieee80211_inject-2.6.22.patch #|| return 1
  140.   patch -Np1 -i "${srcdir}"/rtl8187-mac80211-injection-speed-2.6.28-wl.patch #|| return 1
  141.   #patch -Np1 -i "${srcdir}"/rtl8187_hw_signal_backport_2.6.28.patch #|| return 1
  142.   patch -Np1 -i "${srcdir}"/hostap-kernel-2.6.18.patch #|| return 1

  143.   # add openlog patch
  144.   patch -Np0 -i "${srcdir}"/openlog.patch #|| return 1

  145.   # applying thinkpad-acpi patch
  146.   patch -Np1 -i ${srcdir}/thinkpad-acpi-0.22-20090318-BETA_v2.6.29.patch #|| return 1


  147.   # remove extraversion
  148.   sed -i 's|^EXTRAVERSION = .*$|EXTRAVERSION =|g' Makefile

  149.   if [ "$CARCH" = "x86_64" ]; then
  150.     cat ../config.x86_64 >./.config
  151.   else
  152.     cat ../config >./.config
  153.   fi
  154.   if [ "${_kernelname}" != "" ]; then
  155.     sed -i "s|CONFIG_LOCALVERSION=.*|CONFIG_LOCALVERSION="${_kernelname}"|g" ./.config
  156.   fi
  157.    
  158.   source ./.config
  159.   _kernver="$_basekernel${CONFIG_LOCALVERSION}"

  160.   # load configuration
  161.   # Configure the kernel. Replace the line below with one of your choice.
  162.   #make menuconfig # CLI menu for configuration
  163.   #make xconfig # X-based configuration
  164.   #make oldconfig # using old config from previous kernel version
  165.   # ... or manually edit .config
  166.   ####################
  167.   # stop here
  168.   # this is useful to configure the kernel
  169.   #msg "Stopping build"
  170.   #return 1
  171.   ####################
  172.   yes "" | make config
  173.   # build!
  174.   make bzImage modules || return 1
  175.   mkdir -p ${pkgdir}/{lib/modules,boot}
  176.   make INSTALL_MOD_PATH=${pkgdir} modules_install || return 1
  177.   cp System.map ${pkgdir}/boot/System.map26${_kernelname}
  178.   cp arch/$KARCH/boot/bzImage ${pkgdir}/boot/vmlinuz26${_kernelname}
  179.   install -D -m644 Makefile \
  180.     ${pkgdir}/usr/src/linux-${_kernver}/Makefile
  181.   install -D -m644 kernel/Makefile \
  182.     ${pkgdir}/usr/src/linux-${_kernver}/kernel/Makefile
  183.   install -D -m644 .config \
  184.     ${pkgdir}/usr/src/linux-${_kernver}/.config
  185.   mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/include

  186.   for i in acpi asm-{generic,x86} config linux math-emu media net pcmcia scsi sound video; do
  187.     cp -a include/$i ${pkgdir}/usr/src/linux-${_kernver}/include/
  188.   done

  189.   # copy arch includes for external modules
  190.   mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/arch/x86
  191.   cp -a arch/x86/include ${pkgdir}/usr/src/linux-${_kernver}/arch/x86/

  192.   # copy files necessary for later builds, like nvidia and vmware
  193.   cp Module.symvers ${pkgdir}/usr/src/linux-${_kernver}
  194.   cp -a scripts ${pkgdir}/usr/src/linux-${_kernver}
  195.   # fix permissions on scripts dir
  196.   chmod og-w -R ${pkgdir}/usr/src/linux-${_kernver}/scripts
  197.   #mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/.tmp_versions

  198.   mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/arch/$KARCH/kernel

  199.   cp arch/$KARCH/Makefile ${pkgdir}/usr/src/linux-${_kernver}/arch/$KARCH/
  200.   if [ "$CARCH" = "i686" ]; then
  201.     cp arch/$KARCH/Makefile_32.cpu ${pkgdir}/usr/src/linux-${_kernver}/arch/$KARCH/
  202.   fi
  203.   cp arch/$KARCH/kernel/asm-offsets.s ${pkgdir}/usr/src/linux-${_kernver}/arch/$KARCH/kernel/

  204.   # add headers for lirc package
  205.   mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/video
  206.   cp drivers/media/video/*.h  ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/video/
  207.   for i in bt8xx cpia2 cx25840 cx88 em28xx et61x251 pwc saa7134 sn9c102 usbvideo zc0301; do
  208.    mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/video/$i
  209.    cp -a drivers/media/video/$i/*.h ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/video/$i
  210.   done
  211.   # add dm headers
  212.   mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/drivers/md
  213.   cp drivers/md/*.h  ${pkgdir}/usr/src/linux-${_kernver}/drivers/md
  214.   # add inotify.h
  215.   mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/include/linux
  216.   cp include/linux/inotify.h ${pkgdir}/usr/src/linux-${_kernver}/include/linux/
  217.   # add CLUSTERIP file for iptables
  218.   mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/net/ipv4/netfilter/
  219.   # add wireless headers
  220.   mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/net/mac80211/
  221.   cp net/mac80211/*.h ${pkgdir}/usr/src/linux-${_kernver}/net/mac80211/
  222.   # add dvb headers for external modules
  223.   # in reference to:
  224.   # http://bugs.archlinux.org/task/9912
  225.   mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/dvb-core
  226.   cp drivers/media/dvb/dvb-core/*.h ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/dvb-core/
  227.   # add dvb headers for external modules
  228.   # in reference to:
  229.   # http://bugs.archlinux.org/task/11194
  230.   mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/include/config/dvb/
  231.   cp include/config/dvb/*.h ${pkgdir}/usr/src/linux-${_kernver}/include/config/dvb/
  232.   # add dvb headers for http://mcentral.de/hg/~mrec/em28xx-new
  233.   # in reference to:
  234.   # http://bugs.archlinux.org/task/13146
  235.   mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/frontends/
  236.   cp drivers/media/dvb/frontends/lgdt330x.h ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/frontends/
  237.   cp drivers/media/video/msp3400-driver.h ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/frontends/
  238.   # add xfs and shmem for aufs building
  239.   mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/fs/xfs
  240.   mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/mm
  241.   cp fs/xfs/xfs_sb.h ${pkgdir}/usr/src/linux-${_kernver}/fs/xfs/xfs_sb.h
  242.   # add vmlinux
  243.   cp vmlinux ${pkgdir}/usr/src/linux-${_kernver}
  244.   # copy in Kconfig files
  245.   for i in `find . -name "Kconfig*"`; do
  246.     mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/`echo $i | sed 's|/Kconfig.*||'`
  247.     cp $i ${pkgdir}/usr/src/linux-${_kernver}/$i
  248.   done

  249.   cd ${pkgdir}/usr/src/linux-${_kernver}/include && ln -s asm-$KARCH asm

  250.   chown -R root.root ${pkgdir}/usr/src/linux-${_kernver}
  251.   find ${pkgdir}/usr/src/linux-${_kernver} -type d -exec chmod 755 {} \;
  252.   cd ${pkgdir}/lib/modules/${_kernver} && \
  253.     (rm -f source build; ln -sf ../../../usr/src/linux-${_kernver} build)
  254.   # install fallback mkinitcpio.conf file and preset file for kernel
  255.   install -m644 -D ${srcdir}/kernel26.preset ${pkgdir}/etc/mkinitcpio.d/${_realpkgname}.preset || return 1
  256.   # set correct depmod command for install
  257.   sed \
  258.     -e  "s/KERNEL_NAME=.*/KERNEL_NAME=${_kernelname}/g" \
  259.     -e  "s/KERNEL_VERSION=.*/KERNEL_VERSION=${_kernver}/g" \
  260.     -i $startdir/kernel26.install
  261.   sed \
  262.     -e "s|source .*|source /etc/mkinitcpio.d/kernel26${_kernelname}.kver|g" \
  263.     -e "s|default_image=.*|default_image="/boot/${_realpkgname}.img"|g" \
  264.     -e "s|fallback_image=.*|fallback_image="/boot/${_realpkgname}-fallback.img"|g" \
  265.     -i ${pkgdir}/etc/mkinitcpio.d/${_realpkgname}.preset

  266.   echo -e "# DO NOT EDIT THIS FILE\nALL_kver='${_kernver}'" > ${startdir}/pkg/etc/mkinitcpio.d/${_realpkgname}.kver
  267.   # remove unneeded architectures
  268.   rm -rf ${pkgdir}/usr/src/linux-${_kernver}/arch/{alpha,arm,arm26,avr32,blackfin,cris,frv,h8300,ia64,m32r,m68k,m68knommu,mips,mn10300,parisc,powerpc,ppc,s390,sh,sh64,sparc,sparc64,um,v850,xtensa}
  269.   # remove the firmware
  270.   rm -rf ${pkgdir}/lib/firmware
  271. }

复制代码



下次PKGBUILD里面加上makedepends...
回复 支持 反对

使用道具 举报

发表于 2009-5-11 09:59:42 | 显示全部楼层
强烈建议:

以后不论是makepkg还是做什么,最好后面都加上 |tee ./log

这样看看这个日志文件就可以分析出了什么问题了。。。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-5-11 10:19:12 | 显示全部楼层
3X,有劳了。原来装了git的,后来删某个包时连带删了,没注意。
:Coffee:
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表