Project

General

Profile

Bug #382 ยป c021dad.diff

alex -, 2011-02-21 12:55

View differences:

debian/rules
25 25
	$(MAKE)
26 26

  
27 27
override_dh_install:
28
	$(MAKE) prefix=$(CURDIR)/debian/hts-tvheadend/usr install
28
	$(MAKE) prefix=$(CURDIR)/debian/tvheadend/usr install
29 29

  
30 30
override_dh_installinit:
31
	dh_installinit --name tvheadend	
31
	dh_installinit --name tvheadend
32 32

  
33 33
override_dh_strip:
34 34
        dh_strip --dbg-package=tvheadend-dbg
debian/tvheadend.config
12 12
    case "$STATE" in
13 13
    1)
14 14
        # Ask for username
15
        db_input high hts-tvheadend/admin_username || true
15
        db_input high tvheadend/admin_username || true
16 16
    ;;
17 17
    
18 18
    2)
19 19
        # Ask for password
20
	db_input high hts-tvheadend/admin_password || true
20
	db_input high tvheadend/admin_password || true
21 21
    ;;
22 22

  
23 23
    3)
24 24
        # Display a final note
25
	db_input high hts-tvheadend/webinterface || true
25
	db_input high tvheadend/webinterface || true
26 26
    ;;
27 27
    esac
28 28

  
debian/tvheadend.postinst
27 27

  
28 28
   echo >>"${HTS_SUPERUSERCONF}" "{"
29 29

  
30
   if db_get hts-tvheadend/admin_username; then
30
   if db_get tvheadend/admin_username; then
31 31
       echo >>"${HTS_SUPERUSERCONF}" '"username": "'$RET'",'
32 32
   fi
33 33

  
34
   if db_get hts-tvheadend/admin_password; then
34
   if db_get tvheadend/admin_password; then
35 35
       echo >>"${HTS_SUPERUSERCONF}" '"password": "'$RET'"'
36 36
   fi
37 37
    
debian/tvheadend.templates
1
Template: hts-tvheadend/admin_username
1
Template: tvheadend/admin_username
2 2
Type: string
3 3
Description: Choose a username for Tvheadend administrator.
4 4
 Tvheadend is accessed via a world reachable web interface (assuming your
......
8 8
 If you want to change the superuser account you need to reconfigure the
9 9
 Tvheadend package.
10 10

  
11
Template: hts-tvheadend/admin_password
11
Template: tvheadend/admin_password
12 12
Type: password
13 13
Description: Administrator password.
14 14

  
15
Template: hts-tvheadend/webinterface
15
Template: tvheadend/webinterface
16 16
Type: note
17 17
Description: After installation Tvheadend can be accessed via HTTP on port 9981. From this machine you can point your web-browser to http://localhost:9981/
debian/tvheadend.tvheadend.init
1 1
#! /bin/sh
2 2
### BEGIN INIT INFO
3
# Provides:          hts-tvheadend
3
# Provides:          tvheadend
4 4
# Required-Start:    $local_fs $remote_fs udev
5 5
# Required-Stop:     $local_fs $remote_fs
6 6
# Default-Start:     2 3 4 5
    (1-1/1)