summaryrefslogtreecommitdiffstats
path: root/abs/extra/x11vnc
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2012-08-31 00:29:50 (GMT)
committerJames Meyer <james.meyer@operamail.com>2012-08-31 00:29:50 (GMT)
commiteafed5ee7379665aa0edd44ffe60dd4b039399ad (patch)
tree2f2446b68cc093d586f4015259bd3cfc06177416 /abs/extra/x11vnc
parent69728241bca2e2e98ce3eabdc6e5e312b9086358 (diff)
downloadlinhes_pkgbuild-eafed5ee7379665aa0edd44ffe60dd4b039399ad.zip
linhes_pkgbuild-eafed5ee7379665aa0edd44ffe60dd4b039399ad.tar.gz
linhes_pkgbuild-eafed5ee7379665aa0edd44ffe60dd4b039399ad.tar.bz2
x11vnc: remove references to /home/mythtv
Diffstat (limited to 'abs/extra/x11vnc')
-rw-r--r--abs/extra/x11vnc/PKGBUILD2
-rw-r--r--abs/extra/x11vnc/x11vnc.install10
2 files changed, 6 insertions, 6 deletions
diff --git a/abs/extra/x11vnc/PKGBUILD b/abs/extra/x11vnc/PKGBUILD
index 5672669..2ee8284 100644
--- a/abs/extra/x11vnc/PKGBUILD
+++ b/abs/extra/x11vnc/PKGBUILD
@@ -3,7 +3,7 @@
pkgname=x11vnc
pkgver=0.9.12
-pkgrel=2
+pkgrel=3
pkgdesc="a VNC server for real X displays"
arch=("i686" "x86_64")
license=("GPL2")
diff --git a/abs/extra/x11vnc/x11vnc.install b/abs/extra/x11vnc/x11vnc.install
index 63af505..97b6048 100644
--- a/abs/extra/x11vnc/x11vnc.install
+++ b/abs/extra/x11vnc/x11vnc.install
@@ -1,11 +1,11 @@
post_install() {
- if [ -f /home/mythtv/.fluxbox/apps ] ; then
- if [ -n `/bin/grep x11vnc /home/mythtv/.fluxbox/apps` ] ; then
+ if [ -f $MYTHHOME/.fluxbox/apps ] ; then
+ if [ -n `/bin/grep x11vnc $MYTHHOME/.fluxbox/apps` ] ; then
echo ""
echo "==> Adding x11vnc to user mythtv's ~/.fluxbox/apps"
echo ""
# Add x11vnc to ~/mythtv/.fluxbox/apps before LinHES-run
- sed -i '/LinHES-run/ i [startup] {x11vnc -nap -wait 50 -passwd mythtv -display :0 -forever -o ~/.vnc/x11vnc.log -bg}' /home/mythtv/.fluxbox/apps
+ sed -i '/LinHES-run/ i [startup] {x11vnc -nap -wait 50 -passwd mythtv -display :0 -forever -o ~/.vnc/x11vnc.log -bg}' $MYTHHOME/.fluxbox/apps
else
echo ""
echo "==> x11vnc startup line already present in user"
@@ -20,7 +20,7 @@ pre_remove() {
PID=`pidof -o %PPID /usr/bin/x11vnc`
[ -n "$PID" ] && kill $PID
# Remove line in .fluxbox/apps
- if [ -f /home/mythtv/.fluxbox/apps ] ; then
- sed -i '/x11vnc/d' /home/mythtv/.fluxbox/apps
+ if [ -f $MYTHHOME/.fluxbox/apps ] ; then
+ sed -i '/x11vnc/d' $MYTHHOME/.fluxbox/apps
fi
}