summaryrefslogtreecommitdiffstats
path: root/abs/extra-testing/xine-lib/xine.install
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2009-04-04 21:24:39 (GMT)
committerJames Meyer <james.meyer@operamail.com>2009-04-04 21:24:39 (GMT)
commitefc9e8400d73059d5926738b99a689ec92410837 (patch)
tree4fb84eb46b74a225d4aceb79ea780629c93d56a3 /abs/extra-testing/xine-lib/xine.install
parent6e590f0aabc166792d3a824e5f6886b3f068603a (diff)
downloadlinhes_pkgbuild-efc9e8400d73059d5926738b99a689ec92410837.zip
linhes_pkgbuild-efc9e8400d73059d5926738b99a689ec92410837.tar.gz
linhes_pkgbuild-efc9e8400d73059d5926738b99a689ec92410837.tar.bz2
xine-lib:missed the xine.install file
Diffstat (limited to 'abs/extra-testing/xine-lib/xine.install')
-rwxr-xr-xabs/extra-testing/xine-lib/xine.install27
1 files changed, 27 insertions, 0 deletions
diff --git a/abs/extra-testing/xine-lib/xine.install b/abs/extra-testing/xine-lib/xine.install
new file mode 100755
index 0000000..f9102ee
--- /dev/null
+++ b/abs/extra-testing/xine-lib/xine.install
@@ -0,0 +1,27 @@
+# arg 1: the new package version
+ post_install() {
+ MYTHOME=` su - mythtv -c "echo ~" `
+ if [ ! -f $MYTHOME/.xine/config ]
+ then
+ echo "Copying in standard config file for xine"
+ mkdir -p $MYTHOME/.xine/
+ cp -rp $TEMPLATES/xine.config.template $MYTHOME/.xine/config
+ chown -R mythtv:mythtv $MYTHOME/.xine
+ fi
+ }
+
+# # arg 1: the new package version
+# # arg 2: the old package version
+ post_upgrade() {
+ post_install $1
+ }
+#
+# # arg 1: the old package version
+ post_remove() {
+ /bin/true
+ }
+
+op=$1
+shift
+
+$op $*