aboutsummaryrefslogtreecommitdiff
path: root/subsonic-installer-debian/src/DEBIAN
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2012-07-02 21:24:02 -0700
committerScott Jackson <daneren2005@gmail.com>2012-07-02 21:24:02 -0700
commita1a18f77a50804e0127dfa4b0f5240c49c541184 (patch)
tree19a38880afe505beddb5590379a8134d7730a277 /subsonic-installer-debian/src/DEBIAN
parentb61d787706979e7e20f4c3c4f93c1f129d92273f (diff)
downloaddsub-a1a18f77a50804e0127dfa4b0f5240c49c541184.tar.gz
dsub-a1a18f77a50804e0127dfa4b0f5240c49c541184.tar.bz2
dsub-a1a18f77a50804e0127dfa4b0f5240c49c541184.zip
Initial Commit
Diffstat (limited to 'subsonic-installer-debian/src/DEBIAN')
-rw-r--r--subsonic-installer-debian/src/DEBIAN/conffiles1
-rw-r--r--subsonic-installer-debian/src/DEBIAN/control18
-rw-r--r--subsonic-installer-debian/src/DEBIAN/postinst16
-rw-r--r--subsonic-installer-debian/src/DEBIAN/postrm9
-rw-r--r--subsonic-installer-debian/src/DEBIAN/preinst8
-rw-r--r--subsonic-installer-debian/src/DEBIAN/prerm8
6 files changed, 60 insertions, 0 deletions
diff --git a/subsonic-installer-debian/src/DEBIAN/conffiles b/subsonic-installer-debian/src/DEBIAN/conffiles
new file mode 100644
index 00000000..06573282
--- /dev/null
+++ b/subsonic-installer-debian/src/DEBIAN/conffiles
@@ -0,0 +1 @@
+/etc/default/subsonic
diff --git a/subsonic-installer-debian/src/DEBIAN/control b/subsonic-installer-debian/src/DEBIAN/control
new file mode 100644
index 00000000..df40dcb6
--- /dev/null
+++ b/subsonic-installer-debian/src/DEBIAN/control
@@ -0,0 +1,18 @@
+Package: subsonic
+Version: @VERSION@
+Section: Multimedia
+Priority: optional
+Recommends: lame, ffmpeg
+Architecture: all
+Maintainer: Sindre Mehus <sindre@activeobjects.no>
+Description: A web-based music streamer, jukebox and Podcast receiver
+ Subsonic is a web-based music streamer, jukebox and Podcast receiver,
+ providing access to your music collection wherever you are. Use it
+ to share your music with friends, or to listen to your music while away
+ from home.
+ .
+ Apps for Android, iPhone and Windows Phone are also available.
+ .
+ Java 1.6 or higher is required to run Subsonic.
+ .
+ Subsonic can be found at http://subsonic.org
diff --git a/subsonic-installer-debian/src/DEBIAN/postinst b/subsonic-installer-debian/src/DEBIAN/postinst
new file mode 100644
index 00000000..da88dd9e
--- /dev/null
+++ b/subsonic-installer-debian/src/DEBIAN/postinst
@@ -0,0 +1,16 @@
+#! /bin/sh
+
+set -e
+
+ln -sf /usr/share/subsonic/subsonic.sh /usr/bin/subsonic
+
+chmod 750 /var/subsonic
+
+# Clear jetty cache.
+rm -rf /var/subsonic/jetty
+
+# Configure Subsonic service.
+update-rc.d subsonic defaults 99
+
+# Start Subsonic service.
+invoke-rc.d subsonic start
diff --git a/subsonic-installer-debian/src/DEBIAN/postrm b/subsonic-installer-debian/src/DEBIAN/postrm
new file mode 100644
index 00000000..1ecc392d
--- /dev/null
+++ b/subsonic-installer-debian/src/DEBIAN/postrm
@@ -0,0 +1,9 @@
+#! /bin/sh
+
+set -e
+
+# Remove symlink.
+rm -f /usr/bin/subsonic
+
+# Remove startup scripts.
+update-rc.d -f subsonic remove
diff --git a/subsonic-installer-debian/src/DEBIAN/preinst b/subsonic-installer-debian/src/DEBIAN/preinst
new file mode 100644
index 00000000..e15501e5
--- /dev/null
+++ b/subsonic-installer-debian/src/DEBIAN/preinst
@@ -0,0 +1,8 @@
+#! /bin/sh
+
+set -e
+
+# Stop Subsonic service.
+if [ -e /etc/init.d/subsonic ]; then
+ invoke-rc.d subsonic stop
+fi
diff --git a/subsonic-installer-debian/src/DEBIAN/prerm b/subsonic-installer-debian/src/DEBIAN/prerm
new file mode 100644
index 00000000..e15501e5
--- /dev/null
+++ b/subsonic-installer-debian/src/DEBIAN/prerm
@@ -0,0 +1,8 @@
+#! /bin/sh
+
+set -e
+
+# Stop Subsonic service.
+if [ -e /etc/init.d/subsonic ]; then
+ invoke-rc.d subsonic stop
+fi