Copy from network/vpnc based on submit request 48291 from user coolo OBS-URL: https://build.opensuse.org/request/show/48291 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/vpnc?expand=0&rev=9
98 lines
3.0 KiB
RPMSpec
98 lines
3.0 KiB
RPMSpec
#
|
|
# spec file for package vpnc (Version 0.5.3r449)
|
|
#
|
|
# Copyright (c) 2010 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/
|
|
#
|
|
|
|
# norootforbuild
|
|
|
|
|
|
Name: vpnc
|
|
Group: Productivity/Networking/Security
|
|
BuildRequires: libgcrypt-devel
|
|
BuildRequires: gnutls libgnutls-devel pkg-config
|
|
Version: 0.5.3r449
|
|
Release: 8
|
|
License: BSD3c(or similar) ; GPLv2+
|
|
AutoReqProv: on
|
|
Summary: A Client for Cisco VPN concentrator
|
|
Requires: /usr/bin/sed /sbin/ip
|
|
Source: %{name}-%{version}.tar.bz2
|
|
Patch0: bugfix.diff
|
|
Patch1: vpnc-no-build-dates.patch
|
|
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}
|
|
%patch0 -p0
|
|
%patch1
|
|
|
|
%build
|
|
export CFLAGS="%optflags -fno-strict-aliasing"
|
|
make PREFIX=/usr
|
|
|
|
%install
|
|
mkdir -p \
|
|
${RPM_BUILD_ROOT}/%{_localstatedir}/run/vpnc
|
|
%{__make} install \
|
|
DESTDIR=${RPM_BUILD_ROOT} \
|
|
PREFIX=/usr
|
|
# Use chmod as %attr doesn't work for %doc maked files in the list
|
|
touch ${RPM_BUILD_ROOT}/%{_localstatedir}/run/vpnc/{defaultroute,gateway,pid,resolv.conf-backup} || true
|
|
rm -rfv ${RPM_BUILD_ROOT}/usr/share/doc/vpnc
|
|
|
|
%clean
|
|
rm -rf %{buildroot}
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%attr(0600,root,root) %config(noreplace) %ghost %{_sysconfdir}/vpnc/default.conf
|
|
%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.*
|
|
%dir %{_localstatedir}/run/vpnc
|
|
%ghost %{_localstatedir}/run/vpnc/defaultroute
|
|
%ghost %{_localstatedir}/run/vpnc/gateway
|
|
%ghost %{_localstatedir}/run/vpnc/pid
|
|
%ghost %{_localstatedir}/run/vpnc/resolv.conf-backup
|
|
%doc ChangeLog COPYING README TODO VERSION
|
|
|
|
%changelog
|