[pkg-fso-commits] [SCM] FSO frameworkd Debian packaging branch, gismo-debian-split-config, updated. debian/0.2.0-git20080909-6-16-gf62d50e

Luca Capello luca at pca.it
Fri Oct 31 11:53:36 UTC 2008


The following commit has been merged in the gismo-debian-split-config branch:
commit f62d50e3fe5faf800b49a145d3369985aadd330b
Author: Luca Capello <luca at pca.it>
Date:   Fri Oct 31 12:53:29 2008 +0100

    new binary package fso-sounds-none

diff --git a/debian/README.Debian b/debian/README.Debian
index 8a0cbfd..bb90b70 100644
--- a/debian/README.Debian
+++ b/debian/README.Debian
@@ -38,9 +38,10 @@ allow an easier customization, each fso-sounds-* package should
 provide a phone file named after the $ORIGIN part of the package name,
 to be installed into /usr/share/fso-sounds-rules.  This file should
 then be registered as an alternative for the upstream default file
-through update-alternatives.
+through update-alternatives.  The fso-sounds-none package can be used
+as an example.
 
 If you want to know a list of all availables fso-sounds-* package,
 please use `apt-cache showpkg fso-sounds`, section "Reverse Provides".
 
- -- Luca Capello <luca at pca.it>, Fri, 31 Oct 2008 12:24:03 +0100
+ -- Luca Capello <luca at pca.it>, Fri, 31 Oct 2008 12:33:37 +0100
diff --git a/debian/changelog b/debian/changelog
index dcf787c..32f2af5 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -4,6 +4,7 @@ fso-frameworkd (0.2.0-git20080909-7) UNRELEASED; urgency=low
   * debian/control:
     + Recommends: the fso-config and fso-sounds virtual packages.
     + Replaces: previous versions.
+    + new binary package fso-sounds-none.
     - remove gstreamer0.10-plugins-good, gstreamer0.10-plugins-bad
       and gstreamer0.10-plugins-ugly from Depends:, they must be
       pulled in by the fso-sounds-* packages, as they are specific
@@ -22,12 +23,15 @@ fso-frameworkd (0.2.0-git20080909-7) UNRELEASED; urgency=low
     + backup the old configuration rules files if they have been
       modified, since they are now provided by the fso-config
       virtual package.
+  * debian/fso-sounds-none.*: new files.
   * debian/NEWS: new file.
+  * debian/none.yaml: new file.
   * debian/README.Debian:
     + explain the need for /etc/frameworkd.conf.
     + explain what a fso-config-* package is and contains.
     + explain what a fso-sounds-* package is and contains.
   * debian/rules:
+    + install fso-sounds-none files.
     - no more need to generate the debian/sounds/*.
   * debian/scenarios: removed.
   * debian/sounds.base64: removed (Closes: #495668).
diff --git a/debian/control b/debian/control
index 9b0c22f..ad598a3 100644
--- a/debian/control
+++ b/debian/control
@@ -34,3 +34,16 @@ Description: freesmartphone.org Framework Daemon - wireless glue
  .
  This package is part of the freesmartphone.org software stack and is targeted
  for smartphones.
+
+Package: fso-sounds-none
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Suggests: fso-frameworkd
+Conflicts: fso-frameworkd (<< 0.2.0-git20080909-7)
+Provides: fso-sounds
+Description: void ringtones for the FreeSmartphone.Org frameworkd
+ This packages configures the the FreeSmartphone.Org frameworkd for
+ no ringtones.
+ .
+ This package is part of the freesmartphone.org software stack and is targeted
+ for smartphones.
diff --git a/debian/fso-sounds-none.install b/debian/fso-sounds-none.install
new file mode 100644
index 0000000..b6d430d
--- /dev/null
+++ b/debian/fso-sounds-none.install
@@ -0,0 +1 @@
+debian/none.yaml /usr/share/fso-sounds-rules
diff --git a/debian/fso-sounds-none.postinst b/debian/fso-sounds-none.postinst
new file mode 100644
index 0000000..0d609be
--- /dev/null
+++ b/debian/fso-sounds-none.postinst
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+set -e
+
+# Register the phone file with update-alternatives.
+if [ "$1" = "configure" ]; then
+    update-alternatives \
+	--install \
+	/etc/freesmartphone/opreferences/conf/phone/default.yaml \
+	fso-frameworkd-default-sounds.yaml \
+	/usr/share/fso-sounds-rules/none.yaml \
+	20
+fi
diff --git a/debian/fso-sounds-none.prerm b/debian/fso-sounds-none.prerm
new file mode 100644
index 0000000..58f87a5
--- /dev/null
+++ b/debian/fso-sounds-none.prerm
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+set -e
+
+# Remove the phone file from update-alternatives.
+if [ "$1" = "remove" ]; then
+    update-alternatives \
+	--remove \
+	fso-frameworkd-default-sounds.yaml \
+	/usr/share/fso-sounds-rules/none.yaml
+fi
diff --git a/debian/none.yaml b/debian/none.yaml
new file mode 100644
index 0000000..abf6a70
--- /dev/null
+++ b/debian/none.yaml
@@ -0,0 +1,7 @@
+# Debian ring- and message-tones configuration: no sounds
+
+ring-tone: ""
+ring-volume: 0
+
+message-tone: ""
+message-volume: 0
diff --git a/debian/rules b/debian/rules
index 83a2ce3..e475067 100755
--- a/debian/rules
+++ b/debian/rules
@@ -18,6 +18,7 @@ install: build install-stamp
 install-stamp:
 	# Run this first
 	dh install --until dh_auto_install
+	dh_install -pfso-sounds-none
 	dh_install -pfso-frameworkd-wireless-glue
 	dh_install -pfso-frameworkd -X.so
 	dh install --after dh_install --before dh_compress

-- 
FSO frameworkd Debian packaging



More information about the pkg-fso-commits mailing list