📄 openswan.26spec
字号:
Summary: Openswan IPsec userland toolsName: openswan%define majver 2%define minver 3.0dr5Version: %{majver}.%{minver}%define opensw_release 1%define debug_package %{nil}Release: %{opensw_release}Vendor: XeleranceSource: http://www.openswan.org/code/openswan-%{majver}.%{minver}.tar.gzBuildRoot: %{_tmppath}/%{name}-buildrootUrl: http://www.openswan.org/License: GPLGroup: System Environment/DaemonsProvides: ipsec-userlandBuildRequires: gmp-devel bison flexRequires: iproute ipsec-tools gmp%define __spec_install_post /usr/lib/rpm/brp-compress || :%descriptionOpenswan is a free implementation of the IPsec & IKE protocols for Linux.IPsec is the IP Security protocol, and uses strong cryptography to provide both authentication and encryption services. These services allow you to build secure tunnels through untrusted networks. Everything passing through the untrusted net is encrypted by the ipsec gateway machine and decrypted by the gateway at the other end of the tunnel. The resulting tunnel is a virtual private network or VPN.This package contains the daemons and userland tools for setting upOpenswan on a kernel with either the KLIPS or NETKEY IPsec stack.%prep%setup -q -n openswan-%{majver}.%{minver}%build%{__make} \ USERCOMPILE="-g %{optflags}" \ INC_USRLOCAL=%{_prefix} \ MANTREE=%{_mandir} \ INC_RCDEFAULT=%{_initrddir} \ programsFS=$(pwd)%installrm -rf ${RPM_BUILD_ROOT}%{__make} \ DESTDIR=%{buildroot} \ INC_USRLOCAL=%{_prefix} \ INC_RCDEFAULT=%{_initrddir} \ MANTREE=%{buildroot}%{_mandir} \ installrm -rf %{buildroot}/usr/share/doc/openswanrm -rf %{buildroot}/usr/share/maninstall -d -m700 %{buildroot}%{_localstatedir}/run/plutoinstall -d %{buildroot}%{_sbindir}%cleanrm -rf ${RPM_BUILD_ROOT}%files%defattr(-,root,root)%doc BUGS CHANGES COPYING%doc CREDITS README%doc doc/manpage.d/*%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/ipsec.conf%attr(0700,root,root) %dir %{_sysconfdir}/ipsec.d%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/ipsec.d/*%config(noreplace) %{_initrddir}/ipsec%{_libdir}/ipsec%{_sbindir}/ipsec%{_libexecdir}/ipsec%{_localstatedir}/run/pluto%pre%preunif [ $1 = 0 ]; then /sbin/service ipsec stop || :fi%postunif [ $1 -ge 1 ] ; then /sbin/service ipsec stop 2>&1 > /dev/null && /sbin/service ipsec start 2>&1 > /dev/null || :fi%postchkconfig --add ipsecmkdir -p -m 755 /etc/ipsec.dmkdir -p -m 755 /etc/ipsec.d/cacertsmkdir -p -m 755 /etc/ipsec.d/ocspcertsmkdir -p -m 755 /etc/ipsec.d/crlsmkdir -p -m 700 /etc/ipsec.d/private%changelog* Tue May 25 2004 Ken Bantoft <ken@xelerance.com>- Initial version, based on FreeS/WAN .spec
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -