<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Feb 28, 2013 at 11:02 PM, Paul Wouters <span dir="ltr">&lt;<a href="mailto:paul@nohats.ca" target="_blank">paul@nohats.ca</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class="im">On Thu, 28 Feb 2013, T.J. Yang wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
I don&#39;t do linux kernel compiling and rpm packaging often, excuse me if the is is not a good<br>
question.<br>
</blockquote>
<br></div>
You should start with packaging/rhel/6/libreswan.<u></u>spec<br>
<br>
It should do everything for you already? Or tell you what you need to<br>
install.<div class="im"><br>
<br>
<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
I am able to built the src tree with latest patches.<br>
</blockquote>
<br></div>
Which patches?</blockquote><div><br></div><div style>Not patches exactly, I am referring to your latest two fixes for my issue report on github.</div><div style><br></div><div style><a href="https://github.com/libreswan/libreswan/commit/ab5d71709978bcdf4bed7d2927afc8f6c03aa571">https://github.com/libreswan/libreswan/commit/ab5d71709978bcdf4bed7d2927afc8f6c03aa571</a></div>
<div style> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class="im"><br>
<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
Following is the error log after &quot;make programs;make module&quot; works.<br>
<br>
[tjyang@centos631 centos]$ rpmbuild -ba libreswan.spec<br>
error: File /home/tjyang/rpmbuild/SOURCES/<u></u>libreswan-IPSECBASEVERSION.<u></u>tar.gz: No such file or directo<br>
ry<br>
</blockquote>
<br></div>
If you want to package from git instead of from a full release tar ball,<br>
you need to do this:<br>
<br>
git tag v3.1_tjyang<br>
make release<br>
<br>
That will give you a tar ball where the proper version (not<br>
IPSECBASEVERSION) is present. That file you can use on centos:<br>
<br>
cp libreswan-3.1_tjyang.tar.gz ~/rpmbuild/SOURCES/<br>
tar zxf libreswan-3.1_tjyang.tar.gz<br>
rpmbuild -ba libreswan-3.1_tjyang/<u></u>packaging/rhel/6/libreswan.<u></u>spec<span class=""><font color="#888888"><br>
<br></font></span></blockquote><div><br></div><div style>Thanks for these pointers.</div><div style><br></div><div style> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<span class=""><font color="#888888">
Paul<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br>T.J. Yang
</div></div>