build xrdp, xorgxrdp

#!/bin/bash
mkdir /root/work

# xrdp
wget -P /root/work --no-check-certificate "https://github.com/neutrinolabs/xrdp/archive/refs/tags/v0.9.19.tar.gz"
if [ $? -ne 0 ]; then
  exit 0
fi
tar -C /root/work -xzf /root/work/v0.9.19.tar.gz
if [ $? -ne 0 ]; then
  exit 0
fi
cd /root/work/xrdp-0.9.19
./bootstrap
if [ $? -ne 0 ]; then
  exit 0
fi
./configure --prefix=/usr --enable-jpeg --enable-fuse --enable-mp3lame --disable-painter --disable-rfxcodec
if [ $? -ne 0 ]; then
  exit 0
fi
make all
if [ $? -ne 0 ]; then
  exit 0
fi
make install
if [ $? -ne 0 ]; then
  exit 0
fi

# xorgxrdp
wget -P /root/work --no-check-certificate "https://github.com/neutrinolabs/xorgxrdp/archive/refs/tags/v0.2.18.tar.gz"
if [ $? -ne 0 ]; then
  exit 0
fi
tar -C /root/work -xzf /root/work/v0.2.18.tar.gz
if [ $? -ne 0 ]; then
  exit 0
fi
cd /root/work/xorgxrdp-0.2.18
if [ $? -ne 0 ]; then
  exit 0
fi
./bootstrap
if [ $? -ne 0 ]; then
  exit 0
fi
export PKG_CONFIG_PATH=/usr/lib/pkgconfig
./configure --prefix=/usr
if [ $? -ne 0 ]; then
  exit 0
fi
make all
if [ $? -ne 0 ]; then
  exit 0
fi
make install
위로 스크롤