[PATCH] Switch to ucf.

Adrian Knoth adi at drcomp.erfurt.thur.de
Mon Mar 8 19:56:16 UTC 2010


Jonas suggested to use ucf instead of dpkg for audio.conf
---
 debian/jackd.examples |    1 +
 debian/jackd.install  |    1 -
 debian/jackd.postinst |    2 +-
 debian/jackd.postrm   |    1 +
 4 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/debian/jackd.examples b/debian/jackd.examples
index 87bfe17..6c6b2a4 100644
--- a/debian/jackd.examples
+++ b/debian/jackd.examples
@@ -1 +1,2 @@
 debian/asound.rc
+debian/audio.conf
diff --git a/debian/jackd.install b/debian/jackd.install
index c4b2175..5db77be 100644
--- a/debian/jackd.install
+++ b/debian/jackd.install
@@ -1,4 +1,3 @@
 debian/tmp/usr/bin/jack*
 debian/tmp/usr/share/*
 debian/bash_completion.d etc
-debian/audio.conf etc/security/limits.d
diff --git a/debian/jackd.postinst b/debian/jackd.postinst
index 6cb11b5..9726539 100644
--- a/debian/jackd.postinst
+++ b/debian/jackd.postinst
@@ -7,7 +7,7 @@ CONFIG_FILE=/etc/security/limits.d/audio.conf
 
 db_get jackd/tweak_rt_limits
 if [ $RET = "true" ]; then
-    mv ${CONFIG_FILE}.disabled ${CONFIG_FILE} || true
+    ucf --debconf-ok /usr/share/doc/jackd/examples/audio.conf /etc/security/limits.d/audio.conf
 else
     # user doesn't want RT prio
     mv $CONFIG_FILE ${CONFIG_FILE}.disabled || true
diff --git a/debian/jackd.postrm b/debian/jackd.postrm
index 605917c..9bfd3fd 100644
--- a/debian/jackd.postrm
+++ b/debian/jackd.postrm
@@ -7,6 +7,7 @@ if [ "$1" = "purge" ]
 then
     if [ -e $CONFIG_FILE ]
     then
+        ucf --purge /etc/security/limits.d/audio.conf
         rm $CONFIG_FILE
     fi
 
-- 
1.7.0


--cWoXeonUoKmBZSoM--



More information about the pkg-multimedia-maintainers mailing list