aboutsummaryrefslogtreecommitdiffstats
path: root/main/open-vm-tools
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2017-02-13 18:17:38 +0100
committerJakub Jirutka <jakub@jirutka.cz>2017-02-13 18:25:17 +0100
commit0850971f05a1ea0ff352c1f83fa68d1b4055ea68 (patch)
tree09a74a68731bb1ad2934b7d8c67d5a7dd87ba00c /main/open-vm-tools
parent006d456e80cd6028774e3a56a598ea6037dee319 (diff)
downloadaports-0850971f05a1ea0ff352c1f83fa68d1b4055ea68.tar.bz2
aports-0850971f05a1ea0ff352c1f83fa68d1b4055ea68.tar.xz
main/open-vm-tools: improve abuild
Diffstat (limited to 'main/open-vm-tools')
-rw-r--r--main/open-vm-tools/APKBUILD32
1 files changed, 17 insertions, 15 deletions
diff --git a/main/open-vm-tools/APKBUILD b/main/open-vm-tools/APKBUILD
index efa1dc24dc..f1f61cd1d4 100644
--- a/main/open-vm-tools/APKBUILD
+++ b/main/open-vm-tools/APKBUILD
@@ -6,7 +6,6 @@ _ver=${pkgver/_p/-}
pkgrel=3
pkgdesc="The Open Virtual Machine Tools are the open source implementation of VMware Tools."
url="https://github.com/vmware/open-vm-tools/"
-
arch="x86 x86_64"
license="LGPL"
subpackages="$pkgname-dbg $pkgname-gtk $pkgname-dev"
@@ -17,7 +16,7 @@ makedepends="procps-dev libdnet-dev icu-dev glib-dev bash icu-dev
libtirpc-dev linux-headers libmspack-dev libressl-dev rpcgen
automake autoconf libtool m4
"
-source="$pkgname-$pkgver.tar.gz::https://github.com/vmware/open-vm-tools/archive/stable-$_ver.tar.gz
+source="$pkgname-$pkgver.tar.gz::https://github.com/vmware/$pkgname/archive/stable-$_ver.tar.gz
0001-remove-autotools-generated-files.patch
0002-lib-misc-Recognize-Alpine-Linux.patch
0003-open-vm-tools-Add-disable-werror-configure-option.patch
@@ -36,14 +35,15 @@ source="$pkgname-$pkgver.tar.gz::https://github.com/vmware/open-vm-tools/archive
open-vm-tools.initd
open-vm-tools.confd
"
-
-builddir="$srcdir"/open-vm-tools-stable-$_ver
+builddir="$srcdir/$pkgname-stable-$_ver"
build() {
export CUSTOM_PROCPS_NAME="procps"
export CFLAGS="$CFLAGS -Wno-unused-but-set-variable -D_GNU_SOURCE"
export CXXFLAGS="$CXXFLAGS -std=gnu++11 -fpermissive"
+
cd "$builddir"/open-vm-tools
+
autoreconf -vif || return 1
./configure \
--build=$CBUILD \
@@ -73,25 +73,27 @@ package() {
"$pkgdir"/etc/conf.d/open-vm-tools || return 1
mkdir -p "$pkgdir"/etc/modules-load.d/
- cat >"$pkgdir"/etc/modules-load.d/open-vm-tools<<EOF
-vmblock
-vmci
-vmhgfs
-vmsync
-vmxnet
-vsock
-vmw_balloon
-EOF
+ cat > "$pkgdir"/etc/modules-load.d/open-vm-tools <<-EOF
+ vmblock
+ vmci
+ vmhgfs
+ vmsync
+ vmxnet
+ vsock
+ vmw_balloon
+ EOF
}
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/
+ "$subpkgdir"/usr/bin/ || return 1
+ mv "$pkgdir"/etc/xdg "$subpkgdir"/etc/ || return 1
mv "$pkgdir"/usr/lib/open-vm-tools/plugins/vmusr \
"$subpkgdir"/usr/lib/open-vm-tools/plugins/
}