免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2820 | 回复: 1
打印 上一主题 下一主题

[NetBSD] netbsd下使用cvsup更新源代码 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-11-09 21:54 |只看该作者 |倒序浏览
转载请注明 http://bbs.cnetbsd.org



  1. cd /usr/pkgsrc/devel/cvsup
  2. make install clean clean-depends
复制代码

  1. nano -w /etc/supfile
复制代码

输入如下内容

  1. #/etc/supfile
  2. ### Tags: ###
  3. *default release=cvs tag=.                   # NetBSD CURRENT
  4. #*default release=cvs tag=netbsd-4
  5. #*default release=cvs tag=netbsd-3-1
  6. #*default release=cvs tag=netbsd-3-0
  7. #*default release=cvs tag=netbsd-3

  8. ### CVSup sites: ###
  9. *default host=cvsup.netbsd.org
  10. #*default host=cvsup.se.netbsd.org
  11. #*default host=cvsup.no.netbsd.org
  12. #*default host=cvsup.jp.NetBSD.org
  13. #*default host=cvsup2.jp.NetBSD.org
  14. #*default host=cvsup.uk.NetBSD.org
  15. #*default host=cvsup.us.NetBSD.org

  16. *default delete use-rel-suffix
  17. *default umask=002

  18. *default base=/usr                      # Location to put the repository
  19. *default prefix=/usr                    # Where to put the sup subdirectory
  20. *default compress                       # Use this unless your network link
  21.                                         # is a T1 or faster

  22. # You can get everything using the ``netbsd collection.
  23. # Alternatively, comment out the ``netbsd collection and just get one or
  24. # more of the partial collections by uncommenting them below.

  25. netbsd-src
  26. netbsd-pkgsrc           # Packages
  27. #netbsd-htdocs          # WWW pages
  28. #netbsd-othersrc        # Other Sources
  29. #netbsd-xsrc            # The X11 distribution
  30. #netbsd-basesrc         # The base distribution
  31. #netbsd-syssrc          # The kernel distribution
  32. #netbsd-crypto          # Crypto sources
  33. #netbsd-sharesrc        # The /usr/share distribution
  34. #netbsd-gnusrc          # GNU Sources
  35. netbsd-doc             # Documentation

  36. #To get certain module from certain date:
  37. #netbsd-src tag=. date=2004.07.15.10.10.10
复制代码

或者也可

  1. cp /usr/pkg/share/examples/cvsup/supfile-cvsup.jp.netbsd.org /etc/supfile
  2. cp /usr/pkg/share/examples/cvsup/supfile-cvsup.no.netbsd.org /etc/supfile
复制代码

然后按需要修改/etc/supfile

需要升级源码时,执行以下命令即可

  1. cvsup -g -L 2 /etc/supfile
复制代码

[ 本帖最后由 cnhnln 于 2007-1-6 00:07 编辑 ]

论坛徽章:
0
2 [报告]
发表于 2006-11-09 22:15 |只看该作者
不错.一直想装个netbsd用用,.
收藏了...
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP