Easiest is to build as rpm. yum install yum-utils yumdownloader --source openswan rpm -hiv openswan-2.6.*.src.rpm mv openswan-2.6.23dr3.tar.gz /usr/src/redhat/SOURCES/ (edit /usr/src/redhat/SPECS/openswan.spec and update the version number) rpmbuild -ba /usr/src/redhat/SPECS/openswan.spec