104 lines
3.1 KiB
RPMSpec
104 lines
3.1 KiB
RPMSpec
#
|
|
# spec file for package vpnc
|
|
#
|
|
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: vpnc
|
|
BuildRequires: gnutls
|
|
BuildRequires: libgcrypt-devel
|
|
BuildRequires: libgnutls-devel
|
|
BuildRequires: pkg-config
|
|
Version: 0.5.3r517
|
|
Release: 0
|
|
Summary: A Client for Cisco VPN concentrator
|
|
License: GPL-2.0+
|
|
Group: Productivity/Networking/Security
|
|
Url: http://svn.unix-ag.uni-kl.de/vpnc/branches/vpnc-nortel
|
|
Requires: /sbin/ip
|
|
Requires: /usr/bin/sed
|
|
Source: %{name}-%{version}.tar.bz2
|
|
# only for checkin warnings...
|
|
Source1: checkout_svn.sh
|
|
Source2: vpnc.conf
|
|
Patch1: vpnc-no-build-dates.patch
|
|
# most ugly hack ever
|
|
Patch4: vpnc-restart-after-timeout.diff
|
|
Patch5: vpnc-pidfile-path.diff
|
|
Patch6: vpnc-add-name-to-stderr-log.diff
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%description
|
|
A VPN client compatible with Cisco's EasyVPN equipment.
|
|
|
|
Cisco 3000, IOS routers, PIX/ASA Zecurity Appliances, and
|
|
Juniper/Netscreen as well as Nortel Contivity (experimental).
|
|
|
|
Supported Authentications: Pre-Shared-Key + XAUTH, Pre-Shared-Key
|
|
Supported IKE DH-Groups: dh1 dh2 dh5 Supported Hash Algo (IKE/IPSEC):
|
|
md5 sha1 Supported Encryptions (IKE/IPSEC): (null) (1des) 3des aes128
|
|
aes192 aes256 Perfect Forward Secrecy: nopfs dh1 dh2 dh5
|
|
|
|
It runs entirely in userspace and uses the TUN/TAP driver for access.
|
|
|
|
|
|
|
|
Authors:
|
|
--------
|
|
Maurice Massar <vpnc at unix-ag dot uni-kl dot de>
|
|
Eduard Bloch <blade at debian dot org>
|
|
|
|
%prep
|
|
%setup -n %{name}
|
|
%patch1
|
|
%patch4 -p1
|
|
%patch5 -p1
|
|
%patch6 -p1
|
|
|
|
%build
|
|
export CFLAGS="%optflags"
|
|
make PREFIX=/usr
|
|
|
|
%install
|
|
mkdir -p ${RPM_BUILD_ROOT}/%{_localstatedir}/run/vpnc
|
|
%{__make} install \
|
|
DESTDIR=${RPM_BUILD_ROOT} \
|
|
PREFIX=/usr
|
|
rm -rfv ${RPM_BUILD_ROOT}/usr/share/doc/vpnc
|
|
mkdir -p ${RPM_BUILD_ROOT}/%{_sysconfdir}/tmpfiles.d
|
|
install -m 0644 %{SOURCE2} ${RPM_BUILD_ROOT}/%{_sysconfdir}/tmpfiles.d/
|
|
|
|
%clean
|
|
rm -rf %{buildroot}
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%attr(0600,root,root) %config(noreplace) %ghost %{_sysconfdir}/vpnc/default.conf
|
|
%dir %{_sysconfdir}/tmpfiles.d
|
|
%config %{_sysconfdir}/tmpfiles.d/vpnc.conf
|
|
%ghost %{_localstatedir}/run/vpnc
|
|
%dir %{_sysconfdir}/vpnc
|
|
%{_sysconfdir}/vpnc/vpnc-script
|
|
%{_sbindir}/vpnc
|
|
%{_sbindir}/vpnc-disconnect
|
|
%{_bindir}/cisco-decrypt
|
|
%{_bindir}/pcf2vpnc
|
|
%{_mandir}/man1/cisco-decrypt.1.*
|
|
%{_mandir}/man1/pcf2vpnc.1.*
|
|
%{_mandir}/man8/vpnc.8.*
|
|
%doc ChangeLog COPYING README TODO VERSION
|
|
|
|
%changelog
|