aboutsummaryrefslogtreecommitdiffstats
path: root/main/xrdp
diff options
context:
space:
mode:
authorAlan Lacerda <alacerda@alpinelinux.org>2015-02-10 12:34:24 +0000
committerBartłomiej Piotrowski <bpiotrowski@alpinelinux.org>2015-02-10 13:40:52 +0100
commit062fe97d6ad917926c8671893b4a2cd427158a4e (patch)
tree2ef8dfe7cf4487f3c6b0a97c20a4e421cc20686f /main/xrdp
parent3d9d67de5345a741b4dbfa49ad857e22153e7685 (diff)
downloadaports-062fe97d6ad917926c8671893b4a2cd427158a4e.tar.bz2
aports-062fe97d6ad917926c8671893b4a2cd427158a4e.tar.xz
testing/xrdp: moved to main
Diffstat (limited to 'main/xrdp')
-rw-r--r--main/xrdp/APKBUILD61
-rw-r--r--main/xrdp/xrdp.initd9
2 files changed, 70 insertions, 0 deletions
diff --git a/main/xrdp/APKBUILD b/main/xrdp/APKBUILD
new file mode 100644
index 0000000000..34ff90b32a
--- /dev/null
+++ b/main/xrdp/APKBUILD
@@ -0,0 +1,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"
diff --git a/main/xrdp/xrdp.initd b/main/xrdp/xrdp.initd
new file mode 100644
index 0000000000..b785be3afd
--- /dev/null
+++ b/main/xrdp/xrdp.initd
@@ -0,0 +1,9 @@
+#!/sbin/runscript
+
+command=/usr/sbin/$SVCNAME
+pidfile=/var/run/$SVCNAME.pid
+
+depend() {
+ need net
+ after firewall
+}