diff options
Diffstat (limited to 'subsonic-installer-debian/src/DEBIAN')
-rw-r--r-- | subsonic-installer-debian/src/DEBIAN/conffiles | 1 | ||||
-rw-r--r-- | subsonic-installer-debian/src/DEBIAN/control | 18 | ||||
-rw-r--r-- | subsonic-installer-debian/src/DEBIAN/postinst | 16 | ||||
-rw-r--r-- | subsonic-installer-debian/src/DEBIAN/postrm | 9 | ||||
-rw-r--r-- | subsonic-installer-debian/src/DEBIAN/preinst | 8 | ||||
-rw-r--r-- | subsonic-installer-debian/src/DEBIAN/prerm | 8 |
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 |