summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/mythtv/trunk/mythweb/PKGBUILD
blob: 9a7f89263e9d61c13092cc7ab67f0fe9b1a093af (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
46
47
48
pkgname=mythweb-svn
pkgver=20713
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

DOCROOT=/data/srv/httpd/htdocs/mythweb

build() {

	svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
	svn revert -R $_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}

}