wok-6.x annotate xrdp/receipt @ rev 23837
Up freetype (2.10.2), git (2.26.2), glpi (9.4.6)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Jun 01 10:44:24 2020 +0000 (2020-06-01) |
parents | 1fcb238d2a13 |
children | 5ea0ce1cecc0 |
rev | line source |
---|---|
pascal@17689 | 1 # SliTaz package receipt. |
pascal@17689 | 2 |
pascal@17689 | 3 PACKAGE="xrdp" |
Hans-G?nter@23779 | 4 VERSION="0.9.13" |
pascal@17689 | 5 CATEGORY="network" |
Hans-G?nter@23779 | 6 SHORT_DESC="An open source remote desktop protocol (RDP) server." |
pascal@17689 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@20064 | 8 LICENSE="Apache" |
Hans-G?nter@22307 | 9 WEB_SITE="http://www.xrdp.org/" |
Hans-G?nter@22307 | 10 |
pascal@20063 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
Hans-G?nter@22307 | 12 WGET_URL="https://github.com/neutrinolabs/$PACKAGE/releases/download/v$VERSION/$TARBALL" |
pascal@17689 | 13 |
Hans-G?nter@22307 | 14 DEPENDS="libssl pam util-linux-uuid xorg-libICE xorg-libSM xorg-libX11 |
Hans-G?nter@22307 | 15 xorg-libXext xorg-libXfixes xorg-libXrandr xorgxrdp zlib" |
Hans-G?nter@22307 | 16 BUILD_DEPENDS="autoconf automake libtool nasm openssl-dev pam-dev |
Hans-G?nter@22307 | 17 pkg-config util-linux-uuid-dev xorg-dev" |
pascal@17689 | 18 |
pascal@17689 | 19 # Rules to configure and make the package. |
pascal@17689 | 20 compile_rules() |
pascal@17689 | 21 { |
pascal@17689 | 22 ./bootstrap && |
Hans-G?nter@22307 | 23 ./configure \ |
Hans-G?nter@22307 | 24 --prefix=/usr \ |
Hans-G?nter@22307 | 25 --sysconfdir=/etc \ |
Hans-G?nter@22307 | 26 --mandir=/usr/share/man \ |
Hans-G?nter@22307 | 27 --localstatedir=/var \ |
Hans-G?nter@22307 | 28 --enable-ipv6 \ |
pascal@17689 | 29 $CONFIGURE_ARGS && |
pascal@17689 | 30 make && |
pascal@17689 | 31 make DESTDIR=$DESTDIR install |
pascal@17689 | 32 } |
pascal@17689 | 33 |
pascal@17689 | 34 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@17689 | 35 genpkg_rules() |
pascal@17689 | 36 { |
Hans-G?nter@22307 | 37 mkdir -p $fs/usr/lib/xrdp |
Hans-G?nter@22307 | 38 mkdir -p $fs/usr/share |
Hans-G?nter@22307 | 39 mkdir -p $install/usr/share/doc |
Hans-G?nter@22307 | 40 |
Hans-G?nter@22307 | 41 cp -a $src/*.txt $install/usr/share/doc |
Hans-G?nter@22307 | 42 cp -a $src/*.md $install/usr/share/doc |
Hans-G?nter@22307 | 43 cp -a $src/COPYING $install/usr/share/doc |
Hans-G?nter@22307 | 44 cp -a $install/etc $fs/ |
Hans-G?nter@22307 | 45 cp -a $install/usr/lib/xrdp/*.so* $fs/usr/lib/xrdp/ |
Hans-G?nter@22307 | 46 cp -a $install/usr/sbin $fs/usr/ |
Hans-G?nter@22307 | 47 cp -a $install/usr/bin $fs/usr/ |
Hans-G?nter@22307 | 48 cp -a $install/usr/share/xrdp $fs/usr/share/ |
Hans-G?nter@23780 | 49 |
Hans-G?nter@23780 | 50 # 0.9.13 no such file |
Hans-G?nter@23780 | 51 # mv $fs/etc/xrdp/xrdp.sh $fs/etc/init.d/xrdp |
Hans-G?nter@22307 | 52 |
pascal@17691 | 53 sed -i -e 's|/usr/local|/usr|;s|xrdp\.sh|xrdp|' \ |
pascal@17691 | 54 -e 's|--noheading -C||' \ |
pascal@17692 | 55 -e 's,grep -q -i,grep /usr/sbin | &,' \ |
pascal@17691 | 56 $fs/etc/init.d/xrdp |
Hans-G?nter@22307 | 57 |
pascal@20063 | 58 SESSION="/usr/bin/lxde-session" |
pascal@20063 | 59 sed -i "s|xterm|[ -x $SESSION ] \\&\\& exec $SESSION\\n &|" \ |
pascal@20063 | 60 $fs/etc/xrdp/startwm.sh |
pascal@17689 | 61 } |