aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--debian/control2
-rw-r--r--debian/nxagent.install2
-rwxr-xr-xdebian/nxagent.postinst8
-rwxr-xr-xdebian/nxagent.postrm8
-rwxr-xr-xdebian/nxagent.preinst8
5 files changed, 26 insertions, 2 deletions
diff --git a/debian/control b/debian/control
index eb0d68904..a98f7f6f0 100644
--- a/debian/control
+++ b/debian/control
@@ -39,6 +39,8 @@ Vcs-Browser: https://github.com/ArcticaProject/nx-libs/
Package: nx-x11-common
Architecture: all
Multi-Arch: foreign
+Pre-Depends:
+ dpkg (>= 1.15.7.2),
Depends:
${misc:Depends},
Breaks: nxlibs (<= 3.5.1),
diff --git a/debian/nxagent.install b/debian/nxagent.install
index 5f6a9de35..34f5c3a76 100644
--- a/debian/nxagent.install
+++ b/debian/nxagent.install
@@ -1,6 +1,4 @@
etc/nxagent/keystrokes.cfg
-etc/nxagent/rgb
-usr/share/nx/rgb
usr/share/nx/VERSION.nxagent
usr/share/man/man1/nxagent.1*
usr/lib/*/nx/bin/nxagent
diff --git a/debian/nxagent.postinst b/debian/nxagent.postinst
new file mode 100755
index 000000000..8ad000e9b
--- /dev/null
+++ b/debian/nxagent.postinst
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+set -e
+
+dpkg-maintscript-helper rm_conffile \
+ /etc/nxagent/rgb "2:3.5.99.4-999" nxagent -- "$@"
+
+#DEBHELPER#
diff --git a/debian/nxagent.postrm b/debian/nxagent.postrm
new file mode 100755
index 000000000..8ad000e9b
--- /dev/null
+++ b/debian/nxagent.postrm
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+set -e
+
+dpkg-maintscript-helper rm_conffile \
+ /etc/nxagent/rgb "2:3.5.99.4-999" nxagent -- "$@"
+
+#DEBHELPER#
diff --git a/debian/nxagent.preinst b/debian/nxagent.preinst
new file mode 100755
index 000000000..8ad000e9b
--- /dev/null
+++ b/debian/nxagent.preinst
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+set -e
+
+dpkg-maintscript-helper rm_conffile \
+ /etc/nxagent/rgb "2:3.5.99.4-999" nxagent -- "$@"
+
+#DEBHELPER#