-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtvheadend.plg
183 lines (145 loc) · 5.3 KB
/
tvheadend.plg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
<?xml version='1.0' standalone='yes'?>
<!DOCTYPE PLUGIN [
<!ENTITY name "tvheadend">
<!ENTITY author "Mettbrot">
<!ENTITY version "2019.08.17a">
<!ENTITY revision "f8caa16">
<!ENTITY pluginURL "https://github.com/Mettbrot/unRAID/raw/master/&name;.plg">
<!ENTITY path "/boot/config/plugins/&name;">
<!ENTITY repository "https://github.com/Mettbrot/unRAID/raw/master/archive/">
]>
<PLUGIN name="&name;" author="&author;" version="&version;" pluginURL="&pluginURL;">
<CHANGES>
##&name;
###2019.08.17a
- Update package to remove warnings on plugin page
###2019.02.27
- Update to tvheadend version 4.2.8
###2018.12.13
- Update to tvheadend version 4.2.7 Remove conflicting dependency to libssl (included in unRaid)
###2018.04.09
- Update to tvheadend version 4.2.6
###2018.01.14
- add libssl-1.1.0g as required
###2018.01.04
- Update to tvheadend version 4.2.5-3
###2017.11.06
- Update to tvheadend version 4.2.4-10
###2017.08.02
- Update to tvheadend version 4.2.3
###2017.04.29b
- Update to tvheadend version 4.2.1 STABLE finally :) :)
- fixed dependencies
###2017.01.08
- Update to tvheadend version 4.1-2409~g4db3eec, changed handling of wakeup script to make it less error prone
###2016.11.05
- Major update to tvheadend version 4.1~0736ebc PLEASE BACKUP YOUR DATABASE BEFORE INSTALLING
###2016.03.23
- Update TvHeadend to version 4.0.9
###2016.01.15
- Update TvHeadend to version 4.0.8 (self compiled, please report problems!)
- fix loading of settings
- add setting for shutdown script: http://www.tvheadend.org/projects/tvheadend/wiki/Wakeup
###2015.10.29
- Update TvHeadend to version 4.0.7
###2015.10.05;
- Implement missing parts of the mentioned policy and update TvHeadend to version 4.0.6
###2015.08.24;
- Adapt to new security policy in unRAID v6.1 (please reboot after upgrade)
###2015.06.25;
- updated tvheadend to the latest version in stable branch (4.0.5)
###2015.06.09;
- updated tvheadend to the latest version in stable branch (4.0.4)
###2015.06.05;
- fixup dependencies
###2015.06.04;
- first version with dynamix plugin support
###2015.03.01
- 2012-06-04-ww - first release
- 2012-06-11-ww - tons of improvements + cool web layout
- 2012-06-12-ww - added START/STOP button + some improvements in start/stop functions
- 2012-06-19-ww - added XMLTV feature + HDHomeRun tuners support + new version of Tvheadend
- 2013-08-16-Mettbrot - removed XMLTV and BZ-file download for simplicity
- 2013-12-24-Mettbrot - Happy Holidays! upgraded tvheadend to a newer version - please back up your configuration!
- 2014-07-09-Mettbrot - Updated for Zlib support
- 2014-07-09-Mettbrot - First unRaid6.0 Edition. Installs 64bit binary nothing else.
- 2014-12-03-Mettbrot - Adapted to new plugin system (dynamix)
- 2015-03-01-Mettbrot - Added a dependency
</CHANGES>
<!--
The 'pre-install' script.
-->
<FILE Run="/bin/bash">
<INLINE>
# Stop service
/usr/local/emhttp/plugins/&name;/scripts/rc.tvheadend stop 2>/dev/null
# Remove old 'source' files
rm -f $(ls &path;/&name;*.txz 2>/dev/null|grep -v '&version;')
# Remove old 'package' files
rm -f $(ls &path;/pkg-&name;*.tgz 2>/dev/null|grep -v '&revision;')
# Remove old dependencies ???
</INLINE>
</FILE>
<!--
The 'source' file.
-->
<FILE Name="&path;/&name;-&version;.txz" Run="upgradepkg --install-new">
<URL>&repository;&name;-&version;.txz</URL>
</FILE>
<!--
dependency files
-->
<FILE Name="&path;/dependencies/zlib-1.2.8-x86_64-1.txz" Run="upgradepkg --install-new">
<URL>http://slackware.cs.utah.edu/pub/slackware/slackware64-14.1/slackware64/l/zlib-1.2.8-x86_64-1.txz</URL>
</FILE>
<FILE Name="&path;/dependencies/uriparser-0.7.5-x86_64-1PTr.txz" Run="upgradepkg --install-new">
<URL>https://www.dropbox.com/s/teeheusewya918o/uriparser-0.7.5-x86_64-1PTr.txz?dl=1</URL>
</FILE>
<FILE Name="&path;/dependencies/libiconv-1.13.1-x86_64-2_PTr.txz" Run="upgradepkg --install-new">
<URL>https://www.dropbox.com/s/gptlplas2w5qyem/libiconv-1.13.1-x86_64-2_PTr.txz?dl=1</URL>
</FILE>
<FILE Name="&path;/dependencies/libdvbcsa1-1.1.0.tgz" Run="upgradepkg --install-new">
<URL>https://www.dropbox.com/s/undjlajk6u6h754/libdvbcsa1-1.1.0.tgz?dl=1</URL>
</FILE>
<FILE Name="&path;/dependencies/dvb-apps-100514-x86_64-1jsc.txz" Run="upgradepkg --install-new">
<URL>http://slackware.schoepfer.info/14.1_64/slackware64/multimedia/dvb-apps-100514-x86_64-1jsc.txz</URL>
</FILE>
<!--
tvheadend package
-->
<FILE Name="&path;/pkg-&name;-&revision;.tgz" Run="upgradepkg --install-new">
<URL>&repository;pkg-&name;-&revision;.tgz</URL>
</FILE>
<!--
The 'post-install' script.
-->
<FILE Run="/bin/bash">
<INLINE>
[ ! -f &path;/&name;.cfg ] && cp /usr/local/emhttp/plugins/&name;/&name;.cfg &path;/
echo ""
echo "-----------------------------------------------------------"
echo " Plugin &name; is installed."
echo " Version: &version;"
echo " TvHeadend Version: &revision;"
echo "-----------------------------------------------------------"
echo ""
echo "NOTE: You need to start TvHeadend manually after every update!"
echo ""
</INLINE>
</FILE>
<!--
The 'remove' script.
-->
<FILE Run="/bin/bash" Method="remove">
<INLINE>
# Stop service
/usr/local/emhttp/plugins/&name;/scripts/rc.tvheadend stop
# Remove plugin related files
rm -rf /boot/config/plugins/&name;
# Uninstall the 'source' package
removepkg &name;-&version;
# Uninstall the 'tvheadend' package
removepkg pkg-&name;-&revision;;
</INLINE>
</FILE>
</PLUGIN>