File kvpnc.spec of Package kvpnc

#
# spec file for package kvpnc (Version 0.9.0)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild

Name:           kvpnc
BuildRequires:  kdelibs3-devel
%if %suse_version < 1010
BuildRequires:  libgcrypt-devel
%endif
License:        GPL v2 or later
Group:          Productivity/Networking/System
Summary:        GUI Front-End for openswan and vpnc
Version:        0.9.0
Release:        1
Url:            http://home.gna.org/kvpnc/
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Source0:        %name-%{version}.tar.bz2
Patch:          fix-build.diff

%description
The application can create configurations for various kinds of VPN
connections. You should also install the vpnc or openswan package.



Authors:
--------
    Christoph Thielecke <crissi99@gmx.de>

%prep
%setup -q
%patch
. /etc/opt/kde3/common_options
update_admin --no-unsermake

%build
. /etc/opt/kde3/common_options
./configure $configkde --disable-final
make %{?jobs:-j%jobs}

%install
. /etc/opt/kde3/common_options
iconv -f iso8859-1 -t utf-8 src/kvpnc.desktop > w && mv w src/kvpnc.desktop
make DESTDIR=$RPM_BUILD_ROOT install
rm -rf $RPM_BUILD_ROOT/opt/kde3/share/doc/HTML/kvpnc
%suse_update_desktop_file %name System Network
kde_post_install
%find_lang %name

%files -f %name.lang
%defattr(-,root,root)
%dir /opt/kde3/share/icons/hicolor/16x16
%dir /opt/kde3/share/icons/hicolor/16x16/apps
%dir /opt/kde3/share/icons/hicolor/32x32
%dir /opt/kde3/share/icons/hicolor/32x32/apps
/opt/kde3/bin/kvpnc
/opt/kde3/share/appl*/*/kvpnc.desktop
/opt/kde3/share/apps/kvpnc
/opt/kde3/share/icons/*/*/*/kvpnc*.png

%changelog
* Tue Jan 08 2008 - stbinner@suse.de
- update to 0.9.0: several bug fixes and minor new features
* Tue Oct 23 2007 - stbinner@suse.de
- fix build with gcc 4.3
* Fri Jun 01 2007 - coolo@suse.de
- use kde_post_install
* Wed May 02 2007 - stbinner@suse.de
- update to 0.8.9: bug fixes and
  * fix for vpnc 0.4.0 which has changed udp option
  * openvpn import now copy cert files to kvpnc data dir if not
  absolute path is given
  * option for delay before executing command after connect added
  * tunnel device type selection for vpnc >= 0.4.0 added
  * authorization method added: pap (pptp)
* Mon Feb 19 2007 - stbinner@suse.de
- update to version 0.8.8: for all bugfixes and minor enhancements
  see http://home.gna.org/kvpnc/en/changelog.html
* Wed Dec 13 2006 - stbinner@suse.de
- update to version 0.8.7:
  * NT Domain name for authentication added (pptp)
  * support for missing replacedefaultroute at old pppd added
  * userdefinied mtu for cisco added
  * support for ca cert and user authentication (openvpn)
  * changed info for daemon programs will now shown directly after change
  * Japanese translation added
  * http proxy auth for openvpn added
* Sat Sep 30 2006 - stbinner@suse.de
- update to version 0.8.6.1:
  * restoring default route at cisco connection fixed
  * typo fix for openvpn tunnel device type
  * comments are now removed from config lines on openvpn import
  * crash at rename fixed
  * pcf import fixed
  * resolv.conf restore problem fixed (vpnc)
  * vpnc config is now send via stdin
* Tue Sep 26 2006 - stbinner@suse.de
- update to version 0.8.6:
  * pcf import now reads pcf files which contain ! at beginning
  * openvpn now controlled via management interface
  * dns names are now resolved by libresolv instead of qdns
  * network interface class use much less qprocess for better event
  handling and better speed
  * program and pid detection for given port added
  * kvpnc gives now a hint which program is using listening port
  if port bindung failed
  * support for xauth interactive added
  * openvpn pkcs11 support (thanks to Alon Bar-Lev)
  * dcop options added: doImportPcf, doImportOpenvpnConfig
  * command line parameters added: --openvpnimport, --ciscoimport
  * option for disabling ccp negotiation added
  * vpnc will now used in non interactive mode because reading
  from console is broken in vpnc
* Tue Jun 20 2006 - dmueller@suse.de
- build parallel
* Tue May 30 2006 - adrian@suse.de
- fix build for < 10.1
* Mon May 22 2006 - stbinner@suse.de
- update to version 0.8.5.1
  * loading mppe module now handles other special case
* Thu May 18 2006 - stbinner@suse.de
- update to version 0.8.5
  * vpnc script generation fixed
  * libcrypt detection fixed
  * vpnc output parsing fixed
  * option for peer timeout added
  * pcf import now uses peer timeout
  * debug output of kvpnc > 1 shows now the vpnc arguments
  * log file is now synchron written
  * copy action for debug output added
  * process handling improved
  * userdefinied packet size added (openvpn)
  * userdefinied packet size for fragmentation added (openvpn)
  * network interface handling improved
* Sun Apr 09 2006 - stbinner@suse.de
- update to version 0.8.4
  * ipsec.conf and ipsec.secrets will no longer overwritten
  * back behavior in newprofile wizard fixed
  * aggressive mode fixed (freeswan)
  * psk for freeswan fixed
  * starting connection after setup fixed
  * resolv.conf will no longer changed if no nameserver is retrieved/entered (pptp)
  * additional network routes fixed
  * disabling kwallet fixed
  * crash at close on empty profile list fixed
  * openvpn hangs on connecting fixed
  * window size and position storing fixed
  * hide on close warning dialog fixed
  * directory mode for certificate path in new profile dialog fixed
  * tab sort order dialogs fixed
  * udp option in preferences dialog for openvpn fixed
  * tls auth in newprofile wizard fixed
  * path for p12 certificate at openvpn import fixed
  * displaying certificate entries in profile manager fixed
  * password dialog for openvpn fixed
  * push options for openvpn fixed
  * connection status check options for openvpn fixed
  * some fixes around newprofile wizard
  * vpnc connect script fixed if no resolconf is used
  * openvpn user authentication fixed
  * *.crt for filter added
  * openvpn now looks in cert path for certificates
  * option for disabling pfs added (freeswan)
  * verbose option for ipsec added
  * automatic detection for ipsec.* files added
  * automatic killing ipsec if not started from kvpnc at connect
  * tunnel ip now shown for pptp and openvpn
  * option for left and right next hop added (freeswan)
  * option for disabling opportunistic encryption added (freeswan)
  * patch for skip focus to password if username already cached (thanks to Tim Wootton) added
  * name will now checked if profile from wizard was imported
  * agressive mode for freeswan/openswan added ipsec.conf and ipsec.secrets will no longer
  overwritten
  * back behavior in newprofile wizard fixed
  * aggressive mode fixed (freeswan)
  * psk for freeswan fixed
  * starting connection after setup fixed
  * resolv.conf will no longer changed if no nameserver is retrieved/entered (pptp)
  * additional network routes fixed
  * disabling kwallet fixed
  * crash at close on empty profile list fixed
  * openvpn hangs on connecting fixed
  * window size and position storing fixed
  * hide on close warning dialog fixed
  * directory mode for certificate path in new profile dialog fixed
  * tab sort order dialogs fixed
  * udp option in preferences dialog for openvpn fixed
  * tls auth in newprofile wizard fixed
  * path for p12 certificate at openvpn import fixed
  * displaying certificate entries in profile manager fixed
  * password dialog for openvpn fixed
  * push options for openvpn fixed
  * connection status check options for openvpn fixed
  * some fixes around newprofile wizard
  * vpnc connect script fixed if no resolconf is used
  * openvpn user authentication fixed
  * *.crt for filter added
  * openvpn now looks in cert path for certificates
  * option for disabling pfs added (freeswan)
  * verbose option for ipsec added
  * automatic detection for ipsec.* files added
  * automatic killing ipsec if not started from kvpnc at connect
  * tunnel ip now shown for pptp and openvpn
  * option for left and right next hop added (freeswan)
  * option for disabling opportunistic encryption added (freeswan)
  * patch for skip focus to password if username already cached (thanks to Tim Wootton) added
  * name will now checked if profile from wizard was imported
  * agressive mode for freeswan/openswan added
* Mon Mar 06 2006 - stbinner@suse.de
- update to version 0.8.3
  * info that process was killed is shown multiple times fixed
  * key shortcut menu entry fixed
  * more ui freezes eleminated
  * remote network storing fixed (pptp, OpenVPN)
  * crash at preferencesdialog after deleting profile in it fixed
  * retrieving username and password from enterpassworddialog fixed
  * output for connection status check fixed if userdefined ip address is used
  * wizard for creating new profile added
  * support for TLS remote host for openvpn added
  * support for pushed options (dns, domain) for openvpn added
  * ping IP address after connect (obsolete) removed
  * use userdefinied ip address for connection status check added
  * delay for auto reconnect added
  * patch for splitrules applied (thanks to Tilman Vogel)
  * auth retry after failed password for openvpn added
  * keep default route for pptp added
  * ike exchange mode for racoon added
  * option for dont save username added
  * openvpn config file import added
  * new dcop functions
  * doImportOpenvpnConfig
  * createNewProfileWithWizard
  * tls auth option for openvpn added
  * http proxy support for openvpn added
  * userdefinied ciphers for openvpn added
  * redirect gateway option for openvpn added
  * automatically adding ppp-compress-18 alias to /etc/modprobe.conf
  * automatically try to load ppp_mppe instead of ppp-compress-18
  * automatically detection of mppe style
  * toolinfo now collects info about pptp
  * option for debug level of pptp added
  * more tooltips added
  * information of deamons now shown in preferencesdialog
  * Swedish andbook added. Thanks to Daniel Nylander who has translate it.
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Mon Jan 02 2006 - stbinner@suse.de
- update to version 0.8.2.1
* Fri Dec 09 2005 - stbinner@suse.de
- update to version 0.8.1
* Sun Nov 13 2005 - stbinner@suse.de
- fix filelist
* Wed Jul 06 2005 - cthiel@suse.de
- update to version 0.7.2
* Sun Jul 03 2005 - dmueller@suse.de
- update to version 0.7.1
* Mon Feb 28 2005 - adrian@suse.de
- update to version 0.6
  * OpenVPN support
  * PPTP support
* Mon Feb 07 2005 - adrian@suse.de
- initial package of version 0.5.1