免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1978 | 回复: 3

[FreeBSD] poudriere官网说明翻译 [复制链接]

论坛徽章:
0
发表于 2013-05-06 13:50 |显示全部楼层
本帖最后由 linpay2000 于 2013-05-07 09:15 编辑

  • What is poudriere?
    什么是poudriere?


poudriere is a BSD-2 licensed tool primarily designed to test package production on FreeBSD. However, most people will find it useful to bulk build ports for FreeBSD.
poudriere是在FreeBSD上的一个测试安装包的工具,基于BSD-2授权协议。然而,大部分人用它在FreeBSD进行编译Ports,充当一个编译机器人。
Its goals are to use modern facilities present in FreeBSD (as ZFS, jails), to be easy to use, to depend only on base, and to be parallel.
poudriere利用在FreeBSD现有技术(如ZFS,jails)达到易于使用、仅依赖基础系统、并行编译的目标。
It is able to build the whole portstree like tinderbox does.
它能够象tinderbox一样编译整个Ports树。
poudriere is able to build packages for versions of FreeBSD that are different from the box on which it is installed, and also to build packages for i386 if the host is an amd64 box.
poudriere能够编译不同版本的安装包,可以与现有系统不同,也同样可以达到在amd64机器上编译i386的安装包。
Once the package building is done, the packages will be in a layout identical to the official mirrors. Therefore they will be useable by any package management tool (pkg_add, portmaster, and so on).
编译完成的安装包与官方的安装包是同样,因此与pkg_add、portmaster等其它工具一样是一个安装包的管理工具。
  • What does poudriere require?
    poudriere有什么样的基本要求呢?

  • a recent FreeBSD (>= 8.3)
  • 必须FreeBSD的相同或以上版本上安装。
  • a ZFS pool with at least 7GB of free space
  • 必须基于ZFS文件系统,至少需要7GB剩余空间。
  • root access
  • 必须有root访问权限。

That is all. For more comfort, we recommend to have quite a lot of RAM in order to make the builds in a VM resident filesystem.
就是这些了。为了更快速地构建安装包,我们推荐用大内存构架虚拟文件系统。
  • How to install it?
    怎么安装poudriere?

Just type "make install" at the top-level directory.
在poudriere目录中,仅仅执行make install即可。
  • What do I have to configure before starting use it?
  • 在开始使用poudriere前,我需要提前做哪些配置呢?

Create a mandatory configuration file
创建一个配置文件。
Poudriere will look for a configuration file in /usr/local/etc.
poudriere将在/usr/local/etc目录中获取相关配置。
Copy the default configuration file:
可以拷贝poudriere附带的例子:
  1. cp /usr/local/etc/poudriere.conf.sample /usr/local/etc/poudriere.conf
复制代码
then edit it:
然后编译配置文件:
  1. $EDITOR /usr/local/etc/poudriere.conf
复制代码
The comments inside the configuration file should be sufficient.
在配置文件中有非常详细的注释。
  • Examples
  • 例子

See poudriere(.
poudriere
  • How-to...


  • ...create and maintain pkgng repositories
  • 创建和维护基于pkgng理模式的库
  • ...manage poudriere ports using portshaker
  • 用portshaker管理poudriere的ports
  • ...use the generated packages with portmaster
  • 用portmaster生成安装包
  • ...use ccache with poudriere
  • 在poudriere构建时使用ccache
  • ...easily generate options
  • 更多构建设置
  • ...use the system ports tree in poudriere

在poudriere中使用系统ports树
  • Hacking


To hack on poudriere you first need to use http://fossil-scm.org
如果需要手工编译poudriere,你需要先从http://fossil-scm.org 下载版本管理工具。
and clone the repo:
然后克隆版本库:
  1. fossil clone https://fossil.etoilebsd.net/poudriere poudriere.fossil
  2. mkdir poudriere
  3. cd poudriere
  4. fossil open ../poudriere.fossil
复制代码
Happy FreeBSDing!

Join us on IRC: #poudriere on Freenode

评分

参与人数 2可用积分 +16 信誉积分 +2 收起 理由
ulovko + 6 很给力!
fender0107401 + 10 + 2 辛苦、辛苦。

查看全部评分

论坛徽章:
0
发表于 2013-05-06 13:54 |显示全部楼层
本帖最后由 linpay2000 于 2013-05-06 13:56 编辑

格式不好搞。
过两天我把...create and maintain pkgng repositories这里面的东东也翻译一下。
顺便把poudriere.conf中的注释翻译一下。
貌似不是官方网站上的。
https://fossil.etoilebsd.net/poudriere/doc/trunk/doc/index.wiki

论坛徽章:
0
发表于 2013-05-06 15:03 |显示全部楼层
多謝樓主熱心推廣。目前在 ports 內有兩個版本的 poudriere

  • ports-mgmt/poudriere-devel 開發版,可以選擇使用 ZFS 或 UFS 建立 jails
  • ports-mgmt/poudriere 穩定版,只能倚賴 ZFS 建立 jails


不過 ports-mgmt/poudriere 3.0 穩定版接近完成,到時也可以選擇使用 ZFS 或 UFS 建立 jails

评分

参与人数 1可用积分 +2 收起 理由
ulovko + 2 赞一个!

查看全部评分

论坛徽章:
0
发表于 2013-05-06 18:42 |显示全部楼层
反正我这几天也在虚拟机上弄个环境make,无所谓zfs了。呵呵。
等3.0出来,我再试试。
今天测试的时候编译的vim,make.conf设置的NO_DIALOG=
通不过,还需要学习呀。呵呵。
谢谢各位了。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP