Permalink
Browse files

Add debian packaging

  • Loading branch information...
andoma committed Mar 30, 2009
1 parent 9460a5e commit f6d8b08f6c55b3ecd65a68b1ab2fb7d261d5b67e
Showing with 932 additions and 0 deletions.
  1. +1 −0 ChangeLog
  2. +621 −0 LICENSE
  3. +22 −0 README
  4. +89 −0 debian/changelog
  5. +1 −0 debian/compat
  6. +12 −0 debian/control
  7. +29 −0 debian/createcopyright.sh
  8. +1 −0 debian/dirs
  9. +2 −0 debian/docs
  10. +1 −0 debian/hts-tvheadend.docs
  11. +116 −0 debian/hts-tvheadend.tvheadend.init
  12. +37 −0 debian/rules
View
View
621 LICENSE

Large diffs are not rendered by default.

Oops, something went wrong.
View
22 README
@@ -0,0 +1,22 @@
+HTS "Home Theater System" is:
+
+* An OpenGL based media player (''Showtime'')
+* A TV distribution / recording headend (''Tvheadend'')
+* Hosted at http://www.lonelycoder.com/hts
+* A GPLed project
+* Maintained by Andreas �man (andreas at lonelycoder.com)
+
+
+Build and Install
+=================
+The top level configure and Makefile will build both Tvheadend
+and Showtime. However, Showtime will only be built if the
+necessary dev packages for a few libs are installed.
+
+Read more here: http://trac.lonelycoder.com/hts/wiki/howtobuildhts
+
+
+
+For more information and latest versions, please visit:
+http://www.lonelycoder.com/hts/
+
View
@@ -0,0 +1,89 @@
+hts (current) unstable; urgency=low
+
+ * showtime: Add new '-t' command line option used for explicitly pointing
+ out a directory path for the theme to use.
+
+ * showtime and libglw: Add support for symbolic links in the property
+ trees. This allows us to have properties such as 'global.currentmedia.'
+ which points to the current media beeing played, etc.
+
+ * tvheadend: Record post-processing added again, run command when a
+ recording is done.
+
+ * tvheadend: Fix characterset translation bug introduced in r1902.
+
+ * libglw: 'deck' widget now understands 'effect' attribute.
+
+ * showtime: Digital audio (SPDIF / iec958) was not correctly detected
+ on all soundcards, this is now fixed.
+
+ -- Andreas �man <andreas@lonelycoder.com> ???, ?? ??? ???? ??:??:?? ?????
+
+hts (2.0) unstable; urgency=low
+
+ * showtime: New fully customable theme markup language.
+
+ * showtime: libdvdnav / libdvdread uses the internal virtual filesystem
+ to read data. Eg. Showtime can play ISO-files directly from
+ RAR archives.
+
+ * showtime: Added a RAR archive extractor to the internal filesystem.
+
+ * showtime: Implemented a HTSP client. It can now display streaming live
+ TV from Tvheadend.
+
+ * tvheadend: All setup and configuration is done from the web user interface.
+
+ * showtime: All setup and configuration is done from within the program
+ itself.
+
+ * tvheadend: New web user interface based on ExtJS
+
+ -- Andreas �man <andreas@lonelycoder.com> Thu, 16 Oct 2008 19:47:23 +0200
+
+hts (1.4) unstable; urgency=low
+
+ * tvheadend: Add support for DVB-S (still in experimenal state)
+
+ -- Andreas �man <andreas@lonelycoder.com> Sat, 30 Mar 2008 18:00:00 +0100
+
+hts (1.3) unstable; urgency=low
+
+ * tvheadend: Add support for executing a post processing script after
+ recording is completed.
+
+ * tvheadend: Mark I-frames as key-frames in recorder (should make seeking
+ work better).
+
+ * tvheadend: Correctly set duration of packets in recorder.
+
+ -- Andreas �man <andreas@lonelycoder.com> Thu, 28 Mar 2008 18:00:00 +0100
+
+hts (1.2) unstable; urgency=low
+
+ * Tvheadend has been rewritten from scratch
+
+ -- Andreas �man <andreas@lonelycoder.com> Thu, 28 Feb 2008 17:30:00 +0100
+
+hts (1.1) unstable; urgency=low
+
+ * Bugfix: Tvheadend: Do not crash if event name is NULL
+
+ * Bugfix: Showtime: Sometimes video stalls after seek
+
+ * Rewrite tvheadend internals to fix many serious issues
+
+ * tvheadend now correctly supports recording of h264 content
+
+ * RTSP interface added to tvheadend that supports time shifting of live tv
+
+ * Add web interface to tvheadend
+
+ -- Andreas �man <andreas@lonelycoder.com> Sat, 24 Nov 2007 08:11:00 +0100
+
+hts (1.0) unstable; urgency=low
+
+ * Initial release
+
+ -- Andreas �man <andreas@lonelycoder.com> Tue, 19 Sep 2007 19:20:00 +0200
+
View
@@ -0,0 +1 @@
+5
View
@@ -0,0 +1,12 @@
+Source: hts
+Section: main
+Priority: extra
+Maintainer: Andreas �man <andreas@lonelycoder.com>
+
+Package: hts-tvheadend
+Architecture: any
+Depends: ${shlibs:Depends}
+Enhances: hts-showtime
+Description: TV headend for hts-showtime
+ TV backend for use with hts-showtime
+ Based on ffmpeg 'http://www.ffmpeg.org'.
View
@@ -0,0 +1,29 @@
+now=`date`
+source=`svn info | grep "URL:" | sed "s/URL: //"`
+rev=`svn info | grep "Revision:" | sed "s/Revision: //"`
+cat <<EOF
+This package was automatically debianized on ${now}
+
+It was downloaded from ${source} revision ${rev}
+
+HTS Showtime and HTS Tvheadend is copyright (c) Andreas Öman 2007
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation, either version 3 of the License, or
+(at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+
+
+The Debian packaging is (C) 2007, Andreas Öman <andreas@lonelycoder.com> and
+is licensed under the GPL, see "/usr/share/common-licenses/GPL".
+
+EOF
View
@@ -0,0 +1 @@
+usr/bin
View
@@ -0,0 +1,2 @@
+README
+TODO
@@ -0,0 +1 @@
+README
@@ -0,0 +1,116 @@
+#! /bin/sh
+### BEGIN INIT INFO
+# Provides: hts-tvheadend
+# Required-Start: $local_fs $remote_fs
+# Required-Stop: $local_fs $remote_fs
+# Default-Start: 2 3 4 5
+# Default-Stop: S 0 1 6
+### END INIT INFO
+
+# Author: Andreas Öman
+
+# Do NOT "set -e"
+
+# PATH should only include /usr/* if it runs after the mountnfs.sh script
+PATH=/usr/sbin:/usr/bin:/sbin:/bin
+DESC="HTS Tvheadend"
+NAME=tvheadend
+DAEMON=/usr/bin/$NAME
+DAEMON_ARGS="-f"
+PIDFILE=/var/run/$NAME.pid
+SCRIPTNAME=/etc/init.d/$NAME
+
+# Exit if the package is not installed
+[ -x "$DAEMON" ] || exit 0
+
+# Read configuration variable file if it is present
+[ -r /etc/default/$NAME ] && . /etc/default/$NAME
+
+# Load the VERBOSE setting and other rcS variables
+[ -f /etc/default/rcS ] && . /etc/default/rcS
+
+# Define LSB log_* functions.
+# Depend on lsb-base (>= 3.0-6) to ensure that this file is present.
+. /lib/lsb/init-functions
+
+#
+# Function that starts the daemon/service
+#
+do_start()
+{
+ # Return
+ # 0 if daemon has been started
+ # 1 if daemon was already running
+ # 2 if daemon could not be started
+ start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON --test > /dev/null \
+ || return 1
+ start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON -- \
+ $DAEMON_ARGS \
+ || return 2
+}
+
+#
+# Function that stops the daemon/service
+#
+do_stop()
+{
+ # Return
+ # 0 if daemon has been stopped
+ # 1 if daemon was already stopped
+ # 2 if daemon could not be stopped
+ # other if a failure occurred
+ start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --pidfile $PIDFILE --name $NAME
+ RETVAL="$?"
+ [ "$RETVAL" = 2 ] && return 2
+ # Many daemons don't delete their pidfiles when they exit.
+ rm -f $PIDFILE
+ return "$RETVAL"
+}
+
+
+case "$1" in
+ start)
+ [ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC" "$NAME"
+ do_start
+ case "$?" in
+ 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;;
+ 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;;
+ esac
+ ;;
+ stop)
+ [ "$VERBOSE" != no ] && log_daemon_msg "Stopping $DESC" "$NAME"
+ do_stop
+ case "$?" in
+ 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;;
+ 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;;
+ esac
+ ;;
+ restart|force-reload)
+ #
+ # If the "reload" option is implemented then remove the
+ # 'force-reload' alias
+ #
+ log_daemon_msg "Restarting $DESC" "$NAME"
+ do_stop
+ case "$?" in
+ 0|1)
+ do_start
+ case "$?" in
+ 0) log_end_msg 0 ;;
+ 1) log_end_msg 1 ;; # Old process is still running
+ *) log_end_msg 1 ;; # Failed to start
+ esac
+ ;;
+ *)
+ # Failed to stop
+ log_end_msg 1
+ ;;
+ esac
+ ;;
+ *)
+ echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload}" >&2
+ exit 3
+ ;;
+esac
+
+:
View
@@ -0,0 +1,37 @@
+#!/usr/bin/make -f
+
+DEB_BUILD_GNU_TYPE := $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+
+config.mak: configure
+ dh_testdir
+ ./configure --release --prefix=/usr
+
+clean:
+ dh_testdir
+ dh_testroot
+ rm -rf build.*
+ dh_clean
+
+
+build: config.mak
+ make
+
+binary:
+ dh_testdir
+ dh_testroot
+ dh_installdirs
+ dh_install
+ $(MAKE) prefix=$(CURDIR)/debian/hts-tvheadend/usr install
+ dh_installchangelogs
+ dh_installinit --name tvheadend
+ dh_installdocs
+ dh_link
+ dh_strip
+ dh_compress
+ dh_fixperms
+ dh_makeshlibs
+ dh_installdeb
+ dh_shlibdeps
+ dh_gencontrol
+ dh_md5sums
+ dh_builddeb

0 comments on commit f6d8b08

Please sign in to comment.