29 lines
1.2 KiB
Bash
29 lines
1.2 KiB
Bash
# Template file for 'x2goserver'
|
|
pkgname=x2goserver
|
|
version=4.1.0.3
|
|
revision=1
|
|
build_style=gnu-makefile
|
|
hostmakedepends="pkg-config perl"
|
|
makedepends="libssh2-devel"
|
|
depends="perl perl-Config-Simple perl-DBI perl-Capture-Tiny perl-DBD-SQLite bash iproute2 makepasswd openssh lsof xauth perl-File-BaseDir nx-libs perl-File-Which"
|
|
short_desc="Open source graphical Remote Desktop based on NX technology"
|
|
maintainer="eoli3n <jkirsz@gmail.com>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="http://www.x2go.org"
|
|
distfiles="http://code.x2go.org/releases/source/${pkgname}/${pkgname}-${version}.tar.gz"
|
|
checksum=6776aaa354f5a44e349f0b3c176d4988c88a618c2edf46c98a37ae89c069dcd0
|
|
system_groups="x2gouser"
|
|
system_accounts="x2gouser"
|
|
x2gouser_homedir="/var/lib/x2go"
|
|
x2gouser_shell="/bin/false"
|
|
|
|
post_extract() {
|
|
# Replace hard-coded /usr/sbin
|
|
for _file in x2goserver-printing/Makefile x2goserver/Makefile x2goserver-xsession/Makefile libx2go-server-db-perl/Makefile x2goserver-common/Makefile; do
|
|
vsed -e 's,/sbin,/bin,g' -i "$_file"
|
|
done
|
|
for _file in bin/x2golistdesktops bin/x2goresume-session bin/x2gostartagent sbin/x2gocleansessions; do
|
|
vsed -e 's,/usr/sbin,/usr/bin,g' -i x2goserver/"$_file"
|
|
done
|
|
}
|