Permalink
Browse files

Fix debian package building for showtime

  • Loading branch information...
1 parent c8babd4 commit 95fb6d7609ec9bd98f9c309435a2c774e86d4f46 @andoma committed Mar 29, 2009
Showing with 653 additions and 176 deletions.
  1. +621 −0 LICENSE
  2. +22 −0 README
  3. +0 −8 debian/control
  4. +0 −1 debian/hts-tvheadend.docs
  5. +0 −116 debian/hts-tvheadend.tvheadend.init
  6. +4 −50 debian/rules
  7. +1 −1 support/configure.inc
  8. +5 −0 support/mkrelease
View
Oops, something went wrong.
View
@@ -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
@@ -10,11 +10,3 @@ Suggests: hts-tvheadend
Description: OpenGL based Mediaplayer
An OpenGL based media player focused for use as a home-entertainment-system.
Based on ffmpeg 'http://www.ffmpeg.org'.
-
-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'.
@@ -1 +0,0 @@
-README
@@ -1,116 +0,0 @@
-#! /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
@@ -1,73 +1,27 @@
#!/usr/bin/make -f
-#
-# configure ourselfs
-#
-
DEB_BUILD_GNU_TYPE := $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
config.mak: configure
dh_testdir
./configure --release --prefix=/usr
-
-#
-# Clean target
-#
-
-clean: config.mak
+clean:
dh_testdir
dh_testroot
-
- rm -f config.mak config.h
- rm -rf llinst
- cd ext/ffmpeg && make clean
- cd libs/libhts && make clean
- cd tvheadend && make clean
- cd libs/libdvdcss && make clean
- cd libs/libdvdread && make clean
- cd libs/libdvdnav && make clean
- cd libs/libglw && make clean
- cd showtime && make clean
-
+ rm -rf build.*
dh_clean
-
-#
-# build
-#
-
build: config.mak
-
-####### Build local libraries and install them
-
- cd ext/ffmpeg && make && make install
- cd libs/libhts && make all install
- cd libs/libdvdcss && make all install
- cd libs/libdvdread && make all install
- cd libs/libdvdnav && make all install
- cd libs/libglw && make all install
-
-####### Build binaries
-
- cd tvheadend && make all
- cd showtime && make all
-
-
-
-#
-# binary
-#
+ make
binary:
dh_testdir
dh_testroot
dh_installdirs
dh_install
- cd tvheadend && $(MAKE) prefix=$(CURDIR)/debian/hts-tvheadend/usr install
- cd showtime && $(MAKE) prefix=$(CURDIR)/debian/hts-showtime/usr install
+ $(MAKE) prefix=$(CURDIR)/debian/hts-showtime/usr install
dh_installchangelogs
- dh_installinit --name tvheadend
dh_installdocs
dh_link
dh_strip
@@ -17,7 +17,7 @@ BUILDDIR=build.${PLATFORM}
DEFAULT_THEME="new"
RELEASE=no
-RELEASENAME=`head -n1 ${TOPDIR}/../ChangeLog | awk '{print $2}' | sed s/\(// | sed s/\)//`
+RELEASENAME=`head -n1 ${TOPDIR}/ChangeLog | awk '{print $2}' | sed s/\(// | sed s/\)//`
CONFIG_LIST="
libasound
View
@@ -0,0 +1,5 @@
+#!/bin/bash
+
+sh debian/createcopyright.sh >debian/copyright
+dpkg-buildpackage -rfakeroot -b -us -uc
+dh_clean

0 comments on commit 95fb6d7

Please sign in to comment.