aboutsummaryrefslogtreecommitdiffstats
path: root/main/xrdp/APKBUILD
blob: bf8c3e61996aa066bf1a8674a991ba92ebd60dc8 (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
49
50
51
52
53
54
55
56
57
58
59
60
61
# Contributor: Alan Lacerda <alacerda@alpinelinux.org>
# Maintainer: Alan Lacerda <alacerda@alpinelinux.org>
pkgname=xrdp
pkgver=0.6.1
pkgrel=2
pkgdesc="An open source RDP server"
url="http://sourceforge.net/projects/xrdp/"
arch="all"
license="GPLv2"
depends=""
depends_dev=""
makedepends="$depends_dev autoconf automake libtool openssl-dev libx11-dev
	libxfixes-dev"
install=""
subpackages="$pkgname-doc"
source="http://ufpr.dl.sourceforge.net/project/$pkgname/$pkgname/$pkgver/$pkgname-v$pkgver.tar.gz
	xrdp.initd"

_builddir="$srcdir/$pkgname-v$pkgver"
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	./bootstrap \
		|| return 1
	./configure \
		--prefix=/usr \
		--disable-static \
		--sysconfdir=/etc \
		--localstatedir=/var \
		--sbindir=/usr/sbin \
		--enable-nopam \
		|| return 1
	make \
		|| return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="${pkgdir}" install || return 1
	find "$pkgdir" -name \*.la -delete

	install -m755 -D "$srcdir"/$pkgname.initd \
                "$pkgdir"/etc/init.d/$pkgname || return 1
	ln -s $pkgname $pkgdir/etc/init.d/$pkgname-sesman
}

md5sums="26099c6588943262023607c1b4e774d8  xrdp-v0.6.1.tar.gz
9a70abdbf18d381a4762b68e5e6194de  xrdp.initd"
sha256sums="6880003b26799e4154a9486f671b6fc1b0487de0da2289573f46c090146e5a3b  xrdp-v0.6.1.tar.gz
052fbd34eb2cfb90b625d07d097b06a3754ad22864fac8489e5a8fd92e55dddf  xrdp.initd"
sha512sums="d2aa5c300ed4c5e84137776f3d5f63736a8d674ef3a96eda271fd6d80ecc394a1148dd9d09b3acf3916c774fd15fe7400271ffb034a45ddae6b34ea30fb2465c  xrdp-v0.6.1.tar.gz
22b44398f4014ee67831051d1a1a859c6f4a601d75a03b33142ce7ea1e3f00082134337efb7da69e964f4a369d2b22114973221be2131f384f9459cc8e82fc13  xrdp.initd"