免费注册 查看新帖 |

Chinaunix

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

[FreeBSD] 2012 年第 36 週關注亮點 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2012-09-10 00:23 |只看该作者 |倒序浏览
本帖最后由 zeissoctopus 于 2012-09-10 00:29 编辑

Port 加入了 dialogwrapper 工具,詳情參考:http://lists.freebsd.org/piperma ... ptember/000025.html
只要你是使用 FreeBSD 8.3 或 FreeBSD 9.0 或以上,在9月4日後更新 ports tree,於 /etc/make.conf 中增加以下一行,便會在 make config 時引發 dialogwrapper 增強工具。
  1. DIALOG="/usr/ports/Tools/scripts/dialogwrapper.sh"
复制代码



宣布了 2013 年 2 月 28 日為 Port CVS 停止更新日,這天之後,不能用 cvsup 或 csup 更新 ports tree,只能用 portsnap 或 svn 更新。詳情參考:http://lists.freebsd.org/piperma ... ptember/000026.html


评分

参与人数 1可用积分 +5 收起 理由
ulovko + 5 欢迎分享最新资讯 ^_^

查看全部评分

论坛徽章:
0
2 [报告]
发表于 2012-09-10 01:14 |只看该作者
太强大了,。。。

论坛徽章:
13
15-16赛季CBA联赛之同曦
日期:2016-01-28 19:52:032015亚冠之北京国安
日期:2015-10-07 14:28:19NBA常规赛纪念章
日期:2015-05-04 22:32:03处女座
日期:2015-01-15 19:45:44卯兔
日期:2014-10-28 16:17:14白羊座
日期:2014-05-24 15:10:46寅虎
日期:2014-05-10 09:50:35白羊座
日期:2014-03-12 20:52:17午马
日期:2014-03-01 08:37:27射手座
日期:2014-02-19 19:26:54子鼠
日期:2013-11-30 09:03:56狮子座
日期:2013-09-08 08:37:52
3 [报告]
发表于 2012-09-10 07:28 |只看该作者
本帖最后由 ulovko 于 2012-09-10 07:44 编辑

感谢分享 ^_^



论坛徽章:
13
15-16赛季CBA联赛之同曦
日期:2016-01-28 19:52:032015亚冠之北京国安
日期:2015-10-07 14:28:19NBA常规赛纪念章
日期:2015-05-04 22:32:03处女座
日期:2015-01-15 19:45:44卯兔
日期:2014-10-28 16:17:14白羊座
日期:2014-05-24 15:10:46寅虎
日期:2014-05-10 09:50:35白羊座
日期:2014-03-12 20:52:17午马
日期:2014-03-01 08:37:27射手座
日期:2014-02-19 19:26:54子鼠
日期:2013-11-30 09:03:56狮子座
日期:2013-09-08 08:37:52
4 [报告]
发表于 2012-09-10 07:56 |只看该作者
  1. ko# more /usr/ports/Tools/scripts/dialogwrapper.txt
  2. $FreeBSD: ports/Tools/scripts/dialogwrapper.txt,v 1.1 2012/09/01 02:56:50 eadler Exp $

  3. Updated August 6, 2012

  4. Bug fix for use on FreeBSD 8.x supplied by Devin Teske.  Thanks!


  5. What is this?

  6. This is a sh/awk wrapper script to give the ports options setting screen
  7. more features:

  8.   Extended descriptions for FreeBSD 8.3+ and 9.0+.  Port maintainers can
  9.   make descriptions longer and more explanatory.

  10.   Auto-sizing of the option screen to fit the terminal window.  Wider or
  11.   taller windows can display more of the descriptions, or more options.
  12.   Windows smaller than 80x24 also work.

  13.   Older versions of dialog(1) had a bug in displaying descriptions that
  14.   are longer than the available space.  When an old version of dialog is
  15.   detected, descriptions are cut to the available space.  These earlier
  16.   versions of dialog did not support the --item-help feature used to
  17.   show extended descriptions, so only the trimmed description will be
  18.   shown.  Descriptions that have been trimmed will still end in a "+" to
  19.   indicate that part of it has been trimmed.



  20. Installation

  21. Edit /etc/make.conf:

  22.   DIALOG="/usr/ports/Tools/scripts/dialogwrapper.sh"


  23. Testing long descriptions

  24. Open a terminal window and resize it, making it narrower than the
  25. default 80 columns.  Try 60 or 70 columns.

  26. su to root and run 'make config' for a port that uses long descriptions.
  27. For example:

  28.   # cd /usr/ports/audio/xmms2
  29.   # make config

  30. Descriptions that are too long to fit in the window are shown ending in
  31. a "+".  Scroll downward through the settings to see that the missing
  32. part of the description is shown at the bottom of the screen.



  33. Testing auto-sizing

  34. Open a terminal window and resize it, making it taller than the default
  35. 24 lines.  print/ghostscript9 is a good example.

  36.   # cd /usr/ports/print/ghostscript9
  37.   # make config

  38. Work remaining to be done

  39. Cleanup of the code and additional comments.

  40. Testing.

  41. The trimming algorithm should break the description on whitespace to
  42. improve readability.  fold(1) may be an easy way to do that.
复制代码

论坛徽章:
0
5 [报告]
发表于 2012-09-10 09:48 |只看该作者
这个就是make config 时提示的那个对话框架改进版吧
这个感觉对ports运行编译打包过程没啥大的影响吧
倒是新加的 类像gentoo USE的功能倒是挺棒的, 在 make.conf 里设置某个包是否使能指定的参数选项

对嵌入式来说,很值得期待的是freebsd 10的TODO里列出的支持交叉编译的功能, kernel 和 userland buildword是早已支持的了

论坛徽章:
0
6 [报告]
发表于 2012-09-10 20:39 |只看该作者
看来以后都要改用 svn了哦   @axlrose

论坛徽章:
89
水瓶座
日期:2014-04-01 08:53:31天蝎座
日期:2014-04-01 08:53:53天秤座
日期:2014-04-01 08:54:02射手座
日期:2014-04-01 08:54:15子鼠
日期:2014-04-01 08:55:35辰龙
日期:2014-04-01 08:56:36未羊
日期:2014-04-01 08:56:27戌狗
日期:2014-04-01 08:56:13亥猪
日期:2014-04-01 08:56:02亥猪
日期:2014-04-08 08:38:58程序设计版块每日发帖之星
日期:2016-01-05 06:20:00程序设计版块每日发帖之星
日期:2016-01-07 06:20:00
7 [报告]
发表于 2012-09-11 10:59 |只看该作者

论坛徽章:
0
8 [报告]
发表于 2012-09-11 11:38 |只看该作者
下个版本要等到明年才会出来了吧
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP