blob: 38d924646169a5540c5c4615681a0cbc73159b80 (
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
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
_flavor=grsec
# source the kernel version
if [ -f ../../main/linux-${_flavor}/APKBUILD ]; then
. ../../main/linux-${_flavor}/APKBUILD
fi
_kernelver="$pkgver-r$pkgrel"
_abi_release=${pkgver}-${_flavor}
_kpkgrel=$pkgrel
_realname=open-vm-tools
pkgname=open-vm-tools-$_flavor
pkgver=2011.01.24
_pkgsubver=354108
pkgrel=2
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=""
depends="linux-${_flavor}=${_kernelver}"
makedepends="glib-dev gettext-dev linux-${_flavor}-dev=${_kernelver}"
source="http://downloads.sourceforge.net/open-vm-tools/open-vm-tools-$pkgver-$_pkgsubver.tar.gz
vmware-modules.initd
"
_builddir="$srcdir/$_realname-$pkgver-$_pkgsubver"
prepare() {
cd "$_builddir"
}
build() {
cd "$_builddir"
./configure --without-pam \
--without-x \
--without-dnet \
--without-icu \
--without-procps \
--with-kernel-release="$_abi_release" \
|| return 1
cd "$_builddir"/modules
make -j1 modules || return 1
}
package() {
cd "$_builddir"
install -D -m755 "$srcdir"/vmware-modules.initd \
"$pkgdir"/etc/init.d/vmware-modules || 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="b324efa55bb3f1198100cad838e9272b open-vm-tools-2011.01.24-354108.tar.gz
f16058de6e4251a509f87017f1684887 vmware-modules.initd"
|