# TODO: # - openswan.init needs update for 2.6.x # - warning: Installed (but unpackaged) file(s) found: # /usr/share/doc/openswan/index.html # /usr/share/doc/openswan/ipsec.conf-sample # # NOTE: # - 32-bit tncfg and starter won't work on 64-bit kernels because of FUBAR # ioctls (only ifru_data pointer is supported in 32->64 conversion of # SIOCDEVPRIV ioctl, but openswan puts some static data in structure there) # Summary: Open Source implementation of IPsec for the Linux operating system Summary(pl.UTF-8): Otwarta implementacja IPseca dla systemu operacyjnego Linux Name: openswan Version: 2.6.50 Release: 0.1 License: GPL v2+ (main parts), BSD (DES and radij code) Group: Networking/Daemons Source0: https://download.openswan.org/openswan/%{name}-%{version}.tar.gz # Source0-md5: 6729e3820c1ebba30fb84d42a9102cf5 Source1: %{name}.init Patch0: %{name}-prefix.patch Patch1: %{name}-des.patch URL: http://www.openswan.org/ BuildRequires: bison BuildRequires: docbook-dtd412-xml BuildRequires: flex BuildRequires: gmp-devel BuildRequires: perl-tools-pod BuildRequires: rpmbuild(macros) >= 1.268 BuildRequires: sed >= 4.0 BuildRequires: which BuildRequires: xmlto Requires(post,preun): /sbin/chkconfig Requires: bash Requires: rc-scripts Provides: freeswan Obsoletes: freeswan Obsoletes: ipsec-tools Obsoletes: strongswan BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description Openswan is an Open Source implementation of IPsec for the Linux 2.6.x operating system. Is it a code fork of the FreeS/WAN project, started by a few of the developers who were growing frustrated with the politics surrounding the FreeS/WAN project. %description -l pl.UTF-8 Openswan to otwarta implementacja IPseca dla systemu operacyjnego Linux 2.6.x. Jest to odgałęzienie kodu z projektu FreeS/WAN, rozpoczęte przez kilku programistów coraz bardziej sfrustrowanych polityką otaczającą projekt FreeS/WAN. %prep %setup -q %patch0 -p1 %patch1 -p1 %{__sed} -i -e 's#/lib/ipsec#/%{_lib}/ipsec#g#' Makefile Makefile.inc %build USE_WEAKSTUFF=true \ USE_NOCRYPTO=true \ %{__make} -j1 programs \ CC="%{__cc}" \ USERCOMPILE="%{rpmcflags}" \ IPSECVERSION=%{version} %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT{/etc/rc.d/init.d,/var/run/pluto} %{__make} install \ DESTDIR=$RPM_BUILD_ROOT \ IPSECVERSION=%{version} install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/ipsec %{__sed} -i -e "s#/lib/ipsec#/%{_lib}/ipsec#g#" $RPM_BUILD_ROOT/etc/rc.d/init.d/ipsec for l in `find $RPM_BUILD_ROOT%{_mandir}/man3 -type l` ; do d=`readlink $l` rm -f $l echo ".so $d" > $l done # API not exported - kill for now %{__rm} -r $RPM_BUILD_ROOT%{_mandir}/man3 install -d $RPM_BUILD_ROOT%{systemdtmpfilesdir} cat >$RPM_BUILD_ROOT%{systemdtmpfilesdir}/openswan.conf <