packages: cisco-vpnclient/cisco-vpnclient.spec - droppded init script. It w...
pawelz
pawelz at pld-linux.org
Sat Jul 4 13:21:22 CEST 2009
Author: pawelz Date: Sat Jul 4 11:21:22 2009 GMT
Module: packages Tag: HEAD
---- Log message:
- droppded init script. It was used only to load module.
- added modprobe config to autoload cisco_ipsec module when needed.
- rel 3
---- Files affected:
packages/cisco-vpnclient:
cisco-vpnclient.spec (1.39 -> 1.40)
---- Diffs:
================================================================
Index: packages/cisco-vpnclient/cisco-vpnclient.spec
diff -u packages/cisco-vpnclient/cisco-vpnclient.spec:1.39 packages/cisco-vpnclient/cisco-vpnclient.spec:1.40
--- packages/cisco-vpnclient/cisco-vpnclient.spec:1.39 Sat Jul 4 12:48:56 2009
+++ packages/cisco-vpnclient/cisco-vpnclient.spec Sat Jul 4 13:21:16 2009
@@ -3,7 +3,7 @@
# TODO:
# - /opt ??????
# - cvpnd use nobody account, permission to /proc/net and /etc/opt/cisco-vpnclient/* files and dirs
-#
+#
# WARNING:
# - It does not work with kernel >= 2.6.29. I'm able to connect, but the first
# ip packet send via cipsec0 interface (even simple icmp echo) causes kernel
@@ -23,7 +23,7 @@
%if !%{with kernel}
%undefine with_dist_kernel
%endif
-%define _rel 2
+%define _rel 3
Summary: Cisco Systems VPN Client
Summary(pl.UTF-8): Klient VPN produkcji Cisco Systems
Name: cisco-vpnclient
@@ -34,15 +34,13 @@
# Source0-download: http://projects.tuxx-home.at/ciscovpn/clients/linux/
Source0: vpnclient-linux-x86_64-4.8.02.0030-k9.tar.gz
# NoSource0-md5: de869c26dbc3b8851759907855dee48c
-Source1: cisco_vpnclient.init
+Source1: %{name}.modprobe
NoSource: 0
# patches - http://projects.tuxx-home.at/?id=cisco_vpn_client
Patch1: %{name}-skbuff_offset.patch
URL: http://www.cisco.com/en/US/products/sw/secursw/ps2308/tsd_products_support_series_home.html
%{?with_dist_kernel:BuildRequires: kernel%{_alt_kernel}-module-build >= 3:2.6.22}
BuildRequires: rpmbuild(macros) >= 1.379
-Requires(post,preun): /sbin/chkconfig
-Requires: rc-scripts
ExclusiveArch: %{ix86} %{x8664}
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -85,11 +83,11 @@
%endif
%if %{with userspace}
-install -d $RPM_BUILD_ROOT{/etc/rc.d/init.d,%{_sbindir}} \
+install -d $RPM_BUILD_ROOT{/etc/modprobe.d,%{_sbindir}} \
$RPM_BUILD_ROOT%{_sysconfdir}/opt/cisco-vpnclient/{Certificates,Profiles} \
$RPM_BUILD_ROOT/opt/cisco-vpnclient/{bin,lib,include}
-install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
+install %{SOURCE1} $RPM_BUILD_ROOT/etc/modprobe.d/cisco-vpnclient.conf
install {cisco_cert_mgr,vpnclient,cvpnd,ipseclog} $RPM_BUILD_ROOT/opt/cisco-vpnclient/bin
install libvpnapi.so $RPM_BUILD_ROOT/opt/cisco-vpnclient/lib
@@ -105,16 +103,6 @@
%clean
rm -rf $RPM_BUILD_ROOT
-%post
-/sbin/chkconfig --add cisco-vpnclient
-%service cisco-vpnclient restart
-
-%preun
-if [ "$1" = "0" ]; then
- %service cisco-vpnclient stop
- /sbin/chkconfig --del cisco-vpnclient
-fi
-
%post -n kernel%{_alt_kernel}-net-cisco_ipsec
%depmod %{_kernel_ver}
@@ -141,13 +129,13 @@
/opt/cisco-vpnclient/include/*
%attr(755,root,root) %{_sysconfdir}/CiscoSystemsVPNClient
%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/opt/cisco-vpnclient/vpnclient.ini
-%attr(754,root,root) /etc/rc.d/init.d/%{name}
%endif
%if %{with kernel} || %{with dist_kernel}
%files -n kernel%{_alt_kernel}-net-cisco_ipsec
%defattr(644,root,root,755)
/lib/modules/%{_kernel_ver}/misc/*ko*
+/etc/modprobe.d/cisco-vpnclient.conf
%endif
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
@@ -156,6 +144,11 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.40 2009/07/04 11:21:16 pawelz
+- droppded init script. It was used only to load module.
+- added modprobe config to autoload cisco_ipsec module when needed.
+- rel 3
+
Revision 1.39 2009/07/04 10:48:56 pawelz
- some comments (warning about kernel panic with the newest kernel,
information about working kernel versions)
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/cisco-vpnclient/cisco-vpnclient.spec?r1=1.39&r2=1.40&f=u
More information about the pld-cvs-commit
mailing list