|
|
9877005 |
Name: racoon2
|
|
|
9877005 |
Version: 20100526a
|
|
Pavel Šimerda |
656ff27 |
Release: 25%{?dist}
|
|
|
9877005 |
Summary: An implementation of key management system for IPsec
|
|
|
9877005 |
Group: System Environment/Daemons
|
|
|
9877005 |
License: BSD
|
|
|
9877005 |
URL: http://www.racoon2.wide.ad.jp/
|
|
|
9877005 |
Source0: http://ftp.racoon2.wide.ad.jp/pub/%{name}/%{name}-%{version}.tgz
|
|
|
9877005 |
Patch0: %{name}-autotools.patch
|
|
|
dcdc221 |
Patch1: %{name}-init.patch
|
|
|
9877005 |
Patch2: %{name}-functions-shebang.patch
|
|
|
9877005 |
Patch3: %{name}-configfiles.patch
|
|
|
9877005 |
BuildRequires: byacc
|
|
|
9877005 |
BuildRequires: flex
|
|
|
9877005 |
BuildRequires: openssl-devel
|
|
|
0a164b4 |
Requires(post): pwgen
|
|
|
0a164b4 |
%if 0%{?fedora} >= 15 || 0%{?rhel} >= 7
|
|
|
9877005 |
BuildRequires: systemd-units
|
|
|
9877005 |
Requires(post): systemd-units
|
|
|
9877005 |
Requires(preun): systemd-units
|
|
|
9877005 |
Requires(postun): systemd-units
|
|
|
0a164b4 |
%else
|
|
|
0a164b4 |
Requires(post): chkconfig
|
|
|
0a164b4 |
Requires(preun): chkconfig
|
|
|
0a164b4 |
Requires(preun): initscripts
|
|
|
0a164b4 |
%endif
|
|
|
9877005 |
%description
|
|
|
9877005 |
The Racoon2 project is a joint effort which provides an implementation of key
|
|
|
9877005 |
management system for IPsec. The implementation is called Racoon2, a successor
|
|
|
9877005 |
of Racoon, which was developed by the KAME project. It supports IKEv1, IKEv2,
|
|
|
9877005 |
and KINK protocols. It works on FreeBSD, NetBSD, Linux, and Mac OS X.
|
|
|
9877005 |
|
|
|
9877005 |
%prep
|
|
|
9877005 |
%setup -q
|
|
|
9877005 |
%patch0 -p1
|
|
|
9877005 |
%patch1 -p1
|
|
|
9877005 |
%patch2 -p1
|
|
|
9877005 |
%patch3 -p1
|
|
|
9877005 |
|
|
Pavel Šimerda |
656ff27 |
sed -i '/yyget_leng/d' lib/cftoken.l
|
|
Pavel Šimerda |
656ff27 |
|
|
|
9877005 |
%build
|
|
|
290f213 |
%configure --disable-kinkd --disable-pedant
|
|
|
9877005 |
# --disable-kinkd: KINK must be disabled unless krb5 is compiled --with-crypto-impl=builtin
|
|
|
9877005 |
# because kinkd uses krb5's internal crypto functions that are not compiled otherwise.
|
|
|
290f213 |
# --disable-pedant: Racoon2 doesn't compile with pedantic compiler.
|
|
|
9877005 |
make %{?_smp_mflags}
|
|
|
ccb110a |
sed -i 's/\t/ /' samples/*.conf
|
|
|
290f213 |
# Disable spmd.pwd generation
|
|
|
290f213 |
echo "#!/bin/sh" > pskgen/autogen.spmd.pwd
|
|
|
9877005 |
|
|
|
9877005 |
%install
|
|
|
9877005 |
rm -rf %{buildroot}
|
|
|
9877005 |
make install DESTDIR=%{buildroot}
|
|
|
290f213 |
# Rename binaries and manpages
|
|
|
290f213 |
for name in spmd spmdctl iked pskgen; do
|
|
|
290f213 |
mv %{buildroot}%{_sbindir}/{,%{name}-}$name
|
|
|
290f213 |
mv %{buildroot}%{_mandir}/man8/{,%{name}-}$name.8
|
|
|
290f213 |
done
|
|
|
dcdc221 |
# Delete initscripts first
|
|
|
dcdc221 |
rm %{buildroot}%{_initddir}/*
|
|
|
dcdc221 |
# Install systemd units or initscripts
|
|
|
9877005 |
%if 0%{?fedora} >= 15 || 0%{?rhel} >= 7
|
|
|
290f213 |
install -m 755 -t %{buildroot}%{_sbindir} %{name}
|
|
|
290f213 |
install -d %{buildroot}%{_unitdir}
|
|
|
290f213 |
install -m 644 -t %{buildroot}%{_unitdir} %{name}.service
|
|
|
dcdc221 |
%else
|
|
|
290f213 |
install -m 755 %{name}.sysvinit %{buildroot}%{_initddir}/%{name}
|
|
|
9877005 |
%endif
|
|
|
9877005 |
|
|
|
9877005 |
%files
|
|
|
9877005 |
%defattr(-,root,root,-)
|
|
|
9877005 |
%dir %{_sysconfdir}/%{name}
|
|
|
9877005 |
%config(noreplace) %{_sysconfdir}/%{name}/default.conf
|
|
|
9877005 |
%config(noreplace) %{_sysconfdir}/%{name}/local-test.conf
|
|
|
9877005 |
%config(noreplace) %{_sysconfdir}/%{name}/%{name}.conf
|
|
|
9877005 |
%config(noreplace) %{_sysconfdir}/%{name}/transport_ike.conf
|
|
|
9877005 |
%config(noreplace) %{_sysconfdir}/%{name}/transport_kink.conf
|
|
|
9877005 |
%config(noreplace) %{_sysconfdir}/%{name}/tunnel_ike.conf
|
|
|
9877005 |
%config(noreplace) %{_sysconfdir}/%{name}/tunnel_ike_natt.conf
|
|
|
9877005 |
%config(noreplace) %{_sysconfdir}/%{name}/tunnel_kink.conf
|
|
|
9877005 |
%config(noreplace) %{_sysconfdir}/%{name}/vals.conf
|
|
|
9877005 |
%dir %{_sysconfdir}/%{name}/hook
|
|
|
9877005 |
%{_sysconfdir}/%{name}/hook/child-down
|
|
|
9877005 |
%{_sysconfdir}/%{name}/hook/child-rekey
|
|
|
9877005 |
%{_sysconfdir}/%{name}/hook/child-up
|
|
|
9877005 |
%{_sysconfdir}/%{name}/hook/child-up.d/00childup_sample
|
|
|
9877005 |
%config(noreplace) %{_sysconfdir}/%{name}/hook/functions
|
|
|
9877005 |
%{_sysconfdir}/%{name}/hook/ikesa-down
|
|
|
9877005 |
%{_sysconfdir}/%{name}/hook/ikesa-rekey
|
|
|
9877005 |
%{_sysconfdir}/%{name}/hook/ikesa-up
|
|
|
9877005 |
%{_sysconfdir}/%{name}/hook/ikesa-up.d/00ikesaup_sample
|
|
|
9877005 |
%{_sysconfdir}/%{name}/hook/migration
|
|
|
9877005 |
%{_sysconfdir}/%{name}/hook/ph1-down
|
|
|
9877005 |
%{_sysconfdir}/%{name}/hook/ph1-up
|
|
|
290f213 |
%{_sbindir}/%{name}-iked
|
|
|
290f213 |
%{_sbindir}/%{name}-pskgen
|
|
|
290f213 |
%{_sbindir}/%{name}-spmd
|
|
|
290f213 |
%{_sbindir}/%{name}-spmdctl
|
|
|
9877005 |
%dir %{_var}/run/%{name}
|
|
|
290f213 |
%{_mandir}/man8/%{name}-iked.8.gz
|
|
|
290f213 |
%{_mandir}/man8/%{name}-pskgen.8.gz
|
|
|
290f213 |
%{_mandir}/man8/%{name}-spmd.8.gz
|
|
|
290f213 |
%{_mandir}/man8/%{name}-spmdctl.8.gz
|
|
|
9877005 |
%if 0%{?fedora} >= 15 || 0%{?rhel} >= 7
|
|
|
dcdc221 |
%{_sbindir}/%{name}
|
|
|
dcdc221 |
%{_unitdir}/%{name}.service
|
|
|
9877005 |
%else
|
|
|
dcdc221 |
%{_initddir}/%{name}
|
|
|
9877005 |
%endif
|
|
|
9877005 |
|
|
|
9877005 |
%post
|
|
|
9877005 |
if [ ! -e "%{_sysconfdir}/%{name}/spmd.pwd" ]; then
|
|
|
9877005 |
pwgen > %{_sysconfdir}/%{name}/spmd.pwd
|
|
|
9877005 |
chmod 600 %{_sysconfdir}/%{name}/spmd.pwd
|
|
|
9877005 |
fi
|
|
|
0a164b4 |
%if 0%{?fedora} >= 15 || 0%{?rhel} >= 7
|
|
|
54a95d9 |
%systemd_post %{name}.service
|
|
|
0a164b4 |
%else
|
|
|
dcdc221 |
/sbin/chkconfig --add %{name}
|
|
|
0a164b4 |
%endif
|
|
|
9877005 |
|
|
|
9877005 |
%preun
|
|
|
0a164b4 |
%if 0%{?fedora} >= 15 || 0%{?rhel} >= 7
|
|
|
54a95d9 |
%systemd_preun %{name}.service
|
|
|
0a164b4 |
%else
|
|
|
0a164b4 |
if [ $1 -eq 0 ] ; then
|
|
|
dcdc221 |
/sbin/service %{name} stop >/dev/null 2>&1
|
|
|
dcdc221 |
/sbin/chkconfig --del %{name}
|
|
|
0a164b4 |
fi
|
|
|
0a164b4 |
%endif
|
|
|
9877005 |
|
|
|
9877005 |
%postun
|
|
|
0a164b4 |
%if 0%{?fedora} >= 15 || 0%{?rhel} >= 7
|
|
|
54a95d9 |
%systemd_postun_with_restart apache-httpd.service
|
|
|
0a164b4 |
%else
|
|
|
0a164b4 |
%endif
|
|
|
9877005 |
|
|
|
9877005 |
%changelog
|
|
Pavel Šimerda |
656ff27 |
* Mon Feb 17 2014 Pavel Šimerda <psimerda@redhat.com> - 20100526a-25
|
|
Pavel Šimerda |
656ff27 |
- #914426 - fix build failure affecting Fedora >= 18
|
|
Pavel Šimerda |
656ff27 |
|
|
|
54a95d9 |
* Tue Jan 07 2014 Pavel Šimerda <psimerda@redhat.com> - 20100526a-24
|
|
|
54a95d9 |
- #850290 - use systemd-rpm macros
|
|
|
54a95d9 |
|
|
|
f9ea76f |
* Thu Sep 12 2013 Pavel Šimerda <psimerda@redhat.com> - 20100526a-23
|
|
|
f9ea76f |
- prefix init script daemon names with /racoon2-/ (#1006613, patch by Grant Hammond)
|
|
|
f9ea76f |
|
|
|
28d818d |
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20100526a-22
|
|
|
28d818d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
28d818d |
|
|
|
ec1206c |
* Wed Jul 17 2013 Petr Pisar <ppisar@redhat.com> - 20100526a-21
|
|
|
ec1206c |
- Perl 5.18 rebuild
|
|
|
ec1206c |
|
|
|
ac8b337 |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20100526a-20
|
|
|
ac8b337 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
ac8b337 |
|
|
|
e509912 |
* Thu Jan 17 2013 Pavel Šimerda <psimerda@redhat.com> - 20100526a-19
|
|
|
e509912 |
- Fix racoon2 script to call prefixed binaries
|
|
|
e509912 |
|
|
|
9b1e74d |
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20100526a-18
|
|
|
9b1e74d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
9b1e74d |
|
|
|
290f213 |
* Mon Mar 05 2012 Pavel Šimerda <pavlix@pavlix.net> - 20100526a-17
|
|
|
290f213 |
- Prefix binaries with racoon2-
|
|
|
290f213 |
|
|
|
bb063dc |
* Tue Feb 14 2012 Pavel Šimerda <pavlix@pavlix.net> - 20100526a-16
|
|
|
bb063dc |
- Fixed systemd dependencies
|
|
|
dcdc221 |
- Switched to a single systemd unit or single initscript
|
|
|
bb063dc |
|
|
|
ccb110a |
* Tue Feb 14 2012 Pavel Šimerda <pavlix@pavlix.net> - 20100526a-15
|
|
|
ccb110a |
- Expand tabs in config files for better readability
|
|
|
ccb110a |
|
|
|
0a164b4 |
* Mon Feb 13 2012 Pavel Šimerda <pavlix@pavlix.net> - 20100526a-14
|
|
|
0a164b4 |
- rebuilt
|
|
|
0a164b4 |
|
|
|
9877005 |
* Sat Jan 21 2012 Pavel Šimerda <pavlix@pavlix.net> - 20100526a-13
|
|
|
9877005 |
- Added rm at the beginning of install section
|
|
|
9877005 |
- Changed conditionals to versioned ones
|
|
|
9877005 |
|
|
|
9877005 |
* Sun Jan 15 2012 Pavel Šimerda <pavlix@pavlix.net> - 20100526a-12
|
|
|
9877005 |
- Removed sysvinit subpackage
|
|
|
9877005 |
- Added conditionals to handle different init systems
|
|
|
9877005 |
- Changed initrd macro to initd
|
|
|
9877005 |
- Marked functions as config file
|
|
|
9877005 |
|
|
|
9877005 |
* Fri Dec 30 2011 Pavel Šimerda <pavlix@pavlix.net> - 20100526a-11
|
|
|
9877005 |
- Removed -fno-strict-aliasing
|
|
|
9877005 |
- Removed -D_GNU_SOURCE=1
|
|
|
9877005 |
- Added rationale for --disable-kinkd and --disable-pedant
|
|
|
9877005 |
- Removed @prefix@ from configuration files (patch)
|
|
|
9877005 |
|
|
|
9877005 |
* Thu Dec 29 2011 Pavel Šimerda <pavlix@pavlix.net> - 20100526a-10
|
|
|
9877005 |
- Added pwgen dependency
|
|
|
9877005 |
- Moved various inline fixes from specfile to patches
|
|
|
9877005 |
- Fixed racoon2 configuration path (/etc/racoon2)
|
|
|
9877005 |
|
|
|
9877005 |
* Wed Dec 07 2011 Pavel Šimerda <pavlix@pavlix.net> - 20100526a-9
|
|
|
9877005 |
- Incorporated more rpmlint feedback
|
|
|
9877005 |
- Directories are now specified by macros
|
|
|
9877005 |
- Added systemd scriptlets
|
|
|
9877005 |
- Added needed /var/run/racoon2 directory
|
|
|
9877005 |
- Added directories to files section
|
|
|
9877005 |
|
|
|
9877005 |
* Wed Nov 09 2011 pavlix - 20100526a-8
|
|
|
9877005 |
- Incorporated rpmlint feedback
|
|
|
9877005 |
|
|
|
9877005 |
* Wed Nov 09 2011 pavlix - 20100526a-7
|
|
|
9877005 |
- Experimental build for packaging
|