blob: b1afc7534cfc609b228448d833b14e26237f9cfb (
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
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=open-vm-tools
pkgver=9.2.3_p1031360
_pkgsubver=${pkgver#*_p}
_ver=${pkgver/_p/-}
pkgrel=0
pkgdesc="The Open Virtual Machine Tools are the open source implementation of VMware Tools."
url="http://open-vm-tools.sourceforge.net/"
arch="all"
license="LGPL"
subpackages="$pkgname-gtk $pkgname-dev"
install="$pkgname.pre-install"
makedepends="procps-dev libdnet-dev icu-dev glib-dev pkgconfig bash icu-dev automake
autoconf gtk+-dev libxext-dev libxinerama-dev libxtst-dev gtkmm-dev
libnotify-dev libxrandr-dev libxcomposite-dev libice-dev libsm-dev fuse-dev libtool m4"
source="http://downloads.sourceforge.net/project/open-vm-tools/open-vm-tools/stable-${pkgver%.*}.x/open-vm-tools-$_ver.tar.gz
0001-lib-misc-Recognize-Alpine-Linux.patch
libm.patch
werror.patch
codeset-uclibc.patch
iconv-uclibc.patch
uclibc-stubs.patch
open-vm-tools.initd
"
[ "$ALPINE_LIBC" != "eglibc" ] && makedepends="$makedepends rpcgen"
_builddir="$srcdir"/$pkgname-$_ver
prepare() {
cd "$_builddir"
for patch in $source; do
case $patch in
# we concider patches with uclibc in its name
# only usefull on uclibc install
*uclibc*.patch)
if [ "$ALPINE_LIBC" != "eglibc" ]; then
msg "Applying patch $patch"
patch -p1 -i "$srcdir"/$patch || return 1
fi
;;
# we do the same for eglibc
*eglibc*.patch)
if [ "$ALPINE_LIBC" = "eglibc" ]; then
msg "Applying patch $patch"
patch -p1 -i "$srcdir"/$patch || return 1
fi
;;
*.patch)
msg "Applying patch $patch"
patch -p1 -i "$srcdir"/$patch || return 1
;;
esac
done
sed -i -e 's/__unused1/st_atim.tv_nsec/g' \
-e 's/__unused2/st_mtim.tv_nsec/g' \
-e 's/__unused3/st_ctim.tv_nsec/g' \
lib/file/filePosix.c lib/hgfsServer/hgfsServerLinux.c \
|| return 1
# workaround automake-1.10 issue
# http://ramblingfoo.blogspot.com/2007/07/required-file-configrpath-not-found.html
touch config/config.rpath
aclocal -I m4 && autoconf && automake
}
build() {
export CUSTOM_PROCPS_NAME="procps"
export CFLAGS="$CLFAGS -Wno-unused-but-set-variable"
cd "$_builddir"
./configure --prefix=/usr \
--sysconfdir=/etc \
--disable-unity \
--with-dnet \
--with-icu \
--with-procps \
--with-x \
--without-kernel-modules \
--without-pam \
|| return 1
make || return 1
}
package() {
cd "$_builddir"
make install DESTDIR=$pkgdir || return 1
install -Dm755 "$srcdir"/open-vm-tools.initd \
"$pkgdir"/etc/init.d/open-vm-tools
find "$pkgdir" -name '*.la' -delete
}
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="71a1d8065b632692af2cdcc9d82f305e open-vm-tools-9.2.3-1031360.tar.gz
87b131c2208b32d9c0bb6fbacd7f75a9 0001-lib-misc-Recognize-Alpine-Linux.patch
7d02fc25aba5c248f3d98dac238f175b libm.patch
e462f567cd5588d738af4cfa0dd13b3c werror.patch
82840b6bed002284b9bd2358707ee826 codeset-uclibc.patch
89c7449323ddac4666b73a8467baf95a iconv-uclibc.patch
30a4161baf6274ac9cceb879460cd894 uclibc-stubs.patch
905ef6a3bac87c9ba2e5d3897ca230e7 open-vm-tools.initd"
sha256sums="1a004ea1675101fd44cddda299e2e9ac254388769b69f41b7ff5d1797549c8f1 open-vm-tools-9.2.3-1031360.tar.gz
7c12e96fed05834857ff6971d297ac8560eef2942817a37303909b76dff54da0 0001-lib-misc-Recognize-Alpine-Linux.patch
f73995a63fe82b5a6944c285293dfeafb0f7d2d44998a947591207187cc0be4f libm.patch
b3d39192908c43a26c8aff92d99510b8195c2c7a4e990ff3e74b73ef5bccd73c werror.patch
adee5e9f929b3a6dbc41c6979d0b6c6569ddc2cc0f6712fdbf1f3fdbaf917723 codeset-uclibc.patch
70973462f8e10c96d807ae519fc68d819ecc4772f3adc2c3a8a323c19d0e1c2a iconv-uclibc.patch
ee79dee76f3439fe060b94e41c43e5c9e37806cfc1487f964ec4e719330af68f uclibc-stubs.patch
7a2ef75375f524042286202b6e03174e60226d4318b4d9145d1fe71517c1af76 open-vm-tools.initd"
sha512sums="bad1e94e2006e2b1b20fcb4bb1ec6969fd4ed62af477ffe5dfc2e38e81677e62140bd3c5da2acd31d3adf74fdead067831de86af52b8089c57d527c8f96aa3f8 open-vm-tools-9.2.3-1031360.tar.gz
c9f99658dcbd659ed7288dae36d47216aeea8a496f7fab52711bffb382fab8035c9414045a1dffae79eb38ff03fcb116e1965dae00532f92a09173695f1756aa 0001-lib-misc-Recognize-Alpine-Linux.patch
6a93b48f37838ec28a5c1059845235f12df2ea44d256223b8ca4c102297b3ce7e3c6450b860b057df7a9b6b044bfeb23d5f65d5c18adeef03fa838742b556eac libm.patch
2128c4056e110a068a98cbc9c3ef934aa99d2a74ccae6b96aae6776d62595ac1cb544bbc299002bf545827dee0c75a02a227ea5d43838eeae720e70ee7959824 werror.patch
8b7abbfcf87cc63f9f5acb5479be871365e3dee8ad7b9b3eb64966767c37bcf62f735e9cc1b1a46f39f8901ba658e9fd6090882a9110403f07348b6788247ade codeset-uclibc.patch
e12c6c7f56b74933ecd6901587be4068f52d3014e8c4af13c919185d13212659f7e01271acf36e84095be163c1917bf35d257ff2c6005a4fc74e4f05e66aba20 iconv-uclibc.patch
cb8e08576a7c195df9f2a4ebf63a1f5b7047f439e3cc56bc21d03a77298a4f7d11b7bec02d17f5d8d7abf4a2932faad462d7464643169a119d4ba3af891696b0 uclibc-stubs.patch
bd0210b74154030bafdf9911d2303e49e1c68afa681e4276577074ac3060b52e8e5f14055b1b088398ce1ef0aee3d63f8d358d9e045a15099391f3713edb922a open-vm-tools.initd"
|