From 44f175d8d82987c202c8e9930426fe8f0455db3b Mon Sep 17 00:00:00 2001
From: Yves-Alexis Perez <corsac@corsac.net>
Date: Mon, 26 Nov 2012 22:53:07 +0100
Subject: Add breaks/replaces to fix upgrades from Squeeze (bug #681312)

* debian/control:
  - add Breaks/Replaces strongswan-ikev2 on libstrongswan because of moved
    plugins.
---
 debian/changelog | 3 +++
 debian/control   | 2 ++
 2 files changed, 5 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index d49af46e9..41b23c981 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,6 +3,9 @@ strongswan (4.6.4-6) UNRELEASED; urgency=low
   * debian/rules:
     - revert dropping privileges, it breaks too many setups for now and it's
       not possible to disable it.           reopens #529854 and closes: #680722
+  * debian/control:
+    - add Breaks/Replaces strongswan-ikev2 on libstrongswan because of moved
+      plugins.                                                  closes: #681312
 
  -- Yves-Alexis Perez <corsac@debian.org>  Thu, 12 Jul 2012 11:42:58 +0200
 
diff --git a/debian/control b/debian/control
index ca15887c0..8751c213d 100644
--- a/debian/control
+++ b/debian/control
@@ -35,6 +35,8 @@ Package: libstrongswan
 Architecture: any
 Depends: ${shlibs:Depends}, ${misc:Depends}, openssl
 Conflicts: strongswan (<< 4.2.12-1)
+Breaks: strongswan-ikev2 (<< 4.6.4)
+Replaces: strongswan-ikev2 (<< 4.6.4)
 Description: strongSwan utility and crypto library
  StrongSwan is an IPsec-based VPN solution for the Linux kernel. It uses the
  native IPsec stack and runs on any recent 2.6 kernel (no patching required).
-- 
cgit v1.2.3