after-install script for non-directory source?

272 views
Skip to first unread message

Howard Jones

unread,
Nov 13, 2012, 9:19:31 AM11/13/12
to fpm-...@googlegroups.com
I'm just trying to get to grips with fpm as a quick&dirty way to install VMware Tools in new VMs running Ubuntu, without having to do the little dance with a virtual CD.

So, I have the .tar.gz file off of VMware's disk image, and I want to have the package unpack into /opt/vmware-tools-dist and then run VMware's install script.

My first attempt is:
  fpm -s tar -t deb -n "vmware-tools-dist" -v 8.3.2-257589 --prefix /opt --after-install vmware-tools-install.sh VMwareTools-8.3.2-257589.tar.gz
where vmware-tools-install.sh is a one-line shell script with the correct command-line for the installer: "/opt/vmware-tools-dist/vmware-install.pl -d"

As far as I can see, fpm doesn't add my script to the .deb, and I know that whatever filename I give it has to exist at the time the package is being created, so it can't be the installer inside the tar - so what IS the right way to run that install script? Or how can I add my file in addition to the contents of the tar?

Sorry if this is a very newbie kind of question, but there's not much information about the pre/post install script stuff, that I could see...
Reply all
Reply to author
Forward
0 new messages