[Swan-dev] How do I prepare my own CentOS libreswan rpm package ?

T.J. Yang tjyang2001 at gmail.com
Fri Mar 1 14:04:30 EET 2013


On Thu, Feb 28, 2013 at 11:02 PM, Paul Wouters <paul at nohats.ca> wrote:

> On Thu, 28 Feb 2013, T.J. Yang wrote:
>
>  I don't do linux kernel compiling and rpm packaging often, excuse me if
>> the is is not a good
>> question.
>>
>
> You should start with packaging/rhel/6/libreswan.**spec
>
> It should do everything for you already? Or tell you what you need to
> install.
>
>
>
>  I am able to built the src tree with latest patches.
>>
>
> Which patches?


Not patches exactly, I am referring to your latest two fixes for my issue
report on github.

https://github.com/libreswan/libreswan/commit/ab5d71709978bcdf4bed7d2927afc8f6c03aa571


>
>
>  Following is the error log after "make programs;make module" works.
>>
>> [tjyang at centos631 centos]$ rpmbuild -ba libreswan.spec
>> error: File /home/tjyang/rpmbuild/SOURCES/**libreswan-IPSECBASEVERSION.**tar.gz:
>> No such file or directo
>> ry
>>
>
> If you want to package from git instead of from a full release tar ball,
> you need to do this:
>
> git tag v3.1_tjyang
> make release
>
> That will give you a tar ball where the proper version (not
> IPSECBASEVERSION) is present. That file you can use on centos:
>
> cp libreswan-3.1_tjyang.tar.gz ~/rpmbuild/SOURCES/
> tar zxf libreswan-3.1_tjyang.tar.gz
> rpmbuild -ba libreswan-3.1_tjyang/**packaging/rhel/6/libreswan.**spec
>
>
Thanks for these pointers.



> Paul
>



-- 
T.J. Yang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.libreswan.org/pipermail/swan-dev/attachments/20130301/09585e0d/attachment.html>


More information about the Swan-dev mailing list