aboutsummaryrefslogtreecommitdiffstats
path: root/main/open-vm-tools/APKBUILD
blob: b2c0ef950086ad2398905ab0ebaaf7a53e93fc6e (plain)
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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=open-vm-tools
pkgver=10.1.0
_pkgsubver=${pkgver#*_p}
_ver=${pkgver/_p/-}
pkgrel=2
pkgdesc="The Open Virtual Machine Tools are the open source implementation of VMware Tools."
url="https://github.com/vmware/open-vm-tools/"

arch="x86 x86_64"
license="LGPL"
subpackages="$pkgname-dbg $pkgname-gtk $pkgname-dev"
install="$pkgname.pre-install"
makedepends="procps-dev libdnet-dev icu-dev glib-dev bash icu-dev
	gtk+-dev libxext-dev libxinerama-dev libxtst-dev gtkmm-dev fuse-dev
	libnotify-dev libxrandr-dev libxcomposite-dev libice-dev libsm-dev
	libtirpc-dev linux-headers libmspack-dev libressl-dev rpcgen
	automake autoconf libtool m4
	"
source="$pkgname-$pkgver.tar.gz::https://github.com/vmware/open-vm-tools/archive/stable-$_ver.tar.gz
	0001-remove-autotools-generated-files.patch
	0002-lib-misc-Recognize-Alpine-Linux.patch
	0003-open-vm-tools-Add-disable-werror-configure-option.patch
	0004-Do-not-assume-that-linux-and-gnu-libc-are-the-same-t.patch
	0005-Use-configure-test-for-struct-timespec.patch
	0006-Fix-definition-of-ALLPERMS-and-ACCESSPERMS.patch
	0007-Use-configure-to-test-for-feature-instead-of-platfor.patch
	0008-Use-configure-test-for-sys-stat.h-include.patch
	0009-Rename-poll.h-to-vm_poll.h.patch
	0010-Add-support-for-building-with-system-libtirpc.patch
	0011-gnu-ucontext.patch
	0012-use-posix-strerror_r-unless-gnu.patch
	0013-use-off64_t-instead-of-loff_t.patch
	0014-remove-references-to-missing-common-agent-etc-config.patch

	open-vm-tools.initd
	"

builddir="$srcdir"/open-vm-tools-stable-$_ver

build() {
	export CUSTOM_PROCPS_NAME="procps"
	export CFLAGS="$CFLAGS -Wno-unused-but-set-variable -D_GNU_SOURCE"
	export CXXFLAGS="$CXXFLAGS -std=gnu++11 -fpermissive"
	cd "$builddir"/open-vm-tools
	autoreconf -vif || return 1
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--without-dnet \
		--without-xerces \
		--with-icu \
		--with-procps \
		--with-x \
		--without-kernel-modules \
		--without-pam \
		--disable-werror \
		|| return 1
	make || return 1
}

package() {
	cd "$builddir"/open-vm-tools
	make install DESTDIR=$pkgdir || return 1
	install -Dm755 "$srcdir"/open-vm-tools.initd \
		"$pkgdir"/etc/init.d/open-vm-tools

	mkdir -p "$pkgdir"/etc/modules-load.d/
	cat >"$pkgdir"/etc/modules-load.d/open-vm-tools<<EOF
vmblock
vmci
vmhgfs
vmsync
vmxnet
vsock
vmw_balloon
EOF
}

gtk() {
	pkgdesc="Xorg apps and plugins for open-vm-tools"
	mkdir -p "$subpkgdir"/usr/bin \
		"$subpkgdir"/usr/lib/open-vm-tools/plugins \
		"$subpkgdir"/etc/
	mv "$pkgdir"/usr/bin/vmware-user-suid-wrapper \
		"$subpkgdir"/usr/bin/
	mv "$pkgdir"/etc/xdg "$subpkgdir"/etc/
	mv "$pkgdir"/usr/lib/open-vm-tools/plugins/vmusr \
		"$subpkgdir"/usr/lib/open-vm-tools/plugins/
}

md5sums="46f5a319275f63658f1a44b6c8755f6b  open-vm-tools-10.1.0.tar.gz
509669f313820e1de957786a812c1323  0001-remove-autotools-generated-files.patch
c731466639f803e836fdfd65012ee133  0002-lib-misc-Recognize-Alpine-Linux.patch
5465735479dafd1b794a5c1f3b76569c  0003-open-vm-tools-Add-disable-werror-configure-option.patch
b9dffbf3f6e286329cbda37ed5fc9668  0004-Do-not-assume-that-linux-and-gnu-libc-are-the-same-t.patch
86f2351fa2d58572574424451faaeb1b  0005-Use-configure-test-for-struct-timespec.patch
a491d60823bb6d09f04d537f8611c59e  0006-Fix-definition-of-ALLPERMS-and-ACCESSPERMS.patch
bcf9081bb6274f1ccf9678758a363072  0007-Use-configure-to-test-for-feature-instead-of-platfor.patch
2604d702a4b7512cc5746b641801bffd  0008-Use-configure-test-for-sys-stat.h-include.patch
98018d5ada49d4867f95b73419608c0a  0009-Rename-poll.h-to-vm_poll.h.patch
72ca616b5e32b174acc100e38faa0967  0010-Add-support-for-building-with-system-libtirpc.patch
e53951c2c92051e5c438a7ba0843aaae  0011-gnu-ucontext.patch
0ce71ad6c2d7a292abccb21cc0b3b679  0012-use-posix-strerror_r-unless-gnu.patch
d05d991069018fda5fd1b6d9cc7a51e5  0013-use-off64_t-instead-of-loff_t.patch
abb3bffc30a445cedb8b4855f6cc7ec7  0014-remove-references-to-missing-common-agent-etc-config.patch
d666cfe7f779f9cb6b5c2260f6c50b54  open-vm-tools.initd"
sha256sums="2b76d8461022774f2c077b032fbe870f86046f20724eb24824cf9b6ccc4b5355  open-vm-tools-10.1.0.tar.gz
d64a81213c1db39f92b7f7c381e28d111cd15099464d3856eea8bd7ab916373c  0001-remove-autotools-generated-files.patch
4e37095e09994d57c8d115c4376c777b6a4081702d1381f6f8bc476494e70862  0002-lib-misc-Recognize-Alpine-Linux.patch
a57d662e30b879b09a5f641810068aa9fb97d28f0e0bd91d1379971e300fe66b  0003-open-vm-tools-Add-disable-werror-configure-option.patch
d14bfbe6e914544ff879f1e0f4ed136c3a3ccc923021cbc21d1514fb8f96b2aa  0004-Do-not-assume-that-linux-and-gnu-libc-are-the-same-t.patch
31f5c64a22d80d26c009b4eb71be8daf2bf726fb2dfac983cf82df98b35fa954  0005-Use-configure-test-for-struct-timespec.patch
2fea0395e1dcfba9810fa05bdd0ed2635d0a57873942374154704ea6a865c879  0006-Fix-definition-of-ALLPERMS-and-ACCESSPERMS.patch
9dbee023febafa00ccba6a5df3c07653ccf2fa9c6a38d813c9b2135d06d04864  0007-Use-configure-to-test-for-feature-instead-of-platfor.patch
84e64377eab9822aab73c2daf902ca7c062750efa17c5441886321016705b315  0008-Use-configure-test-for-sys-stat.h-include.patch
78b807398d710c6dc7506457827e4b721055e798efe067aa5f4713fc21682d48  0009-Rename-poll.h-to-vm_poll.h.patch
b51c76287154ce42876951f25cf77846231ad520097c66c203a845828f1d77a1  0010-Add-support-for-building-with-system-libtirpc.patch
98f451d400a90d9fac389f0420a895d764296f1a15ac6e8c4b622afb491d91b6  0011-gnu-ucontext.patch
b19397bffce98d06b668ea1dd774f5a6a7f8f8e58ad9e23ad820b50f7824cef9  0012-use-posix-strerror_r-unless-gnu.patch
aa02fd095d8e82523b6ef00d446534a51a42ffb5f3729f3ab5c75ceb666e21b8  0013-use-off64_t-instead-of-loff_t.patch
3a37f1f064591949c60ed5127ea96c403db00e9457ddcbb6a8b31f5c7f6d9713  0014-remove-references-to-missing-common-agent-etc-config.patch
5b824642ecf298136d39bc40ed25b4d62e1a83ecbdc6b3fe428c520c95f65479  open-vm-tools.initd"
sha512sums="f497b828510ebc2a88788ad5292047f20513c844e889b3f652ecce382efd6d4672560be7387b55dcb7300cfdde5c8eda407836c9b75614c018e058bb169b374d  open-vm-tools-10.1.0.tar.gz
529d2c43f8a9ab011dd60da6bcbbc09f26c1aed350e1e712ac1a6e9d363010d842e0cc19e5bbcea08a130d33a3916519d8fa7326c3f6aba352820d1a0afff636  0001-remove-autotools-generated-files.patch
1c5766a040cc7ffcaba407960b502c0d3a67f5b3d6e090f789a547cce9c9dc45980a33220f9a619d731ddebbc8a442a4810f7a48269df0c5f24504de148ba352  0002-lib-misc-Recognize-Alpine-Linux.patch
c83f2fab23c792c9898ccba0cb1eee824f9f00b22ed66b0d565f7a7ef33ea5f6516672680aa7800544eb4c2fb40f6601aba83e72c1cd201d26ef8b0f7ee2f104  0003-open-vm-tools-Add-disable-werror-configure-option.patch
d5347aaba372415688c7d6addf107e15b2c8c57d4817b42c478481a6958b661a4cfa7b35191dbef0e181e52e0761046bcb73297a0982603f04a0da4af2b5591d  0004-Do-not-assume-that-linux-and-gnu-libc-are-the-same-t.patch
9031103755ab41ae98d03f11c8d50621b15ba9f6e1b41d6d9229379513cff3a01fdf13fd20aaa39f1a8883eefc574733f57f423369fe0143e11d176764fefc1b  0005-Use-configure-test-for-struct-timespec.patch
894b667737191c0e6cc5f78d85579089506c062fb831821dd2ef7be56e435bc17e0cd74082ef3b7aaaab59e601bd0c336caff456d97bc9b15caa61c73be2d55d  0006-Fix-definition-of-ALLPERMS-and-ACCESSPERMS.patch
856e797d94fe3c075f89797679df514b2cce99978e69d0d109763f9465eabaf6721f980fcf81af6913ecbea5b413108db3f87614a3e3c71dd04d0f20d2d91f47  0007-Use-configure-to-test-for-feature-instead-of-platfor.patch
57cb8b3e448bd39fa1cb75c82a4b607b9e27b1e15e87db710ab4f6d9da68dc8dddb2337e3608a9cae4ee0d2ec6c65e2d601750864ab73863cd84d32156aea9a2  0008-Use-configure-test-for-sys-stat.h-include.patch
d2929a7da8b2a6ceee97d573483ed7b7f7e2f2ca9ff3be81882ed67a6504b9f9b26769dac28be3a96e3a960416786f72c7301b5add159553489f7d2ffec6d07f  0009-Rename-poll.h-to-vm_poll.h.patch
8340b6043b9f69cf8db11711033f5dc45b71b8e16bacf96c5288ab33af25f39cc17a838efeca9302e289da8042d59fb10e4a4855b3725c3d28a678a383f1e62f  0010-Add-support-for-building-with-system-libtirpc.patch
d0551458fa6a9d9fd3e576f856fb0269e1a40930ab625bd5243a256a90ca89b3a90e7bd97678ca831fbeabd766c993f9a648089afe830ac6299587e7d710d217  0011-gnu-ucontext.patch
4d55f8bc31afe70831992b70e600a47078026d0f00215ef8284a97859d05167d33e23c2512bc17827b396cab070e2a200ae667d4dc918fef98c059559575e822  0012-use-posix-strerror_r-unless-gnu.patch
af109a9aab9da5f312e1f06a4db318f577a5bbb22a8974892a9a1f6941865fea663694362dd8ffb0d8cbe776f3297458bec1004131b3e92b8da003506087df39  0013-use-off64_t-instead-of-loff_t.patch
d30c74e2de1ae729fb0eec9f510c89b9c5180478b3ace625dd7a0b3fa3fd269ddbdcf802c6c014e39da794b36891beed2f5b85e7c6a0179ec0723ee6be390782  0014-remove-references-to-missing-common-agent-etc-config.patch
c675323a823b3069a281d1b2c1dedccd9d9959e36cffb4763ab72fcf7e828fb1a048a20e005c15a46697a98a61e073bcd778db427a6f77c7b24ac20133f95695  open-vm-tools.initd"