<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Chifeng's Blog &#187; policyd2 freebsd ports</title>
	<atom:link href="http://blog.chifeng.name/tag/policyd2-freebsd-ports/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.chifeng.name</link>
	<description></description>
	<lastBuildDate>Wed, 08 Sep 2010 08:32:56 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>policyd2</title>
		<link>http://blog.chifeng.name/2008/12/policyd2/</link>
		<comments>http://blog.chifeng.name/2008/12/policyd2/#comments</comments>
		<pubDate>Thu, 04 Dec 2008 04:01:02 +0000</pubDate>
		<dc:creator>chifeng</dc:creator>
				<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[policyd2 freebsd ports]]></category>

		<guid isPermaLink="false">http://blog.chifeng.name/?p=263</guid>
		<description><![CDATA[I ran into a few problems with this port. First of all you had a bad path in one of your depends (fixed). But, the main problem is docs install. Several points, the use of %%PORTDOCS%% in the pkg-plist is deprecated and being removed from all ports. Secondly all ports now must respect NOPORTDOCS, NOPORTEXAMPLES [...]]]></description>
			<content:encoded><![CDATA[<p>I ran into a few problems with this port. First of all you had a bad path in<br />
one of your depends (fixed). But, the main problem is docs install. Several<br />
points, the use of %%PORTDOCS%% in the pkg-plist is deprecated and being<br />
removed from all ports. Secondly all ports now must respect NOPORTDOCS,<br />
NOPORTEXAMPLES and NOPORTDATA. I fixed your install to respect these flags and<br />
moved two folders out of ${DOCSDIR} that belong in ${DATADIR}. Try and avoid<br />
using ${CP} and ${MKDIR} in the makefile. Also, it&#8217;s not necessary to list<br />
your docs in the pkg-plist at all that&#8217;s now all handled by PORTDOCS= in the<br />
Makefile same with PORTEXAMPLES and PORTDATA. If you have many files and<br />
directories you can use the &#8220;*&#8221; (wildcard) character rather than clutter up<br />
the Makefile. Rule of thumb is 4 lines of filenames max. Another point,  it&#8217;s<br />
not a good idea to redefine ${DOCSDIR}. Users expect to find docs under the<br />
portname in /usr/local/share/doc/${PORTNAME}, changing that to &#8220;cluebringer&#8221;<br />
will only serve to confuse them. And finally, we never include the license in<br />
docs. They are already in the tree and there are  already hundreds of copies</p>
<p>mistakenly put in docs.</p>
<div class="ArwC7c ckChnd">Beech老大不厌其烦的解释了我port的这些问题，记录一下，以后注意不再犯错。</div>
<div class="ArwC7c ckChnd">我立马改了，并且刚想upload了一个新的，还没来得及，再回头看邮件，发现Beech老大已经把patch发过来了。</div>
<div class="ArwC7c ckChnd">服！！老大们总是喜欢直接给 patch！！</div>
<div class="ArwC7c ckChnd">于是，又赶紧退回原来版本，测试了一下patch，没有问题，便回信告诉老大ci吧。。。</div>
<div class="ArwC7c ckChnd">http://www.freebsd.org/cgi/query-pr.cgi?pr=129385</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.chifeng.name/2008/12/policyd2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
