[debian] Introduce a cubicweb-ctl3 binary package
This packages conflicts with cubicweb-ctl binary which uses the python2
library. It is meant to ease upgrade of existing installation during the
migration from python2 to python3: in particular, by installing
cubicweb-ctl3, scripts calling "cubicweb-ctl" command should still work
as before.
--- a/debian/changelog Wed Jul 10 14:58:41 2019 +0200
+++ b/debian/changelog Fri Jul 12 11:49:46 2019 +0200
@@ -1,3 +1,9 @@
+cubicweb (3.26.12-2) UNRELEASED; urgency=medium
+
+ * Introduce a cubicweb-ctl3 binary package, conflicting with cubicweb-ctl.
+
+ -- Denis Laxalde <denis.laxalde@logilab.fr> Fri, 12 Jul 2019 11:54:09 +0200
+
cubicweb (3.26.12-1) unstable; urgency=medium
* New upstream release.
--- a/debian/control Wed Jul 10 14:58:41 2019 +0200
+++ b/debian/control Fri Jul 12 11:49:46 2019 +0200
@@ -126,7 +126,7 @@
graphviz,
gettext,
Recommends:
- cubicweb-ctl (= ${source:Version}),
+ cubicweb-ctl3 (= ${source:Version}),
python3-cubicweb-postgresql-support (= ${source:Version})
| sqlite3,
python3-cubicweb-pyramid (= ${source:Version}),
@@ -251,6 +251,24 @@
${misc:Depends},
${python:Depends},
python-cubicweb (= ${source:Version})
+Conflicts:
+ cubicweb-ctl3,
+Description: tool to manage the CubicWeb framework
+ CubicWeb is a semantic web application framework.
+ .
+ This package provides a control script to manage (create, upgrade, start,
+ stop, etc) CubicWeb applications. It also include the init.d script
+ to automatically start and stop CubicWeb applications on boot or shutdown.
+
+
+Package: cubicweb-ctl3
+Architecture: all
+Depends:
+ ${misc:Depends},
+ ${python3:Depends},
+ python3-cubicweb (= ${source:Version})
+Conflicts:
+ cubicweb-ctl,
Description: tool to manage the CubicWeb framework
CubicWeb is a semantic web application framework.
.
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/debian/cubicweb-ctl3.dirs Fri Jul 12 11:49:46 2019 +0200
@@ -0,0 +1,6 @@
+etc/init.d
+etc/cubicweb.d
+usr/bin
+var/log/cubicweb
+var/lib/cubicweb/backup
+var/lib/cubicweb/instances
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/debian/cubicweb-ctl3.manpages Fri Jul 12 11:49:46 2019 +0200
@@ -0,0 +1,1 @@
+man/cubicweb-ctl.1
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/debian/cubicweb-ctl3.postrm Fri Jul 12 11:49:46 2019 +0200
@@ -0,0 +1,11 @@
+#!/bin/sh -e
+
+if [ "$1" = "purge" ] ; then
+ rm -rf /etc/cubicweb.d/
+ rm -rf /var/log/cubicweb/
+ rm -rf /var/lib/cubicweb/
+fi
+
+#DEBHELPER#
+
+exit 0
--- a/debian/rules Wed Jul 10 14:58:41 2019 +0200
+++ b/debian/rules Fri Jul 12 11:49:46 2019 +0200
@@ -27,4 +27,5 @@
dh_auto_install
mkdir -p debian/cubicweb-ctl/usr/bin
mv debian/python-cubicweb/usr/bin/cubicweb-ctl debian/cubicweb-ctl/usr/bin
- rm debian/python3-cubicweb/usr/bin/cubicweb-ctl
+ mkdir -p debian/cubicweb-ctl3/usr/bin
+ mv debian/python3-cubicweb/usr/bin/cubicweb-ctl debian/cubicweb-ctl3/usr/bin