diff options
author | Carlo Landmeter <clandmeter@gmail.com> | 2011-02-12 18:43:29 +0000 |
---|---|---|
committer | Carlo Landmeter <clandmeter@gmail.com> | 2011-02-12 18:44:16 +0000 |
commit | 74b7f75820760816c263e9188c1224cc6e8f5b13 (patch) | |
tree | 3c00935ec33f160018b90d98ae1c886d64092691 /testing | |
parent | c8fc2bc5daf7c1119769a3c0f82367dfa80dcd4b (diff) | |
download | aports-74b7f75820760816c263e9188c1224cc6e8f5b13.tar.bz2 aports-74b7f75820760816c263e9188c1224cc6e8f5b13.tar.xz |
testing/open-vm-tools-grsec: added initd and clean-up
Diffstat (limited to 'testing')
-rw-r--r-- | testing/open-vm-tools-grsec/APKBUILD | 34 | ||||
-rw-r--r-- | testing/open-vm-tools-grsec/vmware-modules.initd | 25 |
2 files changed, 38 insertions, 21 deletions
diff --git a/testing/open-vm-tools-grsec/APKBUILD b/testing/open-vm-tools-grsec/APKBUILD index b2aaeea312..d71a02a892 100644 --- a/testing/open-vm-tools-grsec/APKBUILD +++ b/testing/open-vm-tools-grsec/APKBUILD @@ -15,41 +15,30 @@ _realname=open-vm-tools pkgname=open-vm-tools-$_flavor pkgver=2011.01.24 _pkgsubver=354108 -pkgrel=0 +pkgrel=1 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="pkgconfig bash rpcgen automake autoconf glib-dev - procps-dev libdnet-dev icu-dev - gettext-dev linux-${_flavor}-dev=${_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" - for i in "$srcdir"/*.patch; do - [ -r "$i" ] || continue - patch -p1 -i "$i" || return 1 - done - # workaround automake-1.10 issue - # http://ramblingfoo.blogspot.com/2007/07/required-file-configrpath-not-found.html - touch config/config.rpath - aclocal -I m4 && autoconf && automake } build() { cd "$_builddir" - ./configure --prefix=/usr \ - --disable-unity \ - --without-pam \ - --disable-multimon \ + ./configure --without-pam \ --without-x \ + --without-dnet \ + --without-icu \ --with-kernel-release="$_abi_release" \ || return 1 cd "$_builddir"/modules @@ -58,11 +47,14 @@ build() { package() { cd "$_builddir" - mkdir -p $pkgdir/lib/modules/$_abi_release/misc/ + 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 MOD in `find -type f -name '*.ko'`; do - install -D -m644 $MOD "$pkgdir/lib/modules/$_abi_release/misc/" + 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" +md5sums="b324efa55bb3f1198100cad838e9272b open-vm-tools-2011.01.24-354108.tar.gz +f16058de6e4251a509f87017f1684887 vmware-modules.initd" diff --git a/testing/open-vm-tools-grsec/vmware-modules.initd b/testing/open-vm-tools-grsec/vmware-modules.initd new file mode 100644 index 0000000000..4977aee7c4 --- /dev/null +++ b/testing/open-vm-tools-grsec/vmware-modules.initd @@ -0,0 +1,25 @@ +#!/sbin/runscript + +MODULES="vmblock vmci vmhgfs vmsync vmxnet vsock" + +depend() { + before open-vm-tools +} + + +start() { + ebegin "Loading VMware kernel modules" + for mod in $MODULES; do + modprobe -q $mod + done + eend $? +} + +stop() { + ebegin "Unloading VMware kernel modules" + for mod in $MODULES; do + rmmod $mod + done + eend $? +} + |