summaryrefslogtreecommitdiff
path: root/distro-specific-build-files
diff options
context:
space:
mode:
authorlupine <lupine@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2007-01-23 14:33:32 +0000
committerlupine <lupine@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2007-01-23 14:33:32 +0000
commitec738131dbe3a9d76dd8df9975e26554c9f46ae5 (patch)
treec0e58d3db6d8fe21911be83b233ec0c2ef80d760 /distro-specific-build-files
parent089bead7146d00641fcc0b5b996d17fe3110322a (diff)
downloadmarex-dev-ec738131dbe3a9d76dd8df9975e26554c9f46ae5.tar.gz
marex-dev-ec738131dbe3a9d76dd8df9975e26554c9f46ae5.tar.bz2
Bug #120
git-svn-id: file:///beryl/trunk@3035 d7aaf104-2d23-0410-ae22-9d23157bf5a3
Diffstat (limited to 'distro-specific-build-files')
-rwxr-xr-xdistro-specific-build-files/beryl-core/debian/beryl-core.postinst6
-rwxr-xr-xdistro-specific-build-files/beryl-core/debian/beryl-core.prerm6
-rwxr-xr-xdistro-specific-build-files/beryl-core/debian/rules7
3 files changed, 19 insertions, 0 deletions
diff --git a/distro-specific-build-files/beryl-core/debian/beryl-core.postinst b/distro-specific-build-files/beryl-core/debian/beryl-core.postinst
new file mode 100755
index 0000000..8b947ee
--- /dev/null
+++ b/distro-specific-build-files/beryl-core/debian/beryl-core.postinst
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+update-alternatives --install /usr/bin/x-window-manager x-window-manager /usr/bin/beryl 30
+update-alternatives --install /usr/bin/x-window-manager x-window-manager /usr/bin/beryl-xgl 30
+
+exit 0
diff --git a/distro-specific-build-files/beryl-core/debian/beryl-core.prerm b/distro-specific-build-files/beryl-core/debian/beryl-core.prerm
new file mode 100755
index 0000000..0f8ad97
--- /dev/null
+++ b/distro-specific-build-files/beryl-core/debian/beryl-core.prerm
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+update-alternatives --remove x-window-manager /usr/bin/beryl
+update-alternatives --remove x-window-manager /usr/bin/beryl-xgl
+
+exit 0
diff --git a/distro-specific-build-files/beryl-core/debian/rules b/distro-specific-build-files/beryl-core/debian/rules
index 1188093..3ba5949 100755
--- a/distro-specific-build-files/beryl-core/debian/rules
+++ b/distro-specific-build-files/beryl-core/debian/rules
@@ -10,3 +10,10 @@ DEB_INSTALL_DOCS_ALL := README NEWS
DEB_INSTALL_MANPAGES_beryl-core := doc/beryl.1 doc/beryl-xgl.1
DEB_INSTALL_MANPAGES_beryl-dev := doc/beryl-settings-dump.1
DEB_INSTALL_MANPAGES_libberylsettings-dev := doc/beryl_settings_context_new.3 doc/beryl_settings_context_destroy.3
+
+install/beryl-core::
+ mkdir -p debian/beryl-core/DEBIAN
+ cp debian/beryl-core.postinst debian/beryl-core/DEBIAN/prerm
+ cp debian/beryl-core.prerm debian/beryl-core/DEBIAN/prerm
+
+