summaryrefslogtreecommitdiffstats
path: root/abs/extra-testing/community/mythtv-vdpau/mythtv.install
blob: 3bd6b56991816fc7c302979ee1eae9e1236c3643 (plain)
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
# arg 1:  the new package version
post_install() {
	echo
	echo
	echo "As is with no guarantee, please don't file any bu reports against this package."
	if [ ! -d /var/log/mythtv ]
	then
		mkdir -p /var/log/mythv
		chown -R mythtv /var/log/mythtv
		echo "---" > /var/log/mythtv/mythbackend.log
		chown mythtv /var/log/mythtv/mythbackend.log

	fi
}
post_upgrade() {
	echo
	echo
	echo "As is with no guarantee, please don't file any bu reports against this package."
}
pre_upgrade() {
	cp /usr/share/mythtv/is.xml /tmp
	cp /usr/share/mythtv/media_settings.xml /tmp
}

post_upgrade() {
	cp /tmp/is.xml /usr/share/mythtv/
	cp /tmp/media_settings.xml /usr/share/mythtv/
	if [ ! -d /var/log/mythtv ]
	then
		mkdir -p /var/log/mythv
		chown -R mythtv /var/log/mythtv
	fi
}


# arg 1:  the old package version
post_remove() {
	echo -e "NOTE: MySQL database was not removed.  To remove run:\nmysql -u root -e 'drop database mythconverg;'"
	/bin/true

}

op=$1
shift
$op $*