wok-current annotate xrdp/receipt @ rev 22944

updated iksemel and iksemel-dev (1.2 -> 1.4.2)
author Hans-G?nter Theisgen
date Fri Feb 28 09:45:54 2020 +0100 (2020-02-28)
parents 05ed2662f295
children 1fcb238d2a13
rev   line source
pascal@17689 1 # SliTaz package receipt.
pascal@17689 2
pascal@17689 3 PACKAGE="xrdp"
Hans-G?nter@22307 4 VERSION="0.9.11"
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"
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@22307 49 mv $fs/etc/xrdp/xrdp.sh $fs/etc/init.d/xrdp
Hans-G?nter@22307 50
pascal@17691 51 sed -i -e 's|/usr/local|/usr|;s|xrdp\.sh|xrdp|' \
pascal@17691 52 -e 's|--noheading -C||' \
pascal@17692 53 -e 's,grep -q -i,grep /usr/sbin | &,' \
pascal@17691 54 $fs/etc/init.d/xrdp
Hans-G?nter@22307 55
pascal@20063 56 SESSION="/usr/bin/lxde-session"
pascal@20063 57 sed -i "s|xterm|[ -x $SESSION ] \\&\\& exec $SESSION\\n &|" \
pascal@20063 58 $fs/etc/xrdp/startwm.sh
pascal@17689 59 }