From f257d3a6ec784c0d431475cd62c880c76cf3b8ab Mon Sep 17 00:00:00 2001 From: Esteban Carnevale Date: Mon, 2 Dec 2013 23:18:12 -0300 Subject: xrdp-0.6.1-1: add package --- pcr/xrdp/PKGBUILD | 41 +++++++++++++++++++++++++++++++++++++++++ pcr/xrdp/xrdp-sesman.service | 15 +++++++++++++++ pcr/xrdp/xrdp.service | 14 ++++++++++++++ 3 files changed, 70 insertions(+) create mode 100644 pcr/xrdp/PKGBUILD create mode 100644 pcr/xrdp/xrdp-sesman.service create mode 100644 pcr/xrdp/xrdp.service (limited to 'pcr/xrdp') diff --git a/pcr/xrdp/PKGBUILD b/pcr/xrdp/PKGBUILD new file mode 100644 index 000000000..1cf561115 --- /dev/null +++ b/pcr/xrdp/PKGBUILD @@ -0,0 +1,41 @@ +# Maintainer: Tomasz Zok +# Maintainer: techryda +# Contributor: Mathias R. +# Maintainer (Parabola): Esteban Carnevale + +pkgname=xrdp +pkgver=0.6.1 +pkgrel=1 +pkgdesc="An open source remote desktop protocol (RDP) server" +url="http://xrdp.sourceforge.net/" +arch=('i686' 'x86_64' 'armv6h') +license=('GPL') +depends=('tigervnc') +source=("http://downloads.sourceforge.net/project/$pkgname/$pkgname/$pkgver/$pkgname-v$pkgver.tar.gz" + 'xrdp.service' + 'xrdp-sesman.service') +md5sums=('26099c6588943262023607c1b4e774d8' + '0cb760b3e8a34f9bdf4daa871444d74c' + '58eb44bdc7ca5bb436d6fd66826f9b0f') + +prepare() { + cd "${pkgname}-v${pkgver}" + # Fix path in xrdp.sh file + sed -i 's|/usr/local/sbin|/usr/bin|' instfiles/xrdp.sh +} + +build() { + cd "${pkgname}-v${pkgver}" + ./bootstrap + ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --sbindir=/usr/bin + make +} + +package() { + cd "${pkgname}-v${pkgver}" + make DESTDIR="$pkgdir" install + cd ${pkgdir} + # Install systemd service files + mkdir -p usr/lib/systemd/system + cp ${srcdir}/*.service usr/lib/systemd/system +} diff --git a/pcr/xrdp/xrdp-sesman.service b/pcr/xrdp/xrdp-sesman.service new file mode 100644 index 000000000..8222069b9 --- /dev/null +++ b/pcr/xrdp/xrdp-sesman.service @@ -0,0 +1,15 @@ +[Unit] +Description=xrdp session manager +After=syslog.target network.target +StopWhenUnneeded=true + +[Service] +Type=forking +PIDFile=/var/run/xrdp-sesman.pid +EnvironmentFile=/etc/xrdp/xrdp.ini +ExecStart=/usr/bin/xrdp-sesman $SESMAN_OPTIONS +ExecStop=/usr/bin/xrdp-sesman $SESMAN_OPTIONS --kill + +[Install] +WantedBy=multi-user.target + diff --git a/pcr/xrdp/xrdp.service b/pcr/xrdp/xrdp.service new file mode 100644 index 000000000..269dff87b --- /dev/null +++ b/pcr/xrdp/xrdp.service @@ -0,0 +1,14 @@ +[Unit] +Description=xrdp daemon +Requires=xrdp-sesman.service +After=syslog.target network.target xrdp-sesman.service + +[Service] +Type=forking +PIDFile=/var/run/xrdp.pid +EnvironmentFile=/etc/xrdp/xrdp.ini +ExecStart=/usr/bin/xrdp $XRDP_OPTIONS +ExecStop=/usr/bin/xrdp $XRDP_OPTIONS --kill + +[Install] +WantedBy=multi-user.target -- cgit v1.2.3-2-g168b