Your message dated Fri, 12 Aug 2011 10:17:53 +0000
with message-id <e1qrool-0004li...@franck.debian.org>
and subject line Bug#623256: fixed in icecast2 2.3.2-7
has caused the Debian Bug report #623256,
regarding icecast2: added config/templates/postinst configuration
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
623256: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=623256
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: icecast2
Version: 2.3.2-6
Severity: wishlist
Tags: patch


I've added config-templates and postinst configuration (passwords, 
hostname, enable-service) to icecast2.

Attached patch applies to revision baf67ba (currently HEAD) on
  http://git.debian.org/?p=pkg-multimedia/icecast2.git


-- System Information:
Debian Release: 6.0
  APT prefers unstable
  APT policy: (400, 'unstable'), (300, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.33.7.2-rt30 (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages icecast2 depends on:
ii  adduser                   3.112+nmu2     add and remove users and groups
ii  debconf [debconf-2.0]     1.5.36         Debian configuration management sy
ii  libc6                     2.11.2-7       Embedded GNU C Library: Shared lib
ii  libcurl3-gnutls           7.21.0-1       Multi-protocol file transfer libra
ii  libkate1                  0.3.8-1        Kate is a codec for karaoke and te
ii  libogg0                   1.2.0~dfsg-1   Ogg bitstream library
ii  liboggkate1               0.3.8-1        Kate is a codec for karaoke and te
ii  libspeex1                 1.2~rc1-1      The Speex codec runtime library
ii  libssl0.9.8               0.9.8o-4       SSL shared libraries
ii  libtheora0                1.1.1+dfsg.1-3 The Theora Video Compression Codec
ii  libvorbis0a               1.3.1-1        The Vorbis General Audio Compressi
ii  libxml2                   2.7.8.dfsg-2   GNOME XML library
ii  libxslt1.1                1.1.26-6       XSLT 1.0 processing library - runt

icecast2 recommends no packages.

Versions of packages icecast2 suggests:
ii  ices2                         2.0.1-8    Ogg Vorbis streaming source for Ic

-- Configuration Files:
/etc/default/icecast2 changed [not included]
/etc/icecast2/icecast.xml [Errno 13] Permission denied: 
u'/etc/icecast2/icecast.xml'

-- no debconf information

*** /tmp/0001-added-configuration-template-postinst-setup.patch
>From 58b10173268e252f87a7e021d61a0e43ba3d13aa Mon Sep 17 00:00:00 2001
From: Robin Gareus <ro...@gareus.org>
Date: Mon, 18 Apr 2011 19:22:15 +0200
Subject: [PATCH] added configuration template&postinst setup.

---
 debian/config            |   25 +++++++++++++++++++++++++
 debian/icecast2.postinst |   35 ++++++++++++++++++++++++++++++++++-
 debian/templates         |   37 +++++++++++++++++++++++++++++++++++++
 3 files changed, 96 insertions(+), 1 deletions(-)
 create mode 100644 debian/config
 create mode 100644 debian/templates

diff --git a/debian/config b/debian/config
new file mode 100644
index 0000000..742ddf3
--- /dev/null
+++ b/debian/config
@@ -0,0 +1,25 @@
+#!/bin/bash
+# Debconf config script for icecast2
+
+set -e
+
+. /usr/share/debconf/confmodule
+
+db_input high icecast2/icecast-setup || true
+db_go ||true
+
+db_get icecast2/icecast-setup
+if [ "$RET" = "true" ]; then
+       db_input high icecast2/hostname || true
+       db_go ||true
+       db_input high icecast2/sourcepassword || true
+       db_go ||true
+       db_input high icecast2/relaypassword|| true
+       db_go ||true
+       db_input high icecast2/adminpassword || true
+       db_go ||true
+fi
+
+#DEBHELPER#
+
+exit 0
diff --git a/debian/icecast2.postinst b/debian/icecast2.postinst
index ca9a341..eb12a54 100644
--- a/debian/icecast2.postinst
+++ b/debian/icecast2.postinst
@@ -3,8 +3,10 @@
 
 set -e
 
+. /usr/share/debconf/confmodule
+
 case "$1" in
-    configure)
+    configure|reconfigure)
 
     ;;
 
@@ -34,6 +36,37 @@ id icecast2 >/dev/null 2>&1 || \
        adduser --system --quiet --disabled-password --disabled-login \
        --home /usr/share/icecast2 --no-create-home --ingroup icecast icecast2
 
+# set passwords
+db_get icecast2/icecast-setup
+if test "$RET" = "true"; then
+       if [ -f /etc/default/icecast2 -a -f /etc/icecast2/icecast.xml ]; then
+               echo "Configuring icecast2.." >&2
+               cat << _EOF_ \
+               | ed /etc/default/icecast2 2>/dev/null 1>&2 || true
+%s/^.*ENABLE=.*$/ENABLE=true/
+wq
+_EOF_
+
+               db_get icecast2/sourcepassword
+               ICESOURCE=$RET
+               db_get icecast2/relaypassword
+               ICERELAY=$RET
+               db_get icecast2/adminpassword
+               ICEADMIN=$RET
+               db_get icecast2/hostname
+               ICEHOST=$RET
+               cat << _EOF_ \
+               | ed /etc/icecast2/icecast.xml 2>/dev/null 1>&2 || true
+%s/<source-password>[^<]*<\/source-password>/<source-password>$ICESOURCE<\/source-password>/
+%s/<relay-password>[^<]*<\/relay-password>/<relay-password>$ICERELAY<\/relay-password>/
+%s/<admin-password>[^<]*<\/admin-password>/<admin-password>$ICEADMIN<\/admin-password>/
+%s/<hostname>[^<]*<\/hostname>/<hostname>$ICEHOST<\/hostname>/
+wq
+_EOF_
+               echo "Done Configuring icecast2.." >&2
+       fi
+fi
+
 chown -R icecast2: /var/log/icecast2 /etc/icecast2
 # Set all file readable by default
 chmod -R ug=rw,o=r,ugo+X /etc/icecast2
diff --git a/debian/templates b/debian/templates
new file mode 100644
index 0000000..64e00e7
--- /dev/null
+++ b/debian/templates
@@ -0,0 +1,37 @@
+Template: icecast2/icecast-setup
+Type: boolean
+Default: false
+Description: Setup Icecast2 - Enable Live HTTP Streaming?
+ This option allows enable icecast2 on this server
+ and configure passwords for icecast-server.
+ .
+ If you have already manually tweaked icecast2 configuration
+ it may not work as expected.
+
+Template: icecast2/hostname
+Type: string
+Default: localhost
+Description: Icecast2 Hostname:
+ Specify a fully qualified domain name.
+ Icecast2 uses this as prefix to all streams.
+
+Template: icecast2/sourcepassword
+Type: string
+Default: hackme
+Description: Icecast2 Source Password:
+ Specify a password to send A/V sources to icecast
+
+Template: icecast2/relaypassword
+Type: string
+Default: hackme
+Description: Icecast2 Relay Password:
+ Specify the default password for stream relay access.
+
+Template: icecast2/adminpassword
+Type: string
+Default: hackme
+Description: Icecast2 Admin Password:
+ Specify the admin password. 
+ You can access icecast2's admin interface via
+ http://localhost:8000/ - and both monitor connection as
+ well as block users.
-- 
1.7.2.3
>From 58b10173268e252f87a7e021d61a0e43ba3d13aa Mon Sep 17 00:00:00 2001
From: Robin Gareus <ro...@gareus.org>
Date: Mon, 18 Apr 2011 19:22:15 +0200
Subject: [PATCH] added configuration template&postinst setup.

---
 debian/config            |   25 +++++++++++++++++++++++++
 debian/icecast2.postinst |   35 ++++++++++++++++++++++++++++++++++-
 debian/templates         |   37 +++++++++++++++++++++++++++++++++++++
 3 files changed, 96 insertions(+), 1 deletions(-)
 create mode 100644 debian/config
 create mode 100644 debian/templates

diff --git a/debian/config b/debian/config
new file mode 100644
index 0000000..742ddf3
--- /dev/null
+++ b/debian/config
@@ -0,0 +1,25 @@
+#!/bin/bash
+# Debconf config script for icecast2
+
+set -e
+
+. /usr/share/debconf/confmodule
+
+db_input high icecast2/icecast-setup || true
+db_go ||true
+
+db_get icecast2/icecast-setup
+if [ "$RET" = "true" ]; then
+       db_input high icecast2/hostname || true
+       db_go ||true
+       db_input high icecast2/sourcepassword || true
+       db_go ||true
+       db_input high icecast2/relaypassword|| true
+       db_go ||true
+       db_input high icecast2/adminpassword || true
+       db_go ||true
+fi
+
+#DEBHELPER#
+
+exit 0
diff --git a/debian/icecast2.postinst b/debian/icecast2.postinst
index ca9a341..eb12a54 100644
--- a/debian/icecast2.postinst
+++ b/debian/icecast2.postinst
@@ -3,8 +3,10 @@
 
 set -e
 
+. /usr/share/debconf/confmodule
+
 case "$1" in
-    configure)
+    configure|reconfigure)
 
     ;;
 
@@ -34,6 +36,37 @@ id icecast2 >/dev/null 2>&1 || \
        adduser --system --quiet --disabled-password --disabled-login \
        --home /usr/share/icecast2 --no-create-home --ingroup icecast icecast2
 
+# set passwords
+db_get icecast2/icecast-setup
+if test "$RET" = "true"; then
+       if [ -f /etc/default/icecast2 -a -f /etc/icecast2/icecast.xml ]; then
+               echo "Configuring icecast2.." >&2
+               cat << _EOF_ \
+               | ed /etc/default/icecast2 2>/dev/null 1>&2 || true
+%s/^.*ENABLE=.*$/ENABLE=true/
+wq
+_EOF_
+
+               db_get icecast2/sourcepassword
+               ICESOURCE=$RET
+               db_get icecast2/relaypassword
+               ICERELAY=$RET
+               db_get icecast2/adminpassword
+               ICEADMIN=$RET
+               db_get icecast2/hostname
+               ICEHOST=$RET
+               cat << _EOF_ \
+               | ed /etc/icecast2/icecast.xml 2>/dev/null 1>&2 || true
+%s/<source-password>[^<]*<\/source-password>/<source-password>$ICESOURCE<\/source-password>/
+%s/<relay-password>[^<]*<\/relay-password>/<relay-password>$ICERELAY<\/relay-password>/
+%s/<admin-password>[^<]*<\/admin-password>/<admin-password>$ICEADMIN<\/admin-password>/
+%s/<hostname>[^<]*<\/hostname>/<hostname>$ICEHOST<\/hostname>/
+wq
+_EOF_
+               echo "Done Configuring icecast2.." >&2
+       fi
+fi
+
 chown -R icecast2: /var/log/icecast2 /etc/icecast2
 # Set all file readable by default
 chmod -R ug=rw,o=r,ugo+X /etc/icecast2
diff --git a/debian/templates b/debian/templates
new file mode 100644
index 0000000..64e00e7
--- /dev/null
+++ b/debian/templates
@@ -0,0 +1,37 @@
+Template: icecast2/icecast-setup
+Type: boolean
+Default: false
+Description: Setup Icecast2 - Enable Live HTTP Streaming?
+ This option allows enable icecast2 on this server
+ and configure passwords for icecast-server.
+ .
+ If you have already manually tweaked icecast2 configuration
+ it may not work as expected.
+
+Template: icecast2/hostname
+Type: string
+Default: localhost
+Description: Icecast2 Hostname:
+ Specify a fully qualified domain name.
+ Icecast2 uses this as prefix to all streams.
+
+Template: icecast2/sourcepassword
+Type: string
+Default: hackme
+Description: Icecast2 Source Password:
+ Specify a password to send A/V sources to icecast
+
+Template: icecast2/relaypassword
+Type: string
+Default: hackme
+Description: Icecast2 Relay Password:
+ Specify the default password for stream relay access.
+
+Template: icecast2/adminpassword
+Type: string
+Default: hackme
+Description: Icecast2 Admin Password:
+ Specify the admin password. 
+ You can access icecast2's admin interface via
+ http://localhost:8000/ - and both monitor connection as
+ well as block users.
-- 
1.7.2.3

>From 58b10173268e252f87a7e021d61a0e43ba3d13aa Mon Sep 17 00:00:00 2001
From: Robin Gareus <ro...@gareus.org>
Date: Mon, 18 Apr 2011 19:22:15 +0200
Subject: [PATCH] added configuration template&postinst setup.

---
 debian/config            |   25 +++++++++++++++++++++++++
 debian/icecast2.postinst |   35 ++++++++++++++++++++++++++++++++++-
 debian/templates         |   37 +++++++++++++++++++++++++++++++++++++
 3 files changed, 96 insertions(+), 1 deletions(-)
 create mode 100644 debian/config
 create mode 100644 debian/templates

diff --git a/debian/config b/debian/config
new file mode 100644
index 0000000..742ddf3
--- /dev/null
+++ b/debian/config
@@ -0,0 +1,25 @@
+#!/bin/bash
+# Debconf config script for icecast2
+
+set -e
+
+. /usr/share/debconf/confmodule
+
+db_input high icecast2/icecast-setup || true
+db_go ||true
+
+db_get icecast2/icecast-setup
+if [ "$RET" = "true" ]; then
+       db_input high icecast2/hostname || true
+       db_go ||true
+       db_input high icecast2/sourcepassword || true
+       db_go ||true
+       db_input high icecast2/relaypassword|| true
+       db_go ||true
+       db_input high icecast2/adminpassword || true
+       db_go ||true
+fi
+
+#DEBHELPER#
+
+exit 0
diff --git a/debian/icecast2.postinst b/debian/icecast2.postinst
index ca9a341..eb12a54 100644
--- a/debian/icecast2.postinst
+++ b/debian/icecast2.postinst
@@ -3,8 +3,10 @@
 
 set -e
 
+. /usr/share/debconf/confmodule
+
 case "$1" in
-    configure)
+    configure|reconfigure)
 
     ;;
 
@@ -34,6 +36,37 @@ id icecast2 >/dev/null 2>&1 || \
        adduser --system --quiet --disabled-password --disabled-login \
        --home /usr/share/icecast2 --no-create-home --ingroup icecast icecast2
 
+# set passwords
+db_get icecast2/icecast-setup
+if test "$RET" = "true"; then
+       if [ -f /etc/default/icecast2 -a -f /etc/icecast2/icecast.xml ]; then
+               echo "Configuring icecast2.." >&2
+               cat << _EOF_ \
+               | ed /etc/default/icecast2 2>/dev/null 1>&2 || true
+%s/^.*ENABLE=.*$/ENABLE=true/
+wq
+_EOF_
+
+               db_get icecast2/sourcepassword
+               ICESOURCE=$RET
+               db_get icecast2/relaypassword
+               ICERELAY=$RET
+               db_get icecast2/adminpassword
+               ICEADMIN=$RET
+               db_get icecast2/hostname
+               ICEHOST=$RET
+               cat << _EOF_ \
+               | ed /etc/icecast2/icecast.xml 2>/dev/null 1>&2 || true
+%s/<source-password>[^<]*<\/source-password>/<source-password>$ICESOURCE<\/source-password>/
+%s/<relay-password>[^<]*<\/relay-password>/<relay-password>$ICERELAY<\/relay-password>/
+%s/<admin-password>[^<]*<\/admin-password>/<admin-password>$ICEADMIN<\/admin-password>/
+%s/<hostname>[^<]*<\/hostname>/<hostname>$ICEHOST<\/hostname>/
+wq
+_EOF_
+               echo "Done Configuring icecast2.." >&2
+       fi
+fi
+
 chown -R icecast2: /var/log/icecast2 /etc/icecast2
 # Set all file readable by default
 chmod -R ug=rw,o=r,ugo+X /etc/icecast2
diff --git a/debian/templates b/debian/templates
new file mode 100644
index 0000000..64e00e7
--- /dev/null
+++ b/debian/templates
@@ -0,0 +1,37 @@
+Template: icecast2/icecast-setup
+Type: boolean
+Default: false
+Description: Setup Icecast2 - Enable Live HTTP Streaming?
+ This option allows enable icecast2 on this server
+ and configure passwords for icecast-server.
+ .
+ If you have already manually tweaked icecast2 configuration
+ it may not work as expected.
+
+Template: icecast2/hostname
+Type: string
+Default: localhost
+Description: Icecast2 Hostname:
+ Specify a fully qualified domain name.
+ Icecast2 uses this as prefix to all streams.
+
+Template: icecast2/sourcepassword
+Type: string
+Default: hackme
+Description: Icecast2 Source Password:
+ Specify a password to send A/V sources to icecast
+
+Template: icecast2/relaypassword
+Type: string
+Default: hackme
+Description: Icecast2 Relay Password:
+ Specify the default password for stream relay access.
+
+Template: icecast2/adminpassword
+Type: string
+Default: hackme
+Description: Icecast2 Admin Password:
+ Specify the admin password. 
+ You can access icecast2's admin interface via
+ http://localhost:8000/ - and both monitor connection as
+ well as block users.
-- 
1.7.2.3


--- End Message ---
--- Begin Message ---
Source: icecast2
Source-Version: 2.3.2-7

We believe that the bug you reported is fixed in the latest version of
icecast2, which is due to be installed in the Debian FTP archive:

icecast2_2.3.2-7.debian.tar.gz
  to main/i/icecast2/icecast2_2.3.2-7.debian.tar.gz
icecast2_2.3.2-7.dsc
  to main/i/icecast2/icecast2_2.3.2-7.dsc
icecast2_2.3.2-7_amd64.deb
  to main/i/icecast2/icecast2_2.3.2-7_amd64.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 623...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Alessio Treglia <ales...@debian.org> (supplier of updated icecast2 package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Fri, 12 Aug 2011 11:42:18 +0200
Source: icecast2
Binary: icecast2
Architecture: source amd64
Version: 2.3.2-7
Distribution: unstable
Urgency: low
Maintainer: Debian Multimedia Maintainers 
<pkg-multimedia-maintainers@lists.alioth.debian.org>
Changed-By: Alessio Treglia <ales...@debian.org>
Description: 
 icecast2   - streaming media server
Closes: 610830 623256
Changes: 
 icecast2 (2.3.2-7) unstable; urgency=low
 .
   * Team upload.
 .
   [ Jonas Smedegaard ]
   * Tidy user+group creation and removal.
 .
   [ Alessio Treglia ]
   * Switch to source format 3.0 (quilt).
   * Improve the short description, video streaming support was
     not mentioned (Closes: #610830).
   * Add config/templates/postinst configuration (Closes: #623256).
     Thanks to Robin Gareus for the patch.
   * Bump Standards.
Checksums-Sha1: 
 d137ba80623adfb2359c8ddc0d7e25c11684242b 1589 icecast2_2.3.2-7.dsc
 96fa168fe5a10dc6fe4dfb1074529ee7f95151d7 27617 icecast2_2.3.2-7.debian.tar.gz
 87d42a890cda4a36b9c0b7dccb89e251f3eb3078 320020 icecast2_2.3.2-7_amd64.deb
Checksums-Sha256: 
 f6720167ca0dd3bb41603cb76c14efbeead587f34ca723f6fd2258ebffe74cf4 1589 
icecast2_2.3.2-7.dsc
 652aa0fea0033e00d91fff2fb7485e2aa1a87f8940965a61e052086c194caa0e 27617 
icecast2_2.3.2-7.debian.tar.gz
 86ef2ceb91c06ff0a1f8b19f8a2d07aa6e5f8fb857dae06cc1369e843affbf2c 320020 
icecast2_2.3.2-7_amd64.deb
Files: 
 2232a3e201fab213f8901b6f4e2d8d9e 1589 sound optional icecast2_2.3.2-7.dsc
 79ea0b395a694edf7c0dc47944d71cd6 27617 sound optional 
icecast2_2.3.2-7.debian.tar.gz
 d3ae4aa5c43086d11ba93523f6498076 320020 sound optional 
icecast2_2.3.2-7_amd64.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iEYEARECAAYFAk5E/HsACgkQRdSMfNz8P9Dd7QCfQlK3J/HdIhFsSOj4OasnaYZR
QFcAmQHWQliUta1p/QgnjRuFcof5vKnA
=U3wu
-----END PGP SIGNATURE-----



--- End Message ---
_______________________________________________
pkg-multimedia-maintainers mailing list
pkg-multimedia-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-multimedia-maintainers

Reply via email to