updated on Tue Jan 10 12:02:00 UTC 2012
[aur-mirror.git] / calendarserver / PKGBUILD
blob82ab7a36dc62907909487b43270f93a33a9f433f
1 pkgname=calendarserver
2 pkgver=2.5
3 pkgrel=1
4 arch=('i686' 'x86_64')
5 license=('GPL')
6 pkgdesc="a standalone caldav server"
7 depends=('glibc' 'twisted' 'python2' 'zope-interface' 'python-vobject' 'python-xattr' 'pyopenssl' 'krb5' 'python-memcached' 'memcached' 'postgresql')
8 makedepends=('subversion' 'curl')
9 url="http://calendarserver.org/"
10 install=calendarserver.install
11 backup=(etc/caldavd/caldavd-dev.plist etc/caldavd/auth/accounts.xml etc/caldavd/sudoers.plist)
12 source=(calendarserver.rc run.patch caldavd.plist caldavd.patch)
13 md5sums=('0c6152171c87064c8e9fedb6ab34d7ba'
14          'eb7fa461dba4fd67dbe65fe58bf9eb6b'
15          '6760eb45c54a5c40575fac82a02c8b00'
16          '49846a05b4ac9dd09d41ec82dbe43916')
18 _svn0=http://svn.calendarserver.org/repository/calendarserver/CalendarServer/tags/release/CalendarServer-2.4
19 _svn0mod=CalendarServer
21 build() {
22   cd $srcdir
24   [ -d $_svn0mod/.svn ] &&
25     (cd $_svn0mod && svn up) ||
26     svn co $_svn0 $_svn0mod
28   mkdir -p $pkgdir/opt/caldavd
29   svn export $_svn0mod $pkgdir/opt/caldavd/$_svn0mod
30   cd $pkgdir/opt/caldavd/$_svn0mod
32   patch -Np1 -i $srcdir/run.patch || return 1
33   patch -Np1 -i $srcdir/caldavd.patch || return 1
35   ./run -s || return 1
37   mkdir -p $pkgdir/var/{spool/caldavd,run/caldavd,log/caldavd}
38   mkdir -p $pkgdir/etc/rc.d
39   mv $pkgdir/opt/caldavd/CalendarServer/conf $pkgdir/etc/caldavd
40   ln -s ../../../etc/caldavd $pkgdir/opt/caldavd/CalendarServer/conf
41   cp $srcdir/caldavd.plist $pkgdir/etc/caldavd/caldavd-dev.plist
42   rm -f $pkgdir/etc/caldavd/caldavd.plist
43   ln -s caldavd-dev.plist $pkgdir/etc/caldavd/caldavd.plist
44   ln -s ../../../var/log/caldavd $pkgdir/opt/caldavd/CalendarServer/logs
45   ln -s ../../../var/spool/caldavd $pkgdir/opt/caldavd/CalendarServer/root
46   ln -s ../../../var/run/caldavd $pkgdir/opt/caldavd/CalendarServer/data
48   install -m755 $srcdir/calendarserver.rc $pkgdir/etc/rc.d/calendarserver || return 1