1 # Contributor: Tau Tsao <realturner at gmail.com>
5 pkgdesc="An open source remote desktop protocol(rdp) server - GIT version"
6 url="http://sourceforge.net/projects/xrdp/develop"
21 _gitroot="git://xrdp.git.sourceforge.net/gitroot/xrdp/xrdp"
26 msg "Connecting to GIT server...."
28 if [ -d $srcdir/$_gitname ] ; then
29 cd $srcdir/$_gitname && git pull origin
30 msg "The local files are updated."
32 git clone $_gitroot $_gitname
35 msg "GIT checkout done or server timeout"
37 msg "Starting make..."
39 rm -rf ${srcdir}/$_gitname-build
40 cp -a ${srcdir}/$_gitname{,-build}
41 cd ${srcdir}/$_gitname-build
48 ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var
53 cd ${srcdir}/$_gitname-build
54 make DESTDIR=${pkgdir} install || return 1
57 ln -s ../xrdp/xrdp.sh rc.d/rdpd
58 sed -i 's|/usr/local/|/usr/|' xrdp/xrdp.sh