📄 openswan.26spec
字号:
Summary: Openswan IPSEC implementationName: openswan%define majver 2%define minver 3.0dr5Version: %{majver}.%{minver}%define opensw_release 1%define debug_package %{nil}Release: %{opensw_release}Source: http://www.openswan.org/code/openswan-%{majver}.%{minver}.tar.gzBuildPreReq: gmp gmp-develBuildRoot: %{_tmppath}/%{name}-buildrootSummary: Openswan IPsec userland toolsUrl: http://www.openswan.org/License: GPLGroup: System Environment/DaemonsProvides: ipsec-userlandRequires: iproute ipsec-tools%define __spec_install_post /usr/lib/rpm/brp-compress || :%descriptionOpenswan is a free implementation of IPSEC & IKE for Linux.IPsec is Internet Protocol Security 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 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}# Kill openswan docs.%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/rcipsec stop || :fi%postunif [ $1 -ge 1 ] ; then /sbin/rcipsec stop 2>&1 > /dev/null && /sbin/rcipsec 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/crlsmkdir -p -m 700 /etc/ipsec.d/privateif [ ! -e /sbin/rcipsec ]then ln -s /etc/init.d/ipsec /sbin/rcipsecfi%changelog* Tue Aug 31 2004 Paul Wouters <paul@xelerance.com>- ported redhat spec file to suse.* 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 + -