aboutsummaryrefslogtreecommitdiffstats
path: root/main/open-vm-tools-vserver/APKBUILD
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2011-06-02 10:32:26 +0000
committerCarlo Landmeter <clandmeter@gmail.com>2011-06-02 10:32:26 +0000
commit98341482934b3eebb2804076412196c363303cfb (patch)
tree0eaddeff3e8107a42c68202a971e15e4c18bca68 /main/open-vm-tools-vserver/APKBUILD
parent15e8c972fea27793fdc95f5df179fbb29e505f81 (diff)
downloadaports-98341482934b3eebb2804076412196c363303cfb.tar.bz2
aports-98341482934b3eebb2804076412196c363303cfb.tar.xz
main/open-vm-tools-vserver: new aport
Diffstat (limited to 'main/open-vm-tools-vserver/APKBUILD')
-rw-r--r--main/open-vm-tools-vserver/APKBUILD63
1 files changed, 63 insertions, 0 deletions
diff --git a/main/open-vm-tools-vserver/APKBUILD b/main/open-vm-tools-vserver/APKBUILD
new file mode 100644
index 0000000000..2ecd0e84b4
--- /dev/null
+++ b/main/open-vm-tools-vserver/APKBUILD
@@ -0,0 +1,63 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+
+_flavor=vserver
+_realname=open-vm-tools
+_realver=2011.04.25
+_realsubver=402641
+
+# source the kernel version
+if [ -f ../../main/linux-${_flavor}/APKBUILD ]; then
+ . ../../main/linux-${_flavor}/APKBUILD
+fi
+
+_kver=$pkgver
+_kernelver="$pkgver-r$pkgrel"
+_kpkgrel=$pkgrel
+pkgname="$_realname-$_flavor"
+pkgver=$_kver
+_mypkgrel=0
+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="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-$_realver-$_realsubver.tar.gz
+ vmware-modules.initd
+ "
+
+_builddir="$srcdir/$_realname-$_realver-$_realsubver"
+
+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="f6d87599523de31f02aaf229bf2ff08c open-vm-tools-2011.04.25-402641.tar.gz
+afba2c3487d0b12cee80eb2f04b05ba1 vmware-modules.initd"