blob: 4ed051ef49bbf61da909dae92a6ef442617bc0d3 (
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
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=open-vm-tools
pkgver=10.0.7
_pkgsubver=${pkgver#*_p}
_ver=${pkgver/_p/-}
pkgrel=3
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-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-lib-misc-Recognize-Alpine-Linux.patch
0002-open-vm-tools-Add-disable-werror-configure-option.patch
0003-Do-not-assume-that-linux-and-gnu-libc-are-the-same-t.patch
0004-Use-configure-test-for-struct-timespec.patch
0005-Fix-definition-of-ALLPERMS-and-ACCESSPERMS.patch
0006-Use-configure-to-test-for-feature-instead-of-platfor.patch
0007-Fix-vmblock-linux-detection.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
open-vm-tools.initd
"
_builddir="$srcdir"/open-vm-tools-stable-$_ver
#/open-vm-tools
prepare() {
cd "$_builddir"
for patch in $source; do
case $patch in
*.patch)
msg "Applying patch $patch"
patch -p1 -i "$srcdir"/$patch || return 1
;;
esac
done
cd open-vm-tools
# workaround automake-1.10 issue
# http://ramblingfoo.blogspot.com/2007/07/required-file-configrpath-not-
mkdir -p config
touch config/config.rpath
libtoolize --force --install && aclocal -I m4 -I config && autoconf \
&& automake --add-missing
}
build() {
export CUSTOM_PROCPS_NAME="procps"
export CFLAGS="$CFLAGS -Wno-unused-but-set-variable -fpermissive -D_GNU_SOURCE"
export CXXFLAGS="$CXXFLAGS -std=gnu++11 -fpermissive"
mkdir "$_builddir"/build
cd "$_builddir"/build
../open-vm-tools/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"/build
make install DESTDIR=$pkgdir || return 1
install -Dm755 "$srcdir"/open-vm-tools.initd \
"$pkgdir"/etc/init.d/open-vm-tools
}
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="f865c9cfc9732360f6e1b08cdbd16483 open-vm-tools-10.0.7.tar.gz
29600cc32974dc8b936f0c790eccc833 0001-lib-misc-Recognize-Alpine-Linux.patch
f99e39b159d385c0af63c87d98085da3 0002-open-vm-tools-Add-disable-werror-configure-option.patch
aeb0bdb6c4568865436863a76d1c40e3 0003-Do-not-assume-that-linux-and-gnu-libc-are-the-same-t.patch
b102e760b68521f95068956e2324207c 0004-Use-configure-test-for-struct-timespec.patch
5137012586e2cc2f55df95ac743f9c76 0005-Fix-definition-of-ALLPERMS-and-ACCESSPERMS.patch
53c1dd1cb051d9d9044d31bf5b53daf2 0006-Use-configure-to-test-for-feature-instead-of-platfor.patch
5eead16eb2591568654ff7cf1569773d 0007-Fix-vmblock-linux-detection.patch
863372a41921f22d4b74a728a0821111 0008-Use-configure-test-for-sys-stat.h-include.patch
3a92d0642f43ef6343a3525ed2b521d1 0009-Rename-poll.h-to-vm_poll.h.patch
87bfbfc96d0f7ff25f224af23eafc666 0010-Add-support-for-building-with-system-libtirpc.patch
657f988c96f1b8edf082fbf70e5172e8 0011-gnu-ucontext.patch
d666cfe7f779f9cb6b5c2260f6c50b54 open-vm-tools.initd"
sha256sums="87d76dc3affd39dccfae80c7210ac89e8f14cb493a651709780f67b1b5a92ec8 open-vm-tools-10.0.7.tar.gz
d33a60fd3ec63d677d13997ba811e901fa4096a5b883ffae6669dd3ce91ccf5e 0001-lib-misc-Recognize-Alpine-Linux.patch
68ecb2557ed2c57dff71420d32c1ac8ce4689b3dec6a06d5c75d9b352f309365 0002-open-vm-tools-Add-disable-werror-configure-option.patch
3b09818b552342281660b812b7fa924db414aa2d8df05081e0e00c41c29b41f5 0003-Do-not-assume-that-linux-and-gnu-libc-are-the-same-t.patch
d4b2edf7be206dde75ca778599918bd6e01f148b12fe5f8a0a90b49dfd98eaf5 0004-Use-configure-test-for-struct-timespec.patch
862e0855266b6aa76a61683b20b098c4b0651a3b01f3c24a2c7b3e18f0f8e039 0005-Fix-definition-of-ALLPERMS-and-ACCESSPERMS.patch
7ce9a1d294efa2ea2c93283ce1cf5ceb025c4ef74c9639ad7af0c4ac0b100d22 0006-Use-configure-to-test-for-feature-instead-of-platfor.patch
63c0b6cfaa37894f9a8f83904eff58993e1b8bbc5ea0f41d286ceebee588634e 0007-Fix-vmblock-linux-detection.patch
40d8ccdb5ce1f5721942c7f1ace1573277e2ee96b9fbb82c6f197edba7f644cb 0008-Use-configure-test-for-sys-stat.h-include.patch
f080c651e75e9315c5b698646a7faf46a6af835189f49f045e3f1a930d5f621c 0009-Rename-poll.h-to-vm_poll.h.patch
58d062fb1fc148700dac17b2681cb4967ada5a1caac43fbb249f13258d93be37 0010-Add-support-for-building-with-system-libtirpc.patch
6359cf80de58e9d3988e3ebcbc8140e9074dac6cba9d73b6d3bfc1ce871ac5a5 0011-gnu-ucontext.patch
5b824642ecf298136d39bc40ed25b4d62e1a83ecbdc6b3fe428c520c95f65479 open-vm-tools.initd"
sha512sums="d91fcc9a30ba6fbe34ea8440106ef3d9c0b9bf04e5c40a787179735f534f93a1aaff43fb3b91fe33377b00b84f07b2dc91d7129cf0bbf82774b04a19a531223f open-vm-tools-10.0.7.tar.gz
87ab7df83f512cf5f1ff6bf68546bd3d72a82e7f60f35ce795db6d6105b1178c85dada2beaddd32f870b81e6af4bf907b3a6fca241b33fdee53864bbeb5863ce 0001-lib-misc-Recognize-Alpine-Linux.patch
918592fd854c8c64ebf351bfd043fc1ea1f8659aadc637c1d0b4344e5e2e945b2c0e685dcc314eff7ad69b59643ad1ec9da8e7e2e5be78fadf70fe4e00cb2f73 0002-open-vm-tools-Add-disable-werror-configure-option.patch
aab2a84214726f2019802e5a2a8df257cec62191ea2077c8a5a449cba9f1b117b36b3af2cc4151d8926551482ef83a8e0496a6f66b3f8636774a2ccbdf0952a6 0003-Do-not-assume-that-linux-and-gnu-libc-are-the-same-t.patch
e3c6ba7b4871f515fa4b79537e9219e406bdd8c13740d330417d402b7c754f1b43c5e2ba7757c45d429e868d7b3a0875802ff632b2115caaaf61b655330bf7e7 0004-Use-configure-test-for-struct-timespec.patch
84f5067df06b025458729f0b2af31a1a54bf64a8a22ab41a45eb6ff2d52daad0ea88ecd4a21788c1dcd845191360b927c6968a23608e0e997a051a3de1f3b4ab 0005-Fix-definition-of-ALLPERMS-and-ACCESSPERMS.patch
def3873694122b7ef789ae130bd334f4ba82429d570e49073c4f1884f246d9aa560a8fd8004dfd95cb67c4602e423d8de0990a991a46366381c25f5c717baf2a 0006-Use-configure-to-test-for-feature-instead-of-platfor.patch
c68eefd71202cf76f97f6148675b1241a7ad812343b133e1ceb1047c5c2d5d6a3a4997663a6a7c5b94b28b75a3f8d9d5d51ca26e8c8ac859a4c241f62aceedfd 0007-Fix-vmblock-linux-detection.patch
db9251502ca05cc3ddb111ee192300897615c30b1e17a9a1f62266bba687b7216d9a4d824b9ff61811c3750a4d733dd8fa9a548f1c455893eccbb10fdaec232f 0008-Use-configure-test-for-sys-stat.h-include.patch
b873864da2073e57cc7e1dad6b48200ad0b931d9448a60273e55bb2d44cb34c2eb6b1a2346c1708791e0add81a70d487966f2270a2bdf163cdfa37d38a2c0926 0009-Rename-poll.h-to-vm_poll.h.patch
d2acbc98b79e0a41545443c1195807034b37083a6e7160d74af1173acd6a2d6e14a8e5f909bd17db80c0c93e1d8f34d7278902bd272b672dae412e7cb504517e 0010-Add-support-for-building-with-system-libtirpc.patch
09bb960aff0bcc94df9782b1c5b81db34f8f720421dfed36d80158e877813214871a525ef9c0df78f6072dcd2d2b97734496e9c2a4c4e783d81e3d2f457b3920 0011-gnu-ucontext.patch
c675323a823b3069a281d1b2c1dedccd9d9959e36cffb4763ab72fcf7e828fb1a048a20e005c15a46697a98a61e073bcd778db427a6f77c7b24ac20133f95695 open-vm-tools.initd"
|