-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPKGBUILD
70 lines (59 loc) · 2.69 KB
/
PKGBUILD
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# Maintainer: Cebtenzzre <cebtenzzre (at) gmail (dot) com>
pkgname=thinlinc-server
pkgver=4.17.0
pkgrel=1
pkgdesc="Cendio ThinLinc Linux remote desktop server"
arch=('i686' 'x86_64')
url="http://www.cendio.com/"
license=('custom')
install=${pkgname}.install
depends=('dbus' 'ghostscript' 'glibc' 'hicolor-icon-theme' 'iproute2' 'krb5'
'libasyncns' 'libcap' 'libsndfile' 'libx11' 'libxcb' 'libxcrypt' 'nspr'
'nss' 'pam' 'procps-ng' 'python' 'python-gobject' 'rtkit'
'systemd' 'xdg-utils' 'xorg-xauth' 'zlib' 'python-gssapi'
'python-six' 'gtk3' 'python-cairo' 'pango' 'python-numpy' 'xorg-xhost')
optdepends=('apache: Web integration'
'mod_nss: Web integration'
'nfs-utils: Local drive redirection'
'python-ldap: LDAP integration tools')
backup=(opt/thinlinc/etc/conf.d/{nearest.hconf,sessionstart.hconf,tl-desktop-customizer.hconf,\
tl-mount-localdrives.hconf,vsmagent.hconf,vsmserver.hconf,profiles.hconf,shadowing.hconf,\
tl-ldap-certalias.hconf,tlwebadm.hconf,vsm.hconf,webaccess.hconf})
_archive_name=tl-${pkgver}-server
source=("${_archive_name}.zip::https://www.cendio.com/downloads/server/tl-${pkgver}-server.zip"
'LICENSE'
'tlwebaccess.service'
'tlwebadm.service'
'vsmagent.service'
'vsmserver.service')
sha256sums=('a178d59dcc5d90a4360b70a151d4933372b110304b5d7d1f0610e325ec29d82c'
'179583f1e2f61a9a75a99bbe8bb988e35a0216fc2ddcbd4c85ad8bdc70c3149e'
'8e70ef23f9716dcb100eba660932e7f5d05351d63074fb262cf925812dbdbb63'
'5a92c5beac6c64487debd92a4d94b56074b9f9b0cd38d154a14a320105f3bccd'
'292e6ef1295f329ab95d1d16c5bf7286f5c5c288d6637d0d736b9a144e85449d'
'a1fe20c565e7e468407d73a0f59c8c352318a7e4c8e85fe068d89cbb0afd5e71')
_extract_dir="extract"
build()
{
cd "${srcdir}/${_archive_name}/packages"
mkdir -p "${_extract_dir}"
for rpm in *${CARCH}*rpm; do
bsdtar -C "${_extract_dir}" -xf "${rpm}"
done
cd "${_extract_dir}"
rm -Rf "etc/init.d"
}
package()
{
cd "${srcdir}/${_archive_name}/packages/${_extract_dir}"
cp -aR etc/ opt/ usr/ var/ "$pkgdir"
install -dm755 "$pkgdir"/usr/lib
cp -aR usr/lib64/* "$pkgdir"/usr/lib
rm -rf "$pkgdir"/usr/lib64
cd "$srcdir"
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
#install -Dm644 tlwebaccess.service "$pkgdir"/usr/lib/systemd/system/tlwebaccess.service
#install -Dm644 tlwebadm.service "$pkgdir"/usr/lib/systemd/system/tlwebadm.service
#install -Dm644 vsmagent.service "$pkgdir"/usr/lib/systemd/system/vsmagent.service
#install -Dm644 vsmserver.service "$pkgdir"/usr/lib/systemd/system/vsmserver.service
}