How to configure packaging file for application if source folder doesn't contain ./configure file

89 views
Skip to first unread message

Evgeniy Litvinenko

unread,
May 8, 2014, 9:42:43 AM5/8/14
to bosh-...@cloudfoundry.org
Hello,

I've been trying to create packages via "bosh-gen package" of sendmail and postfix, but bosh create packaging file with the following content:

tar xfv postfix/postfix_2.9.6.orig.tar.gz
cd postfix-2.9.6
./configure --prefix=${BOSH_INSTALL_TARGET}
make 
make install

This default configuration doesn't work because ./configure doesnt exist in the source folder.

Then if I comment this string #./configure --prefix=${BOSH_INSTALL_TARGET} it doesn't resolve the issue, because when make command execting it start writing files to some folder like /usr/... which are wrong at all.

My question is how to workaround it without changing source code configuration of thr application.
p.s
--prefix variable doesnt exist in any files where it might be like Makefile or Makefile.in

Dr Nic Williams

unread,
May 8, 2014, 9:46:54 AM5/8/14
to bosh-...@cloudfoundry.org
The generated packaging script is just a static example of what might work.; or what works for many C-based projects.

Do whatever packaging commands are necessary for the package you are building. Just make sure the resulting bits are in the $BOSH_INSTALL_PATH


To unsubscribe from this group and stop receiving emails from it, send an email to bosh-users+...@cloudfoundry.org.

Dave Parfitt

unread,
May 8, 2014, 1:01:26 PM5/8/14
to bosh-...@cloudfoundry.org
You could also drill down into any of these existing packages for more examples:

https://github.com/cloudfoundry/cf-release/tree/master/packages
--
Dave Parfitt
Stark & Wayne LLC - consultancy for Cloud Foundry users
http://starkandwayne.com
Github https://github.com/metadave
Twitter @metadave
Reply all
Reply to author
Forward
0 new messages