2021-02-05 11:49:47 +01:00
|
|
|
Name: kasmvncserver
|
2022-11-29 13:18:40 +01:00
|
|
|
Version: 1.0.0
|
2021-02-05 11:49:47 +01:00
|
|
|
Release: 1%{?dist}
|
2021-02-24 09:19:49 +01:00
|
|
|
Summary: VNC server accessible from a web browser
|
2021-02-05 11:49:47 +01:00
|
|
|
|
|
|
|
License: GPLv2+
|
|
|
|
URL: https://github.com/kasmtech/KasmVNC
|
|
|
|
|
2021-02-11 09:50:14 +01:00
|
|
|
BuildRequires: rsync
|
2022-08-19 19:54:11 +02:00
|
|
|
Requires: xorg-x11-xauth, xorg-x11-xkb-utils, xkeyboard-config, xorg-x11-server-utils, openssl, perl, perl-Switch, perl-YAML-Tiny, perl-Hash-Merge-Simple, perl-Scalar-List-Utils, perl-List-MoreUtils, perl-Try-Tiny
|
2021-02-22 09:21:21 +01:00
|
|
|
Conflicts: tigervnc-server, tigervnc-server-minimal
|
2021-02-11 08:43:21 +01:00
|
|
|
|
2021-02-05 11:49:47 +01:00
|
|
|
%description
|
2022-11-29 15:16:37 +01:00
|
|
|
KasmVNC provides remote web-based access to a Desktop or application.
|
|
|
|
While VNC is in the name, KasmVNC differs from other VNC variants such
|
|
|
|
as TigerVNC, RealVNC, and TurboVNC. KasmVNC has broken from the RFB
|
|
|
|
specification which defines VNC, in order to support modern technologies
|
|
|
|
and increase security. KasmVNC is accessed by users from any modern
|
|
|
|
browser and does not support legacy VNC viewer applications. KasmVNC
|
|
|
|
uses a modern YAML based configuration at the server and user level,
|
|
|
|
allowing for ease of management. KasmVNC is maintained by Kasm
|
|
|
|
Technologies Corp, www.kasmweb.com.
|
2021-02-05 11:49:47 +01:00
|
|
|
|
2022-08-19 19:54:11 +02:00
|
|
|
WARNING: this package requires EPEL.
|
|
|
|
|
2021-02-05 11:49:47 +01:00
|
|
|
%prep
|
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
2021-02-24 10:53:43 +01:00
|
|
|
|
|
|
|
TARGET_OS=$(lsb_release -is | tr '[:upper:]' '[:lower:]')
|
|
|
|
TARGET_OS_CODENAME=$(lsb_release -cs | tr '[:upper:]' '[:lower:]')
|
|
|
|
TARBALL=$RPM_SOURCE_DIR/kasmvnc.${TARGET_OS}_${TARGET_OS_CODENAME}.tar.gz
|
|
|
|
TAR_DATA=$(mktemp -d)
|
|
|
|
tar -xzf "$TARBALL" -C "$TAR_DATA"
|
|
|
|
|
|
|
|
SRC=$TAR_DATA/usr/local
|
|
|
|
SRC_BIN=$SRC/bin
|
|
|
|
DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
DST_MAN=$DESTDIR/usr/share/man/man1
|
|
|
|
|
|
|
|
mkdir -p $DESTDIR/usr/bin $DESTDIR/usr/share/man/man1 \
|
2022-08-19 19:54:11 +02:00
|
|
|
$DESTDIR/usr/share/doc/kasmvncserver $DESTDIR/usr/lib \
|
|
|
|
$DESTDIR/usr/share/perl5 $DESTDIR/etc/kasmvnc
|
|
|
|
|
2021-02-24 10:53:43 +01:00
|
|
|
cp $SRC_BIN/Xvnc $DESTDIR/usr/bin;
|
|
|
|
cp $SRC_BIN/vncserver $DESTDIR/usr/bin;
|
2022-08-19 19:54:11 +02:00
|
|
|
cp -a $SRC_BIN/KasmVNC $DESTDIR/usr/share/perl5/
|
2021-02-24 10:53:43 +01:00
|
|
|
cp $SRC_BIN/vncconfig $DESTDIR/usr/bin;
|
|
|
|
cp $SRC_BIN/kasmvncpasswd $DESTDIR/usr/bin;
|
2022-04-07 15:01:14 +02:00
|
|
|
cp $SRC_BIN/kasmxproxy $DESTDIR/usr/bin;
|
2022-08-19 19:54:11 +02:00
|
|
|
cp -r $SRC/lib/kasmvnc/ $DESTDIR/usr/lib/kasmvncserver
|
2021-02-24 10:53:43 +01:00
|
|
|
cd $DESTDIR/usr/bin && ln -s kasmvncpasswd vncpasswd;
|
|
|
|
cp -r $SRC/share/doc/kasmvnc*/* $DESTDIR/usr/share/doc/kasmvncserver/
|
|
|
|
rsync -r --exclude '.git*' --exclude po2js --exclude xgettext-html \
|
2022-08-19 19:54:11 +02:00
|
|
|
--exclude www/utils/ --exclude .eslintrc --exclude configure \
|
2021-02-24 10:53:43 +01:00
|
|
|
$SRC/share/kasmvnc $DESTDIR/usr/share
|
2022-08-19 19:54:11 +02:00
|
|
|
|
|
|
|
sed -i -e 's!pem_certificate: .\+$!pem_certificate: /etc/pki/tls/private/kasmvnc.pem!' \
|
|
|
|
$DESTDIR/usr/share/kasmvnc/kasmvnc_defaults.yaml
|
|
|
|
sed -i -e 's!pem_key: .\+$!pem_key: /etc/pki/tls/private/kasmvnc.pem!' \
|
|
|
|
$DESTDIR/usr/share/kasmvnc/kasmvnc_defaults.yaml
|
|
|
|
sed -e 's/^\([^#]\)/# \1/' $DESTDIR/usr/share/kasmvnc/kasmvnc_defaults.yaml > \
|
|
|
|
$DESTDIR/etc/kasmvnc/kasmvnc.yaml
|
2021-02-24 10:53:43 +01:00
|
|
|
cp $SRC/man/man1/Xvnc.1 $DESTDIR/usr/share/man/man1/;
|
|
|
|
cp $SRC/share/man/man1/vncserver.1 $DST_MAN;
|
|
|
|
cp $SRC/share/man/man1/vncconfig.1 $DST_MAN;
|
|
|
|
cp $SRC/share/man/man1/vncpasswd.1 $DST_MAN;
|
2022-04-07 15:01:14 +02:00
|
|
|
cp $SRC/share/man/man1/kasmxproxy.1 $DST_MAN;
|
2021-02-24 10:53:43 +01:00
|
|
|
cd $DST_MAN && ln -s vncpasswd.1 kasmvncpasswd.1;
|
2021-02-05 11:49:47 +01:00
|
|
|
|
2022-04-07 15:01:14 +02:00
|
|
|
|
2021-02-05 11:49:47 +01:00
|
|
|
%files
|
2022-08-19 19:54:11 +02:00
|
|
|
%config(noreplace) /etc/kasmvnc
|
|
|
|
|
2021-02-05 11:49:47 +01:00
|
|
|
/usr/bin/*
|
2022-08-19 19:54:11 +02:00
|
|
|
/usr/lib/kasmvncserver
|
2021-02-12 11:07:53 +01:00
|
|
|
/usr/share/man/man1/*
|
2022-08-19 19:54:11 +02:00
|
|
|
/usr/share/perl5/KasmVNC
|
|
|
|
/usr/share/kasmvnc
|
2021-02-05 11:49:47 +01:00
|
|
|
|
2021-04-20 21:41:38 +02:00
|
|
|
%license /usr/share/doc/kasmvncserver/LICENSE.TXT
|
2021-02-12 11:07:53 +01:00
|
|
|
%doc /usr/share/doc/kasmvncserver/README.md
|
2021-02-05 11:49:47 +01:00
|
|
|
|
|
|
|
%changelog
|
2022-11-29 13:18:40 +01:00
|
|
|
* Tue Nov 29 2022 KasmTech <info@kasmweb.com> - 1.0.0-1
|
2022-11-29 15:16:37 +01:00
|
|
|
- WebRTC UDP transit support with support of STUN servers
|
|
|
|
- Lossless compression using multi-threaded WASM QOI decoder client side
|
|
|
|
- New yaml based configuration
|
|
|
|
- Significantly improved FPS through both client-side and server-side improvements.
|
|
|
|
- Support for the admin to define arbitrary http response headers for the built in web server
|
|
|
|
- Support for additional mouse buttons
|
|
|
|
- Refinement of vncserver checks and user prompts
|
|
|
|
- Added send_full_frame to developer API, forces full frame to be sent to all connected users that have at least read permission.
|
2022-03-22 10:22:10 +01:00
|
|
|
* Tue Mar 22 2022 KasmTech <info@kasmweb.com> - 0.9.3~beta-1
|
2021-02-12 11:07:53 +01:00
|
|
|
* Fri Feb 12 2021 KasmTech <info@kasmweb.com> - 0.9.1~beta-1
|
|
|
|
- Initial release of the rpm package.
|
2021-02-05 11:49:47 +01:00
|
|
|
|
|
|
|
%post
|
2021-02-22 10:28:30 +01:00
|
|
|
kasmvnc_group="kasmvnc-cert"
|
2021-02-12 06:11:27 +01:00
|
|
|
|
|
|
|
create_kasmvnc_group() {
|
|
|
|
if ! getent group "$kasmvnc_group" >/dev/null; then
|
|
|
|
groupadd --system "$kasmvnc_group"
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
make_self_signed_certificate() {
|
|
|
|
local cert_file=/etc/pki/tls/private/kasmvnc.pem
|
|
|
|
[ -f "$cert_file" ] && return 0
|
|
|
|
|
|
|
|
openssl req -x509 -nodes -days 3650 -newkey rsa:2048 \
|
|
|
|
-keyout "$cert_file" \
|
|
|
|
-out "$cert_file" -subj \
|
|
|
|
"/C=US/ST=VA/L=None/O=None/OU=DoFu/CN=kasm/emailAddress=none@none.none"
|
|
|
|
chgrp "$kasmvnc_group" "$cert_file"
|
|
|
|
chmod 640 "$cert_file"
|
|
|
|
}
|
|
|
|
|
|
|
|
create_kasmvnc_group
|
|
|
|
make_self_signed_certificate
|
2021-02-05 11:49:47 +01:00
|
|
|
|
|
|
|
%postun
|
2021-02-12 06:11:27 +01:00
|
|
|
rm -f /etc/pki/tls/private/kasmvnc.pem
|