blob: 27bff01539e472e191a040bf97fb86debdacb36a (
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
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
_flavor=grsec
_kpkg=linux-$_flavor
_realname=open-vm-tools
_kver=4.4.8
_kpkgrel=0
_realver=10.0.0_p3000743
_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"
arch=""
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="https://github.com/vmware/open-vm-tools/archive/open-vm-tools-${_ver}.tar.gz
vmware-modules.initd
"
install_if="linux-${_flavor}=${_kernelver} open-vm-tools"
_builddir="$srcdir/open-vm-tools-open-vm-tools-$_ver"/open-vm-tools
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="13b508201e3285c5f404b24f992936f8 open-vm-tools-10.0.0-3000743.tar.gz
468a05614187bef0664c238811e7fae9 vmware-modules.initd"
sha256sums="8765784d85e4a39b08f1cbc2fb9bbb920027d5fa0abb9b99cec4a886a793ad94 open-vm-tools-10.0.0-3000743.tar.gz
67217fb71ffceb3eed2a55ae47fe1411f67a0bf4563b86741768dc6d77f82760 vmware-modules.initd"
sha512sums="25428a4982fa19208f915fd58067a5aa9a8427b2ff8c3f06889194cdd4792489911232c3cd94ea54f5000c47ca915debd33ee0441579adf50f183b74def5cd45 open-vm-tools-10.0.0-3000743.tar.gz
aa3524324274413ae016ba2e660bdab5c2bc95712c131cadd99fdb463ad30279b6b80e5b61eb002fedf348e56fb31586e2695d8be0c52e5c7fcb4a15f275985f vmware-modules.initd"
|