aboutsummaryrefslogtreecommitdiffstats
path: root/main/xrdp/APKBUILD
blob: 34ff90b32a50440f0e62d0464a71eb2b3c8c8fbe (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=1
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
81edb8008743223c99e6bf6e8bcbbc89  xrdp.initd"
sha256sums="6880003b26799e4154a9486f671b6fc1b0487de0da2289573f46c090146e5a3b  xrdp-v0.6.1.tar.gz
df7c5096b32e8ba3804ae283428ed7535711a0c658fd2185d054e2c8bd9efabe  xrdp.initd"
sha512sums="d2aa5c300ed4c5e84137776f3d5f63736a8d674ef3a96eda271fd6d80ecc394a1148dd9d09b3acf3916c774fd15fe7400271ffb034a45ddae6b34ea30fb2465c  xrdp-v0.6.1.tar.gz
8adb69ac2571cefb2ccc56e3b2b9c27a9359f2ad217f09bab18f39633f85af7b2417c2d3a476f97ca9aed89d0269476275a8c6dd7ba7e4d9b0e2ac518e06e965  xrdp.initd"