[SCM] Debian packaging for jack-audio-connection-kit branch, master, updated. debian/0.116.1-4-4-ga335253

adiknoth-guest at users.alioth.debian.org adiknoth-guest at users.alioth.debian.org
Tue Mar 17 18:31:42 UTC 2009


The following commit has been merged in the master branch:
commit a335253621324b04f7f62b11c656aec4f5bb5627
Author: Adrian Knoth <adi at drcomp.erfurt.thur.de>
Date:   Tue Mar 17 19:26:53 2009 +0100

    Ask user about rt prio settings (Closes: #507248), debhelper and
    standards version bump

diff --git a/debian/jackd.config b/debian/jackd.config
new file mode 100644
index 0000000..85bbaa0
--- /dev/null
+++ b/debian/jackd.config
@@ -0,0 +1,9 @@
+#!/bin/sh -e
+
+# Source debconf library.
+. /usr/share/debconf/confmodule
+
+# realtime prio?
+db_input high jackd/tweak_rt_limits
+db_go
+
diff --git a/debian/jackd.postinst b/debian/jackd.postinst
new file mode 100644
index 0000000..66c859d
--- /dev/null
+++ b/debian/jackd.postinst
@@ -0,0 +1,29 @@
+#!/bin/sh -e
+
+# Source debconf library.
+. /usr/share/debconf/confmodule
+
+CONFIG_FILE=/etc/security/limits.d/audio
+
+db_get jackd/tweak_rt_limits
+if [ $RET = "true" ]; then
+   mkdir -p $(dirname $CONFIG_FILE)
+   cat > $CONFIG_FILE << EOF
+# generated by jackd's postinst.
+#
+# Do not edit this file by hand, use
+#
+#    dpkg-reconfigure -p high jackd
+#
+# instead.
+ at audio   -  rtprio     99
+ at audio   -  memlock    unlimited
+#@audio   -  nice      -19
+EOF
+
+else
+    # user doesn't want RT prio
+    rm -rf $CONFIG_FILE
+fi
+
+#DEBHELPER#
diff --git a/debian/jackd.postrm b/debian/jackd.postrm
new file mode 100644
index 0000000..7e653f5
--- /dev/null
+++ b/debian/jackd.postrm
@@ -0,0 +1,22 @@
+#!/bin/sh -e
+#
+#
+CONFIG_FILE=/etc/security/limits.d/audio
+
+if [ "$1" = "purge" ]
+then
+    if [ -e $CONFIG_FILE ]
+    then
+        rm $CONFIG_FILE
+    fi
+
+    # if we still have debconf, also remove our entries from the DB
+    if [ -e /usr/share/debconf/confmodule ]
+    then
+        # Source debconf library.
+        . /usr/share/debconf/confmodule
+        db_purge
+    fi
+fi
+
+#DEBHELPER#
diff --git a/debian/jackd.templates b/debian/jackd.templates
new file mode 100644
index 0000000..542b682
--- /dev/null
+++ b/debian/jackd.templates
@@ -0,0 +1,17 @@
+Template: jackd/tweak_rt_limits
+Type: boolean
+Default: false
+_Description: Do you want to enable realtime priorities in /etc/security/limits.d?
+ If you want to run jackd with realtime priorities, the user starting jackd
+ needs realtime permissions. This is usually accomplished by tweaking
+ rtprio and memlock in /etc/security/limits.conf, either for a specific
+ user or for the audio group in general.
+ .
+ Raising memlock and rtprio limits may lead to complete system lock-ups due
+ to highest scheduler priorities or denial of service attacks by requesting
+ all the available physical system memory, which is unacceptable in
+ multi-user environments.
+ .
+ The Debian default is to DISABLE realtime priorities, however, if you
+ intend to run jackd with very low latencies, enable this option in order to
+ place the approriate settings in /etc/security/limits.d/audio.
diff --git a/debian/po/POTFILES.in b/debian/po/POTFILES.in
new file mode 100644
index 0000000..9eb3215
--- /dev/null
+++ b/debian/po/POTFILES.in
@@ -0,0 +1,2 @@
+[type: gettext/rfc822deb] jackd.templates
+
diff --git a/debian/po/templates.pot b/debian/po/templates.pot
new file mode 100644
index 0000000..63e95bd
--- /dev/null
+++ b/debian/po/templates.pot
@@ -0,0 +1,52 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+# FIRST AUTHOR <EMAIL at ADDRESS>, YEAR.
+#
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"Report-Msgid-Bugs-To: jack-audio-connection-kit at packages.debian.org\n"
+"POT-Creation-Date: 2009-03-17 18:39+0100\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
+"Language-Team: LANGUAGE <LL at li.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=CHARSET\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: boolean
+#. Description
+#: ../jackd.templates:1001
+msgid "Do you want to enable realtime priorities in /etc/security/limits.d?"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../jackd.templates:1001
+msgid ""
+"If you want to run jackd with realtime priorities, the user starting jackd "
+"needs realtime permissions. This is usually accomplished by tweaking rtprio "
+"and memlock in /etc/security/limits.conf, either for a specific user or for "
+"the audio group in general."
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../jackd.templates:1001
+msgid ""
+"Raising memlock and rtprio limits may lead to complete system lock-ups due "
+"to highest scheduler priorities or denial of service attacks by requesting "
+"all the available physical system memory, which is unacceptable in multi-"
+"user environments."
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../jackd.templates:1001
+msgid ""
+"The Debian default is to DISABLE realtime priorities, however, if you intend "
+"to run jackd with very low latencies, enable this option in order to place "
+"the approriate settings in /etc/security/limits.d/audio."
+msgstr ""

-- 
Debian packaging for jack-audio-connection-kit



More information about the pkg-multimedia-commits mailing list