#Packager: Dimitris Tzemos #make depends: rpcsvc-proto #depends: libdnet,libsmpack pkgname=open-vm-tools pkgver=13.0.0 _pkgver=13.0.0-24696409 pkgrel=1dj source=("https://github.com/vmware/open-vm-tools/releases/download/stable-$pkgver/$pkgname-$_pkgver.tar.gz" "rc.vmtoolsd") url=https://github.com/vmware/open-vm-tools docs=("INSTALL" "LICENSE" "README" "docs/") options=('noautodotnew') dotnew=("etc/rc.d/rc.vmtoolsd") slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "open-vm-tools (VMware open-vm-tools project)" "open-vm-tools is a set of services and modules that enable" "several features in VMware products for better management of," "and seamless user interactions with, guests. It includes kernel" "modules for enhancing the performance of virtual machines" "running Linux or other VMware supported Unix like guest" "operating systems." "" "https://github.com/vmware/open-vm-tools" ) build() { VGAUTH=${VGAUTH:-no} case "$VGAUTH" in no) VGAUTH_OPTS="--disable-vgauth" ;; yes) VGAUTH_OPTS="" ;; xmlsec) VGAUTH_OPTS="--enable-xmlsec1" ;; *) echo "eRRoR with VGAUTH parameter" exit 1 ;; esac cd $startdir/src/$pkgname-$_pkgver sed -i "s|\ -Werror||" configure.ac || return 1 autoreconf -i CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ LIBS=-lcrypt \ ./configure \ --prefix=/usr \ --libdir=/usr/lib${LIBDIRSUFFIX} \ --sysconfdir=/etc \ --localstatedir=/var \ --mandir=/usr/man \ --docdir=/usr/doc/$pkgname-$pkgver \ --with-pam \ --with-x \ $VGAUTH_OPTS \ --build=$arch-slackware-linux || return 1 make make install DESTDIR=$startdir/pkg || return 1 mkdir -p $startdir/pkg/etc/rc.d cp $startdir/src/rc.vmtoolsd $startdir/pkg/etc/rc.d || return 1 find $startdir/pkg -name perllocal.pod \ -o -name ".packlist" \ -o -name "*.bs" \ | xargs rm -f }