summaryrefslogtreecommitdiffstats
path: root/abs/extra-testing/mediaserv/mediaserv.install
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2009-06-15 02:23:30 (GMT)
committerJames Meyer <james.meyer@operamail.com>2009-06-15 02:23:30 (GMT)
commitf27ecfc5aca0f15158b6af7f9c3363d6fa11f421 (patch)
tree992f2cb7e1f1ee44c0faafd99da733fb91f12a53 /abs/extra-testing/mediaserv/mediaserv.install
parent1355a3b9649a15b3a35d1ef6d034f51e3802fe14 (diff)
parent871bc4519c6212bc5acf9d893fd8e9187d4a299c (diff)
downloadlinhes_pkgbuild-f27ecfc5aca0f15158b6af7f9c3363d6fa11f421.zip
linhes_pkgbuild-f27ecfc5aca0f15158b6af7f9c3363d6fa11f421.tar.gz
linhes_pkgbuild-f27ecfc5aca0f15158b6af7f9c3363d6fa11f421.tar.bz2
Merge branch 'HEAD' of ssh://jams@knoppmyth.net/mount/repository/LinHES-PKGBUILD
Diffstat (limited to 'abs/extra-testing/mediaserv/mediaserv.install')
-rw-r--r--abs/extra-testing/mediaserv/mediaserv.install22
1 files changed, 22 insertions, 0 deletions
diff --git a/abs/extra-testing/mediaserv/mediaserv.install b/abs/extra-testing/mediaserv/mediaserv.install
new file mode 100644
index 0000000..6fe6f08
--- /dev/null
+++ b/abs/extra-testing/mediaserv/mediaserv.install
@@ -0,0 +1,22 @@
+# arg 1: the new package version
+post_install() {
+ ln -s /myth/mediaserv /home/mythtv/.mediaserv
+ ln -s /myth/pretty /myth/mediaserv/media/tv
+ ln -s /myth/video /myth/mediaserv/media/video
+ chown -R mythtv.mythtv /myth/mediaserv
+}
+# 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() {
+ rm -fr /home/mythtv/.mediaserv
+ rm -fr /myth/mediaserv
+}
+
+op=$1
+shift
+$op $*