Attached is an updated spec file.

I've confirmed that 0.5.3 works with my partner's new Cisco concentrator.

Something to note with this package is that /etc/vpnc/vpnc-script is an integral part of the program, not optional. It's needed to set up the virtual interface. However, it can (temporarily) clobber your resolv.conf, so see the README for how to use a wrapper script to prevent that.

In a simple home desktop case, temporarily replacing resolv.conf is necessary to redirect all local DNS queries to the server at one's business. In my case I only want DNS relevant to company hosts redirected, so I use a forward directive in my named.conf for that domain, and use a vpnc wrapper script to disable resolv.conf overwrites.
# $Id: vpnc.spec 4308 2006-04-21 22:20:20Z dries $
# Authority: dag

%define _sbindir /sbin

Summary: IPSec VPN client compatible with Cisco equipment
Name: vpnc
Version: 0.5.3
Release: 0.1kp
License: GPL
Group: Applications/Internet
URL: http://www.unix-ag.uni-kl.de/~massar/vpnc/

Source: http://www.unix-ag.uni-kl.de/~massar/vpnc/vpnc-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root

BuildRequires: libgcrypt-devel
Requires: kernel >= 2.4

%description
A VPN client compatible with Cisco's EasyVPN equipment.

Supports IPSec (ESP) with Mode Configuration and Xauth.  Supports only
shared-secret IPSec authentication, 3DES, MD5, and IP tunneling.

%prep
%setup

%{__cat} <<EOF >vpnc.conf
### This is the gateway configuration
#IPSec gateway my.vpn.gateway
#IPSec ID my.ipsec.id
#IPSec secret mysecret

### Put your username here
#Xauth username
EOF

%build
%{__make} %{?_smp_mflags}

%install
%{__rm} -rf %{buildroot}
%{__install} -Dp -m0755 vpnc %{buildroot}%{_sbindir}/vpnc
%{__install} -Dp -m0755 vpnc-disconnect %{buildroot}%{_sbindir}/vpnc-disconnect
%{__install} -Dp -m0755 pcf2vpnc %{buildroot}%{_sbindir}/pcf2vpnc
%{__install} -Dp -m0600 vpnc.conf %{buildroot}%{_sysconfdir}/vpnc/vpnc.conf
%{__install} -Dp -m0600 vpnc-script %{buildroot}%{_sysconfdir}/vpnc/vpnc-script
%{__install} -Dp -m0644 vpnc.8 %{buildroot}%{_mandir}/man8/vpnc.8

%clean
%{__rm} -rf %{buildroot}

%files
%defattr(-, root, root, 0755)
%doc ChangeLog COPYING README TODO
%doc %{_mandir}/man8/vpnc.8*
%dir %{_sysconfdir}/vpnc
%config(noreplace) %{_sysconfdir}/vpnc/vpnc.conf
%config(noreplace) %{_sysconfdir}/vpnc/vpnc-script
%{_sbindir}/vpnc
%{_sbindir}/vpnc-disconnect
%{_sbindir}/pcf2vpnc
%dev(c, 10, 200) /dev/tun

%changelog
* Tue Jan 06 2009 Kenneth Porter <[email protected]> - 0.5.3-0.1kp
- Update to 0.5.3.
- Include helper scripts.

* Sat Apr 08 2006 Dries Verachtert <[email protected]> - 0.3.3-1.2
- Rebuild for Fedora Core 5.

* Fri Jun 24 2005 Dries Verachtert <[email protected]> - 0.3.3-1
- Update to release 0.3.3.

* Mon Mar 07 2005 Dag Wieers <[email protected]> - 0.3.2-2
- Added x86_64 fixes.

* Tue Dec 21 2004 Dag Wieers <[email protected]> - 0.3.2-1
- Updated to release 0.3.2.

* Sun Oct 10 2004 Dag Wieers <[email protected]> - 0.2-1
- Initial package. (using DAR)
_______________________________________________
users mailing list
[email protected]
http://lists.rpmforge.net/mailman/listinfo/users

Reply via email to