Browse Source

xrdp: added to repo

Signed-off-by: Steven Noonan <steven@uplinklabs.net>
master
Steven Noonan 4 years ago
parent
commit
5e1196c77e
No known key found for this signature in database GPG Key ID: 7EACB44BA7B30DB9
  1. 37
      xorgxrdp/PKGBUILD
  2. 54
      xrdp/PKGBUILD
  3. 69
      xrdp/arch-config.diff
  4. 14
      xrdp/xrdp-sesman.service
  5. 15
      xrdp/xrdp.install
  6. 14
      xrdp/xrdp.service

37
xorgxrdp/PKGBUILD

@ -0,0 +1,37 @@
# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>
pkgname=xorgxrdp
pkgver=0.2.6
pkgrel=1
pkgdesc="Xorg drivers for xrdp"
arch=('i686' 'x86_64')
url="https://github.com/neutrinolabs/xorgxrdp"
license=('MIT')
depends=('glibc' 'xrdp')
makedepends=('nasm' 'xorg-server-devel')
options=('staticlibs')
source=("https://github.com/neutrinolabs/xorgxrdp/releases/download/v$pkgver/xorgxrdp-$pkgver.tar.gz"{,.asc})
sha256sums=('becc9d0f2d0c18877f5f500533abd8d490afd10f38e5d67206e3cf7d51fba797'
'SKIP')
validpgpkeys=('61ECEABBF2BB40E3A35DF30A9F72CDBC01BF10EB') # Koichiro IWAO <meta@vmeta.jp>
build() {
cd "$pkgname-$pkgver"
./configure --prefix="/usr"
make
}
check() {
cd "$pkgname-$pkgver"
#make check
}
package() {
cd "$pkgname-$pkgver"
make DESTDIR="$pkgdir" install
install -Dm644 "COPYING" "$pkgdir/usr/share/licenses/$pkgname/COPYING"
}

54
xrdp/PKGBUILD

@ -0,0 +1,54 @@
# Maintainer: Brian Bidulock <bidulock@openss7.org>
# Contributo: Jianhui Z <jianhui@outlook.com>
# Contributo: Tau Tsao <realturner at gmail.com>
# Contributor: Tomasz Zok <tomasz.zok [at] gmail.com>
# Contributor: techryda <techryda at silentdome dot com>
# Contributor: Mathias R. <pu154r@overlinux.org>
pkgname=xrdp
pkgver=0.9.5
pkgrel=2
pkgdesc="An open source remote desktop protocol (RDP) server"
url="https://github.com/neutrinolabs/xrdp"
arch=('i686' 'x86_64' 'armv6h')
license=('Apache')
makedepends=('nasm')
depends=('tigervnc' 'libxrandr' 'lame' 'opus' 'fuse')
backup=('etc/xrdp/sesman.ini' 'etc/xrdp/xrdp.ini')
install="${pkgname}.install"
source=("https://github.com/neutrinolabs/xrdp/releases/download/v${pkgver}/xrdp-${pkgver}.tar.gz"
"arch-config.diff")
md5sums=('50145d6797f47975aea607aa795fd1e3'
'62e398bea7f09f464d2eb25492bfe0dc')
prepare() {
cd "${pkgname}-${pkgver}"
patch -Np2 -b -z .orig <../arch-config.diff
./bootstrap
}
build() {
cd "${pkgname}-${pkgver}"
./configure --prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--sbindir=/usr/bin \
--with-systemdsystemunitdir=/usr/lib/systemd/system \
--enable-jpeg \
--enable-tjpeg \
--enable-fuse \
--enable-opus \
--enable-rfxcodec \
--enable-mp3lame \
--enable-pixman \
--enable-painter \
--enable-vsock
make V=0
}
package() {
cd "${pkgname}-${pkgver}"
make DESTDIR="$pkgdir" install
rm -f "$pkgdir"/etc/xrdp/rsakeys.ini
install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
}

69
xrdp/arch-config.diff

@ -0,0 +1,69 @@
diff -up src/xrdp-0.9.4/instfiles/xrdp.service.in.orig src/xrdp-0.9.4/instfiles/xrdp.service.in
--- src/xrdp-0.9.4/instfiles/xrdp.service.in.orig 2017-07-18 22:23:49.000000000 -0600
+++ src/xrdp-0.9.4/instfiles/xrdp.service.in 2017-11-18 23:48:10.000000000 -0700
@@ -6,11 +6,9 @@ After=network.target xrdp-sesman.service
[Service]
Type=forking
-PIDFile=@localstatedir@/run/xrdp.pid
-EnvironmentFile=-@sysconfdir@/sysconfig/xrdp
-EnvironmentFile=-@sysconfdir@/default/xrdp
-ExecStart=@sbindir@/xrdp $XRDP_OPTIONS
-ExecStop=@sbindir@/xrdp $XRDP_OPTIONS --kill
+PIDFile=/run/xrdp.pid
+ExecStart=@sbindir@/xrdp
+ExecStop=@sbindir@/xrdp --kill
[Install]
WantedBy=multi-user.target
diff -up src/xrdp-0.9.4/instfiles/xrdp-sesman.service.in.orig src/xrdp-0.9.4/instfiles/xrdp-sesman.service.in
--- src/xrdp-0.9.4/instfiles/xrdp-sesman.service.in.orig 2017-07-18 22:23:49.000000000 -0600
+++ src/xrdp-0.9.4/instfiles/xrdp-sesman.service.in 2017-11-18 23:47:37.000000000 -0700
@@ -7,11 +7,9 @@ BindsTo=xrdp.service
[Service]
Type=forking
-PIDFile=@localstatedir@/run/xrdp-sesman.pid
-EnvironmentFile=-@sysconfdir@/sysconfig/xrdp
-EnvironmentFile=-@sysconfdir@/default/xrdp
-ExecStart=@sbindir@/xrdp-sesman $SESMAN_OPTIONS
-ExecStop=@sbindir@/xrdp-sesman $SESMAN_OPTIONS --kill
+PIDFile=/run/xrdp-sesman.pid
+ExecStart=@sbindir@/xrdp-sesman
+ExecStop=@sbindir@/xrdp-sesman --kill
[Install]
WantedBy=multi-user.target
diff -up src/xrdp-0.9.4/instfiles/xrdp.sh.orig src/xrdp-0.9.4/instfiles/xrdp.sh
--- src/xrdp-0.9.4/instfiles/xrdp.sh.orig 2017-06-26 07:09:39.000000000 -0600
+++ src/xrdp-0.9.4/instfiles/xrdp.sh 2017-11-18 23:44:01.000000000 -0700
@@ -17,7 +17,7 @@
# Description: starts xrdp
### END INIT INFO
-SBINDIR=/usr/local/sbin
+SBINDIR=/usr/bin
LOG=/dev/null
CFGDIR=/etc/xrdp
diff -up src/xrdp-0.9.4/sesman/startwm.sh.orig src/xrdp-0.9.4/sesman/startwm.sh
--- src/xrdp-0.9.4/sesman/startwm.sh.orig 2017-07-18 22:23:49.000000000 -0600
+++ src/xrdp-0.9.4/sesman/startwm.sh 2017-11-18 23:42:35.000000000 -0700
@@ -56,6 +56,17 @@ wm_start()
export LANG LANGUAGE
fi
+ # arch user
+ if [ -r ~/.xinitrc ]; then
+ . ~/.xinitrc
+ exit 0
+ fi
+ # arch
+ if [ -r /etc/X11/xinit/xinitrc ]; then
+ . /etc/X11/xinit/xinitrc
+ exit 0
+ fi
+
# debian
if [ -r /etc/X11/Xsession ]; then
pre_start

14
xrdp/xrdp-sesman.service

@ -0,0 +1,14 @@
[Unit]
Description=xrdp session manager
After=syslog.target network.target
StopWhenUnneeded=true
[Service]
Type=forking
PIDFile=/var/run/xrdp-sesman.pid
ExecStart=/usr/bin/xrdp-sesman
ExecStop=/usr/bin/xrdp-sesman --kill
[Install]
WantedBy=multi-user.target

15
xrdp/xrdp.install

@ -0,0 +1,15 @@
post_upgrade() {
if [ ! -e /etc/xrdp/rsakeys.ini ]; then
xrdp-keygen xrdp /etc/xrdp/rsakeys.ini
fi
}
post_install() {
post_upgrade
}
pre_remove() {
if [ -f /etc/xrdp/rsakeys.ini ]; then
rm /etc/xrdp/rsakeys.ini
fi
}

14
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
Loading…
Cancel
Save