summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/mythtv/trunk/mythweb/PKGBUILD
diff options
context:
space:
mode:
authorNathan Harris <nharris@eoimaging.com>2009-02-20 19:55:13 (GMT)
committerNathan Harris <nharris@eoimaging.com>2009-02-20 19:55:13 (GMT)
commitf1aa9caeafea56ab0680d96992bfbf2dc4f2a55e (patch)
tree1c81c16a33bbd7d10b2fcc9aa46265eb7c58406d /abs/core-testing/mythtv/trunk/mythweb/PKGBUILD
parent4fb9b4e5fbf9dbf9d4ed494318a27116dd17d8e1 (diff)
downloadlinhes_pkgbuild-f1aa9caeafea56ab0680d96992bfbf2dc4f2a55e.zip
linhes_pkgbuild-f1aa9caeafea56ab0680d96992bfbf2dc4f2a55e.tar.gz
linhes_pkgbuild-f1aa9caeafea56ab0680d96992bfbf2dc4f2a55e.tar.bz2
builds fine, but not tested
Diffstat (limited to 'abs/core-testing/mythtv/trunk/mythweb/PKGBUILD')
-rw-r--r--[-rwxr-xr-x]abs/core-testing/mythtv/trunk/mythweb/PKGBUILD73
1 files changed, 43 insertions, 30 deletions
diff --git a/abs/core-testing/mythtv/trunk/mythweb/PKGBUILD b/abs/core-testing/mythtv/trunk/mythweb/PKGBUILD
index 52eb059..9b51cbc 100755..100644
--- a/abs/core-testing/mythtv/trunk/mythweb/PKGBUILD
+++ b/abs/core-testing/mythtv/trunk/mythweb/PKGBUILD
@@ -1,35 +1,48 @@
pkgname=mythweb-svn
-pkgver=16153
-pkgrel=20
-pkgdesc="mythweb"
-url="http://www.mythtv.org"
-license="GPL"
-arch=('i686')
-depends=(php fcgi libmysqlclient )
-conflicts=('mythweb' 'mythweb-fixes')
-replaces=()
-backup=()
-install='mythweb.install'
-source=(mythweblighttpd.patch dblogininit.inc )
-md5sums=()
+pkgver=20019
+pkgrel=1
+pkgdesc="Web interface for MythTV's backend"
+url="http://www.mythtv.org"
+license="GPL"
+arch=('i686' 'x86_64')
+
+depends=('mythtv-svn' 'lighttpd' 'php' 'local-website')
+conflicts=('mythweb')
+groups=('mythtv-extras-svn')
+install=mythweb.install
+
+patches=()
+source=(`echo ${patches[@]:0}`)
_svntrunk=http://cvs.mythtv.org/svn/trunk/mythplugins
_svnmod=mythplugins
-build() {
-echo svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
- svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
-#svn co http://cvs.mythtv.org/svn/trunk/mythtv
-#svn co http://cvs.mythtv.org/svn/trunk/mythplugins
-#svn co http://cvs.mythtv.org/svn/trunk/myththemes
-cd $startdir/src/mythplugins
-
-#take care of fing mythweb
-mkdir -p $startdir/pkg/data/srv/httpd/htdocs/
-cp -rp mythweb $startdir/pkg/data/srv/httpd/htdocs/
-cp -f $startdir/src/dblogininit.inc $startdir/pkg/data/srv/httpd/htdocs/mythweb/includes/
-cd $startdir/pkg/data/srv/httpd/htdocs/mythweb/includes
-patch -p0 < $startdir/src/mythweblighttpd.patch
-
-chown -R nobody:nobody $startdir/pkg/data/srv/httpd/htdocs/mythweb
-chmod -R 775 $startdir/pkg/data/srv/httpd/htdocs/mythweb
+DOCROOT=/data/srv/httpd/htdocs/mythweb
+
+build() {
+
+ svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
+# svn co $_svntrunk --config-dir ./ $_svnmod
+
+ cd $startdir/src/$_svnmod
+
+ echo "--------------------------applying patches----------------------------------------------------"
+ for i in `echo ${patches[@]:0} `
+ do
+ echo applying $i
+ echo "-----------------------------"
+ patch -Np0 -i ${startdir}/src/$i || return 1
+ done
+ echo "--------------------------done applying patches-----------------------------------------------"
+
+ [ "$CARCH" = "i686" ] && ARCH="i686"
+ [ "$CARCH" = "x86_64" ] && ARCH="x86-64"
+
+ mkdir -p $startdir/pkg/$DOCROOT/{image_cache,php_sessions}
+
+ cp -r $startdir/src/mythplugins/mythweb/* $startdir/pkg/$DOCROOT
+# cp $startdir/src/mythplugins-$pkgver/mythweb/data/.htaccess $startdir/pkg/$DOCROOT
+ rm $startdir/pkg/srv/$DOCROOT/README
+ chown -R http:users $startdir/pkg/$DOCROOT
+ chmod g+rw $startdir/pkg/$DOCROOT/{image_cache,php_sessions,data}
+
}