zeissoctopus 发表于 2012-09-10 00:23

2012 年第 36 週關注亮點

本帖最后由 zeissoctopus 于 2012-09-10 00:29 编辑

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


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


EasHardTag 发表于 2012-09-10 01:14

太强大了,。。。

ulovko 发表于 2012-09-10 07:28

本帖最后由 ulovko 于 2012-09-10 07:44 编辑

感谢分享 ^_^ :emn31:



ulovko 发表于 2012-09-10 07:56

ko# more /usr/ports/Tools/scripts/dialogwrapper.txt
$FreeBSD: ports/Tools/scripts/dialogwrapper.txt,v 1.1 2012/09/01 02:56:50 eadler Exp $

Updated August 6, 2012

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


What is this?

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

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

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

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



Installation

Edit /etc/make.conf:

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


Testing long descriptions

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

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

# cd /usr/ports/audio/xmms2
# make config

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



Testing auto-sizing

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

# cd /usr/ports/print/ghostscript9
# make config

Work remaining to be done

Cleanup of the code and additional comments.

Testing.

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

axlrose 发表于 2012-09-10 09:48

这个就是make config 时提示的那个对话框架改进版吧
这个感觉对ports运行编译打包过程没啥大的影响吧
倒是新加的 类像gentoo USE的功能倒是挺棒的, 在 make.conf 里设置某个包是否使能指定的参数选项

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

obsd178 发表于 2012-09-10 20:39

看来以后都要改用 svn了哦 :hug:@axlrose

fender0107401 发表于 2012-09-11 10:59

:mrgreen:

OpenBSD5 发表于 2012-09-11 11:38

下个版本要等到明年才会出来了吧:mrgreen:
页: [1]
查看完整版本: 2012 年第 36 週關注亮點