summaryrefslogtreecommitdiff
path: root/user/open-vm-tools/APKBUILD
blob: 4bdc9c0adf91244287e2ecc022110ee9dff2dd5c (plain) (blame)
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=open-vm-tools
pkgver=12.4.0
_buildver=23259341
pkgrel=2
pkgdesc="Guest additions for VMware hypervisors"
url=" "
arch="x86 pmmx i528 x86_64 aarch64"
options="suid"
license="GPL-2.0-only"
depends=""
makedepends="curl-dev fuse3-dev glib-dev gtk+3.0-dev gtkmm+3.0-dev icu-dev
	libdrm-dev libice-dev libsigc++-dev libsm-dev libtirpc-dev
	libxcomposite-dev libxext-dev libxi-dev libxinerama-dev libxml2-dev
	libxrandr-dev libxrender-dev libxtst-dev linux-pam-dev openssl-dev
	rpcsvc-proto eudev-dev xmlsec-dev"
subpackages="$pkgname-dev $pkgname-desktop $pkgname-openrc"
source="https://github.com/vmware/open-vm-tools/releases/download/stable-$pkgver/open-vm-tools-$pkgver-$_buildver.tar.gz
	disable-werror.patch
	dndcp-portability.patch
	time64.patch
	hgfs-portability.patch
	loff_t.patch
	poll-header.patch
	preadv.patch
	resolver.patch
	strerror_r.patch
	vgauth-portability.patch
	vix.patch
	vmtoolsd.pamd

	open-vm-tools.confd
	open-vm-tools.initd
	vgauthd.initd
	"
builddir="$srcdir/$pkgname-$pkgver-$_buildver"

build() {
	LDFLAGS="$LDFLAGS `icu-config --ldflags`" ./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--disable-containerinfo \
		--disable-deploypkg \
		--disable-glibc-check \
		--disable-static \
		--disable-tests \
		--enable-resolutionkms \
		--with-gtk3 \
		--with-gtkmm3 \
		--with-icu \
		--with-pam \
		--with-udev-rules-dir=/lib/udev/rules.d \
		--with-x \
		--without-kernel-modules
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
	# Replace packaged PAM configuration with ours.
	install -m 644 "$srcdir"/vmtoolsd.pamd "$pkgdir"/etc/pam.d/vmtoolsd
	ln -s vmhgfs-fuse "$pkgdir"/usr/bin/mount.vmhgfs-fuse

	install -D -m644 "$srcdir"/open-vm-tools.confd "$pkgdir"/etc/conf.d/open-vm-tools
	install -D -m755 "$srcdir"/open-vm-tools.initd "$pkgdir"/etc/init.d/open-vm-tools
	install -D -m755 "$srcdir"/vgauthd.initd "$pkgdir"/etc/init.d/vgauthd
}

desktop() {
	pkgdesc="$pkgdesc (X11 desktop additions)"
	mkdir -p "$subpkgdir"/etc
	mv "$pkgdir"/etc/xdg "$subpkgdir"/etc/

	mkdir -p "$subpkgdir"/usr/bin
	for tool in vmware-user vmwgfxctrl vmware-user-suid-wrapper; do
		mv "$pkgdir"/usr/bin/$tool "$subpkgdir"/usr/bin/$tool
	done
	chmod 4755 "$subpkgdir"/usr/bin/vmware-user-suid-wrapper

	mkdir -p "$subpkgdir"/usr/lib/$pkgname/plugins/vmsvc
	mv "$pkgdir"/usr/lib/$pkgname/plugins/vmusr \
		"$subpkgdir"/usr/lib/$pkgname/plugins/
	mv "$pkgdir"/usr/lib/$pkgname/plugins/vmsvc/libresolutionKMS.so \
		"$subpkgdir"/usr/lib/$pkgname/plugins/vmsvc/
}

sha512sums="11ea43c64ec534922145f83e2b7ef9254437f80656ad03b596340a78c3698adcc7d84adade9c5d8e1c83b5ebc3bd086601b1d104e0f070274dc2b6bc1f64fb17  open-vm-tools-12.4.0-23259341.tar.gz
1966f6f31ed531829a40cd3e5c8352ea25cac0535a24f62aecf37e2018adbeb33cd214a43d4acc57766c8795d1849e1241c8777bbf96ad447f0c7baa41a555ed  disable-werror.patch
987a65c77a462520430d157212fbd23381af301a0e5b02410750f4ac844bad903a92c62f743ea2880b9bca939696edd6c8f92b3f4fc01daafd46b5455f7b9666  dndcp-portability.patch
6167f412598bd70c7a66831a3fb870514da17461494210c2466af35748e3452702573203ca503906f30864a51436a3e296ee5fc25a7283f51ba06a542ed7f177  time64.patch
656585c7b087dd1b7539bcd362bb80faa48b7354819636061c2c92569bcd537804daf15b76f6bad0b7229af9d24462de4e630256ac7059941bf8cd115ae9a39c  hgfs-portability.patch
6edb41bb9658271c6a214230c88526c4fccc4c6b3299bb67691f6f917e1e695a20dd09692c9a64d36d46a35cbecb975dcaf7062c0d7fccd2d9011cc17130072d  loff_t.patch
2b623a9901851ba9b1652c117ee2a2ebb8e4cea7a01e2ffe6553cf6d929a86921f4e206278fd19fbab4effc0cc9051848e5254ca35ecfb3a006783e915cd5c5e  poll-header.patch
52ab4bc5f73cde75b849a87dcc0981d95043a6b9bfdc1b18a10129998b4187ffd5098843f8593ed1a3569e91a2abeba0d5bdd1427727542a47dbbc8a84ab294f  preadv.patch
b1f059432d0c4a233356b082e975ea0bf68059231c40cf3e32aedcdc273df234d6cdef9ac1c52baf3c1ee05d9cd02f414f6ce3bf049bdcb0a1162f67f522f902  resolver.patch
08abd276568d019c64e96ce49704980f214cab06eab563af3c7afb44b7e9893da3953cb34c963c82c6913092fcd766701a815db0b4c323aa1ba02ddb58768cd6  strerror_r.patch
b87ebf98d97815d48d998cf84490ae74bfee3619894f12121c8cd5706934783bb29668e32f494f6527e06779016da6f9f3bd0be7d3c342fc43c49d3d6637fafd  vgauth-portability.patch
c37965bdbae1b1498d843cc752dc189832e79325eb7bd0dfd8acde81b1c2851c22d7717a3e65bce8209731c404a6e8eeff55a2e9a0f4d548e1f3ea7a7bfad27f  vix.patch
9974a6a2e382600f8019de8923268d82ae22ebad0c5280e38d529570e7bdfdcfad86be838fcfd449a457e2d6cbf1dd9091ffa1e4da3c0acd8c34e9690a338f23  vmtoolsd.pamd
fca30a3be4dd3247e16115fe32b4d27ede8751f96b5a33b9f489b0ce57823c605b6249ff722d6f4ed82a98979f36d28821603b4a5a1d967d3048d23d983a19be  open-vm-tools.confd
90acbf03eac472e7d8929c9293bf6cc77ad8f3583d74a51679866d4483d35f8c2628d3d544fc608824db39ee018caf4a2d318f73c557c1fa2ca7683c44e5241e  open-vm-tools.initd
87ca487a2013b03c2d1b461621d98acd0a5f3eb3479ef7fa08f71ffcb7ab9947496ca08b7466bedc42c4d558ad31e7c81fcd40780a680161d8efc345fd857904  vgauthd.initd"