wok view xrdp/receipt @ rev 25794

created recipe for exo-lang
author Hans-G?nter Theisgen
date Wed Oct 23 16:19:52 2024 +0100 (4 weeks ago)
parents 211f545ad84b
children
line source
1 # SliTaz package receipt.
3 PACKAGE="xrdp"
4 VERSION="0.9.16"
5 CATEGORY="network"
6 SHORT_DESC="An open source remote desktop protocol (RDP) server."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="Apache"
9 WEB_SITE="http://www.xrdp.org/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://github.com/neutrinolabs/$PACKAGE/releases/download/v$VERSION/$TARBALL"
14 DEPENDS="openssl pam util-linux-uuid xorg-libICE xorg-libSM xorg-libX11
15 xorg-libXext xorg-libXfixes xorg-libXrandr xorgxrdp zlib"
16 BUILD_DEPENDS="autoconf automake libtool nasm openssl-dev pam-dev
17 pkg-config util-linux-uuid-dev xorg-dev"
19 # What is the latest version available today?
20 current_version()
21 {
22 wget -O - ${WGET_URL%/down*} 2>/dev/null | \
23 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q'
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 ./bootstrap &&
30 ./configure \
31 --prefix=/usr \
32 --sysconfdir=/etc \
33 --mandir=/usr/share/man \
34 --localstatedir=/var \
35 --enable-ipv6 \
36 $CONFIGURE_ARGS &&
37 make &&
38 make DESTDIR=$DESTDIR install
39 }
41 # Rules to gen a SliTaz package suitable for Tazpkg.
42 genpkg_rules()
43 {
44 mkdir -p $fs/usr/lib/xrdp
45 mkdir -p $fs/usr/share
46 mkdir -p $install/usr/share/doc
48 cp -a $src/*.txt $install/usr/share/doc
49 cp -a $src/*.md $install/usr/share/doc
50 cp -a $src/COPYING $install/usr/share/doc
51 cp -a $install/etc $fs/
52 cp -a $install/usr/lib/xrdp/*.so* $fs/usr/lib/xrdp/
53 cp -a $install/usr/sbin $fs/usr/
54 cp -a $install/usr/bin $fs/usr/
55 cp -a $install/usr/share/xrdp $fs/usr/share/
57 # 0.9.13 no such file
58 # mv $fs/etc/xrdp/xrdp.sh $fs/etc/init.d/xrdp
60 sed -i -e 's|/usr/local|/usr|;s|xrdp\.sh|xrdp|' \
61 -e 's|--noheading -C||' \
62 -e 's,grep -q -i,grep /usr/sbin | &,' \
63 -e 's|.*/lib/lsb/init-functions|# &|' \
64 $fs/etc/init.d/xrdp
66 SESSION="/usr/bin/lxde-session"
67 sed -i "s|xterm|[ -x $SESSION ] \\&\\& exec $SESSION\\n &|" \
68 $fs/etc/xrdp/startwm.sh
70 rm -f $fs/etc/xrdp/rsakeys.ini $fs/etc/xrdp/key.pem $fs/etc/xrdp/cert.pem
71 }
73 # Pre and post install commands for Tazpkg.
74 post_install()
75 {
76 chroot $1/ xrdp-keygen xrdp /etc/xrdp/rsakeys.ini
77 chroot $1/ openssl req -x509 -newkey rsa:2048 -sha256 -nodes \
78 -keyout /etc/xrdp/key.pem -out /etc/xrdp/cert.pem -days 365 \
79 -subj /C=US/ST=CA/L=Sunnyvale/O=xrdp/CN=www.xrdp.org \
80 -config /etc/ssl/openssl.conf
81 }