blob: 0ea937f3cbd23c67e30e96f5d7311be4e5031a9a (
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
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
_flavor=grsec
_kpkg=linux-$_flavor
_realname=open-vm-tools
_kver=3.18.18
_kpkgrel=2
_realver=9.10.0_p2476743
_ver=${_realver/_p/-}
_mypkgrel=0
# source open-vm-tools version
if [ -f ../main/$_realname/APKBUILD ]; then
. ../main/$_realname/APKBUILD
[ "${_realver}" != "$pkgver" ] && pkgname=$_realname-$_flavor \
&& die "please set _realver to $pkgver"
fi
# source the kernel version
if [ -f ../main/linux-${_flavor}/APKBUILD ]; then
. ../main/linux-${_flavor}/APKBUILD
[ "$_kver" != "$pkgver" ] && die "please set _kver to $pkgver"
[ "$_kpkgrel" != "$pkgrel" ] && die "please set _kpkgrel to $pkgrel"
fi
_abi_release=${_kver}-${_kpkgrel}-${_flavor}
_kernelver="$_kver-r$_kpkgrel"
pkgname="$_realname-$_flavor"
pkgver=$_kver
pkgrel=$(($_kpkgrel + $_mypkgrel))
pkgdesc="The Open Virtual Machine Tools are the open source implementation of VMware Tools."
url="http://open-vm-tools.sourceforge.net/"
arch="x86 x86_64"
license="LGPL"
subpackages=""
depends="linux-${_flavor}=${_kernelver}"
depends_dev="bash glib-dev gettext-dev linux-${_flavor}-dev=${_kernelver}"
makedepends="$depends_dev autoconf automake libtool linux-headers"
source="http://downloads.sourceforge.net/project/open-vm-tools/open-vm-tools/stable-${_realver%_p*}/open-vm-tools-${_ver}.tar.gz
0001-Fix-vmxnet-module-on-kernels-3.16.patch
0002-Fix-d_alias-to-d_u.d_alias-for-kernel-3.18.patch
gcc5-x86.patch
vmware-modules.initd
"
install_if="linux-${_flavor}=${_kernelver} open-vm-tools"
_builddir="$srcdir/$_realname-$_ver"
prepare() {
cd "$_builddir"
update_config_sub || return 1
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
libtoolize && aclocal && autoconf && automake --add-missing
}
build() {
export GCC_SPECS=hardenednopie.specs
cd "$_builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
--disable-deploypkg \
--without-pam \
--without-x \
--without-dnet \
--without-icu \
--without-procps \
--without-ssl \
--with-kernel-release="${_abi_release}" \
|| return 1
cd "$_builddir"/modules
make -j1 modules MODULES="vmxnet vmhgfs" || return 1
}
package() {
cd "$_builddir"
install -D -m755 "$srcdir"/vmware-modules.initd \
"$pkgdir"/etc/init.d/vmware-modules-${_flavor} || return 1
mkdir -p $pkgdir/lib/modules/${_abi_release}/misc/
cd "$_builddir"/modules
for module in `find . -type f -name '*.ko'`; do
install -D -m644 $module "$pkgdir/lib/modules/${_abi_release}/misc/"
done
}
md5sums="d19439b499f0cbc7001e0cc65aa1a5a7 open-vm-tools-9.10.0-2476743.tar.gz
3254b99481cea970acd6d65863ce6b48 0001-Fix-vmxnet-module-on-kernels-3.16.patch
c0d137a271fc987024efbea698602681 0002-Fix-d_alias-to-d_u.d_alias-for-kernel-3.18.patch
77a5208f4f34bd329232bddf034add91 gcc5-x86.patch
468a05614187bef0664c238811e7fae9 vmware-modules.initd"
sha256sums="e146ad53d744d7793ee72c5271fc49a916613534c14827c227fdaef4b3579c96 open-vm-tools-9.10.0-2476743.tar.gz
85be67ed9827e685d55dd5cba25144d95296159ff1be73f491b343c395dd6a7d 0001-Fix-vmxnet-module-on-kernels-3.16.patch
d3dfe8f5af380afb9b32a1916a6b1e296ad3a55d1db7ac21fa7a3c35ce2d248a 0002-Fix-d_alias-to-d_u.d_alias-for-kernel-3.18.patch
6bde59df244d21410a90727974d844b258221757ef5d6b43577d1ebda95ea95f gcc5-x86.patch
67217fb71ffceb3eed2a55ae47fe1411f67a0bf4563b86741768dc6d77f82760 vmware-modules.initd"
sha512sums="8c8e4a559c0374e020c8261d4c8f6855efbe3f509745ee02ec03ab9ebce7e1327ec1e5e18f674cb464630ace9dc33b4262ffd119fc237c286ee44327e4590385 open-vm-tools-9.10.0-2476743.tar.gz
c445631b7faf8badfbf8e66518bfb70aec1049c1a0393ff038253e70190d7f8580cbcd3e7037c43664ee0ee48d26edd8f8eaca06383bbd7fa763a182050f9551 0001-Fix-vmxnet-module-on-kernels-3.16.patch
bb063ca0aac0a76633eec2878197ae977f48523da79afcd6e5b25a8d199fbc13247ea23a106ca5d44473881ad814c175084c28af7d344e83ed0e4b9321e4d6c3 0002-Fix-d_alias-to-d_u.d_alias-for-kernel-3.18.patch
b603fe8531518bed4750f0a274ac500c99d8998fb8ec30359a0263d148e710c55694114c4ac48aa1bf1ec888c9472bed7ae1665eb05f577cc449c30855b88014 gcc5-x86.patch
aa3524324274413ae016ba2e660bdab5c2bc95712c131cadd99fdb463ad30279b6b80e5b61eb002fedf348e56fb31586e2695d8be0c52e5c7fcb4a15f275985f vmware-modules.initd"
|