wok annotate xrdp/receipt @ rev 20063
Up xrdp (0.9.3.1), add xorgxrdp
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Sep 22 21:42:40 2017 +0200 (2017-09-22) |
parents | 2b9e61f7570e |
children | b26680424a50 |
rev | line source |
---|---|
pascal@17689 | 1 # SliTaz package receipt. |
pascal@17689 | 2 |
pascal@17689 | 3 PACKAGE="xrdp" |
pascal@20063 | 4 VERSION="0.9.3.1" |
pascal@17689 | 5 CATEGORY="network" |
pascal@17689 | 6 SHORT_DESC="An open source remote desktop protocol(rdp) server." |
pascal@17689 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@17689 | 8 LICENSE="GPL2" |
pascal@20063 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@17689 | 10 WEB_SITE="http://www.xrdp.org/" |
pascal@20063 | 11 WGET_URL="https://github.com/neutrinolabs/xrdp/releases/download/v$VERSION/$TARBALL" |
pascal@17689 | 12 |
pascal@17689 | 13 DEPENDS="libssl zlib xorg-libX11 xorg-libXfixes libxcb xorg-libXau \ |
pascal@20063 | 14 xorg-libXdmcp pam tightvnc util-linux-uuid" |
pascal@17689 | 15 BUILD_DEPENDS="autoconf automake libtool pkg-config openssl-dev pam-dev \ |
pascal@20063 | 16 xorg-dev util-linux-uuid-dev nasm" |
pascal@17689 | 17 |
pascal@17689 | 18 # Rules to configure and make the package. |
pascal@17689 | 19 compile_rules() |
pascal@17689 | 20 { |
pascal@17689 | 21 ./bootstrap && |
pascal@17689 | 22 ./configure --prefix=/usr \ |
pascal@17689 | 23 --sysconfdir=/etc \ |
pascal@17689 | 24 --mandir=/usr/share/man \ |
pascal@17690 | 25 --localstatedir=/var \ |
pascal@20063 | 26 --enable-ipv6 \ |
pascal@17689 | 27 $CONFIGURE_ARGS && |
pascal@17689 | 28 make && |
pascal@17689 | 29 make DESTDIR=$DESTDIR install |
pascal@17689 | 30 } |
pascal@17689 | 31 |
pascal@17689 | 32 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@17689 | 33 genpkg_rules() |
pascal@17689 | 34 { |
pascal@20063 | 35 mkdir -p $fs/usr/lib/xrdp $fs/usr/share |
pascal@20063 | 36 cp -a $install/etc $fs/ |
pascal@20063 | 37 cp -a $install/usr/lib/xrdp/*.so* $fs/usr/lib/xrdp/ |
pascal@20063 | 38 cp -a $install/usr/sbin $fs/usr/ |
pascal@20063 | 39 cp -a $install/usr/bin $fs/usr/ |
pascal@20063 | 40 cp -a $install/usr/share/xrdp $fs/usr/share/ |
pascal@17690 | 41 mv $fs/etc/xrdp/xrdp.sh $fs/etc/init.d/xrdp |
pascal@17691 | 42 sed -i -e 's|/usr/local|/usr|;s|xrdp\.sh|xrdp|' \ |
pascal@17691 | 43 -e 's|--noheading -C||' \ |
pascal@17692 | 44 -e 's,grep -q -i,grep /usr/sbin | &,' \ |
pascal@17691 | 45 $fs/etc/init.d/xrdp |
pascal@20063 | 46 SESSION="/usr/bin/lxde-session" |
pascal@20063 | 47 sed -i "s|xterm|[ -x $SESSION ] \\&\\& exec $SESSION\\n &|" \ |
pascal@20063 | 48 $fs/etc/xrdp/startwm.sh |
pascal@17689 | 49 } |