LinuxSir.cn,穿越时空的Linuxsir!

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

reiser4-suspend2-sources-2.6.20-r8.ebuild

[复制链接]
发表于 2007-6-10 11:54:35 | 显示全部楼层 |阅读模式
近日看到关于suspend2的讨论,激起了我使用的欲望,另外也想将/usr/portage分区换成reiser4,便按照wiki修改了这个ebuild(照葫芦画瓢),此ebuild是在gentoo-sources的基础上添加了suspend2和reiser4两个特性。经过测试一切正常,望对准备使用这两个特性的人带来方便,也希望大家批评指正。
1、添加overlay,因人而异,这里是使用/usr/local/portage,在make.conf添加如下
  1. PORTDIR_OVERLAY=/usr/local/portage
复制代码
2、添加目录
  1. mkdir -p /usr/local/portage/sys-kernel/reiser4-suspend2-sources
复制代码
3、将reiser4-suspend2-sources-2.6.20-r8.ebuild保存到/usr/local/portage/sys-kernel/reiser4-suspend2-sources。
reiser4-suspend2-sources-2.6.20-r8.ebuild
  1. # Copyright 1999-2007 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. # $Header: $
  4. ETYPE="sources"
  5. K_WANT_GENPATCHES="base extras"
  6. K_GENPATCHES_VER="10"
  7. IUSE="ultra1"
  8. R4V=""
  9. inherit kernel-2
  10. detect_version
  11. detect_arch
  12. KEYWORDS="~x86"
  13. HOMEPAGE="http://dev.gentoo.org/~dsd/genpatches http://www.suspend2.net http://www.namesys.com/v4/v4.html"
  14. DESCRIPTION="Full sources including the Gentoo patchset, Software Suspend 2 and the Reiser4 patchset"
  15. SUSPEND2_VERSION="2.2.10"
  16. SUSPEND2_TARGET="2.6.20.11"
  17. SUSPEND2_SRC="suspend2-${SUSPEND2_VERSION}-for-${SUSPEND2_TARGET}"
  18. SUSPEND2_URI="http://www.suspend2.net/downloads/all/${SUSPEND2_SRC}.patch.bz2"
  19. UNIPATCH_LIST="${DISTDIR}/${SUSPEND2_SRC}.patch.bz2 ${DISTDIR}/reiser4-for-${PV}${R4V}.patch.gz"
  20. UNIPATCH_STRICTORDER="yes"
  21. RDEPEND="${RDEPEND}
  22.                 >=sys-apps/suspend2-userui-0.7.1
  23.                 >=sys-power/hibernate-script-1.95"
  24. SRC_URI="${KERNEL_URI} ${GENPATCHES_URI} ${ARCH_URI} ${SUSPEND2_URI}
  25. ftp://ftp.namesys.com/pub/reiser4-for-${KV_MAJOR}.${KV_MINOR}/${PV}/reiser4-for-${PV}${R4V}.patch.gz"
  26. pkg_postinst() {
  27.         kernel-2_pkg_postinst
  28.         einfo "For more info on this patchset, and how to report problems, see:"
  29.         einfo "${HOMEPAGE}"
  30. }
复制代码
然后执行
  1. ebuild /usr/local/portage/sys-kernel/reiser4-suspend2-sources/reiser4-suspend2-sources-2.6.20-r8.ebuild digest
复制代码
4、安装
  1. echo "reiser4-suspend2-sources/reiser4-suspend2-sources" >> /etc/portage/package.keywords
  2. echo "sys-apps/suspend2-userui" >> /etc/portage/package.keywords
  3. echo "sys-power/hibernate-script" >> /etc/portage/package.keywords
  4. emerge reiser4-gentoo-sources
复制代码
5、编辑内核

具体wiki:http://gentoo-wiki.com/HOWTO_Reiser4_With_Gentoo-Sources
发表于 2007-6-10 14:31:02 | 显示全部楼层
谢谢楼主提供的overlay!我一直在想为啥layman没有Reiser4的overlay!楼下的你用哪种内核,听说swan的不错。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-6-11 14:41:02 | 显示全部楼层
我一直用gentoo-sources,以前打补丁都是手动,最近改过几个ebuild,深刻感觉这才是gentoo的方式,非常方便。
回复 支持 反对

使用道具 举报

发表于 2007-6-11 16:49:46 | 显示全部楼层
reiser4试过一段时间,个人感觉性能还不如reiserfs,就换回去了,各位说说用reiser4的感受。
回复 支持 反对

使用道具 举报

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

本版积分规则

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