wok-6.x annotate xrdp/receipt @ rev 20183

Add parallel
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Jan 29 19:08:54 2018 +0100 (2018-01-29)
parents b26680424a50
children 39aed09d3044
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@20064 8 LICENSE="Apache"
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@20064 13 DEPENDS="libssl zlib xorg-libX11 xorg-libXfixes xorg-libSM xorg-libICE \
pascal@20065 14 xorg-libXrandr xorg-libXext pam util-linux-uuid xorgxrdp"
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@20064 35 mkdir -p $fs/usr/lib/xrdp $fs/usr/share $install/usr/share/doc
pascal@20064 36 cp -a $src/*.txt $src/*.md $src/COPYING $install/usr/share/doc
pascal@20063 37 cp -a $install/etc $fs/
pascal@20063 38 cp -a $install/usr/lib/xrdp/*.so* $fs/usr/lib/xrdp/
pascal@20063 39 cp -a $install/usr/sbin $fs/usr/
pascal@20063 40 cp -a $install/usr/bin $fs/usr/
pascal@20063 41 cp -a $install/usr/share/xrdp $fs/usr/share/
pascal@17690 42 mv $fs/etc/xrdp/xrdp.sh $fs/etc/init.d/xrdp
pascal@17691 43 sed -i -e 's|/usr/local|/usr|;s|xrdp\.sh|xrdp|' \
pascal@17691 44 -e 's|--noheading -C||' \
pascal@17692 45 -e 's,grep -q -i,grep /usr/sbin | &,' \
pascal@17691 46 $fs/etc/init.d/xrdp
pascal@20063 47 SESSION="/usr/bin/lxde-session"
pascal@20063 48 sed -i "s|xterm|[ -x $SESSION ] \\&\\& exec $SESSION\\n &|" \
pascal@20063 49 $fs/etc/xrdp/startwm.sh
pascal@17689 50 }